8000 Use namespaces for function type variables by ilevkivskyi · Pull Request #17311 · python/mypy · GitHub
[go: up one dir, main page]

Skip to content

Use namespaces for function type variables #17311

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 9 commits into from
Jun 5, 2024
Prev Previous commit
Merge branch 'master' into func-typevar-ns
  • Loading branch information
ilevkivskyi authored Jun 5, 2024
commit d506a562bf7e1121803a152426ced4ed12e049b5
2 changes: 1 addition & 1 deletion mypy/typeanal.py
Original file line number Diff line number Diff line change
Expand Up @@ -1033,7 +1033,7 @@ def visit_callable_type(
# Every Callable can bind its own type variables, if they're not in the outer scope
# TODO: attach namespace for nested free type variables (these appear in return type only).
with self.tvar_scope_frame(namespace=namespace):
unpacked_kwargs = False
unpacked_kwargs = t.unpack_kwargs
if self.defining_alias:
variables = t.variables
else:
Expand Down
You are viewing a condensed version of this merge commit. You can view the full changes here.
0