Skip to content

Commit

Permalink
2.5.3 patch release with new pydantic-core (#8420)
Browse files Browse the repository at this point in the history
Co-authored-by: Hasan Ramezani <hasan.r67@gmail.com>
  • Loading branch information
davidhewitt and hramezani committed Dec 22, 2023
1 parent b75cb28 commit 888354f
Show file tree
Hide file tree
Showing 7 changed files with 113 additions and 141 deletions.
219 changes: 109 additions & 110 deletions pdm.lock

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion pydantic/functional_serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ def field_serializer(
"""

def dec(
f: Callable[..., Any] | staticmethod[Any, Any] | classmethod[Any, Any, Any]
f: Callable[..., Any] | staticmethod[Any, Any] | classmethod[Any, Any, Any],
) -> _decorators.PydanticDescriptorProxy[Any]:
dec_info = _decorators.FieldSerializerDecoratorInfo(
fields=fields,
Expand Down
2 changes: 1 addition & 1 deletion pydantic/functional_validators.py
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,7 @@ def ensure_foobar(cls, v: Any):
)

def dec(
f: Callable[..., Any] | staticmethod[Any, Any] | classmethod[Any, Any, Any]
f: Callable[..., Any] | staticmethod[Any, Any] | classmethod[Any, Any, Any],
) -> _decorators.PydanticDescriptorProxy[Any]:
if _decorators.is_instance_method_from_sig(f):
raise PydanticUserError(
Expand Down
2 changes: 1 addition & 1 deletion pydantic/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

__all__ = 'VERSION', 'version_info'

VERSION = '2.5.2'
VERSION = '2.5.3'
"""The version of Pydantic."""


Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ requires-python = '>=3.7'
dependencies = [
'typing-extensions>=4.6.1',
'annotated-types>=0.4.0',
"pydantic-core==2.14.5",
"pydantic-core==2.14.6",
"importlib_metadata; python_version=='3.7'",
]
dynamic = ['version', 'readme']
Expand Down
3 changes: 0 additions & 3 deletions tests/test_fastapi.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,6 @@ pip install -r requirements.txt
pip uninstall -y pydantic
cd .. && pip install . && cd fastapi

# apply the patch designed to get the tests to pass (currently ignores some warnings)
git apply ../tests/test_fastapi_changes.patch

# ./scripts/test.sh accepts arbitrary arguments and passes them to the pytest call.
# This may be necessary if we make low-consequence changes to pydantic, such as minor changes the details of a JSON
# schema or the contents of a ValidationError
Expand Down
24 changes: 0 additions & 24 deletions tests/test_fastapi_changes.patch

This file was deleted.

0 comments on commit 888354f

Please sign in to comment.