mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-29 15:16:54 +08:00
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:
committed by
GitHub
parent
9d62d6d5c5
commit
55b9aaf916
2
third_party/3/typed_ast/ast27.pyi
vendored
2
third_party/3/typed_ast/ast27.pyi
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user