Instances should not need get_generics
This commit is contained in:
1 parent
42963a0e03
commit
434866558a
3 files changed
+4
-8
No files matched your search
@@ -325,7 +325,7 @@ class Tuple(BaseTypingInstance):
|
||||
# The parameter annotation is of the form `Tuple[T, ...]`,
|
||||
# so we treat the incoming tuple like a iterable sequence
|
||||
# rather than a positional container of elements.
|
||||
return self.get_generics()[0].infer_type_vars(
|
||||
return self._class_value.get_generics()[0].infer_type_vars(
|
||||
value_set.merge_types_of_iterate(),
|
||||
)
|
||||
|
||||
@@ -348,7 +348,7 @@ class Tuple(BaseTypingInstance):
|
||||
py_class = method()
|
||||
merge_type_var_dicts(
|
||||
type_var_dict,
|
||||
merge_pairwise_generics(self, py_class),
|
||||
merge_pairwise_generics(self._class_value, py_class),
|
||||
)
|
||||
|
||||
return type_var_dict
|
||||
|
||||
Reference in new issue
Block a user