berkerpeksag / astor

Python AST read/write
https://pypi.org/project/astor/
BSD 3-Clause "New" or "Revised" License
803 stars 102 forks source link

type_comments with typed_ast on 3.8+ #159

Open isidentical opened 4 years ago

isidentical commented 4 years ago
def foo(): # type: () -> None
    pass

bar = 3 # type: int
for baz in foo(): # type: ignore
    pass