From 522e7123edc76dbe1b3fa3f5cd9fc901a6af684f Mon Sep 17 00:00:00 2001 From: Dave Halter Date: Wed, 31 Jan 2018 00:18:17 +0100 Subject: [PATCH] Move the ahead of time tests to the pep0526 file --- test/completion/pep0484_aheadoftime.py | 19 ------------------- test/completion/pep0526_variables.py | 16 ++++++++++++++++ 2 files changed, 16 insertions(+), 19 deletions(-) delete mode 100644 test/completion/pep0484_aheadoftime.py diff --git a/test/completion/pep0484_aheadoftime.py b/test/completion/pep0484_aheadoftime.py deleted file mode 100644 index 53877f69..00000000 --- a/test/completion/pep0484_aheadoftime.py +++ /dev/null @@ -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 diff --git a/test/completion/pep0526_variables.py b/test/completion/pep0526_variables.py index 24b681da..ee848b6c 100644 --- a/test/completion/pep0526_variables.py +++ b/test/completion/pep0526_variables.py @@ -20,3 +20,19 @@ direct with_typing_module: typing.List[float] = NOT_DEFINED #? float() 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