Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 2 of 2 for annotated_args (0.18 seconds)

  1. fastapi/dependencies/utils.py

            type_annotation = annotation
        # Extract Annotated info
        if get_origin(use_annotation) is Annotated:
            annotated_args = get_args(annotation)
            type_annotation = annotated_args[0]
            fastapi_annotations = [
                arg
                for arg in annotated_args[1:]
                if isinstance(arg, (FieldInfo, params.Depends))
            ]
            fastapi_specific_annotations = [
                arg
    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)
  2. fastapi/_compat/v2.py

                    )
                # TODO: remove after setting the min Pydantic to v2.12.3
                # that adds asdict(), and use self.field_info.asdict() instead
                field_dict = asdict(self.field_info)
                annotated_args = (
                    field_dict["annotation"],
                    *field_dict["metadata"],
                    # this FieldInfo needs to be created again so that it doesn't include
    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