Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for field_annotation_is_sequence (0.11 sec)

  1. fastapi/_compat.py

            return False
        return lenient_issubclass(annotation, sequence_types)
    
    
    def field_annotation_is_sequence(annotation: Union[Type[Any], None]) -> bool:
        origin = get_origin(annotation)
        if origin is Union or origin is UnionType:
            for arg in get_args(annotation):
                if field_annotation_is_sequence(arg):
                    return True
            return False
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sat Oct 12 09:36:32 UTC 2024
    - 23.4K bytes
    - Viewed (0)
Back to top