mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-06 22:14:27 +08:00
Add tests for typing.TYPE_CHECKING
This commit is contained in:
@@ -318,3 +318,13 @@ class WithTypeVar(typing.Generic[TYPE_VAR]):
|
|||||||
def maaan(p: WithTypeVar[int]):
|
def maaan(p: WithTypeVar[int]):
|
||||||
#? int()
|
#? int()
|
||||||
p.lala()
|
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