mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-08 13:04:46 +08:00
Use lowercase tuple where possible (#6170)
This commit is contained in:
@@ -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: ...
|
||||
|
||||
|
||||
Reference in New Issue
Block a user