mirror of
https://github.com/davidhalter/jedi.git
synced 2026-10-08 18:25:14 +08:00
Add tests for typing.TYPE_CHECKING
This commit is contained in:
1 parent
bf6974dabb
commit
80ab4d8ff5
1 file changed
+10
@@ -318,3 +318,13 @@ class WithTypeVar(typing.Generic[TYPE_VAR]):
|
||||
def maaan(p: WithTypeVar[int]):
|
||||
#? int()
|
||||
p.lala()
|
||||
|
||||
|
||||
if typing.TYPE_CHECKING:
|
||||
with_type_checking = 1
|
||||
else:
|
||||
without_type_checking = 1.0
|
||||
#? int()
|
||||
with_type_checking
|
||||
#?
|
||||
without_type_checking
|
||||
Reference in new issue
Block a user