mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-06 05:54:25 +08:00
Add type match guard
This commit is contained in:
@@ -346,6 +346,10 @@ class Tuple(BaseTypingValueWithGenerics):
|
||||
|
||||
type_var_dict = {}
|
||||
for element in value_set:
|
||||
element_name = element.py__name__()
|
||||
if element_name != 'tuple':
|
||||
continue
|
||||
|
||||
if not is_class_value:
|
||||
py_class = element.get_annotated_class_object()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user