Skip to content

Commit 68a2747

Browse files
Update pydantic.v1 stub to v1.10.17 (pydantic#9707)
1 parent 9a4619d commit 68a2747

File tree

5 files changed

+12
-6
lines changed

5 files changed

+12
-6
lines changed

HISTORY.md

+6
Original file line numberDiff line numberDiff line change
@@ -1006,6 +1006,12 @@ See [this post](https://docs.pydantic.dev/blog/pydantic-v2-alpha/) for more deta
10061006

10071007
<!-- package description limit -->
10081008

1009+
## v1.10.17 (2024-06-20)
1010+
1011+
* Advertise Python 3.12 for 1.10.x! Part Deux by @vfazio in https://github.com/pydantic/pydantic/pull/9644
1012+
* Mirrored modules in `v1` namespace to fix typing and object resolution in python>3.11 by @exs-dwoodward in https://github.com/pydantic/pydantic/pull/9660
1013+
* setup: remove upper bound from python_requires by @vfazio in https://github.com/pydantic/pydantic/pull/9685
1014+
10091015
## v1.10.16 (2024-06-11)
10101016

10111017
* Specify recursive_guard as kwarg in FutureRef._evaluate by @vfazio in https://github.com/pydantic/pydantic/pull/9612

pydantic/v1/error_wrappers.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ def display_errors(errors: List['ErrorDict']) -> str:
8484

8585

8686
def _display_error_loc(error: 'ErrorDict') -> str:
87-
return ' -> '.join([str(e) for e in error['loc']])
87+
return ' -> '.join(str(e) for e in error['loc'])
8888

8989

9090
def _display_error_type_and_ctx(error: 'ErrorDict') -> str:

pydantic/v1/schema.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1090,7 +1090,7 @@ def go(type_: Any) -> Type[Any]:
10901090
if issubclass(type_, (SecretStr, SecretBytes)):
10911091
attrs = ('max_length', 'min_length')
10921092

1093-
def constraint_func(**kw: Any) -> Type[Any]:
1093+
def constraint_func(**kw: Any) -> Type[Any]: # noqa: F811
10941094
return type(type_.__name__, (type_,), kw)
10951095

10961096
elif issubclass(type_, str) and not issubclass(type_, (EmailStr, AnyUrl)):

pydantic/v1/version.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
__all__ = 'compiled', 'VERSION', 'version_info'
22

3-
VERSION = '1.10.16'
3+
VERSION = '1.10.17'
44

55
try:
66
import cython # type: ignore

update_v1.sh

+3-3
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,12 @@ rm -rf ../pydantic/v1
1919
# Copy new V1 into pydantic/v1
2020
cp -r pydantic ../pydantic/v1
2121

22+
# Remove the v1 sub directory from v1, it's not needed in the v2 codebase
23+
rm -rf ../pydantic/v1/v1
24+
2225
# Update imports in pydantic/v1 to use pydantic.v1
2326
find "../pydantic/v1" -name "*.py" -exec sed -i '' -E 's/from pydantic(\.[a-zA-Z0-9_]*)? import/from pydantic.v1\1 import/g' {} \;
2427

25-
# Remove the v1 file from v1, it's not needed in the v2 codebase
26-
rm ../pydantic/v1/v1.py
27-
2828
popd
2929

3030
# Remove V1 clone

0 commit comments

Comments
 (0)