Make tuple generic parameters work

This commit is contained in:
Peter Law committed 2020-02-23 13:59:44 +00:00
1 parent 969a8f1fd9
commit bc53dabce3
2 files changed
+30 -6

No files matched your search

+1 -6
View File
@@ -241,12 +241,7 @@ class Callable(BaseTypingValueWithGenerics):
return infer_return_for_callable(arguments, param_values, result_values)
class Tuple(LazyValueWrapper):
def __init__(self, parent_context, name, generics_manager):
self.inference_state = parent_context.inference_state
self.parent_context = parent_context
self._generics_manager = generics_manager
class Tuple(BaseTypingValueWithGenerics):
def _is_homogenous(self):
# To specify a variable-length tuple of homogeneous type, Tuple[T, ...]
# is used.