diff --git a/CITATION.cff b/CITATION.cff index 0ee9d86a278..adb6420bff4 100644 --- a/CITATION.cff +++ b/CITATION.cff @@ -44,5 +44,5 @@ keywords: - hints - typing license: MIT -version: v2.11.8 +version: v2.11.9 date-released: 2025-09-13 diff --git a/HISTORY.md b/HISTORY.md index 213ff762d48..59a60e6c52c 100644 --- a/HISTORY.md +++ b/HISTORY.md @@ -1,3 +1,13 @@ +## v2.11.9 (2025-09-13) + +[GitHub release](https://github.com/pydantic/pydantic/releases/tag/v2.11.9) + +### What's Changed + +#### Fixes + +* Backport v1.10.23 changes by @Viicos + ## v2.11.8 (2025-09-13) [GitHub release](https://github.com/pydantic/pydantic/releases/tag/v2.11.8) diff --git a/pydantic/v1/mypy.py b/pydantic/v1/mypy.py index f4e27ab4b70..79123170a7c 100644 --- a/pydantic/v1/mypy.py +++ b/pydantic/v1/mypy.py @@ -863,9 +863,9 @@ def add_method( arg_kinds.append(arg.kind) function_type = ctx.api.named_type(f'{BUILTINS_NAME}.function') - signature = CallableType(arg_types, arg_kinds, arg_names, return_type, function_type) - if tvar_def: - signature.variables = [tvar_def] + signature = CallableType( + arg_types, arg_kinds, arg_names, return_type, function_type, variables=[tvar_def] if tvar_def else None + ) func = FuncDef(name, args, Block([PassStmt()])) func.info = info diff --git a/pydantic/version.py b/pydantic/version.py index 6208453d735..28d77e9f596 100644 --- a/pydantic/version.py +++ b/pydantic/version.py @@ -6,7 +6,7 @@ __all__ = 'VERSION', 'version_info' -VERSION = '2.11.8' +VERSION = '2.11.9' """The version of Pydantic."""