Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

2.5.3 patch release with new pydantic-core #8420

Merged
merged 2 commits into from
Dec 22, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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.