Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 1 of 1 for test_serialize_sequence_value_with_none_first_in_union (0.38 seconds)

  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)
    
    
    def test_serialize_sequence_value_with_none_first_in_union():
        """Test that serialize_sequence_value handles Union[None, List[...]] correctly."""
        from typing import Union
    
        from fastapi._compat import v2
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Tue Feb 17 09:59:14 GMT 2026
    - 4.2K bytes
    - Click Count (0)
Back to Top