mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
pycode: Support type annotations for variables
This commit is contained in:
@@ -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 == {}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user