Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 3 of 3 for getOrigin (0.12 seconds)

  1. fastapi/_compat/shared.py

        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
        return _annotation_is_sequence(annotation) or _annotation_is_sequence(
            get_origin(annotation)
        )
    
    
    def value_is_sequence(value: Any) -> bool:
    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

        origin_type = get_origin(field.field_info.annotation) or field.field_info.annotation
        if origin_type is Union or origin_type is UnionType:  # Handle optional sequences
            union_args = get_args(field.field_info.annotation)
            for union_arg in union_args:
                if union_arg is type(None):
                    continue
                origin_type = get_origin(union_arg) or union_arg
                break
    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)
  3. fastapi/dependencies/utils.py

    from copy import copy, deepcopy
    from dataclasses import dataclass
    from typing import (
        Annotated,
        Any,
        ForwardRef,
        Literal,
        Union,
        cast,
        get_args,
        get_origin,
    )
    
    from fastapi import params
    from fastapi._compat import (
        ModelField,
        RequiredParam,
        Undefined,
        copy_field_info,
        create_body_model,
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sun Mar 15 11:44:39 GMT 2026
    - 38.7K bytes
    - Click Count (3)
Back to Top