pycode: Support type annotations for variables

This commit is contained in:
Takeshi KOMIYA
2020-02-01 13:38:31 +09:00
parent 5e4e44c195
commit 2ed26b4377
3 changed files with 33 additions and 5 deletions

View File

@@ -105,6 +105,9 @@ def test_annotated_assignment_py36():
assert parser.comments == {('', 'a'): 'comment',
('', 'b'): 'string on next line',
('', 'c'): 'comment'}
assert parser.annotations == {('', 'a'): 'str',
('', 'b'): 'int',
('', 'c'): 'int'}
assert parser.definitions == {}