mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-25 21:31:09 +08:00
@@ -1,5 +1,6 @@
|
||||
import sys
|
||||
from builtins import open as _builtin_open
|
||||
from os import PathLike
|
||||
from token import * # noqa: F403
|
||||
from typing import (
|
||||
Any,
|
||||
@@ -61,14 +62,7 @@ def untokenize(iterable: Iterable[_Token]) -> Any: ...
|
||||
def detect_encoding(readline: Callable[[], bytes]) -> Tuple[str, Sequence[bytes]]: ...
|
||||
def tokenize(readline: Callable[[], bytes]) -> Generator[TokenInfo, None, None]: ...
|
||||
def generate_tokens(readline: Callable[[], str]) -> Generator[TokenInfo, None, None]: ... # undocumented
|
||||
|
||||
if sys.version_info >= (3, 6):
|
||||
from os import PathLike
|
||||
def open(filename: Union[str, bytes, int, PathLike[Any]]) -> TextIO: ...
|
||||
|
||||
elif sys.version_info >= (3, 2):
|
||||
def open(filename: Union[str, bytes, int]) -> TextIO: ...
|
||||
|
||||
def open(filename: Union[str, bytes, int, PathLike[Any]]) -> TextIO: ...
|
||||
def group(*choices: str) -> str: ... # undocumented
|
||||
def any(*choices: str) -> str: ... # undocumented
|
||||
def maybe(*choices: str) -> str: ... # undocumented
|
||||
@@ -116,11 +110,7 @@ PseudoExtras: str # undocumented
|
||||
PseudoToken: str # undocumented
|
||||
|
||||
endpats: Dict[str, str] # undocumented
|
||||
if sys.version_info < (3, 6):
|
||||
single_quoted: Dict[str, str] # undocumented
|
||||
triple_quoted: Dict[str, str] # undocumented
|
||||
else:
|
||||
single_quoted: Set[str] # undocumented
|
||||
triple_quoted: Set[str] # undocumented
|
||||
single_quoted: Set[str] # undocumented
|
||||
triple_quoted: Set[str] # undocumented
|
||||
|
||||
tabsize: int # undocumented
|
||||
|
||||
Reference in New Issue
Block a user