Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 2 of 2 for sequence_annotation_to_type (0.09 seconds)

  1. fastapi/_compat/shared.py

    PYDANTIC_VERSION_MINOR_TUPLE = tuple(int(x) for x in PYDANTIC_VERSION.split(".")[:2])
    
    
    sequence_annotation_to_type = {
        Sequence: list,
        list: list,
        tuple: tuple,
        set: set,
        frozenset: frozenset,
        deque: deque,
    }
    
    sequence_types: tuple[type[Any], ...] = tuple(sequence_annotation_to_type.keys())
    
    
    # Copy of Pydantic: pydantic/_internal/_utils.py with added TypeGuard
    def lenient_issubclass(
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Wed Feb 11 18:32:12 GMT 2026
    - 6.9K bytes
    - Click Count (0)
  2. fastapi/_compat/v2.py

                    continue
                origin_type = get_origin(union_arg) or union_arg
                break
        assert issubclass(origin_type, shared.sequence_types)  # type: ignore[arg-type]
        return shared.sequence_annotation_to_type[origin_type](value)  # type: ignore[no-any-return,index]
    
    
    def get_missing_field_error(loc: tuple[int | str, ...]) -> dict[str, Any]:
        error = ValidationError.from_exception_data(
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sun Mar 15 11:44:39 GMT 2026
    - 16.7K bytes
    - Click Count (0)
Back to Top