Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for as_dict (0.07 sec)

  1. fastapi/_compat/v2.py

                    )
                # TODO: remove after dropping support for Python 3.8 and
                # setting the min Pydantic to v2.12.3 that adds asdict()
                field_dict = asdict(self.field_info)
                annotated_args = (
                    field_dict["annotation"],
                    *field_dict["metadata"],
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 12:54:56 UTC 2025
    - 19.1K bytes
    - Viewed (0)
  2. fastapi/encoders.py

                exclude_defaults=exclude_defaults,
                sqlalchemy_safe=sqlalchemy_safe,
            )
        if dataclasses.is_dataclass(obj):
            assert not isinstance(obj, type)
            obj_dict = dataclasses.asdict(obj)
            return jsonable_encoder(
                obj_dict,
                include=include,
                exclude=exclude,
                by_alias=by_alias,
                exclude_unset=exclude_unset,
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 12:54:56 UTC 2025
    - 10.7K bytes
    - Viewed (0)
Back to top