mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-09 13:34:58 +08:00
Switch to PEP-604 syntax in python2 stubs (#5915)
Signed-off-by: oleg.hoefling <oleg.hoefling@gmail.com>
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import types
|
||||
from typing import IO, Any, Iterable, List, Optional, Tuple
|
||||
from typing import IO, Any, Iterable, List, Tuple
|
||||
|
||||
C_BUILTIN: int
|
||||
C_EXTENSION: int
|
||||
@@ -13,7 +13,7 @@ PY_SOURCE: int
|
||||
SEARCH_ERROR: int
|
||||
|
||||
def acquire_lock() -> None: ...
|
||||
def find_module(name: str, path: Iterable[str] = ...) -> Optional[Tuple[IO[Any], str, Tuple[str, str, int]]]: ...
|
||||
def find_module(name: str, path: Iterable[str] = ...) -> Tuple[IO[Any], str, Tuple[str, str, int]] | None: ...
|
||||
def get_magic() -> str: ...
|
||||
def get_suffixes() -> List[Tuple[str, str, int]]: ...
|
||||
def init_builtin(name: str) -> types.ModuleType: ...
|
||||
|
||||
Reference in New Issue
Block a user