mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-10 15:51:51 +08:00
Move the ahead of time tests to the pep0526 file
This commit is contained in:
@@ -1,19 +0,0 @@
|
|||||||
""" Pep-0484 type hinting with ahead of time annotations """
|
|
||||||
|
|
||||||
# python >= 3.6
|
|
||||||
|
|
||||||
somelist = [1, 2, 3, "A", "A"]
|
|
||||||
element : int
|
|
||||||
for element in somelist:
|
|
||||||
#? int()
|
|
||||||
element
|
|
||||||
|
|
||||||
test_string: str = NOT_DEFINED
|
|
||||||
#? str()
|
|
||||||
test_string
|
|
||||||
|
|
||||||
|
|
||||||
char: str
|
|
||||||
for char in NOT_DEFINED:
|
|
||||||
#? str()
|
|
||||||
char
|
|
||||||
@@ -20,3 +20,19 @@ direct
|
|||||||
with_typing_module: typing.List[float] = NOT_DEFINED
|
with_typing_module: typing.List[float] = NOT_DEFINED
|
||||||
#? float()
|
#? float()
|
||||||
with_typing_module[0]
|
with_typing_module[0]
|
||||||
|
|
||||||
|
somelist = [1, 2, 3, "A", "A"]
|
||||||
|
element : int
|
||||||
|
for element in somelist:
|
||||||
|
#? int()
|
||||||
|
element
|
||||||
|
|
||||||
|
test_string: str = NOT_DEFINED
|
||||||
|
#? str()
|
||||||
|
test_string
|
||||||
|
|
||||||
|
|
||||||
|
char: str
|
||||||
|
for char in NOT_DEFINED:
|
||||||
|
#? str()
|
||||||
|
char
|
||||||
|
|||||||
Reference in New Issue
Block a user