8000 Add support for 3.13 by sydney-runkle · Pull Request #9743 · pydantic/pydantic · GitHub
[go: up one dir, main page]

Skip to content

Add support for 3.13 #9743

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

Merged
merged 17 commits into from
Jun 25, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
dict unpacking for namespace update
  • Loading branch information
sydney-runkle committed Jun 25, 2024
commit 24416b5e6d5cc10b46f2752da21a43ef4ed07781
2 changes: 1 addition & 1 deletion pydantic/_internal/_validate_call.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def __init__(self, function: Callable[..., Any], config: ConfigDict | None, vali
# specifically, we shouldn't be pumping the namespace full of type_params
# when we take namespace and type_params arguments in eval_type_backport
type_params = getattr(schema_type, '__type_params__', ())
namespace.update({param.__name__: param for param in type_params})
namespace = {**{param.__name__: param for param in type_params}, **namespace}
config_wrapper = ConfigWrapper(config)
gen_schema = _generate_schema.GenerateSchema(config_wrapper, namespace)
schema = gen_schema.clean_schema(gen_schema.generate_schema(function))
Expand Down
0