mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-09 21:46:42 +08:00
Use PEP 585 syntax wherever possible (#6717)
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import sys
|
||||
from types import CodeType
|
||||
from typing import IO, Any, Container, Iterable, Iterator, Sequence, Tuple
|
||||
from typing import IO, Any, Container, Iterable, Iterator, Sequence
|
||||
|
||||
LOAD_CONST: int # undocumented
|
||||
IMPORT_NAME: int # undocumented
|
||||
@@ -62,7 +62,7 @@ class ModuleFinder:
|
||||
def find_all_submodules(self, m: Module) -> Iterable[str]: ... # undocumented
|
||||
def import_module(self, partname: str, fqname: str, parent: Module) -> Module | None: ... # undocumented
|
||||
def load_module(self, fqname: str, fp: IO[str], pathname: str, file_info: tuple[str, str, str]) -> Module: ... # undocumented
|
||||
def scan_opcodes(self, co: CodeType) -> Iterator[tuple[str, Tuple[Any, ...]]]: ... # undocumented
|
||||
def scan_opcodes(self, co: CodeType) -> Iterator[tuple[str, tuple[Any, ...]]]: ... # undocumented
|
||||
def scan_code(self, co: CodeType, m: Module) -> None: ... # undocumented
|
||||
def load_package(self, fqname: str, pathname: str) -> Module: ... # undocumented
|
||||
def add_module(self, fqname: str) -> Module: ... # undocumented
|
||||
|
||||
Reference in New Issue
Block a user