mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-10 14:01:55 +08:00
Big diff: use lower-case list and dict (#5888)
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import types
|
||||
from _typeshed import StrPath
|
||||
from os import PathLike
|
||||
from typing import IO, Any, List, Protocol, Tuple, TypeVar
|
||||
from typing import IO, Any, Protocol, Tuple, TypeVar
|
||||
|
||||
from _imp import (
|
||||
acquire_lock as acquire_lock,
|
||||
@@ -33,7 +33,7 @@ def get_magic() -> bytes: ...
|
||||
def get_tag() -> str: ...
|
||||
def cache_from_source(path: StrPath, debug_override: bool | None = ...) -> str: ...
|
||||
def source_from_cache(path: StrPath) -> str: ...
|
||||
def get_suffixes() -> List[Tuple[str, str, int]]: ...
|
||||
def get_suffixes() -> list[Tuple[str, str, int]]: ...
|
||||
|
||||
class NullImporter:
|
||||
def __init__(self, path: StrPath) -> None: ...
|
||||
@@ -57,7 +57,7 @@ def load_module(name: str, file: _FileLike | None, filename: str, details: Tuple
|
||||
|
||||
# IO[Any] is a TextIOWrapper if name is a .py file, and a FileIO otherwise.
|
||||
def find_module(
|
||||
name: str, path: None | List[str] | List[PathLike[str]] | List[StrPath] = ...
|
||||
name: str, path: None | list[str] | list[PathLike[str]] | list[StrPath] = ...
|
||||
) -> Tuple[IO[Any], str, Tuple[str, str, int]]: ...
|
||||
def reload(module: types.ModuleType) -> types.ModuleType: ...
|
||||
def init_builtin(name: str) -> types.ModuleType | None: ...
|
||||
|
||||
Reference in New Issue
Block a user