ast: fix stubtest issues (#7877)

Add annotations for `_ast.Tuple.dims` and `ast.main()`. Add allowlist comments for others.
This commit is contained in:
Jelle Zijlstra
2022-05-19 02:13:08 -07:00
committed by GitHub
parent d389b5f9cb
commit 250f3d92e7
5 changed files with 11 additions and 15 deletions

View File

@@ -415,6 +415,8 @@ class Tuple(expr):
__match_args__ = ("elts", "ctx")
elts: list[expr]
ctx: expr_context
if sys.version_info >= (3, 9):
dims: list[expr]
class expr_context(AST): ...