Use lowercase tuple where possible (#6170)

This commit is contained in:
Akuli
2021-10-15 00:18:19 +00:00
committed by GitHub
parent 5f386b0575
commit 994b69ef8f
242 changed files with 1212 additions and 1224 deletions

View File

@@ -16,7 +16,7 @@ from opcode import (
opname as opname,
stack_effect as stack_effect,
)
from typing import IO, Any, Callable, Iterator, NamedTuple, Tuple, Union
from typing import IO, Any, Callable, Iterator, NamedTuple, Union
# Strictly this should not have to include Callable, but mypy doesn't use FunctionType
# for functions (python/mypy#3171)
@@ -47,7 +47,7 @@ class Bytecode:
COMPILER_FLAG_NAMES: dict[int, str]
def findlabels(code: _have_code) -> list[int]: ...
def findlinestarts(code: _have_code) -> Iterator[Tuple[int, int]]: ...
def findlinestarts(code: _have_code) -> Iterator[tuple[int, int]]: ...
def pretty_flags(flags: int) -> str: ...
def code_info(x: _have_code_or_string) -> str: ...