Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for _annotation_is_sequence (0.07 sec)

  1. fastapi/_compat/shared.py

        if origin is Union or origin is UnionType:
            for arg in get_args(annotation):
                if field_annotation_is_sequence(arg):
                    return True
            return False
        return _annotation_is_sequence(annotation) or _annotation_is_sequence(
            get_origin(annotation)
        )
    
    
    def value_is_sequence(value: Any) -> bool:
        return isinstance(value, sequence_types) and not isinstance(value, (str, bytes))
    
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 12:54:56 UTC 2025
    - 6.7K bytes
    - Viewed (0)
Back to top