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

@@ -259,3 +259,6 @@ if sys.version_info >= (3, 8):
def get_source_segment(source: str, node: AST, *, padded: bool = ...) -> str | None: ...
def walk(node: AST) -> Iterator[AST]: ...
if sys.version_info >= (3, 9):
def main() -> None: ...