Skip to content

Commit

Permalink
Updates type signature for Field() constructor (#9484)
Browse files Browse the repository at this point in the history
Co-authored-by: Brendan McCollam <brendan.mccollam@stfc.ac.uk>
  • Loading branch information
bjmc and bjmc committed May 29, 2024
1 parent 28b36d9 commit fc87631
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions pydantic/fields.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,10 @@ class _FromFieldInfoInputs(typing_extensions.TypedDict, total=False):
description: str | None
examples: list[Any] | None
exclude: bool | None
gt: float | None
ge: float | None
lt: float | None
le: float | None
gt: annotated_types.SupportsGt | None
ge: annotated_types.SupportsGe | None
lt: annotated_types.SupportsLt | None
le: annotated_types.SupportsLe | None
multiple_of: float | None
strict: bool | None
min_length: int | None
Expand Down Expand Up @@ -686,10 +686,10 @@ def Field( # noqa: C901
pattern: str | typing.Pattern[str] | None = _Unset,
strict: bool | None = _Unset,
coerce_numbers_to_str: bool | None = _Unset,
gt: float | None = _Unset,
ge: float | None = _Unset,
lt: float | None = _Unset,
le: float | None = _Unset,
gt: annotated_types.SupportsGt | None = _Unset,
ge: annotated_types.SupportsGe | None = _Unset,
lt: annotated_types.SupportsLt | None = _Unset,
le: annotated_types.SupportsLe | None = _Unset,
multiple_of: float | None = _Unset,
allow_inf_nan: bool | None = _Unset,
max_digits: int | None = _Unset,
Expand Down

0 comments on commit fc87631

Please sign in to comment.