8000 typeops: [minor] use CallableType.type_var_ids (#9694) · python/mypy@57c8317 · GitHub
[go: up one dir, main page]

Skip to content

Commit 57c8317

Browse files
authored
typeops: [minor] use CallableType.type_var_ids (#9694)
It is literally the same thing, but using `type_var_ids` is more ideomatic.
1 parent ff2ae7c commit 57c8317

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mypy/typeops.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ class B(A): pass
235235
original_type = erase_to_bound(self_param_type)
236236
original_type = get_proper_type(original_type)
237237

238-
all_ids = [x.id for x in func.variables]
238+
all_ids = func.type_var_ids()
239239
typeargs = infer_type_arguments(all_ids, self_param_type, original_type,
240240
is_supertype=True)
241241
if (is_classmethod

0 commit comments

Comments
 (0)
0