mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-06 22:14:27 +08:00
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):
|
class ProxyTypingValue(BaseTypingValue):
|
||||||
index_class = TypingValueWithIndex
|
index_class = TypingValueWithIndex
|
||||||
py__simple_getitem__ = None
|
|
||||||
|
|
||||||
def with_generics(self, generics_tuple):
|
def with_generics(self, generics_tuple):
|
||||||
return self.index_class.create_cached(
|
return self.index_class.create_cached(
|
||||||
|
|||||||
@@ -332,6 +332,9 @@ def union4(x: U[int, str]):
|
|||||||
#? int() str()
|
#? int() str()
|
||||||
x
|
x
|
||||||
|
|
||||||
|
#? typing.Optional
|
||||||
|
typing.Optional[0]
|
||||||
|
|
||||||
# -------------------------
|
# -------------------------
|
||||||
# Type Vars
|
# Type Vars
|
||||||
# -------------------------
|
# -------------------------
|
||||||
|
|||||||
Reference in New Issue
Block a user