forked from VimPlug/jedi
Avoid a bug that a compiler might have found, fixes #1469
This commit is contained in:
@@ -142,7 +142,6 @@ class TypingValueWithIndex(BaseTypingValueWithGenerics):
|
||||
|
||||
class ProxyTypingValue(BaseTypingValue):
|
||||
index_class = TypingValueWithIndex
|
||||
py__simple_getitem__ = None
|
||||
|
||||
def with_generics(self, generics_tuple):
|
||||
return self.index_class.create_cached(
|
||||
|
||||
@@ -332,6 +332,9 @@ def union4(x: U[int, str]):
|
||||
#? int() str()
|
||||
x
|
||||
|
||||
#? typing.Optional
|
||||
typing.Optional[0]
|
||||
|
||||
# -------------------------
|
||||
# Type Vars
|
||||
# -------------------------
|
||||
|
||||
Reference in New Issue
Block a user