mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-08-01 21:50:21 +08:00
Update most test/lint dependencies (#15582)
This commit is contained in:
@@ -6,7 +6,7 @@ from ..pytree import Base
|
||||
|
||||
_N = TypeVar("_N", bound=Base)
|
||||
|
||||
def find_excepts(nodes: Iterable[_N]) -> Generator[tuple[_N, _N], None, None]: ...
|
||||
def find_excepts(nodes: Iterable[_N]) -> Generator[tuple[_N, _N]]: ...
|
||||
|
||||
class FixExcept(fixer_base.BaseFix):
|
||||
BM_compatible: ClassVar[Literal[True]]
|
||||
|
||||
@@ -5,7 +5,7 @@ from typing import ClassVar, Literal
|
||||
from .. import fixer_base
|
||||
from ..pytree import Node
|
||||
|
||||
def traverse_imports(names) -> Generator[str, None, None]: ...
|
||||
def traverse_imports(names) -> Generator[str]: ...
|
||||
|
||||
class FixImport(fixer_base.BaseFix):
|
||||
BM_compatible: ClassVar[Literal[True]]
|
||||
|
||||
@@ -8,7 +8,7 @@ from ..pytree import Node
|
||||
MAPPING: Final[dict[str, str]]
|
||||
|
||||
def alternates(members): ...
|
||||
def build_pattern(mapping=...) -> Generator[str, None, None]: ...
|
||||
def build_pattern(mapping=...) -> Generator[str]: ...
|
||||
|
||||
class FixImports(fixer_base.BaseFix):
|
||||
BM_compatible: ClassVar[Literal[True]]
|
||||
|
||||
@@ -8,7 +8,7 @@ def has_metaclass(parent): ...
|
||||
def fixup_parse_tree(cls_node) -> None: ...
|
||||
def fixup_simple_stmt(parent, i, stmt_node) -> None: ...
|
||||
def remove_trailing_newline(node) -> None: ...
|
||||
def find_metas(cls_node) -> Generator[tuple[Base, int, Base], None, None]: ...
|
||||
def find_metas(cls_node) -> Generator[tuple[Base, int, Base]]: ...
|
||||
def fixup_indent(suite) -> None: ...
|
||||
|
||||
class FixMetaclass(fixer_base.BaseFix):
|
||||
|
||||
@@ -7,7 +7,7 @@ MAPPING: Final[dict[str, dict[str, str]]]
|
||||
LOOKUP: Final[dict[tuple[str, str], str]]
|
||||
|
||||
def alternates(members): ...
|
||||
def build_pattern() -> Generator[str, None, None]: ...
|
||||
def build_pattern() -> Generator[str]: ...
|
||||
|
||||
class FixRenames(fixer_base.BaseFix):
|
||||
BM_compatible: ClassVar[Literal[True]]
|
||||
|
||||
@@ -5,7 +5,7 @@ from .fix_imports import FixImports
|
||||
|
||||
MAPPING: Final[dict[str, list[tuple[Literal["urllib.request", "urllib.parse", "urllib.error"], list[str]]]]]
|
||||
|
||||
def build_pattern() -> Generator[str, None, None]: ...
|
||||
def build_pattern() -> Generator[str]: ...
|
||||
|
||||
class FixUrllib(FixImports):
|
||||
def build_pattern(self): ...
|
||||
|
||||
@@ -69,8 +69,8 @@ class RefactoringTool:
|
||||
def parse_block(self, block: Iterable[str], lineno: int, indent: int) -> Node: ...
|
||||
def wrap_toks(
|
||||
self, block: Iterable[str], lineno: int, indent: int
|
||||
) -> Generator[tuple[int, str, tuple[int, int], tuple[int, int], str], None, None]: ...
|
||||
def gen_lines(self, block: Iterable[str], indent: int) -> Generator[str, None, None]: ...
|
||||
) -> Generator[tuple[int, str, tuple[int, int], tuple[int, int], str]]: ...
|
||||
def gen_lines(self, block: Iterable[str], indent: int) -> Generator[str]: ...
|
||||
|
||||
class MultiprocessingUnsupported(Exception): ...
|
||||
|
||||
|
||||
Reference in New Issue
Block a user