Move the ahead of time tests to the pep0526 file

This commit is contained in:
Dave Halter
2018-01-31 00:18:17 +01:00
parent 3ae0560f1c
commit 522e7123ed
2 changed files with 16 additions and 19 deletions

View File

@@ -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

View File

@@ -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