From 55b9aaf916e579b8c66dcf7f0ed235341cca4e92 Mon Sep 17 00:00:00 2001 From: "Michael J. Sullivan" Date: Thu, 6 Sep 2018 18:56:10 -0700 Subject: [PATCH] Add Optional to typed_ast's arguments.type_comments (#2430) This covers the case where some but not all arguments have a `# type:` comment. --- third_party/3/typed_ast/ast27.pyi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/third_party/3/typed_ast/ast27.pyi b/third_party/3/typed_ast/ast27.pyi index c4bf4f6b8..ac775a02c 100644 --- a/third_party/3/typed_ast/ast27.pyi +++ b/third_party/3/typed_ast/ast27.pyi @@ -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