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

Attempt to fix issue with ParamSpec serialization #12654

Merged
merged 1 commit into from Apr 22, 2022
Merged
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
8 changes: 3 additions & 5 deletions mypy/fixup.py
Expand Up @@ -188,11 +188,7 @@ def visit_callable_type(self, ct: CallableType) -> None:
if ct.ret_type is not None:
ct.ret_type.accept(self)
for v in ct.variables:
if isinstance(v, TypeVarType):
if v.values:
for val in v.values:
val.accept(self)
v.upper_bound.accept(self)
v.accept(self)
for arg in ct.bound_args:
if arg:
arg.accept(self)
Expand Down Expand Up @@ -262,6 +258,8 @@ def visit_parameters(self, p: Parameters) -> None:
for argt in p.arg_types:
if argt is not None:
argt.accept(self)
for var in p.variables:
var.accept(self)

def visit_unbound_type(self, o: UnboundType) -> None:
for a in o.args:
Expand Down