Add Optional to typed_ast's arguments.type_comments (#2430)

This covers the case where some but not all arguments have a `# type:` comment.
This commit is contained in:
Michael J. Sullivan
2018-09-06 18:56:10 -07:00
committed by GitHub
parent 9d62d6d5c5
commit 55b9aaf916

View File

@@ -345,7 +345,7 @@ class arguments(AST):
vararg = ... # type: Optional[identifier]
kwarg = ... # type: Optional[identifier]
defaults = ... # type: typing.List[expr]
type_comments = ... # type: typing.List[str]
type_comments = ... # type: typing.List[Optional[str]]
class keyword(AST):
arg = ... # type: identifier