Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 1 of 1 for test_serialize_sequence_value_with_optional_list_pipe_union (0.25 seconds)

The search processing time has exceeded the limit. The displayed results may be partial.

  1. tests/test_compat.py

        result = v2.serialize_sequence_value(field=field, value=["a", "b", "c"])
        assert result == ["a", "b", "c"]
        assert isinstance(result, list)
    
    
    @needs_py310
    def test_serialize_sequence_value_with_optional_list_pipe_union():
        """Test that serialize_sequence_value handles optional lists correctly (with new syntax)."""
        from fastapi._compat import v2
    
        field_info = FieldInfo(annotation=list[str] | None)
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Sat Dec 27 12:54:56 GMT 2025
    - 4.2K bytes
    - Click Count (0)
Back to Top