Any -> AnyClass
This commit is contained in:
1 parent
e9a0c01af8
commit
e6e43413ff
2 files changed
+4
-4
No files matched your search
@@ -23,8 +23,8 @@ class _BoundTypeVarName(AbstractNameDefinition):
|
||||
def iter_():
|
||||
for value in self._value_set:
|
||||
# Replace any with the constraints if they are there.
|
||||
from jedi.inference.gradual.typing import Any
|
||||
if isinstance(value, Any):
|
||||
from jedi.inference.gradual.typing import AnyClass
|
||||
if isinstance(value, AnyClass):
|
||||
for constraint in self._type_var.constraints:
|
||||
yield constraint
|
||||
else:
|
||||
|
||||
Reference in new issue
Block a user