Datasets:
Add files using upload-large-folder tool
Browse filesThis view is limited to 50 files because it contains too many changes. See raw diff
- .gitattributes +3 -0
- material/dataset/Datasets/Electron Microscopy Image Masks/TiO2_Masks_Manual_4connected_4Classes/1908314_cm.tif +3 -0
- material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/IPython/core/tests/2x2.jpg +3 -0
- material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/2/BaseHTTPServer.pyi +41 -0
- material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/2/ConfigParser.pyi +97 -0
- material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/2/__builtin__.pyi +1195 -0
- material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/2/ast.pyi +28 -0
- material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/2/collections.pyi +129 -0
- material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/2/commands.pyi +10 -0
- material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/2/compileall.pyi +16 -0
- material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/2/distutils/command/bdist_dumb.pyi +0 -0
- material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/2/distutils/command/bdist_msi.pyi +6 -0
- material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/2/distutils/command/bdist_wininst.pyi +0 -0
- material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/2/distutils/command/build_clib.pyi +0 -0
- material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/2/distutils/command/build_ext.pyi +0 -0
- material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/2/distutils/command/install_lib.pyi +0 -0
- material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/2/email/__init__.pyi +6 -0
- material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/2/email/_parseaddr.pyi +40 -0
- material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/2/email/base64mime.pyi +11 -0
- material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/2/email/charset.pyi +26 -0
- material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/2/email/feedparser.pyi +17 -0
- material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/2/email/header.pyi +10 -0
- material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/2/email/message.pyi +45 -0
- material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/2/email/parser.pyi +10 -0
- material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/2/email/quoprimime.pyi +18 -0
- material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/2/email/utils.pyi +21 -0
- material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/2/httplib.pyi +218 -0
- material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/2/itertools.pyi +164 -0
- material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/2/mutex.pyi +12 -0
- material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/2/os2emxpath.pyi +85 -0
- material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/2/spwd.pyi +15 -0
- material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/2/sre_constants.pyi +93 -0
- material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/2/sre_parse.pyi +62 -0
- material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/2/whichdb.pyi +3 -0
- material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/2and3/__future__.pyi +25 -0
- material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/2and3/_bisect.pyi +8 -0
- material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/2and3/_curses.pyi +490 -0
- material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/2and3/asyncore.pyi +119 -0
- material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/2and3/cmath.pyi +42 -0
- material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/2and3/codeop.pyi +14 -0
- material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/2and3/contextlib.pyi +102 -0
- material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/2and3/crypt.pyi +22 -0
- material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/2and3/difflib.pyi +153 -0
- material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/2and3/dummy_threading.pyi +2 -0
- material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/2and3/fractions.pyi +159 -0
- material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/2and3/imaplib.pyi +172 -0
- material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/2and3/keyword.pyi +10 -0
- material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/2and3/mailcap.pyi +8 -0
- material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/2and3/mimetypes.pyi +36 -0
- material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/2and3/msvcrt.pyi +24 -0
.gitattributes
CHANGED
|
@@ -483,3 +483,6 @@ material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/matplotlib/m
|
|
| 483 |
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/pip/_vendor/html5lib/__pycache__/constants.cpython-310.pyc filter=lfs diff=lfs merge=lfs -text
|
| 484 |
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/pillow.libs/liblzma-64b7ab39.so.5.8.1 filter=lfs diff=lfs merge=lfs -text
|
| 485 |
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/matplotlib/mpl-data/fonts/ttf/DejaVuSerif-Italic.ttf filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
|
|
|
| 483 |
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/pip/_vendor/html5lib/__pycache__/constants.cpython-310.pyc filter=lfs diff=lfs merge=lfs -text
|
| 484 |
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/pillow.libs/liblzma-64b7ab39.so.5.8.1 filter=lfs diff=lfs merge=lfs -text
|
| 485 |
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/matplotlib/mpl-data/fonts/ttf/DejaVuSerif-Italic.ttf filter=lfs diff=lfs merge=lfs -text
|
| 486 |
+
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/pip/_vendor/idna/__pycache__/uts46data.cpython-310.pyc filter=lfs diff=lfs merge=lfs -text
|
| 487 |
+
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/matplotlib/mpl-data/fonts/ttf/DejaVuSans-BoldOblique.ttf filter=lfs diff=lfs merge=lfs -text
|
| 488 |
+
material/dataset/Datasets/Electron[[:space:]]Microscopy[[:space:]]Image[[:space:]]Masks/TiO2_Masks_Manual_4connected_4Classes/1908314_cm.tif filter=lfs diff=lfs merge=lfs -text
|
material/dataset/Datasets/Electron Microscopy Image Masks/TiO2_Masks_Manual_4connected_4Classes/1908314_cm.tif
ADDED
|
|
Git LFS Details
|
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/IPython/core/tests/2x2.jpg
ADDED
|
Git LFS Details
|
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/2/BaseHTTPServer.pyi
ADDED
|
@@ -0,0 +1,41 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import mimetools
|
| 2 |
+
import SocketServer
|
| 3 |
+
from typing import Any, BinaryIO, Callable, Mapping, Optional, Tuple, Union
|
| 4 |
+
|
| 5 |
+
class HTTPServer(SocketServer.TCPServer):
|
| 6 |
+
server_name: str
|
| 7 |
+
server_port: int
|
| 8 |
+
def __init__(self, server_address: Tuple[str, int], RequestHandlerClass: Callable[..., BaseHTTPRequestHandler]) -> None: ...
|
| 9 |
+
|
| 10 |
+
class BaseHTTPRequestHandler(SocketServer.StreamRequestHandler):
|
| 11 |
+
client_address: Tuple[str, int]
|
| 12 |
+
server: SocketServer.BaseServer
|
| 13 |
+
close_connection: bool
|
| 14 |
+
command: str
|
| 15 |
+
path: str
|
| 16 |
+
request_version: str
|
| 17 |
+
headers: mimetools.Message
|
| 18 |
+
rfile: BinaryIO
|
| 19 |
+
wfile: BinaryIO
|
| 20 |
+
server_version: str
|
| 21 |
+
sys_version: str
|
| 22 |
+
error_message_format: str
|
| 23 |
+
error_content_type: str
|
| 24 |
+
protocol_version: str
|
| 25 |
+
MessageClass: type
|
| 26 |
+
responses: Mapping[int, Tuple[str, str]]
|
| 27 |
+
def __init__(self, request: bytes, client_address: Tuple[str, int], server: SocketServer.BaseServer) -> None: ...
|
| 28 |
+
def handle(self) -> None: ...
|
| 29 |
+
def handle_one_request(self) -> None: ...
|
| 30 |
+
def send_error(self, code: int, message: Optional[str] = ...) -> None: ...
|
| 31 |
+
def send_response(self, code: int, message: Optional[str] = ...) -> None: ...
|
| 32 |
+
def send_header(self, keyword: str, value: str) -> None: ...
|
| 33 |
+
def end_headers(self) -> None: ...
|
| 34 |
+
def flush_headers(self) -> None: ...
|
| 35 |
+
def log_request(self, code: Union[int, str] = ..., size: Union[int, str] = ...) -> None: ...
|
| 36 |
+
def log_error(self, format: str, *args: Any) -> None: ...
|
| 37 |
+
def log_message(self, format: str, *args: Any) -> None: ...
|
| 38 |
+
def version_string(self) -> str: ...
|
| 39 |
+
def date_time_string(self, timestamp: Optional[int] = ...) -> str: ...
|
| 40 |
+
def log_date_time_string(self) -> str: ...
|
| 41 |
+
def address_string(self) -> str: ...
|
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/2/ConfigParser.pyi
ADDED
|
@@ -0,0 +1,97 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from _typeshed import SupportsNoArgReadline
|
| 2 |
+
from typing import IO, Any, Dict, List, Optional, Sequence, Tuple, Union
|
| 3 |
+
|
| 4 |
+
DEFAULTSECT: str
|
| 5 |
+
MAX_INTERPOLATION_DEPTH: int
|
| 6 |
+
|
| 7 |
+
class Error(Exception):
|
| 8 |
+
message: Any
|
| 9 |
+
def __init__(self, msg: str = ...) -> None: ...
|
| 10 |
+
def _get_message(self) -> None: ...
|
| 11 |
+
def _set_message(self, value: str) -> None: ...
|
| 12 |
+
def __repr__(self) -> str: ...
|
| 13 |
+
def __str__(self) -> str: ...
|
| 14 |
+
|
| 15 |
+
class NoSectionError(Error):
|
| 16 |
+
section: str
|
| 17 |
+
def __init__(self, section: str) -> None: ...
|
| 18 |
+
|
| 19 |
+
class DuplicateSectionError(Error):
|
| 20 |
+
section: str
|
| 21 |
+
def __init__(self, section: str) -> None: ...
|
| 22 |
+
|
| 23 |
+
class NoOptionError(Error):
|
| 24 |
+
section: str
|
| 25 |
+
option: str
|
| 26 |
+
def __init__(self, option: str, section: str) -> None: ...
|
| 27 |
+
|
| 28 |
+
class InterpolationError(Error):
|
| 29 |
+
section: str
|
| 30 |
+
option: str
|
| 31 |
+
msg: str
|
| 32 |
+
def __init__(self, option: str, section: str, msg: str) -> None: ...
|
| 33 |
+
|
| 34 |
+
class InterpolationMissingOptionError(InterpolationError):
|
| 35 |
+
reference: str
|
| 36 |
+
def __init__(self, option: str, section: str, rawval: str, reference: str) -> None: ...
|
| 37 |
+
|
| 38 |
+
class InterpolationSyntaxError(InterpolationError): ...
|
| 39 |
+
|
| 40 |
+
class InterpolationDepthError(InterpolationError):
|
| 41 |
+
def __init__(self, option: str, section: str, rawval: str) -> None: ...
|
| 42 |
+
|
| 43 |
+
class ParsingError(Error):
|
| 44 |
+
filename: str
|
| 45 |
+
errors: List[Tuple[Any, Any]]
|
| 46 |
+
def __init__(self, filename: str) -> None: ...
|
| 47 |
+
def append(self, lineno: Any, line: Any) -> None: ...
|
| 48 |
+
|
| 49 |
+
class MissingSectionHeaderError(ParsingError):
|
| 50 |
+
lineno: Any
|
| 51 |
+
line: Any
|
| 52 |
+
def __init__(self, filename: str, lineno: Any, line: Any) -> None: ...
|
| 53 |
+
|
| 54 |
+
class RawConfigParser:
|
| 55 |
+
_dict: Any
|
| 56 |
+
_sections: Dict[Any, Any]
|
| 57 |
+
_defaults: Dict[Any, Any]
|
| 58 |
+
_optcre: Any
|
| 59 |
+
SECTCRE: Any
|
| 60 |
+
OPTCRE: Any
|
| 61 |
+
OPTCRE_NV: Any
|
| 62 |
+
def __init__(self, defaults: Dict[Any, Any] = ..., dict_type: Any = ..., allow_no_value: bool = ...) -> None: ...
|
| 63 |
+
def defaults(self) -> Dict[Any, Any]: ...
|
| 64 |
+
def sections(self) -> List[str]: ...
|
| 65 |
+
def add_section(self, section: str) -> None: ...
|
| 66 |
+
def has_section(self, section: str) -> bool: ...
|
| 67 |
+
def options(self, section: str) -> List[str]: ...
|
| 68 |
+
def read(self, filenames: Union[str, Sequence[str]]) -> List[str]: ...
|
| 69 |
+
def readfp(self, fp: SupportsNoArgReadline[str], filename: str = ...) -> None: ...
|
| 70 |
+
def get(self, section: str, option: str) -> str: ...
|
| 71 |
+
def items(self, section: str) -> List[Tuple[Any, Any]]: ...
|
| 72 |
+
def _get(self, section: str, conv: type, option: str) -> Any: ...
|
| 73 |
+
def getint(self, section: str, option: str) -> int: ...
|
| 74 |
+
def getfloat(self, section: str, option: str) -> float: ...
|
| 75 |
+
_boolean_states: Dict[str, bool]
|
| 76 |
+
def getboolean(self, section: str, option: str) -> bool: ...
|
| 77 |
+
def optionxform(self, optionstr: str) -> str: ...
|
| 78 |
+
def has_option(self, section: str, option: str) -> bool: ...
|
| 79 |
+
def set(self, section: str, option: str, value: Any = ...) -> None: ...
|
| 80 |
+
def write(self, fp: IO[str]) -> None: ...
|
| 81 |
+
def remove_option(self, section: str, option: Any) -> bool: ...
|
| 82 |
+
def remove_section(self, section: str) -> bool: ...
|
| 83 |
+
def _read(self, fp: IO[str], fpname: str) -> None: ...
|
| 84 |
+
|
| 85 |
+
class ConfigParser(RawConfigParser):
|
| 86 |
+
_KEYCRE: Any
|
| 87 |
+
def get(self, section: str, option: str, raw: bool = ..., vars: Optional[Dict[Any, Any]] = ...) -> Any: ...
|
| 88 |
+
def items(self, section: str, raw: bool = ..., vars: Optional[Dict[Any, Any]] = ...) -> List[Tuple[str, Any]]: ...
|
| 89 |
+
def _interpolate(self, section: str, option: str, rawval: Any, vars: Any) -> str: ...
|
| 90 |
+
def _interpolation_replace(self, match: Any) -> str: ...
|
| 91 |
+
|
| 92 |
+
class SafeConfigParser(ConfigParser):
|
| 93 |
+
_interpvar_re: Any
|
| 94 |
+
def _interpolate(self, section: str, option: str, rawval: Any, vars: Any) -> str: ...
|
| 95 |
+
def _interpolate_some(
|
| 96 |
+
self, option: str, accum: List[Any], rest: str, section: str, map: Dict[Any, Any], depth: int
|
| 97 |
+
) -> None: ...
|
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/2/__builtin__.pyi
ADDED
|
@@ -0,0 +1,1195 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# True and False are deliberately omitted because they are keywords in
|
| 2 |
+
# Python 3, and stub files conform to Python 3 syntax.
|
| 3 |
+
|
| 4 |
+
from _typeshed import ReadableBuffer, SupportsKeysAndGetItem, SupportsWrite
|
| 5 |
+
from abc import ABCMeta
|
| 6 |
+
from ast import mod
|
| 7 |
+
from types import CodeType
|
| 8 |
+
from typing import (
|
| 9 |
+
AbstractSet,
|
| 10 |
+
Any,
|
| 11 |
+
AnyStr,
|
| 12 |
+
BinaryIO,
|
| 13 |
+
ByteString,
|
| 14 |
+
Callable,
|
| 15 |
+
Container,
|
| 16 |
+
Dict,
|
| 17 |
+
FrozenSet,
|
| 18 |
+
Generic,
|
| 19 |
+
ItemsView,
|
| 20 |
+
Iterable,
|
| 21 |
+
Iterator,
|
| 22 |
+
KeysView,
|
| 23 |
+
List,
|
| 24 |
+
Mapping,
|
| 25 |
+
MutableMapping,
|
| 26 |
+
MutableSequence,
|
| 27 |
+
MutableSet,
|
| 28 |
+
NoReturn,
|
| 29 |
+
Optional,
|
| 30 |
+
Protocol,
|
| 31 |
+
Reversible,
|
| 32 |
+
Sequence,
|
| 33 |
+
Set,
|
| 34 |
+
Sized,
|
| 35 |
+
SupportsAbs,
|
| 36 |
+
SupportsComplex,
|
| 37 |
+
SupportsFloat,
|
| 38 |
+
SupportsInt,
|
| 39 |
+
Text,
|
| 40 |
+
Tuple,
|
| 41 |
+
Type,
|
| 42 |
+
TypeVar,
|
| 43 |
+
Union,
|
| 44 |
+
ValuesView,
|
| 45 |
+
overload,
|
| 46 |
+
runtime_checkable,
|
| 47 |
+
)
|
| 48 |
+
from typing_extensions import Literal
|
| 49 |
+
|
| 50 |
+
class _SupportsIndex(Protocol):
|
| 51 |
+
def __index__(self) -> int: ...
|
| 52 |
+
|
| 53 |
+
class _SupportsTrunc(Protocol):
|
| 54 |
+
def __trunc__(self) -> int: ...
|
| 55 |
+
|
| 56 |
+
_T = TypeVar("_T")
|
| 57 |
+
_T_co = TypeVar("_T_co", covariant=True)
|
| 58 |
+
_KT = TypeVar("_KT")
|
| 59 |
+
_VT = TypeVar("_VT")
|
| 60 |
+
_S = TypeVar("_S")
|
| 61 |
+
_T1 = TypeVar("_T1")
|
| 62 |
+
_T2 = TypeVar("_T2")
|
| 63 |
+
_T3 = TypeVar("_T3")
|
| 64 |
+
_T4 = TypeVar("_T4")
|
| 65 |
+
_T5 = TypeVar("_T5")
|
| 66 |
+
_TT = TypeVar("_TT", bound="type")
|
| 67 |
+
_TBE = TypeVar("_TBE", bound="BaseException")
|
| 68 |
+
|
| 69 |
+
class object:
|
| 70 |
+
__doc__: Optional[str]
|
| 71 |
+
__dict__: Dict[str, Any]
|
| 72 |
+
__slots__: Union[Text, Iterable[Text]]
|
| 73 |
+
__module__: str
|
| 74 |
+
@property
|
| 75 |
+
def __class__(self: _T) -> Type[_T]: ...
|
| 76 |
+
@__class__.setter
|
| 77 |
+
def __class__(self, __type: Type[object]) -> None: ... # noqa: F811
|
| 78 |
+
def __init__(self) -> None: ...
|
| 79 |
+
def __new__(cls) -> Any: ...
|
| 80 |
+
def __setattr__(self, name: str, value: Any) -> None: ...
|
| 81 |
+
def __eq__(self, o: object) -> bool: ...
|
| 82 |
+
def __ne__(self, o: object) -> bool: ...
|
| 83 |
+
def __str__(self) -> str: ...
|
| 84 |
+
def __repr__(self) -> str: ...
|
| 85 |
+
def __hash__(self) -> int: ...
|
| 86 |
+
def __format__(self, format_spec: str) -> str: ...
|
| 87 |
+
def __getattribute__(self, name: str) -> Any: ...
|
| 88 |
+
def __delattr__(self, name: str) -> None: ...
|
| 89 |
+
def __sizeof__(self) -> int: ...
|
| 90 |
+
def __reduce__(self) -> Union[str, Tuple[Any, ...]]: ...
|
| 91 |
+
def __reduce_ex__(self, protocol: int) -> Union[str, Tuple[Any, ...]]: ...
|
| 92 |
+
|
| 93 |
+
class staticmethod(object): # Special, only valid as a decorator.
|
| 94 |
+
__func__: Callable[..., Any]
|
| 95 |
+
def __init__(self, f: Callable[..., Any]) -> None: ...
|
| 96 |
+
def __new__(cls: Type[_T], *args: Any, **kwargs: Any) -> _T: ...
|
| 97 |
+
def __get__(self, obj: _T, type: Optional[Type[_T]] = ...) -> Callable[..., Any]: ...
|
| 98 |
+
|
| 99 |
+
class classmethod(object): # Special, only valid as a decorator.
|
| 100 |
+
__func__: Callable[..., Any]
|
| 101 |
+
def __init__(self, f: Callable[..., Any]) -> None: ...
|
| 102 |
+
def __new__(cls: Type[_T], *args: Any, **kwargs: Any) -> _T: ...
|
| 103 |
+
def __get__(self, obj: _T, type: Optional[Type[_T]] = ...) -> Callable[..., Any]: ...
|
| 104 |
+
|
| 105 |
+
class type(object):
|
| 106 |
+
__base__: type
|
| 107 |
+
__bases__: Tuple[type, ...]
|
| 108 |
+
__basicsize__: int
|
| 109 |
+
__dict__: Dict[str, Any]
|
| 110 |
+
__dictoffset__: int
|
| 111 |
+
__flags__: int
|
| 112 |
+
__itemsize__: int
|
| 113 |
+
__module__: str
|
| 114 |
+
__mro__: Tuple[type, ...]
|
| 115 |
+
__name__: str
|
| 116 |
+
__weakrefoffset__: int
|
| 117 |
+
@overload
|
| 118 |
+
def __init__(self, o: object) -> None: ...
|
| 119 |
+
@overload
|
| 120 |
+
def __init__(self, name: str, bases: Tuple[type, ...], dict: Dict[str, Any]) -> None: ...
|
| 121 |
+
@overload
|
| 122 |
+
def __new__(cls, o: object) -> type: ...
|
| 123 |
+
@overload
|
| 124 |
+
def __new__(cls, name: str, bases: Tuple[type, ...], namespace: Dict[str, Any]) -> type: ...
|
| 125 |
+
def __call__(self, *args: Any, **kwds: Any) -> Any: ...
|
| 126 |
+
def __subclasses__(self: _TT) -> List[_TT]: ...
|
| 127 |
+
# Note: the documentation doesnt specify what the return type is, the standard
|
| 128 |
+
# implementation seems to be returning a list.
|
| 129 |
+
def mro(self) -> List[type]: ...
|
| 130 |
+
def __instancecheck__(self, instance: Any) -> bool: ...
|
| 131 |
+
def __subclasscheck__(self, subclass: type) -> bool: ...
|
| 132 |
+
|
| 133 |
+
class super(object):
|
| 134 |
+
@overload
|
| 135 |
+
def __init__(self, t: Any, obj: Any) -> None: ...
|
| 136 |
+
@overload
|
| 137 |
+
def __init__(self, t: Any) -> None: ...
|
| 138 |
+
|
| 139 |
+
class int:
|
| 140 |
+
@overload
|
| 141 |
+
def __new__(cls: Type[_T], x: Union[Text, bytes, SupportsInt, _SupportsIndex, _SupportsTrunc] = ...) -> _T: ...
|
| 142 |
+
@overload
|
| 143 |
+
def __new__(cls: Type[_T], x: Union[Text, bytes, bytearray], base: int) -> _T: ...
|
| 144 |
+
@property
|
| 145 |
+
def real(self) -> int: ...
|
| 146 |
+
@property
|
| 147 |
+
def imag(self) -> int: ...
|
| 148 |
+
@property
|
| 149 |
+
def numerator(self) -> int: ...
|
| 150 |
+
@property
|
| 151 |
+
def denominator(self) -> int: ...
|
| 152 |
+
def conjugate(self) -> int: ...
|
| 153 |
+
def bit_length(self) -> int: ...
|
| 154 |
+
def __add__(self, x: int) -> int: ...
|
| 155 |
+
def __sub__(self, x: int) -> int: ...
|
| 156 |
+
def __mul__(self, x: int) -> int: ...
|
| 157 |
+
def __floordiv__(self, x: int) -> int: ...
|
| 158 |
+
def __div__(self, x: int) -> int: ...
|
| 159 |
+
def __truediv__(self, x: int) -> float: ...
|
| 160 |
+
def __mod__(self, x: int) -> int: ...
|
| 161 |
+
def __divmod__(self, x: int) -> Tuple[int, int]: ...
|
| 162 |
+
def __radd__(self, x: int) -> int: ...
|
| 163 |
+
def __rsub__(self, x: int) -> int: ...
|
| 164 |
+
def __rmul__(self, x: int) -> int: ...
|
| 165 |
+
def __rfloordiv__(self, x: int) -> int: ...
|
| 166 |
+
def __rdiv__(self, x: int) -> int: ...
|
| 167 |
+
def __rtruediv__(self, x: int) -> float: ...
|
| 168 |
+
def __rmod__(self, x: int) -> int: ...
|
| 169 |
+
def __rdivmod__(self, x: int) -> Tuple[int, int]: ...
|
| 170 |
+
@overload
|
| 171 |
+
def __pow__(self, __x: Literal[2], __modulo: Optional[int] = ...) -> int: ...
|
| 172 |
+
@overload
|
| 173 |
+
def __pow__(self, __x: int, __modulo: Optional[int] = ...) -> Any: ... # Return type can be int or float, depending on x.
|
| 174 |
+
def __rpow__(self, x: int, mod: Optional[int] = ...) -> Any: ...
|
| 175 |
+
def __and__(self, n: int) -> int: ...
|
| 176 |
+
def __or__(self, n: int) -> int: ...
|
| 177 |
+
def __xor__(self, n: int) -> int: ...
|
| 178 |
+
def __lshift__(self, n: int) -> int: ...
|
| 179 |
+
def __rshift__(self, n: int) -> int: ...
|
| 180 |
+
def __rand__(self, n: int) -> int: ...
|
| 181 |
+
def __ror__(self, n: int) -> int: ...
|
| 182 |
+
def __rxor__(self, n: int) -> int: ...
|
| 183 |
+
def __rlshift__(self, n: int) -> int: ...
|
| 184 |
+
def __rrshift__(self, n: int) -> int: ...
|
| 185 |
+
def __neg__(self) -> int: ...
|
| 186 |
+
def __pos__(self) -> int: ...
|
| 187 |
+
def __invert__(self) -> int: ...
|
| 188 |
+
def __trunc__(self) -> int: ...
|
| 189 |
+
def __getnewargs__(self) -> Tuple[int]: ...
|
| 190 |
+
def __eq__(self, x: object) -> bool: ...
|
| 191 |
+
def __ne__(self, x: object) -> bool: ...
|
| 192 |
+
def __lt__(self, x: int) -> bool: ...
|
| 193 |
+
def __le__(self, x: int) -> bool: ...
|
| 194 |
+
def __gt__(self, x: int) -> bool: ...
|
| 195 |
+
def __ge__(self, x: int) -> bool: ...
|
| 196 |
+
def __str__(self) -> str: ...
|
| 197 |
+
def __float__(self) -> float: ...
|
| 198 |
+
def __int__(self) -> int: ...
|
| 199 |
+
def __abs__(self) -> int: ...
|
| 200 |
+
def __hash__(self) -> int: ...
|
| 201 |
+
def __nonzero__(self) -> bool: ...
|
| 202 |
+
def __index__(self) -> int: ...
|
| 203 |
+
|
| 204 |
+
class float:
|
| 205 |
+
def __new__(cls: Type[_T], x: Union[SupportsFloat, _SupportsIndex, Text, bytes, bytearray] = ...) -> _T: ...
|
| 206 |
+
def as_integer_ratio(self) -> Tuple[int, int]: ...
|
| 207 |
+
def hex(self) -> str: ...
|
| 208 |
+
def is_integer(self) -> bool: ...
|
| 209 |
+
@classmethod
|
| 210 |
+
def fromhex(cls, __s: str) -> float: ...
|
| 211 |
+
@property
|
| 212 |
+
def real(self) -> float: ...
|
| 213 |
+
@property
|
| 214 |
+
def imag(self) -> float: ...
|
| 215 |
+
def conjugate(self) -> float: ...
|
| 216 |
+
def __add__(self, x: float) -> float: ...
|
| 217 |
+
def __sub__(self, x: float) -> float: ...
|
| 218 |
+
def __mul__(self, x: float) -> float: ...
|
| 219 |
+
def __floordiv__(self, x: float) -> float: ...
|
| 220 |
+
def __div__(self, x: float) -> float: ...
|
| 221 |
+
def __truediv__(self, x: float) -> float: ...
|
| 222 |
+
def __mod__(self, x: float) -> float: ...
|
| 223 |
+
def __divmod__(self, x: float) -> Tuple[float, float]: ...
|
| 224 |
+
def __pow__(
|
| 225 |
+
self, x: float, mod: None = ...
|
| 226 |
+
) -> float: ... # In Python 3, returns complex if self is negative and x is not whole
|
| 227 |
+
def __radd__(self, x: float) -> float: ...
|
| 228 |
+
def __rsub__(self, x: float) -> float: ...
|
| 229 |
+
def __rmul__(self, x: float) -> float: ...
|
| 230 |
+
def __rfloordiv__(self, x: float) -> float: ...
|
| 231 |
+
def __rdiv__(self, x: float) -> float: ...
|
| 232 |
+
def __rtruediv__(self, x: float) -> float: ...
|
| 233 |
+
def __rmod__(self, x: float) -> float: ...
|
| 234 |
+
def __rdivmod__(self, x: float) -> Tuple[float, float]: ...
|
| 235 |
+
def __rpow__(self, x: float, mod: None = ...) -> float: ...
|
| 236 |
+
def __getnewargs__(self) -> Tuple[float]: ...
|
| 237 |
+
def __trunc__(self) -> int: ...
|
| 238 |
+
def __eq__(self, x: object) -> bool: ...
|
| 239 |
+
def __ne__(self, x: object) -> bool: ...
|
| 240 |
+
def __lt__(self, x: float) -> bool: ...
|
| 241 |
+
def __le__(self, x: float) -> bool: ...
|
| 242 |
+
def __gt__(self, x: float) -> bool: ...
|
| 243 |
+
def __ge__(self, x: float) -> bool: ...
|
| 244 |
+
def __neg__(self) -> float: ...
|
| 245 |
+
def __pos__(self) -> float: ...
|
| 246 |
+
def __str__(self) -> str: ...
|
| 247 |
+
def __int__(self) -> int: ...
|
| 248 |
+
def __float__(self) -> float: ...
|
| 249 |
+
def __abs__(self) -> float: ...
|
| 250 |
+
def __hash__(self) -> int: ...
|
| 251 |
+
def __nonzero__(self) -> bool: ...
|
| 252 |
+
|
| 253 |
+
class complex:
|
| 254 |
+
@overload
|
| 255 |
+
def __new__(cls: Type[_T], real: float = ..., imag: float = ...) -> _T: ...
|
| 256 |
+
@overload
|
| 257 |
+
def __new__(cls: Type[_T], real: Union[str, SupportsComplex, _SupportsIndex]) -> _T: ...
|
| 258 |
+
@property
|
| 259 |
+
def real(self) -> float: ...
|
| 260 |
+
@property
|
| 261 |
+
def imag(self) -> float: ...
|
| 262 |
+
def conjugate(self) -> complex: ...
|
| 263 |
+
def __add__(self, x: complex) -> complex: ...
|
| 264 |
+
def __sub__(self, x: complex) -> complex: ...
|
| 265 |
+
def __mul__(self, x: complex) -> complex: ...
|
| 266 |
+
def __pow__(self, x: complex, mod: None = ...) -> complex: ...
|
| 267 |
+
def __div__(self, x: complex) -> complex: ...
|
| 268 |
+
def __truediv__(self, x: complex) -> complex: ...
|
| 269 |
+
def __radd__(self, x: complex) -> complex: ...
|
| 270 |
+
def __rsub__(self, x: complex) -> complex: ...
|
| 271 |
+
def __rmul__(self, x: complex) -> complex: ...
|
| 272 |
+
def __rpow__(self, x: complex, mod: None = ...) -> complex: ...
|
| 273 |
+
def __rdiv__(self, x: complex) -> complex: ...
|
| 274 |
+
def __rtruediv__(self, x: complex) -> complex: ...
|
| 275 |
+
def __eq__(self, x: object) -> bool: ...
|
| 276 |
+
def __ne__(self, x: object) -> bool: ...
|
| 277 |
+
def __neg__(self) -> complex: ...
|
| 278 |
+
def __pos__(self) -> complex: ...
|
| 279 |
+
def __str__(self) -> str: ...
|
| 280 |
+
def __complex__(self) -> complex: ...
|
| 281 |
+
def __abs__(self) -> float: ...
|
| 282 |
+
def __hash__(self) -> int: ...
|
| 283 |
+
def __nonzero__(self) -> bool: ...
|
| 284 |
+
|
| 285 |
+
class basestring(metaclass=ABCMeta): ...
|
| 286 |
+
|
| 287 |
+
class unicode(basestring, Sequence[unicode]):
|
| 288 |
+
@overload
|
| 289 |
+
def __init__(self) -> None: ...
|
| 290 |
+
@overload
|
| 291 |
+
def __init__(self, o: object) -> None: ...
|
| 292 |
+
@overload
|
| 293 |
+
def __init__(self, o: str, encoding: unicode = ..., errors: unicode = ...) -> None: ...
|
| 294 |
+
def capitalize(self) -> unicode: ...
|
| 295 |
+
def center(self, width: int, fillchar: unicode = ...) -> unicode: ...
|
| 296 |
+
def count(self, x: unicode) -> int: ...
|
| 297 |
+
def decode(self, encoding: unicode = ..., errors: unicode = ...) -> unicode: ...
|
| 298 |
+
def encode(self, encoding: unicode = ..., errors: unicode = ...) -> str: ...
|
| 299 |
+
def endswith(self, suffix: Union[unicode, Tuple[unicode, ...]], start: int = ..., end: int = ...) -> bool: ...
|
| 300 |
+
def expandtabs(self, tabsize: int = ...) -> unicode: ...
|
| 301 |
+
def find(self, sub: unicode, start: int = ..., end: int = ...) -> int: ...
|
| 302 |
+
def format(self, *args: object, **kwargs: object) -> unicode: ...
|
| 303 |
+
def index(self, sub: unicode, start: int = ..., end: int = ...) -> int: ...
|
| 304 |
+
def isalnum(self) -> bool: ...
|
| 305 |
+
def isalpha(self) -> bool: ...
|
| 306 |
+
def isdecimal(self) -> bool: ...
|
| 307 |
+
def isdigit(self) -> bool: ...
|
| 308 |
+
def isidentifier(self) -> bool: ...
|
| 309 |
+
def islower(self) -> bool: ...
|
| 310 |
+
def isnumeric(self) -> bool: ...
|
| 311 |
+
def isprintable(self) -> bool: ...
|
| 312 |
+
def isspace(self) -> bool: ...
|
| 313 |
+
def istitle(self) -> bool: ...
|
| 314 |
+
def isupper(self) -> bool: ...
|
| 315 |
+
def join(self, iterable: Iterable[unicode]) -> unicode: ...
|
| 316 |
+
def ljust(self, width: int, fillchar: unicode = ...) -> unicode: ...
|
| 317 |
+
def lower(self) -> unicode: ...
|
| 318 |
+
def lstrip(self, chars: unicode = ...) -> unicode: ...
|
| 319 |
+
def partition(self, sep: unicode) -> Tuple[unicode, unicode, unicode]: ...
|
| 320 |
+
def replace(self, old: unicode, new: unicode, count: int = ...) -> unicode: ...
|
| 321 |
+
def rfind(self, sub: unicode, start: int = ..., end: int = ...) -> int: ...
|
| 322 |
+
def rindex(self, sub: unicode, start: int = ..., end: int = ...) -> int: ...
|
| 323 |
+
def rjust(self, width: int, fillchar: unicode = ...) -> unicode: ...
|
| 324 |
+
def rpartition(self, sep: unicode) -> Tuple[unicode, unicode, unicode]: ...
|
| 325 |
+
def rsplit(self, sep: Optional[unicode] = ..., maxsplit: int = ...) -> List[unicode]: ...
|
| 326 |
+
def rstrip(self, chars: unicode = ...) -> unicode: ...
|
| 327 |
+
def split(self, sep: Optional[unicode] = ..., maxsplit: int = ...) -> List[unicode]: ...
|
| 328 |
+
def splitlines(self, keepends: bool = ...) -> List[unicode]: ...
|
| 329 |
+
def startswith(self, prefix: Union[unicode, Tuple[unicode, ...]], start: int = ..., end: int = ...) -> bool: ...
|
| 330 |
+
def strip(self, chars: unicode = ...) -> unicode: ...
|
| 331 |
+
def swapcase(self) -> unicode: ...
|
| 332 |
+
def title(self) -> unicode: ...
|
| 333 |
+
def translate(self, table: Union[Dict[int, Any], unicode]) -> unicode: ...
|
| 334 |
+
def upper(self) -> unicode: ...
|
| 335 |
+
def zfill(self, width: int) -> unicode: ...
|
| 336 |
+
@overload
|
| 337 |
+
def __getitem__(self, i: int) -> unicode: ...
|
| 338 |
+
@overload
|
| 339 |
+
def __getitem__(self, s: slice) -> unicode: ...
|
| 340 |
+
def __getslice__(self, start: int, stop: int) -> unicode: ...
|
| 341 |
+
def __add__(self, s: unicode) -> unicode: ...
|
| 342 |
+
def __mul__(self, n: int) -> unicode: ...
|
| 343 |
+
def __rmul__(self, n: int) -> unicode: ...
|
| 344 |
+
def __mod__(self, x: Any) -> unicode: ...
|
| 345 |
+
def __eq__(self, x: object) -> bool: ...
|
| 346 |
+
def __ne__(self, x: object) -> bool: ...
|
| 347 |
+
def __lt__(self, x: unicode) -> bool: ...
|
| 348 |
+
def __le__(self, x: unicode) -> bool: ...
|
| 349 |
+
def __gt__(self, x: unicode) -> bool: ...
|
| 350 |
+
def __ge__(self, x: unicode) -> bool: ...
|
| 351 |
+
def __len__(self) -> int: ...
|
| 352 |
+
# The argument type is incompatible with Sequence
|
| 353 |
+
def __contains__(self, s: Union[unicode, bytes]) -> bool: ... # type: ignore
|
| 354 |
+
def __iter__(self) -> Iterator[unicode]: ...
|
| 355 |
+
def __str__(self) -> str: ...
|
| 356 |
+
def __repr__(self) -> str: ...
|
| 357 |
+
def __int__(self) -> int: ...
|
| 358 |
+
def __float__(self) -> float: ...
|
| 359 |
+
def __hash__(self) -> int: ...
|
| 360 |
+
def __getnewargs__(self) -> Tuple[unicode]: ...
|
| 361 |
+
|
| 362 |
+
class _FormatMapMapping(Protocol):
|
| 363 |
+
def __getitem__(self, __key: str) -> Any: ...
|
| 364 |
+
|
| 365 |
+
class str(Sequence[str], basestring):
|
| 366 |
+
def __init__(self, o: object = ...) -> None: ...
|
| 367 |
+
def capitalize(self) -> str: ...
|
| 368 |
+
def center(self, __width: int, __fillchar: str = ...) -> str: ...
|
| 369 |
+
def count(self, x: Text, __start: Optional[int] = ..., __end: Optional[int] = ...) -> int: ...
|
| 370 |
+
def decode(self, encoding: Text = ..., errors: Text = ...) -> unicode: ...
|
| 371 |
+
def encode(self, encoding: Text = ..., errors: Text = ...) -> bytes: ...
|
| 372 |
+
def endswith(self, suffix: Union[Text, Tuple[Text, ...]]) -> bool: ...
|
| 373 |
+
def expandtabs(self, tabsize: int = ...) -> str: ...
|
| 374 |
+
def find(self, sub: Text, __start: Optional[int] = ..., __end: Optional[int] = ...) -> int: ...
|
| 375 |
+
def format(self, *args: object, **kwargs: object) -> str: ...
|
| 376 |
+
def format_map(self, map: _FormatMapMapping) -> str: ...
|
| 377 |
+
def index(self, sub: Text, __start: Optional[int] = ..., __end: Optional[int] = ...) -> int: ...
|
| 378 |
+
def isalnum(self) -> bool: ...
|
| 379 |
+
def isalpha(self) -> bool: ...
|
| 380 |
+
def isdigit(self) -> bool: ...
|
| 381 |
+
def islower(self) -> bool: ...
|
| 382 |
+
def isspace(self) -> bool: ...
|
| 383 |
+
def istitle(self) -> bool: ...
|
| 384 |
+
def isupper(self) -> bool: ...
|
| 385 |
+
def join(self, __iterable: Iterable[AnyStr]) -> AnyStr: ...
|
| 386 |
+
def ljust(self, __width: int, __fillchar: str = ...) -> str: ...
|
| 387 |
+
def lower(self) -> str: ...
|
| 388 |
+
@overload
|
| 389 |
+
def lstrip(self, __chars: str = ...) -> str: ...
|
| 390 |
+
@overload
|
| 391 |
+
def lstrip(self, __chars: unicode) -> unicode: ...
|
| 392 |
+
@overload
|
| 393 |
+
def partition(self, __sep: bytearray) -> Tuple[str, bytearray, str]: ...
|
| 394 |
+
@overload
|
| 395 |
+
def partition(self, __sep: str) -> Tuple[str, str, str]: ...
|
| 396 |
+
@overload
|
| 397 |
+
def partition(self, __sep: unicode) -> Tuple[unicode, unicode, unicode]: ...
|
| 398 |
+
def replace(self, __old: AnyStr, __new: AnyStr, __count: int = ...) -> AnyStr: ...
|
| 399 |
+
def rfind(self, sub: Text, __start: Optional[int] = ..., __end: Optional[int] = ...) -> int: ...
|
| 400 |
+
def rindex(self, sub: Text, __start: Optional[int] = ..., __end: Optional[int] = ...) -> int: ...
|
| 401 |
+
def rjust(self, __width: int, __fillchar: str = ...) -> str: ...
|
| 402 |
+
@overload
|
| 403 |
+
def rpartition(self, __sep: bytearray) -> Tuple[str, bytearray, str]: ...
|
| 404 |
+
@overload
|
| 405 |
+
def rpartition(self, __sep: str) -> Tuple[str, str, str]: ...
|
| 406 |
+
@overload
|
| 407 |
+
def rpartition(self, __sep: unicode) -> Tuple[unicode, unicode, unicode]: ...
|
| 408 |
+
@overload
|
| 409 |
+
def rsplit(self, sep: Optional[str] = ..., maxsplit: int = ...) -> List[str]: ...
|
| 410 |
+
@overload
|
| 411 |
+
def rsplit(self, sep: unicode, maxsplit: int = ...) -> List[unicode]: ...
|
| 412 |
+
@overload
|
| 413 |
+
def rstrip(self, __chars: str = ...) -> str: ...
|
| 414 |
+
@overload
|
| 415 |
+
def rstrip(self, __chars: unicode) -> unicode: ...
|
| 416 |
+
@overload
|
| 417 |
+
def split(self, sep: Optional[str] = ..., maxsplit: int = ...) -> List[str]: ...
|
| 418 |
+
@overload
|
| 419 |
+
def split(self, sep: unicode, maxsplit: int = ...) -> List[unicode]: ...
|
| 420 |
+
def splitlines(self, keepends: bool = ...) -> List[str]: ...
|
| 421 |
+
def startswith(self, prefix: Union[Text, Tuple[Text, ...]]) -> bool: ...
|
| 422 |
+
@overload
|
| 423 |
+
def strip(self, __chars: str = ...) -> str: ...
|
| 424 |
+
@overload
|
| 425 |
+
def strip(self, chars: unicode) -> unicode: ...
|
| 426 |
+
def swapcase(self) -> str: ...
|
| 427 |
+
def title(self) -> str: ...
|
| 428 |
+
def translate(self, __table: Optional[AnyStr], deletechars: AnyStr = ...) -> AnyStr: ...
|
| 429 |
+
def upper(self) -> str: ...
|
| 430 |
+
def zfill(self, __width: int) -> str: ...
|
| 431 |
+
def __add__(self, s: AnyStr) -> AnyStr: ...
|
| 432 |
+
# Incompatible with Sequence.__contains__
|
| 433 |
+
def __contains__(self, o: Union[str, Text]) -> bool: ... # type: ignore
|
| 434 |
+
def __eq__(self, x: object) -> bool: ...
|
| 435 |
+
def __ge__(self, x: Text) -> bool: ...
|
| 436 |
+
def __getitem__(self, i: Union[int, slice]) -> str: ...
|
| 437 |
+
def __gt__(self, x: Text) -> bool: ...
|
| 438 |
+
def __hash__(self) -> int: ...
|
| 439 |
+
def __iter__(self) -> Iterator[str]: ...
|
| 440 |
+
def __le__(self, x: Text) -> bool: ...
|
| 441 |
+
def __len__(self) -> int: ...
|
| 442 |
+
def __lt__(self, x: Text) -> bool: ...
|
| 443 |
+
def __mod__(self, x: Any) -> str: ...
|
| 444 |
+
def __mul__(self, n: int) -> str: ...
|
| 445 |
+
def __ne__(self, x: object) -> bool: ...
|
| 446 |
+
def __repr__(self) -> str: ...
|
| 447 |
+
def __rmul__(self, n: int) -> str: ...
|
| 448 |
+
def __str__(self) -> str: ...
|
| 449 |
+
def __getnewargs__(self) -> Tuple[str]: ...
|
| 450 |
+
def __getslice__(self, start: int, stop: int) -> str: ...
|
| 451 |
+
def __float__(self) -> float: ...
|
| 452 |
+
def __int__(self) -> int: ...
|
| 453 |
+
|
| 454 |
+
bytes = str
|
| 455 |
+
|
| 456 |
+
class bytearray(MutableSequence[int], ByteString):
|
| 457 |
+
@overload
|
| 458 |
+
def __init__(self) -> None: ...
|
| 459 |
+
@overload
|
| 460 |
+
def __init__(self, ints: Iterable[int]) -> None: ...
|
| 461 |
+
@overload
|
| 462 |
+
def __init__(self, string: str) -> None: ...
|
| 463 |
+
@overload
|
| 464 |
+
def __init__(self, string: Text, encoding: Text, errors: Text = ...) -> None: ...
|
| 465 |
+
@overload
|
| 466 |
+
def __init__(self, length: int) -> None: ...
|
| 467 |
+
def capitalize(self) -> bytearray: ...
|
| 468 |
+
def center(self, __width: int, __fillchar: bytes = ...) -> bytearray: ...
|
| 469 |
+
def count(self, __sub: str) -> int: ...
|
| 470 |
+
def decode(self, encoding: Text = ..., errors: Text = ...) -> str: ...
|
| 471 |
+
def endswith(self, __suffix: Union[bytes, Tuple[bytes, ...]]) -> bool: ...
|
| 472 |
+
def expandtabs(self, tabsize: int = ...) -> bytearray: ...
|
| 473 |
+
def extend(self, iterable: Union[str, Iterable[int]]) -> None: ...
|
| 474 |
+
def find(self, __sub: str, __start: int = ..., __end: int = ...) -> int: ...
|
| 475 |
+
def index(self, __sub: str, __start: int = ..., __end: int = ...) -> int: ...
|
| 476 |
+
def insert(self, __index: int, __item: int) -> None: ...
|
| 477 |
+
def isalnum(self) -> bool: ...
|
| 478 |
+
def isalpha(self) -> bool: ...
|
| 479 |
+
def isdigit(self) -> bool: ...
|
| 480 |
+
def islower(self) -> bool: ...
|
| 481 |
+
def isspace(self) -> bool: ...
|
| 482 |
+
def istitle(self) -> bool: ...
|
| 483 |
+
def isupper(self) -> bool: ...
|
| 484 |
+
def join(self, __iterable: Iterable[str]) -> bytearray: ...
|
| 485 |
+
def ljust(self, __width: int, __fillchar: str = ...) -> bytearray: ...
|
| 486 |
+
def lower(self) -> bytearray: ...
|
| 487 |
+
def lstrip(self, __bytes: Optional[bytes] = ...) -> bytearray: ...
|
| 488 |
+
def partition(self, __sep: bytes) -> Tuple[bytearray, bytearray, bytearray]: ...
|
| 489 |
+
def replace(self, __old: bytes, __new: bytes, __count: int = ...) -> bytearray: ...
|
| 490 |
+
def rfind(self, __sub: bytes, __start: int = ..., __end: int = ...) -> int: ...
|
| 491 |
+
def rindex(self, __sub: bytes, __start: int = ..., __end: int = ...) -> int: ...
|
| 492 |
+
def rjust(self, __width: int, __fillchar: bytes = ...) -> bytearray: ...
|
| 493 |
+
def rpartition(self, __sep: bytes) -> Tuple[bytearray, bytearray, bytearray]: ...
|
| 494 |
+
def rsplit(self, sep: Optional[bytes] = ..., maxsplit: int = ...) -> List[bytearray]: ...
|
| 495 |
+
def rstrip(self, __bytes: Optional[bytes] = ...) -> bytearray: ...
|
| 496 |
+
def split(self, sep: Optional[bytes] = ..., maxsplit: int = ...) -> List[bytearray]: ...
|
| 497 |
+
def splitlines(self, keepends: bool = ...) -> List[bytearray]: ...
|
| 498 |
+
def startswith(
|
| 499 |
+
self, __prefix: Union[bytes, Tuple[bytes, ...]], __start: Optional[int] = ..., __end: Optional[int] = ...
|
| 500 |
+
) -> bool: ...
|
| 501 |
+
def strip(self, __bytes: Optional[bytes] = ...) -> bytearray: ...
|
| 502 |
+
def swapcase(self) -> bytearray: ...
|
| 503 |
+
def title(self) -> bytearray: ...
|
| 504 |
+
def translate(self, __table: str) -> bytearray: ...
|
| 505 |
+
def upper(self) -> bytearray: ...
|
| 506 |
+
def zfill(self, __width: int) -> bytearray: ...
|
| 507 |
+
@classmethod
|
| 508 |
+
def fromhex(cls, __string: str) -> bytearray: ...
|
| 509 |
+
def __len__(self) -> int: ...
|
| 510 |
+
def __iter__(self) -> Iterator[int]: ...
|
| 511 |
+
def __str__(self) -> str: ...
|
| 512 |
+
def __repr__(self) -> str: ...
|
| 513 |
+
def __int__(self) -> int: ...
|
| 514 |
+
def __float__(self) -> float: ...
|
| 515 |
+
__hash__: None # type: ignore
|
| 516 |
+
@overload
|
| 517 |
+
def __getitem__(self, i: int) -> int: ...
|
| 518 |
+
@overload
|
| 519 |
+
def __getitem__(self, s: slice) -> bytearray: ...
|
| 520 |
+
@overload
|
| 521 |
+
def __setitem__(self, i: int, x: int) -> None: ...
|
| 522 |
+
@overload
|
| 523 |
+
def __setitem__(self, s: slice, x: Union[Iterable[int], bytes]) -> None: ...
|
| 524 |
+
def __delitem__(self, i: Union[int, slice]) -> None: ...
|
| 525 |
+
def __getslice__(self, start: int, stop: int) -> bytearray: ...
|
| 526 |
+
def __setslice__(self, start: int, stop: int, x: Union[Sequence[int], str]) -> None: ...
|
| 527 |
+
def __delslice__(self, start: int, stop: int) -> None: ...
|
| 528 |
+
def __add__(self, s: bytes) -> bytearray: ...
|
| 529 |
+
def __mul__(self, n: int) -> bytearray: ...
|
| 530 |
+
# Incompatible with Sequence.__contains__
|
| 531 |
+
def __contains__(self, o: Union[int, bytes]) -> bool: ... # type: ignore
|
| 532 |
+
def __eq__(self, x: object) -> bool: ...
|
| 533 |
+
def __ne__(self, x: object) -> bool: ...
|
| 534 |
+
def __lt__(self, x: bytes) -> bool: ...
|
| 535 |
+
def __le__(self, x: bytes) -> bool: ...
|
| 536 |
+
def __gt__(self, x: bytes) -> bool: ...
|
| 537 |
+
def __ge__(self, x: bytes) -> bool: ...
|
| 538 |
+
|
| 539 |
+
class memoryview(Sized, Container[str]):
|
| 540 |
+
format: str
|
| 541 |
+
itemsize: int
|
| 542 |
+
shape: Optional[Tuple[int, ...]]
|
| 543 |
+
strides: Optional[Tuple[int, ...]]
|
| 544 |
+
suboffsets: Optional[Tuple[int, ...]]
|
| 545 |
+
readonly: bool
|
| 546 |
+
ndim: int
|
| 547 |
+
def __init__(self, obj: ReadableBuffer) -> None: ...
|
| 548 |
+
@overload
|
| 549 |
+
def __getitem__(self, i: int) -> str: ...
|
| 550 |
+
@overload
|
| 551 |
+
def __getitem__(self, s: slice) -> memoryview: ...
|
| 552 |
+
def __contains__(self, x: object) -> bool: ...
|
| 553 |
+
def __iter__(self) -> Iterator[str]: ...
|
| 554 |
+
def __len__(self) -> int: ...
|
| 555 |
+
@overload
|
| 556 |
+
def __setitem__(self, s: slice, o: memoryview) -> None: ...
|
| 557 |
+
@overload
|
| 558 |
+
def __setitem__(self, i: int, o: bytes) -> None: ...
|
| 559 |
+
@overload
|
| 560 |
+
def __setitem__(self, s: slice, o: Sequence[bytes]) -> None: ...
|
| 561 |
+
def tobytes(self) -> bytes: ...
|
| 562 |
+
def tolist(self) -> List[int]: ...
|
| 563 |
+
|
| 564 |
+
class bool(int):
|
| 565 |
+
def __new__(cls: Type[_T], __o: object = ...) -> _T: ...
|
| 566 |
+
@overload
|
| 567 |
+
def __and__(self, x: bool) -> bool: ...
|
| 568 |
+
@overload
|
| 569 |
+
def __and__(self, x: int) -> int: ...
|
| 570 |
+
@overload
|
| 571 |
+
def __or__(self, x: bool) -> bool: ...
|
| 572 |
+
@overload
|
| 573 |
+
def __or__(self, x: int) -> int: ...
|
| 574 |
+
@overload
|
| 575 |
+
def __xor__(self, x: bool) -> bool: ...
|
| 576 |
+
@overload
|
| 577 |
+
def __xor__(self, x: int) -> int: ...
|
| 578 |
+
@overload
|
| 579 |
+
def __rand__(self, x: bool) -> bool: ...
|
| 580 |
+
@overload
|
| 581 |
+
def __rand__(self, x: int) -> int: ...
|
| 582 |
+
@overload
|
| 583 |
+
def __ror__(self, x: bool) -> bool: ...
|
| 584 |
+
@overload
|
| 585 |
+
def __ror__(self, x: int) -> int: ...
|
| 586 |
+
@overload
|
| 587 |
+
def __rxor__(self, x: bool) -> bool: ...
|
| 588 |
+
@overload
|
| 589 |
+
def __rxor__(self, x: int) -> int: ...
|
| 590 |
+
def __getnewargs__(self) -> Tuple[int]: ...
|
| 591 |
+
|
| 592 |
+
class slice(object):
|
| 593 |
+
start: Any
|
| 594 |
+
step: Any
|
| 595 |
+
stop: Any
|
| 596 |
+
@overload
|
| 597 |
+
def __init__(self, stop: Any) -> None: ...
|
| 598 |
+
@overload
|
| 599 |
+
def __init__(self, start: Any, stop: Any, step: Any = ...) -> None: ...
|
| 600 |
+
__hash__: None # type: ignore
|
| 601 |
+
def indices(self, len: int) -> Tuple[int, int, int]: ...
|
| 602 |
+
|
| 603 |
+
class tuple(Sequence[_T_co], Generic[_T_co]):
|
| 604 |
+
def __new__(cls: Type[_T], iterable: Iterable[_T_co] = ...) -> _T: ...
|
| 605 |
+
def __len__(self) -> int: ...
|
| 606 |
+
def __contains__(self, x: object) -> bool: ...
|
| 607 |
+
@overload
|
| 608 |
+
def __getitem__(self, x: int) -> _T_co: ...
|
| 609 |
+
@overload
|
| 610 |
+
def __getitem__(self, x: slice) -> Tuple[_T_co, ...]: ...
|
| 611 |
+
def __iter__(self) -> Iterator[_T_co]: ...
|
| 612 |
+
def __lt__(self, x: Tuple[_T_co, ...]) -> bool: ...
|
| 613 |
+
def __le__(self, x: Tuple[_T_co, ...]) -> bool: ...
|
| 614 |
+
def __gt__(self, x: Tuple[_T_co, ...]) -> bool: ...
|
| 615 |
+
def __ge__(self, x: Tuple[_T_co, ...]) -> bool: ...
|
| 616 |
+
@overload
|
| 617 |
+
def __add__(self, x: Tuple[_T_co, ...]) -> Tuple[_T_co, ...]: ...
|
| 618 |
+
@overload
|
| 619 |
+
def __add__(self, x: Tuple[Any, ...]) -> Tuple[Any, ...]: ...
|
| 620 |
+
def __mul__(self, n: int) -> Tuple[_T_co, ...]: ...
|
| 621 |
+
def __rmul__(self, n: int) -> Tuple[_T_co, ...]: ...
|
| 622 |
+
def count(self, __value: Any) -> int: ...
|
| 623 |
+
def index(self, __value: Any) -> int: ...
|
| 624 |
+
|
| 625 |
+
class function:
|
| 626 |
+
# TODO not defined in builtins!
|
| 627 |
+
__name__: str
|
| 628 |
+
__module__: str
|
| 629 |
+
__code__: CodeType
|
| 630 |
+
|
| 631 |
+
class list(MutableSequence[_T], Generic[_T]):
|
| 632 |
+
@overload
|
| 633 |
+
def __init__(self) -> None: ...
|
| 634 |
+
@overload
|
| 635 |
+
def __init__(self, iterable: Iterable[_T]) -> None: ...
|
| 636 |
+
def append(self, __object: _T) -> None: ...
|
| 637 |
+
def extend(self, __iterable: Iterable[_T]) -> None: ...
|
| 638 |
+
def pop(self, __index: int = ...) -> _T: ...
|
| 639 |
+
def index(self, __value: _T, __start: int = ..., __stop: int = ...) -> int: ...
|
| 640 |
+
def count(self, __value: _T) -> int: ...
|
| 641 |
+
def insert(self, __index: int, __object: _T) -> None: ...
|
| 642 |
+
def remove(self, __value: _T) -> None: ...
|
| 643 |
+
def reverse(self) -> None: ...
|
| 644 |
+
def sort(self, cmp: Callable[[_T, _T], Any] = ..., key: Callable[[_T], Any] = ..., reverse: bool = ...) -> None: ...
|
| 645 |
+
def __len__(self) -> int: ...
|
| 646 |
+
def __iter__(self) -> Iterator[_T]: ...
|
| 647 |
+
def __str__(self) -> str: ...
|
| 648 |
+
__hash__: None # type: ignore
|
| 649 |
+
@overload
|
| 650 |
+
def __getitem__(self, i: int) -> _T: ...
|
| 651 |
+
@overload
|
| 652 |
+
def __getitem__(self, s: slice) -> List[_T]: ...
|
| 653 |
+
@overload
|
| 654 |
+
def __setitem__(self, i: int, o: _T) -> None: ...
|
| 655 |
+
@overload
|
| 656 |
+
def __setitem__(self, s: slice, o: Iterable[_T]) -> None: ...
|
| 657 |
+
def __delitem__(self, i: Union[int, slice]) -> None: ...
|
| 658 |
+
def __getslice__(self, start: int, stop: int) -> List[_T]: ...
|
| 659 |
+
def __setslice__(self, start: int, stop: int, o: Sequence[_T]) -> None: ...
|
| 660 |
+
def __delslice__(self, start: int, stop: int) -> None: ...
|
| 661 |
+
def __add__(self, x: List[_T]) -> List[_T]: ...
|
| 662 |
+
def __iadd__(self: _S, x: Iterable[_T]) -> _S: ...
|
| 663 |
+
def __mul__(self, n: int) -> List[_T]: ...
|
| 664 |
+
def __rmul__(self, n: int) -> List[_T]: ...
|
| 665 |
+
def __contains__(self, o: object) -> bool: ...
|
| 666 |
+
def __reversed__(self) -> Iterator[_T]: ...
|
| 667 |
+
def __gt__(self, x: List[_T]) -> bool: ...
|
| 668 |
+
def __ge__(self, x: List[_T]) -> bool: ...
|
| 669 |
+
def __lt__(self, x: List[_T]) -> bool: ...
|
| 670 |
+
def __le__(self, x: List[_T]) -> bool: ...
|
| 671 |
+
|
| 672 |
+
class dict(MutableMapping[_KT, _VT], Generic[_KT, _VT]):
|
| 673 |
+
# NOTE: Keyword arguments are special. If they are used, _KT must include
|
| 674 |
+
# str, but we have no way of enforcing it here.
|
| 675 |
+
@overload
|
| 676 |
+
def __init__(self, **kwargs: _VT) -> None: ...
|
| 677 |
+
@overload
|
| 678 |
+
def __init__(self, map: SupportsKeysAndGetItem[_KT, _VT], **kwargs: _VT) -> None: ...
|
| 679 |
+
@overload
|
| 680 |
+
def __init__(self, iterable: Iterable[Tuple[_KT, _VT]], **kwargs: _VT) -> None: ...
|
| 681 |
+
def __new__(cls: Type[_T1], *args: Any, **kwargs: Any) -> _T1: ...
|
| 682 |
+
def has_key(self, k: _KT) -> bool: ...
|
| 683 |
+
def clear(self) -> None: ...
|
| 684 |
+
def copy(self) -> Dict[_KT, _VT]: ...
|
| 685 |
+
def popitem(self) -> Tuple[_KT, _VT]: ...
|
| 686 |
+
def setdefault(self, __key: _KT, __default: _VT = ...) -> _VT: ...
|
| 687 |
+
@overload
|
| 688 |
+
def update(self, __m: Mapping[_KT, _VT], **kwargs: _VT) -> None: ...
|
| 689 |
+
@overload
|
| 690 |
+
def update(self, __m: Iterable[Tuple[_KT, _VT]], **kwargs: _VT) -> None: ...
|
| 691 |
+
@overload
|
| 692 |
+
def update(self, **kwargs: _VT) -> None: ...
|
| 693 |
+
def iterkeys(self) -> Iterator[_KT]: ...
|
| 694 |
+
def itervalues(self) -> Iterator[_VT]: ...
|
| 695 |
+
def iteritems(self) -> Iterator[Tuple[_KT, _VT]]: ...
|
| 696 |
+
def viewkeys(self) -> KeysView[_KT]: ...
|
| 697 |
+
def viewvalues(self) -> ValuesView[_VT]: ...
|
| 698 |
+
def viewitems(self) -> ItemsView[_KT, _VT]: ...
|
| 699 |
+
@classmethod
|
| 700 |
+
@overload
|
| 701 |
+
def fromkeys(cls, __iterable: Iterable[_T]) -> Dict[_T, Any]: ...
|
| 702 |
+
@classmethod
|
| 703 |
+
@overload
|
| 704 |
+
def fromkeys(cls, __iterable: Iterable[_T], __value: _S) -> Dict[_T, _S]: ...
|
| 705 |
+
def __len__(self) -> int: ...
|
| 706 |
+
def __getitem__(self, k: _KT) -> _VT: ...
|
| 707 |
+
def __setitem__(self, k: _KT, v: _VT) -> None: ...
|
| 708 |
+
def __delitem__(self, v: _KT) -> None: ...
|
| 709 |
+
def __iter__(self) -> Iterator[_KT]: ...
|
| 710 |
+
def __str__(self) -> str: ...
|
| 711 |
+
__hash__: None # type: ignore
|
| 712 |
+
|
| 713 |
+
class set(MutableSet[_T], Generic[_T]):
|
| 714 |
+
def __init__(self, iterable: Iterable[_T] = ...) -> None: ...
|
| 715 |
+
def add(self, element: _T) -> None: ...
|
| 716 |
+
def clear(self) -> None: ...
|
| 717 |
+
def copy(self) -> Set[_T]: ...
|
| 718 |
+
def difference(self, *s: Iterable[Any]) -> Set[_T]: ...
|
| 719 |
+
def difference_update(self, *s: Iterable[Any]) -> None: ...
|
| 720 |
+
def discard(self, element: _T) -> None: ...
|
| 721 |
+
def intersection(self, *s: Iterable[Any]) -> Set[_T]: ...
|
| 722 |
+
def intersection_update(self, *s: Iterable[Any]) -> None: ...
|
| 723 |
+
def isdisjoint(self, s: Iterable[Any]) -> bool: ...
|
| 724 |
+
def issubset(self, s: Iterable[Any]) -> bool: ...
|
| 725 |
+
def issuperset(self, s: Iterable[Any]) -> bool: ...
|
| 726 |
+
def pop(self) -> _T: ...
|
| 727 |
+
def remove(self, element: _T) -> None: ...
|
| 728 |
+
def symmetric_difference(self, s: Iterable[_T]) -> Set[_T]: ...
|
| 729 |
+
def symmetric_difference_update(self, s: Iterable[_T]) -> None: ...
|
| 730 |
+
def union(self, *s: Iterable[_T]) -> Set[_T]: ...
|
| 731 |
+
def update(self, *s: Iterable[_T]) -> None: ...
|
| 732 |
+
def __len__(self) -> int: ...
|
| 733 |
+
def __contains__(self, o: object) -> bool: ...
|
| 734 |
+
def __iter__(self) -> Iterator[_T]: ...
|
| 735 |
+
def __str__(self) -> str: ...
|
| 736 |
+
def __and__(self, s: AbstractSet[object]) -> Set[_T]: ...
|
| 737 |
+
def __iand__(self, s: AbstractSet[object]) -> Set[_T]: ...
|
| 738 |
+
def __or__(self, s: AbstractSet[_S]) -> Set[Union[_T, _S]]: ...
|
| 739 |
+
def __ior__(self, s: AbstractSet[_S]) -> Set[Union[_T, _S]]: ...
|
| 740 |
+
@overload
|
| 741 |
+
def __sub__(self: Set[str], s: AbstractSet[Optional[Text]]) -> Set[_T]: ...
|
| 742 |
+
@overload
|
| 743 |
+
def __sub__(self, s: AbstractSet[Optional[_T]]) -> Set[_T]: ...
|
| 744 |
+
@overload # type: ignore
|
| 745 |
+
def __isub__(self: Set[str], s: AbstractSet[Optional[Text]]) -> Set[_T]: ...
|
| 746 |
+
@overload
|
| 747 |
+
def __isub__(self, s: AbstractSet[Optional[_T]]) -> Set[_T]: ...
|
| 748 |
+
def __xor__(self, s: AbstractSet[_S]) -> Set[Union[_T, _S]]: ...
|
| 749 |
+
def __ixor__(self, s: AbstractSet[_S]) -> Set[Union[_T, _S]]: ...
|
| 750 |
+
def __le__(self, s: AbstractSet[object]) -> bool: ...
|
| 751 |
+
def __lt__(self, s: AbstractSet[object]) -> bool: ...
|
| 752 |
+
def __ge__(self, s: AbstractSet[object]) -> bool: ...
|
| 753 |
+
def __gt__(self, s: AbstractSet[object]) -> bool: ...
|
| 754 |
+
__hash__: None # type: ignore
|
| 755 |
+
|
| 756 |
+
class frozenset(AbstractSet[_T_co], Generic[_T_co]):
|
| 757 |
+
def __init__(self, iterable: Iterable[_T_co] = ...) -> None: ...
|
| 758 |
+
def copy(self) -> FrozenSet[_T_co]: ...
|
| 759 |
+
def difference(self, *s: Iterable[object]) -> FrozenSet[_T_co]: ...
|
| 760 |
+
def intersection(self, *s: Iterable[object]) -> FrozenSet[_T_co]: ...
|
| 761 |
+
def isdisjoint(self, s: Iterable[_T_co]) -> bool: ...
|
| 762 |
+
def issubset(self, s: Iterable[object]) -> bool: ...
|
| 763 |
+
def issuperset(self, s: Iterable[object]) -> bool: ...
|
| 764 |
+
def symmetric_difference(self, s: Iterable[_T_co]) -> FrozenSet[_T_co]: ...
|
| 765 |
+
def union(self, *s: Iterable[_T_co]) -> FrozenSet[_T_co]: ...
|
| 766 |
+
def __len__(self) -> int: ...
|
| 767 |
+
def __contains__(self, o: object) -> bool: ...
|
| 768 |
+
def __iter__(self) -> Iterator[_T_co]: ...
|
| 769 |
+
def __str__(self) -> str: ...
|
| 770 |
+
def __and__(self, s: AbstractSet[_T_co]) -> FrozenSet[_T_co]: ...
|
| 771 |
+
def __or__(self, s: AbstractSet[_S]) -> FrozenSet[Union[_T_co, _S]]: ...
|
| 772 |
+
def __sub__(self, s: AbstractSet[_T_co]) -> FrozenSet[_T_co]: ...
|
| 773 |
+
def __xor__(self, s: AbstractSet[_S]) -> FrozenSet[Union[_T_co, _S]]: ...
|
| 774 |
+
def __le__(self, s: AbstractSet[object]) -> bool: ...
|
| 775 |
+
def __lt__(self, s: AbstractSet[object]) -> bool: ...
|
| 776 |
+
def __ge__(self, s: AbstractSet[object]) -> bool: ...
|
| 777 |
+
def __gt__(self, s: AbstractSet[object]) -> bool: ...
|
| 778 |
+
|
| 779 |
+
class enumerate(Iterator[Tuple[int, _T]], Generic[_T]):
|
| 780 |
+
def __init__(self, iterable: Iterable[_T], start: int = ...) -> None: ...
|
| 781 |
+
def __iter__(self) -> Iterator[Tuple[int, _T]]: ...
|
| 782 |
+
def next(self) -> Tuple[int, _T]: ...
|
| 783 |
+
|
| 784 |
+
class xrange(Sized, Iterable[int], Reversible[int]):
|
| 785 |
+
@overload
|
| 786 |
+
def __init__(self, stop: int) -> None: ...
|
| 787 |
+
@overload
|
| 788 |
+
def __init__(self, start: int, stop: int, step: int = ...) -> None: ...
|
| 789 |
+
def __len__(self) -> int: ...
|
| 790 |
+
def __iter__(self) -> Iterator[int]: ...
|
| 791 |
+
def __getitem__(self, i: int) -> int: ...
|
| 792 |
+
def __reversed__(self) -> Iterator[int]: ...
|
| 793 |
+
|
| 794 |
+
class property(object):
|
| 795 |
+
def __init__(
|
| 796 |
+
self,
|
| 797 |
+
fget: Optional[Callable[[Any], Any]] = ...,
|
| 798 |
+
fset: Optional[Callable[[Any, Any], None]] = ...,
|
| 799 |
+
fdel: Optional[Callable[[Any], None]] = ...,
|
| 800 |
+
doc: Optional[str] = ...,
|
| 801 |
+
) -> None: ...
|
| 802 |
+
def getter(self, fget: Callable[[Any], Any]) -> property: ...
|
| 803 |
+
def setter(self, fset: Callable[[Any, Any], None]) -> property: ...
|
| 804 |
+
def deleter(self, fdel: Callable[[Any], None]) -> property: ...
|
| 805 |
+
def __get__(self, obj: Any, type: Optional[type] = ...) -> Any: ...
|
| 806 |
+
def __set__(self, obj: Any, value: Any) -> None: ...
|
| 807 |
+
def __delete__(self, obj: Any) -> None: ...
|
| 808 |
+
def fget(self) -> Any: ...
|
| 809 |
+
def fset(self, value: Any) -> None: ...
|
| 810 |
+
def fdel(self) -> None: ...
|
| 811 |
+
|
| 812 |
+
long = int
|
| 813 |
+
|
| 814 |
+
class _NotImplementedType(Any): # type: ignore
|
| 815 |
+
# A little weird, but typing the __call__ as NotImplemented makes the error message
|
| 816 |
+
# for NotImplemented() much better
|
| 817 |
+
__call__: NotImplemented # type: ignore
|
| 818 |
+
|
| 819 |
+
NotImplemented: _NotImplementedType
|
| 820 |
+
|
| 821 |
+
def abs(__x: SupportsAbs[_T]) -> _T: ...
|
| 822 |
+
def all(__iterable: Iterable[object]) -> bool: ...
|
| 823 |
+
def any(__iterable: Iterable[object]) -> bool: ...
|
| 824 |
+
def apply(__func: Callable[..., _T], __args: Optional[Sequence[Any]] = ..., __kwds: Optional[Mapping[str, Any]] = ...) -> _T: ...
|
| 825 |
+
def bin(__number: Union[int, _SupportsIndex]) -> str: ...
|
| 826 |
+
def callable(__obj: object) -> bool: ...
|
| 827 |
+
def chr(__i: int) -> str: ...
|
| 828 |
+
def cmp(__x: Any, __y: Any) -> int: ...
|
| 829 |
+
|
| 830 |
+
_N1 = TypeVar("_N1", bool, int, float, complex)
|
| 831 |
+
|
| 832 |
+
def coerce(__x: _N1, __y: _N1) -> Tuple[_N1, _N1]: ...
|
| 833 |
+
|
| 834 |
+
# This class is to be exported as PathLike from os,
|
| 835 |
+
# but we define it here as _PathLike to avoid import cycle issues.
|
| 836 |
+
# See https://github.com/python/typeshed/pull/991#issuecomment-288160993
|
| 837 |
+
_AnyStr_co = TypeVar("_AnyStr_co", str, bytes, covariant=True)
|
| 838 |
+
@runtime_checkable
|
| 839 |
+
class _PathLike(Protocol[_AnyStr_co]):
|
| 840 |
+
def __fspath__(self) -> _AnyStr_co: ...
|
| 841 |
+
|
| 842 |
+
def compile(source: Union[Text, mod], filename: Text, mode: Text, flags: int = ..., dont_inherit: int = ...) -> Any: ...
|
| 843 |
+
def delattr(__obj: Any, __name: Text) -> None: ...
|
| 844 |
+
def dir(__o: object = ...) -> List[str]: ...
|
| 845 |
+
|
| 846 |
+
_N2 = TypeVar("_N2", int, float)
|
| 847 |
+
|
| 848 |
+
def divmod(__x: _N2, __y: _N2) -> Tuple[_N2, _N2]: ...
|
| 849 |
+
def eval(
|
| 850 |
+
__source: Union[Text, bytes, CodeType], __globals: Optional[Dict[str, Any]] = ..., __locals: Optional[Mapping[str, Any]] = ...
|
| 851 |
+
) -> Any: ...
|
| 852 |
+
def execfile(__filename: str, __globals: Optional[Dict[str, Any]] = ..., __locals: Optional[Dict[str, Any]] = ...) -> None: ...
|
| 853 |
+
def exit(code: object = ...) -> NoReturn: ...
|
| 854 |
+
@overload
|
| 855 |
+
def filter(__function: Callable[[AnyStr], Any], __iterable: AnyStr) -> AnyStr: ... # type: ignore
|
| 856 |
+
@overload
|
| 857 |
+
def filter(__function: None, __iterable: Tuple[Optional[_T], ...]) -> Tuple[_T, ...]: ... # type: ignore
|
| 858 |
+
@overload
|
| 859 |
+
def filter(__function: Callable[[_T], Any], __iterable: Tuple[_T, ...]) -> Tuple[_T, ...]: ... # type: ignore
|
| 860 |
+
@overload
|
| 861 |
+
def filter(__function: None, __iterable: Iterable[Optional[_T]]) -> List[_T]: ...
|
| 862 |
+
@overload
|
| 863 |
+
def filter(__function: Callable[[_T], Any], __iterable: Iterable[_T]) -> List[_T]: ...
|
| 864 |
+
def format(__value: object, __format_spec: str = ...) -> str: ... # TODO unicode
|
| 865 |
+
def getattr(__o: Any, name: Text, __default: Any = ...) -> Any: ...
|
| 866 |
+
def globals() -> Dict[str, Any]: ...
|
| 867 |
+
def hasattr(__obj: Any, __name: Text) -> bool: ...
|
| 868 |
+
def hash(__obj: object) -> int: ...
|
| 869 |
+
def hex(__number: Union[int, _SupportsIndex]) -> str: ...
|
| 870 |
+
def id(__obj: object) -> int: ...
|
| 871 |
+
def input(__prompt: Any = ...) -> Any: ...
|
| 872 |
+
def intern(__string: str) -> str: ...
|
| 873 |
+
@overload
|
| 874 |
+
def iter(__iterable: Iterable[_T]) -> Iterator[_T]: ...
|
| 875 |
+
@overload
|
| 876 |
+
def iter(__function: Callable[[], Optional[_T]], __sentinel: None) -> Iterator[_T]: ...
|
| 877 |
+
@overload
|
| 878 |
+
def iter(__function: Callable[[], _T], __sentinel: Any) -> Iterator[_T]: ...
|
| 879 |
+
def isinstance(__obj: object, __class_or_tuple: Union[type, Tuple[Union[type, Tuple[Any, ...]], ...]]) -> bool: ...
|
| 880 |
+
def issubclass(__cls: type, __class_or_tuple: Union[type, Tuple[Union[type, Tuple[Any, ...]], ...]]) -> bool: ...
|
| 881 |
+
def len(__obj: Sized) -> int: ...
|
| 882 |
+
def locals() -> Dict[str, Any]: ...
|
| 883 |
+
@overload
|
| 884 |
+
def map(__func: None, __iter1: Iterable[_T1]) -> List[_T1]: ...
|
| 885 |
+
@overload
|
| 886 |
+
def map(__func: None, __iter1: Iterable[_T1], __iter2: Iterable[_T2]) -> List[Tuple[_T1, _T2]]: ...
|
| 887 |
+
@overload
|
| 888 |
+
def map(__func: None, __iter1: Iterable[_T1], __iter2: Iterable[_T2], __iter3: Iterable[_T3]) -> List[Tuple[_T1, _T2, _T3]]: ...
|
| 889 |
+
@overload
|
| 890 |
+
def map(
|
| 891 |
+
__func: None, __iter1: Iterable[_T1], __iter2: Iterable[_T2], __iter3: Iterable[_T3], __iter4: Iterable[_T4]
|
| 892 |
+
) -> List[Tuple[_T1, _T2, _T3, _T4]]: ...
|
| 893 |
+
@overload
|
| 894 |
+
def map(
|
| 895 |
+
__func: None,
|
| 896 |
+
__iter1: Iterable[_T1],
|
| 897 |
+
__iter2: Iterable[_T2],
|
| 898 |
+
__iter3: Iterable[_T3],
|
| 899 |
+
__iter4: Iterable[_T4],
|
| 900 |
+
__iter5: Iterable[_T5],
|
| 901 |
+
) -> List[Tuple[_T1, _T2, _T3, _T4, _T5]]: ...
|
| 902 |
+
@overload
|
| 903 |
+
def map(
|
| 904 |
+
__func: None,
|
| 905 |
+
__iter1: Iterable[Any],
|
| 906 |
+
__iter2: Iterable[Any],
|
| 907 |
+
__iter3: Iterable[Any],
|
| 908 |
+
__iter4: Iterable[Any],
|
| 909 |
+
__iter5: Iterable[Any],
|
| 910 |
+
__iter6: Iterable[Any],
|
| 911 |
+
*iterables: Iterable[Any],
|
| 912 |
+
) -> List[Tuple[Any, ...]]: ...
|
| 913 |
+
@overload
|
| 914 |
+
def map(__func: Callable[[_T1], _S], __iter1: Iterable[_T1]) -> List[_S]: ...
|
| 915 |
+
@overload
|
| 916 |
+
def map(__func: Callable[[_T1, _T2], _S], __iter1: Iterable[_T1], __iter2: Iterable[_T2]) -> List[_S]: ...
|
| 917 |
+
@overload
|
| 918 |
+
def map(
|
| 919 |
+
__func: Callable[[_T1, _T2, _T3], _S], __iter1: Iterable[_T1], __iter2: Iterable[_T2], __iter3: Iterable[_T3]
|
| 920 |
+
) -> List[_S]: ...
|
| 921 |
+
@overload
|
| 922 |
+
def map(
|
| 923 |
+
__func: Callable[[_T1, _T2, _T3, _T4], _S],
|
| 924 |
+
__iter1: Iterable[_T1],
|
| 925 |
+
__iter2: Iterable[_T2],
|
| 926 |
+
__iter3: Iterable[_T3],
|
| 927 |
+
__iter4: Iterable[_T4],
|
| 928 |
+
) -> List[_S]: ...
|
| 929 |
+
@overload
|
| 930 |
+
def map(
|
| 931 |
+
__func: Callable[[_T1, _T2, _T3, _T4, _T5], _S],
|
| 932 |
+
__iter1: Iterable[_T1],
|
| 933 |
+
__iter2: Iterable[_T2],
|
| 934 |
+
__iter3: Iterable[_T3],
|
| 935 |
+
__iter4: Iterable[_T4],
|
| 936 |
+
__iter5: Iterable[_T5],
|
| 937 |
+
) -> List[_S]: ...
|
| 938 |
+
@overload
|
| 939 |
+
def map(
|
| 940 |
+
__func: Callable[..., _S],
|
| 941 |
+
__iter1: Iterable[Any],
|
| 942 |
+
__iter2: Iterable[Any],
|
| 943 |
+
__iter3: Iterable[Any],
|
| 944 |
+
__iter4: Iterable[Any],
|
| 945 |
+
__iter5: Iterable[Any],
|
| 946 |
+
__iter6: Iterable[Any],
|
| 947 |
+
*iterables: Iterable[Any],
|
| 948 |
+
) -> List[_S]: ...
|
| 949 |
+
@overload
|
| 950 |
+
def max(__arg1: _T, __arg2: _T, *_args: _T, key: Callable[[_T], Any] = ...) -> _T: ...
|
| 951 |
+
@overload
|
| 952 |
+
def max(__iterable: Iterable[_T], *, key: Callable[[_T], Any] = ...) -> _T: ...
|
| 953 |
+
@overload
|
| 954 |
+
def min(__arg1: _T, __arg2: _T, *_args: _T, key: Callable[[_T], Any] = ...) -> _T: ...
|
| 955 |
+
@overload
|
| 956 |
+
def min(__iterable: Iterable[_T], *, key: Callable[[_T], Any] = ...) -> _T: ...
|
| 957 |
+
@overload
|
| 958 |
+
def next(__i: Iterator[_T]) -> _T: ...
|
| 959 |
+
@overload
|
| 960 |
+
def next(__i: Iterator[_T], default: _VT) -> Union[_T, _VT]: ...
|
| 961 |
+
def oct(__number: Union[int, _SupportsIndex]) -> str: ...
|
| 962 |
+
def open(name: Union[unicode, int], mode: unicode = ..., buffering: int = ...) -> BinaryIO: ...
|
| 963 |
+
def ord(__c: Union[Text, bytes]) -> int: ...
|
| 964 |
+
|
| 965 |
+
# This is only available after from __future__ import print_function.
|
| 966 |
+
def print(
|
| 967 |
+
*values: object, sep: Optional[Text] = ..., end: Optional[Text] = ..., file: Optional[SupportsWrite[Any]] = ...
|
| 968 |
+
) -> None: ...
|
| 969 |
+
|
| 970 |
+
_E = TypeVar("_E", contravariant=True)
|
| 971 |
+
_M = TypeVar("_M", contravariant=True)
|
| 972 |
+
|
| 973 |
+
class _SupportsPow2(Protocol[_E, _T_co]):
|
| 974 |
+
def __pow__(self, __other: _E) -> _T_co: ...
|
| 975 |
+
|
| 976 |
+
class _SupportsPow3(Protocol[_E, _M, _T_co]):
|
| 977 |
+
def __pow__(self, __other: _E, __modulo: _M) -> _T_co: ...
|
| 978 |
+
|
| 979 |
+
@overload
|
| 980 |
+
def pow(__base: int, __exp: int, __mod: None = ...) -> Any: ... # returns int or float depending on whether exp is non-negative
|
| 981 |
+
@overload
|
| 982 |
+
def pow(__base: int, __exp: int, __mod: int) -> int: ...
|
| 983 |
+
@overload
|
| 984 |
+
def pow(__base: float, __exp: float, __mod: None = ...) -> float: ...
|
| 985 |
+
@overload
|
| 986 |
+
def pow(__base: _SupportsPow2[_E, _T_co], __exp: _E) -> _T_co: ...
|
| 987 |
+
@overload
|
| 988 |
+
def pow(__base: _SupportsPow3[_E, _M, _T_co], __exp: _E, __mod: _M) -> _T_co: ...
|
| 989 |
+
def quit(code: object = ...) -> NoReturn: ...
|
| 990 |
+
def range(__x: int, __y: int = ..., __step: int = ...) -> List[int]: ... # noqa: F811
|
| 991 |
+
def raw_input(__prompt: Any = ...) -> str: ...
|
| 992 |
+
@overload
|
| 993 |
+
def reduce(__function: Callable[[_T, _S], _T], __iterable: Iterable[_S], __initializer: _T) -> _T: ...
|
| 994 |
+
@overload
|
| 995 |
+
def reduce(__function: Callable[[_T, _T], _T], __iterable: Iterable[_T]) -> _T: ...
|
| 996 |
+
def reload(__module: Any) -> Any: ...
|
| 997 |
+
@overload
|
| 998 |
+
def reversed(__sequence: Sequence[_T]) -> Iterator[_T]: ...
|
| 999 |
+
@overload
|
| 1000 |
+
def reversed(__sequence: Reversible[_T]) -> Iterator[_T]: ...
|
| 1001 |
+
def repr(__obj: object) -> str: ...
|
| 1002 |
+
@overload
|
| 1003 |
+
def round(number: float) -> float: ...
|
| 1004 |
+
@overload
|
| 1005 |
+
def round(number: float, ndigits: int) -> float: ...
|
| 1006 |
+
@overload
|
| 1007 |
+
def round(number: SupportsFloat) -> float: ...
|
| 1008 |
+
@overload
|
| 1009 |
+
def round(number: SupportsFloat, ndigits: int) -> float: ...
|
| 1010 |
+
def setattr(__obj: Any, __name: Text, __value: Any) -> None: ...
|
| 1011 |
+
def sorted(
|
| 1012 |
+
__iterable: Iterable[_T],
|
| 1013 |
+
*,
|
| 1014 |
+
cmp: Callable[[_T, _T], int] = ...,
|
| 1015 |
+
key: Optional[Callable[[_T], Any]] = ...,
|
| 1016 |
+
reverse: bool = ...,
|
| 1017 |
+
) -> List[_T]: ...
|
| 1018 |
+
@overload
|
| 1019 |
+
def sum(__iterable: Iterable[_T]) -> Union[_T, int]: ...
|
| 1020 |
+
@overload
|
| 1021 |
+
def sum(__iterable: Iterable[_T], __start: _S) -> Union[_T, _S]: ...
|
| 1022 |
+
def unichr(__i: int) -> unicode: ...
|
| 1023 |
+
def vars(__object: Any = ...) -> Dict[str, Any]: ...
|
| 1024 |
+
@overload
|
| 1025 |
+
def zip(__iter1: Iterable[_T1]) -> List[Tuple[_T1]]: ...
|
| 1026 |
+
@overload
|
| 1027 |
+
def zip(__iter1: Iterable[_T1], __iter2: Iterable[_T2]) -> List[Tuple[_T1, _T2]]: ...
|
| 1028 |
+
@overload
|
| 1029 |
+
def zip(__iter1: Iterable[_T1], __iter2: Iterable[_T2], __iter3: Iterable[_T3]) -> List[Tuple[_T1, _T2, _T3]]: ...
|
| 1030 |
+
@overload
|
| 1031 |
+
def zip(
|
| 1032 |
+
__iter1: Iterable[_T1], __iter2: Iterable[_T2], __iter3: Iterable[_T3], __iter4: Iterable[_T4]
|
| 1033 |
+
) -> List[Tuple[_T1, _T2, _T3, _T4]]: ...
|
| 1034 |
+
@overload
|
| 1035 |
+
def zip(
|
| 1036 |
+
__iter1: Iterable[_T1], __iter2: Iterable[_T2], __iter3: Iterable[_T3], __iter4: Iterable[_T4], __iter5: Iterable[_T5]
|
| 1037 |
+
) -> List[Tuple[_T1, _T2, _T3, _T4, _T5]]: ...
|
| 1038 |
+
@overload
|
| 1039 |
+
def zip(
|
| 1040 |
+
__iter1: Iterable[Any],
|
| 1041 |
+
__iter2: Iterable[Any],
|
| 1042 |
+
__iter3: Iterable[Any],
|
| 1043 |
+
__iter4: Iterable[Any],
|
| 1044 |
+
__iter5: Iterable[Any],
|
| 1045 |
+
__iter6: Iterable[Any],
|
| 1046 |
+
*iterables: Iterable[Any],
|
| 1047 |
+
) -> List[Tuple[Any, ...]]: ...
|
| 1048 |
+
def __import__(
|
| 1049 |
+
name: Text,
|
| 1050 |
+
globals: Optional[Mapping[str, Any]] = ...,
|
| 1051 |
+
locals: Optional[Mapping[str, Any]] = ...,
|
| 1052 |
+
fromlist: Sequence[str] = ...,
|
| 1053 |
+
level: int = ...,
|
| 1054 |
+
) -> Any: ...
|
| 1055 |
+
|
| 1056 |
+
# Actually the type of Ellipsis is <type 'ellipsis'>, but since it's
|
| 1057 |
+
# not exposed anywhere under that name, we make it private here.
|
| 1058 |
+
class ellipsis: ...
|
| 1059 |
+
|
| 1060 |
+
Ellipsis: ellipsis
|
| 1061 |
+
|
| 1062 |
+
# TODO: buffer support is incomplete; e.g. some_string.startswith(some_buffer) doesn't type check.
|
| 1063 |
+
_AnyBuffer = TypeVar("_AnyBuffer", str, unicode, bytearray, buffer)
|
| 1064 |
+
|
| 1065 |
+
class buffer(Sized):
|
| 1066 |
+
def __init__(self, object: _AnyBuffer, offset: int = ..., size: int = ...) -> None: ...
|
| 1067 |
+
def __add__(self, other: _AnyBuffer) -> str: ...
|
| 1068 |
+
def __cmp__(self, other: _AnyBuffer) -> bool: ...
|
| 1069 |
+
def __getitem__(self, key: Union[int, slice]) -> str: ...
|
| 1070 |
+
def __getslice__(self, i: int, j: int) -> str: ...
|
| 1071 |
+
def __len__(self) -> int: ...
|
| 1072 |
+
def __mul__(self, x: int) -> str: ...
|
| 1073 |
+
|
| 1074 |
+
class BaseException(object):
|
| 1075 |
+
args: Tuple[Any, ...]
|
| 1076 |
+
message: Any
|
| 1077 |
+
def __init__(self, *args: object) -> None: ...
|
| 1078 |
+
def __str__(self) -> str: ...
|
| 1079 |
+
def __repr__(self) -> str: ...
|
| 1080 |
+
def __getitem__(self, i: int) -> Any: ...
|
| 1081 |
+
def __getslice__(self, start: int, stop: int) -> Tuple[Any, ...]: ...
|
| 1082 |
+
|
| 1083 |
+
class GeneratorExit(BaseException): ...
|
| 1084 |
+
class KeyboardInterrupt(BaseException): ...
|
| 1085 |
+
|
| 1086 |
+
class SystemExit(BaseException):
|
| 1087 |
+
code: int
|
| 1088 |
+
|
| 1089 |
+
class Exception(BaseException): ...
|
| 1090 |
+
class StopIteration(Exception): ...
|
| 1091 |
+
class StandardError(Exception): ...
|
| 1092 |
+
|
| 1093 |
+
_StandardError = StandardError
|
| 1094 |
+
|
| 1095 |
+
class EnvironmentError(StandardError):
|
| 1096 |
+
errno: int
|
| 1097 |
+
strerror: str
|
| 1098 |
+
# TODO can this be unicode?
|
| 1099 |
+
filename: str
|
| 1100 |
+
|
| 1101 |
+
class OSError(EnvironmentError): ...
|
| 1102 |
+
class IOError(EnvironmentError): ...
|
| 1103 |
+
class ArithmeticError(_StandardError): ...
|
| 1104 |
+
class AssertionError(_StandardError): ...
|
| 1105 |
+
class AttributeError(_StandardError): ...
|
| 1106 |
+
class BufferError(_StandardError): ...
|
| 1107 |
+
class EOFError(_StandardError): ...
|
| 1108 |
+
class ImportError(_StandardError): ...
|
| 1109 |
+
class LookupError(_StandardError): ...
|
| 1110 |
+
class MemoryError(_StandardError): ...
|
| 1111 |
+
class NameError(_StandardError): ...
|
| 1112 |
+
class ReferenceError(_StandardError): ...
|
| 1113 |
+
class RuntimeError(_StandardError): ...
|
| 1114 |
+
|
| 1115 |
+
class SyntaxError(_StandardError):
|
| 1116 |
+
msg: str
|
| 1117 |
+
lineno: Optional[int]
|
| 1118 |
+
offset: Optional[int]
|
| 1119 |
+
text: Optional[str]
|
| 1120 |
+
filename: Optional[str]
|
| 1121 |
+
|
| 1122 |
+
class SystemError(_StandardError): ...
|
| 1123 |
+
class TypeError(_StandardError): ...
|
| 1124 |
+
class ValueError(_StandardError): ...
|
| 1125 |
+
class FloatingPointError(ArithmeticError): ...
|
| 1126 |
+
class OverflowError(ArithmeticError): ...
|
| 1127 |
+
class ZeroDivisionError(ArithmeticError): ...
|
| 1128 |
+
class IndexError(LookupError): ...
|
| 1129 |
+
class KeyError(LookupError): ...
|
| 1130 |
+
class UnboundLocalError(NameError): ...
|
| 1131 |
+
|
| 1132 |
+
class WindowsError(OSError):
|
| 1133 |
+
winerror: int
|
| 1134 |
+
|
| 1135 |
+
class NotImplementedError(RuntimeError): ...
|
| 1136 |
+
class IndentationError(SyntaxError): ...
|
| 1137 |
+
class TabError(IndentationError): ...
|
| 1138 |
+
class UnicodeError(ValueError): ...
|
| 1139 |
+
|
| 1140 |
+
class UnicodeDecodeError(UnicodeError):
|
| 1141 |
+
encoding: str
|
| 1142 |
+
object: bytes
|
| 1143 |
+
start: int
|
| 1144 |
+
end: int
|
| 1145 |
+
reason: str
|
| 1146 |
+
def __init__(self, __encoding: str, __object: bytes, __start: int, __end: int, __reason: str) -> None: ...
|
| 1147 |
+
|
| 1148 |
+
class UnicodeEncodeError(UnicodeError):
|
| 1149 |
+
encoding: str
|
| 1150 |
+
object: Text
|
| 1151 |
+
start: int
|
| 1152 |
+
end: int
|
| 1153 |
+
reason: str
|
| 1154 |
+
def __init__(self, __encoding: str, __object: Text, __start: int, __end: int, __reason: str) -> None: ...
|
| 1155 |
+
|
| 1156 |
+
class UnicodeTranslateError(UnicodeError): ...
|
| 1157 |
+
class Warning(Exception): ...
|
| 1158 |
+
class UserWarning(Warning): ...
|
| 1159 |
+
class DeprecationWarning(Warning): ...
|
| 1160 |
+
class SyntaxWarning(Warning): ...
|
| 1161 |
+
class RuntimeWarning(Warning): ...
|
| 1162 |
+
class FutureWarning(Warning): ...
|
| 1163 |
+
class PendingDeprecationWarning(Warning): ...
|
| 1164 |
+
class ImportWarning(Warning): ...
|
| 1165 |
+
class UnicodeWarning(Warning): ...
|
| 1166 |
+
class BytesWarning(Warning): ...
|
| 1167 |
+
|
| 1168 |
+
class file(BinaryIO):
|
| 1169 |
+
@overload
|
| 1170 |
+
def __init__(self, file: str, mode: str = ..., buffering: int = ...) -> None: ...
|
| 1171 |
+
@overload
|
| 1172 |
+
def __init__(self, file: unicode, mode: str = ..., buffering: int = ...) -> None: ...
|
| 1173 |
+
@overload
|
| 1174 |
+
def __init__(self, file: int, mode: str = ..., buffering: int = ...) -> None: ...
|
| 1175 |
+
def __iter__(self) -> Iterator[str]: ...
|
| 1176 |
+
def next(self) -> str: ...
|
| 1177 |
+
def read(self, n: int = ...) -> str: ...
|
| 1178 |
+
def __enter__(self) -> BinaryIO: ...
|
| 1179 |
+
def __exit__(
|
| 1180 |
+
self, t: Optional[type] = ..., exc: Optional[BaseException] = ..., tb: Optional[Any] = ...
|
| 1181 |
+
) -> Optional[bool]: ...
|
| 1182 |
+
def flush(self) -> None: ...
|
| 1183 |
+
def fileno(self) -> int: ...
|
| 1184 |
+
def isatty(self) -> bool: ...
|
| 1185 |
+
def close(self) -> None: ...
|
| 1186 |
+
def readable(self) -> bool: ...
|
| 1187 |
+
def writable(self) -> bool: ...
|
| 1188 |
+
def seekable(self) -> bool: ...
|
| 1189 |
+
def seek(self, offset: int, whence: int = ...) -> int: ...
|
| 1190 |
+
def tell(self) -> int: ...
|
| 1191 |
+
def readline(self, limit: int = ...) -> str: ...
|
| 1192 |
+
def readlines(self, hint: int = ...) -> List[str]: ...
|
| 1193 |
+
def write(self, data: str) -> int: ...
|
| 1194 |
+
def writelines(self, data: Iterable[str]) -> None: ...
|
| 1195 |
+
def truncate(self, pos: Optional[int] = ...) -> int: ...
|
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/2/ast.pyi
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Python 2.7 ast
|
| 2 |
+
|
| 3 |
+
# Rename typing to _typing, as not to conflict with typing imported
|
| 4 |
+
# from _ast below when loaded in an unorthodox way by the Dropbox
|
| 5 |
+
# internal Bazel integration.
|
| 6 |
+
import typing as _typing
|
| 7 |
+
from typing import Any, Iterator, Optional, Union
|
| 8 |
+
|
| 9 |
+
from _ast import *
|
| 10 |
+
from _ast import AST, Module
|
| 11 |
+
|
| 12 |
+
def parse(source: Union[str, unicode], filename: Union[str, unicode] = ..., mode: Union[str, unicode] = ...) -> Module: ...
|
| 13 |
+
def copy_location(new_node: AST, old_node: AST) -> AST: ...
|
| 14 |
+
def dump(node: AST, annotate_fields: bool = ..., include_attributes: bool = ...) -> str: ...
|
| 15 |
+
def fix_missing_locations(node: AST) -> AST: ...
|
| 16 |
+
def get_docstring(node: AST, clean: bool = ...) -> str: ...
|
| 17 |
+
def increment_lineno(node: AST, n: int = ...) -> AST: ...
|
| 18 |
+
def iter_child_nodes(node: AST) -> Iterator[AST]: ...
|
| 19 |
+
def iter_fields(node: AST) -> Iterator[_typing.Tuple[str, Any]]: ...
|
| 20 |
+
def literal_eval(node_or_string: Union[str, unicode, AST]) -> Any: ...
|
| 21 |
+
def walk(node: AST) -> Iterator[AST]: ...
|
| 22 |
+
|
| 23 |
+
class NodeVisitor:
|
| 24 |
+
def visit(self, node: AST) -> Any: ...
|
| 25 |
+
def generic_visit(self, node: AST) -> Any: ...
|
| 26 |
+
|
| 27 |
+
class NodeTransformer(NodeVisitor):
|
| 28 |
+
def generic_visit(self, node: AST) -> Optional[AST]: ...
|
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/2/collections.pyi
ADDED
|
@@ -0,0 +1,129 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from typing import (
|
| 2 |
+
AbstractSet,
|
| 3 |
+
Any,
|
| 4 |
+
Callable as Callable,
|
| 5 |
+
Container as Container,
|
| 6 |
+
Dict,
|
| 7 |
+
Generic,
|
| 8 |
+
Hashable as Hashable,
|
| 9 |
+
ItemsView as ItemsView,
|
| 10 |
+
Iterable as Iterable,
|
| 11 |
+
Iterator as Iterator,
|
| 12 |
+
KeysView as KeysView,
|
| 13 |
+
List,
|
| 14 |
+
Mapping as Mapping,
|
| 15 |
+
MappingView as MappingView,
|
| 16 |
+
MutableMapping as MutableMapping,
|
| 17 |
+
MutableSequence as MutableSequence,
|
| 18 |
+
MutableSet as MutableSet,
|
| 19 |
+
Optional,
|
| 20 |
+
Reversible,
|
| 21 |
+
Sequence as Sequence,
|
| 22 |
+
Sized as Sized,
|
| 23 |
+
Tuple,
|
| 24 |
+
Type,
|
| 25 |
+
TypeVar,
|
| 26 |
+
Union,
|
| 27 |
+
ValuesView as ValuesView,
|
| 28 |
+
overload,
|
| 29 |
+
)
|
| 30 |
+
|
| 31 |
+
Set = AbstractSet
|
| 32 |
+
|
| 33 |
+
_S = TypeVar("_S")
|
| 34 |
+
_T = TypeVar("_T")
|
| 35 |
+
_KT = TypeVar("_KT")
|
| 36 |
+
_VT = TypeVar("_VT")
|
| 37 |
+
|
| 38 |
+
# namedtuple is special-cased in the type checker; the initializer is ignored.
|
| 39 |
+
def namedtuple(
|
| 40 |
+
typename: Union[str, unicode],
|
| 41 |
+
field_names: Union[str, unicode, Iterable[Union[str, unicode]]],
|
| 42 |
+
verbose: bool = ...,
|
| 43 |
+
rename: bool = ...,
|
| 44 |
+
) -> Type[Tuple[Any, ...]]: ...
|
| 45 |
+
|
| 46 |
+
class deque(Sized, Iterable[_T], Reversible[_T], Generic[_T]):
|
| 47 |
+
def __init__(self, iterable: Iterable[_T] = ..., maxlen: int = ...) -> None: ...
|
| 48 |
+
@property
|
| 49 |
+
def maxlen(self) -> Optional[int]: ...
|
| 50 |
+
def append(self, x: _T) -> None: ...
|
| 51 |
+
def appendleft(self, x: _T) -> None: ...
|
| 52 |
+
def clear(self) -> None: ...
|
| 53 |
+
def count(self, x: _T) -> int: ...
|
| 54 |
+
def extend(self, iterable: Iterable[_T]) -> None: ...
|
| 55 |
+
def extendleft(self, iterable: Iterable[_T]) -> None: ...
|
| 56 |
+
def pop(self) -> _T: ...
|
| 57 |
+
def popleft(self) -> _T: ...
|
| 58 |
+
def remove(self, value: _T) -> None: ...
|
| 59 |
+
def reverse(self) -> None: ...
|
| 60 |
+
def rotate(self, n: int = ...) -> None: ...
|
| 61 |
+
def __len__(self) -> int: ...
|
| 62 |
+
def __iter__(self) -> Iterator[_T]: ...
|
| 63 |
+
def __str__(self) -> str: ...
|
| 64 |
+
def __hash__(self) -> int: ...
|
| 65 |
+
def __getitem__(self, i: int) -> _T: ...
|
| 66 |
+
def __setitem__(self, i: int, x: _T) -> None: ...
|
| 67 |
+
def __contains__(self, o: _T) -> bool: ...
|
| 68 |
+
def __reversed__(self) -> Iterator[_T]: ...
|
| 69 |
+
def __iadd__(self: _S, iterable: Iterable[_T]) -> _S: ...
|
| 70 |
+
|
| 71 |
+
class Counter(Dict[_T, int], Generic[_T]):
|
| 72 |
+
@overload
|
| 73 |
+
def __init__(self, **kwargs: int) -> None: ...
|
| 74 |
+
@overload
|
| 75 |
+
def __init__(self, mapping: Mapping[_T, int]) -> None: ...
|
| 76 |
+
@overload
|
| 77 |
+
def __init__(self, iterable: Iterable[_T]) -> None: ...
|
| 78 |
+
def copy(self: _S) -> _S: ...
|
| 79 |
+
def elements(self) -> Iterator[_T]: ...
|
| 80 |
+
def most_common(self, n: Optional[int] = ...) -> List[Tuple[_T, int]]: ...
|
| 81 |
+
@overload
|
| 82 |
+
def subtract(self, __mapping: Mapping[_T, int]) -> None: ...
|
| 83 |
+
@overload
|
| 84 |
+
def subtract(self, iterable: Iterable[_T]) -> None: ...
|
| 85 |
+
# The Iterable[Tuple[...]] argument type is not actually desirable
|
| 86 |
+
# (the tuples will be added as keys, breaking type safety) but
|
| 87 |
+
# it's included so that the signature is compatible with
|
| 88 |
+
# Dict.update. Not sure if we should use '# type: ignore' instead
|
| 89 |
+
# and omit the type from the union.
|
| 90 |
+
@overload
|
| 91 |
+
def update(self, __m: Mapping[_T, int], **kwargs: int) -> None: ...
|
| 92 |
+
@overload
|
| 93 |
+
def update(self, __m: Union[Iterable[_T], Iterable[Tuple[_T, int]]], **kwargs: int) -> None: ...
|
| 94 |
+
@overload
|
| 95 |
+
def update(self, **kwargs: int) -> None: ...
|
| 96 |
+
def __add__(self, other: Counter[_T]) -> Counter[_T]: ...
|
| 97 |
+
def __sub__(self, other: Counter[_T]) -> Counter[_T]: ...
|
| 98 |
+
def __and__(self, other: Counter[_T]) -> Counter[_T]: ...
|
| 99 |
+
def __or__(self, other: Counter[_T]) -> Counter[_T]: ...
|
| 100 |
+
def __iadd__(self, other: Counter[_T]) -> Counter[_T]: ...
|
| 101 |
+
def __isub__(self, other: Counter[_T]) -> Counter[_T]: ...
|
| 102 |
+
def __iand__(self, other: Counter[_T]) -> Counter[_T]: ...
|
| 103 |
+
def __ior__(self, other: Counter[_T]) -> Counter[_T]: ...
|
| 104 |
+
|
| 105 |
+
class OrderedDict(Dict[_KT, _VT], Reversible[_KT], Generic[_KT, _VT]):
|
| 106 |
+
def popitem(self, last: bool = ...) -> Tuple[_KT, _VT]: ...
|
| 107 |
+
def copy(self: _S) -> _S: ...
|
| 108 |
+
def __reversed__(self) -> Iterator[_KT]: ...
|
| 109 |
+
|
| 110 |
+
class defaultdict(Dict[_KT, _VT], Generic[_KT, _VT]):
|
| 111 |
+
default_factory: Callable[[], _VT]
|
| 112 |
+
@overload
|
| 113 |
+
def __init__(self, **kwargs: _VT) -> None: ...
|
| 114 |
+
@overload
|
| 115 |
+
def __init__(self, default_factory: Optional[Callable[[], _VT]]) -> None: ...
|
| 116 |
+
@overload
|
| 117 |
+
def __init__(self, default_factory: Optional[Callable[[], _VT]], **kwargs: _VT) -> None: ...
|
| 118 |
+
@overload
|
| 119 |
+
def __init__(self, default_factory: Optional[Callable[[], _VT]], map: Mapping[_KT, _VT]) -> None: ...
|
| 120 |
+
@overload
|
| 121 |
+
def __init__(self, default_factory: Optional[Callable[[], _VT]], map: Mapping[_KT, _VT], **kwargs: _VT) -> None: ...
|
| 122 |
+
@overload
|
| 123 |
+
def __init__(self, default_factory: Optional[Callable[[], _VT]], iterable: Iterable[Tuple[_KT, _VT]]) -> None: ...
|
| 124 |
+
@overload
|
| 125 |
+
def __init__(
|
| 126 |
+
self, default_factory: Optional[Callable[[], _VT]], iterable: Iterable[Tuple[_KT, _VT]], **kwargs: _VT
|
| 127 |
+
) -> None: ...
|
| 128 |
+
def __missing__(self, key: _KT) -> _VT: ...
|
| 129 |
+
def copy(self: _S) -> _S: ...
|
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/2/commands.pyi
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from typing import AnyStr, Text, Tuple, overload
|
| 2 |
+
|
| 3 |
+
def getstatus(file: Text) -> str: ...
|
| 4 |
+
def getoutput(cmd: Text) -> str: ...
|
| 5 |
+
def getstatusoutput(cmd: Text) -> Tuple[int, str]: ...
|
| 6 |
+
@overload
|
| 7 |
+
def mk2arg(head: bytes, x: bytes) -> bytes: ...
|
| 8 |
+
@overload
|
| 9 |
+
def mk2arg(head: Text, x: Text) -> Text: ...
|
| 10 |
+
def mkarg(x: AnyStr) -> AnyStr: ...
|
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/2/compileall.pyi
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from _typeshed import AnyPath
|
| 2 |
+
from typing import Any, Optional, Pattern
|
| 3 |
+
|
| 4 |
+
# rx can be any object with a 'search' method; once we have Protocols we can change the type
|
| 5 |
+
def compile_dir(
|
| 6 |
+
dir: AnyPath,
|
| 7 |
+
maxlevels: int = ...,
|
| 8 |
+
ddir: Optional[AnyPath] = ...,
|
| 9 |
+
force: bool = ...,
|
| 10 |
+
rx: Optional[Pattern[Any]] = ...,
|
| 11 |
+
quiet: int = ...,
|
| 12 |
+
) -> int: ...
|
| 13 |
+
def compile_file(
|
| 14 |
+
fullname: AnyPath, ddir: Optional[AnyPath] = ..., force: bool = ..., rx: Optional[Pattern[Any]] = ..., quiet: int = ...
|
| 15 |
+
) -> int: ...
|
| 16 |
+
def compile_path(skip_curdir: bool = ..., maxlevels: int = ..., force: bool = ..., quiet: int = ...) -> int: ...
|
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/2/distutils/command/bdist_dumb.pyi
ADDED
|
File without changes
|
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/2/distutils/command/bdist_msi.pyi
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from distutils.cmd import Command
|
| 2 |
+
|
| 3 |
+
class bdist_msi(Command):
|
| 4 |
+
def initialize_options(self) -> None: ...
|
| 5 |
+
def finalize_options(self) -> None: ...
|
| 6 |
+
def run(self) -> None: ...
|
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/2/distutils/command/bdist_wininst.pyi
ADDED
|
File without changes
|
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/2/distutils/command/build_clib.pyi
ADDED
|
File without changes
|
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/2/distutils/command/build_ext.pyi
ADDED
|
File without changes
|
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/2/distutils/command/install_lib.pyi
ADDED
|
File without changes
|
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/2/email/__init__.pyi
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from typing import IO, Any, AnyStr
|
| 2 |
+
|
| 3 |
+
def message_from_string(s: AnyStr, *args, **kwargs): ...
|
| 4 |
+
def message_from_bytes(s: str, *args, **kwargs): ...
|
| 5 |
+
def message_from_file(fp: IO[AnyStr], *args, **kwargs): ...
|
| 6 |
+
def message_from_binary_file(fp: IO[str], *args, **kwargs): ...
|
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/2/email/_parseaddr.pyi
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from typing import Any, Optional
|
| 2 |
+
|
| 3 |
+
def parsedate_tz(data): ...
|
| 4 |
+
def parsedate(data): ...
|
| 5 |
+
def mktime_tz(data): ...
|
| 6 |
+
def quote(str): ...
|
| 7 |
+
|
| 8 |
+
class AddrlistClass:
|
| 9 |
+
specials: Any
|
| 10 |
+
pos: Any
|
| 11 |
+
LWS: Any
|
| 12 |
+
CR: Any
|
| 13 |
+
FWS: Any
|
| 14 |
+
atomends: Any
|
| 15 |
+
phraseends: Any
|
| 16 |
+
field: Any
|
| 17 |
+
commentlist: Any
|
| 18 |
+
def __init__(self, field): ...
|
| 19 |
+
def gotonext(self): ...
|
| 20 |
+
def getaddrlist(self): ...
|
| 21 |
+
def getaddress(self): ...
|
| 22 |
+
def getrouteaddr(self): ...
|
| 23 |
+
def getaddrspec(self): ...
|
| 24 |
+
def getdomain(self): ...
|
| 25 |
+
def getdelimited(self, beginchar, endchars, allowcomments: bool = ...): ...
|
| 26 |
+
def getquote(self): ...
|
| 27 |
+
def getcomment(self): ...
|
| 28 |
+
def getdomainliteral(self): ...
|
| 29 |
+
def getatom(self, atomends: Optional[Any] = ...): ...
|
| 30 |
+
def getphraselist(self): ...
|
| 31 |
+
|
| 32 |
+
class AddressList(AddrlistClass):
|
| 33 |
+
addresslist: Any
|
| 34 |
+
def __init__(self, field): ...
|
| 35 |
+
def __len__(self): ...
|
| 36 |
+
def __add__(self, other): ...
|
| 37 |
+
def __iadd__(self, other): ...
|
| 38 |
+
def __sub__(self, other): ...
|
| 39 |
+
def __isub__(self, other): ...
|
| 40 |
+
def __getitem__(self, index): ...
|
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/2/email/base64mime.pyi
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
def base64_len(s: bytes) -> int: ...
|
| 2 |
+
def header_encode(header, charset=..., keep_eols=..., maxlinelen=..., eol=...): ...
|
| 3 |
+
def encode(s, binary=..., maxlinelen=..., eol=...): ...
|
| 4 |
+
|
| 5 |
+
body_encode = encode
|
| 6 |
+
encodestring = encode
|
| 7 |
+
|
| 8 |
+
def decode(s, convert_eols=...): ...
|
| 9 |
+
|
| 10 |
+
body_decode = decode
|
| 11 |
+
decodestring = decode
|
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/2/email/charset.pyi
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
def add_charset(charset, header_enc=..., body_enc=..., output_charset=...) -> None: ...
|
| 2 |
+
def add_alias(alias, canonical) -> None: ...
|
| 3 |
+
def add_codec(charset, codecname) -> None: ...
|
| 4 |
+
|
| 5 |
+
QP: int # undocumented
|
| 6 |
+
BASE64: int # undocumented
|
| 7 |
+
SHORTEST: int # undocumented
|
| 8 |
+
|
| 9 |
+
class Charset:
|
| 10 |
+
input_charset = ...
|
| 11 |
+
header_encoding = ...
|
| 12 |
+
body_encoding = ...
|
| 13 |
+
output_charset = ...
|
| 14 |
+
input_codec = ...
|
| 15 |
+
output_codec = ...
|
| 16 |
+
def __init__(self, input_charset=...) -> None: ...
|
| 17 |
+
def __eq__(self, other): ...
|
| 18 |
+
def __ne__(self, other): ...
|
| 19 |
+
def get_body_encoding(self): ...
|
| 20 |
+
def convert(self, s): ...
|
| 21 |
+
def to_splittable(self, s): ...
|
| 22 |
+
def from_splittable(self, ustr, to_output: bool = ...): ...
|
| 23 |
+
def get_output_charset(self): ...
|
| 24 |
+
def encoded_header_len(self, s): ...
|
| 25 |
+
def header_encode(self, s, convert: bool = ...): ...
|
| 26 |
+
def body_encode(self, s, convert: bool = ...): ...
|
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/2/email/feedparser.pyi
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
class BufferedSubFile:
|
| 2 |
+
def __init__(self) -> None: ...
|
| 3 |
+
def push_eof_matcher(self, pred) -> None: ...
|
| 4 |
+
def pop_eof_matcher(self): ...
|
| 5 |
+
def close(self) -> None: ...
|
| 6 |
+
def readline(self): ...
|
| 7 |
+
def unreadline(self, line) -> None: ...
|
| 8 |
+
def push(self, data): ...
|
| 9 |
+
def pushlines(self, lines) -> None: ...
|
| 10 |
+
def is_closed(self): ...
|
| 11 |
+
def __iter__(self): ...
|
| 12 |
+
def next(self): ...
|
| 13 |
+
|
| 14 |
+
class FeedParser:
|
| 15 |
+
def __init__(self, _factory=...) -> None: ...
|
| 16 |
+
def feed(self, data) -> None: ...
|
| 17 |
+
def close(self): ...
|
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/2/email/header.pyi
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
def decode_header(header): ...
|
| 2 |
+
def make_header(decoded_seq, maxlinelen=..., header_name=..., continuation_ws=...): ...
|
| 3 |
+
|
| 4 |
+
class Header:
|
| 5 |
+
def __init__(self, s=..., charset=..., maxlinelen=..., header_name=..., continuation_ws=..., errors=...) -> None: ...
|
| 6 |
+
def __unicode__(self): ...
|
| 7 |
+
def __eq__(self, other): ...
|
| 8 |
+
def __ne__(self, other): ...
|
| 9 |
+
def append(self, s, charset=..., errors=...) -> None: ...
|
| 10 |
+
def encode(self, splitchars=...): ...
|
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/2/email/message.pyi
ADDED
|
@@ -0,0 +1,45 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from typing import Any, Generator
|
| 2 |
+
|
| 3 |
+
class Message:
|
| 4 |
+
preamble = ...
|
| 5 |
+
epilogue = ...
|
| 6 |
+
defects = ...
|
| 7 |
+
def __init__(self): ...
|
| 8 |
+
def as_string(self, unixfrom=...): ...
|
| 9 |
+
def is_multipart(self) -> bool: ...
|
| 10 |
+
def set_unixfrom(self, unixfrom) -> None: ...
|
| 11 |
+
def get_unixfrom(self): ...
|
| 12 |
+
def attach(self, payload) -> None: ...
|
| 13 |
+
def get_payload(self, i=..., decode: bool = ...): ...
|
| 14 |
+
def set_payload(self, payload, charset=...) -> None: ...
|
| 15 |
+
def set_charset(self, charset): ...
|
| 16 |
+
def get_charset(self): ...
|
| 17 |
+
def __len__(self): ...
|
| 18 |
+
def __getitem__(self, name): ...
|
| 19 |
+
def __setitem__(self, name, val) -> None: ...
|
| 20 |
+
def __delitem__(self, name) -> None: ...
|
| 21 |
+
def __contains__(self, name): ...
|
| 22 |
+
def has_key(self, name) -> bool: ...
|
| 23 |
+
def keys(self): ...
|
| 24 |
+
def values(self): ...
|
| 25 |
+
def items(self): ...
|
| 26 |
+
def get(self, name, failobj=...): ...
|
| 27 |
+
def get_all(self, name, failobj=...): ...
|
| 28 |
+
def add_header(self, _name, _value, **_params) -> None: ...
|
| 29 |
+
def replace_header(self, _name, _value) -> None: ...
|
| 30 |
+
def get_content_type(self): ...
|
| 31 |
+
def get_content_maintype(self): ...
|
| 32 |
+
def get_content_subtype(self): ...
|
| 33 |
+
def get_default_type(self): ...
|
| 34 |
+
def set_default_type(self, ctype) -> None: ...
|
| 35 |
+
def get_params(self, failobj=..., header=..., unquote: bool = ...): ...
|
| 36 |
+
def get_param(self, param, failobj=..., header=..., unquote: bool = ...): ...
|
| 37 |
+
def set_param(self, param, value, header=..., requote: bool = ..., charset=..., language=...) -> None: ...
|
| 38 |
+
def del_param(self, param, header=..., requote: bool = ...): ...
|
| 39 |
+
def set_type(self, type, header=..., requote: bool = ...): ...
|
| 40 |
+
def get_filename(self, failobj=...): ...
|
| 41 |
+
def get_boundary(self, failobj=...): ...
|
| 42 |
+
def set_boundary(self, boundary) -> None: ...
|
| 43 |
+
def get_content_charset(self, failobj=...): ...
|
| 44 |
+
def get_charsets(self, failobj=...): ...
|
| 45 |
+
def walk(self) -> Generator[Any, Any, Any]: ...
|
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/2/email/parser.pyi
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from .feedparser import FeedParser as FeedParser # not in __all__ but listed in documentation
|
| 2 |
+
|
| 3 |
+
class Parser:
|
| 4 |
+
def __init__(self, *args, **kws) -> None: ...
|
| 5 |
+
def parse(self, fp, headersonly: bool = ...): ...
|
| 6 |
+
def parsestr(self, text, headersonly: bool = ...): ...
|
| 7 |
+
|
| 8 |
+
class HeaderParser(Parser):
|
| 9 |
+
def parse(self, fp, headersonly: bool = ...): ...
|
| 10 |
+
def parsestr(self, text, headersonly: bool = ...): ...
|
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/2/email/quoprimime.pyi
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
def header_quopri_check(c): ...
|
| 2 |
+
def body_quopri_check(c): ...
|
| 3 |
+
def header_quopri_len(s): ...
|
| 4 |
+
def body_quopri_len(str): ...
|
| 5 |
+
def unquote(s): ...
|
| 6 |
+
def quote(c): ...
|
| 7 |
+
def header_encode(header, charset: str = ..., keep_eols: bool = ..., maxlinelen: int = ..., eol=...): ...
|
| 8 |
+
def encode(body, binary: bool = ..., maxlinelen: int = ..., eol=...): ...
|
| 9 |
+
|
| 10 |
+
body_encode = encode
|
| 11 |
+
encodestring = encode
|
| 12 |
+
|
| 13 |
+
def decode(encoded, eol=...): ...
|
| 14 |
+
|
| 15 |
+
body_decode = decode
|
| 16 |
+
decodestring = decode
|
| 17 |
+
|
| 18 |
+
def header_decode(s): ...
|
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/2/email/utils.pyi
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from email._parseaddr import (
|
| 2 |
+
AddressList as _AddressList,
|
| 3 |
+
mktime_tz as mktime_tz,
|
| 4 |
+
parsedate as _parsedate,
|
| 5 |
+
parsedate_tz as _parsedate_tz,
|
| 6 |
+
)
|
| 7 |
+
from quopri import decodestring as _qdecode
|
| 8 |
+
from typing import Any, Optional
|
| 9 |
+
|
| 10 |
+
def formataddr(pair): ...
|
| 11 |
+
def getaddresses(fieldvalues): ...
|
| 12 |
+
def formatdate(timeval: Optional[Any] = ..., localtime: bool = ..., usegmt: bool = ...): ...
|
| 13 |
+
def make_msgid(idstring: Optional[Any] = ...): ...
|
| 14 |
+
def parsedate(data): ...
|
| 15 |
+
def parsedate_tz(data): ...
|
| 16 |
+
def parseaddr(addr): ...
|
| 17 |
+
def unquote(str): ...
|
| 18 |
+
def decode_rfc2231(s): ...
|
| 19 |
+
def encode_rfc2231(s, charset: Optional[Any] = ..., language: Optional[Any] = ...): ...
|
| 20 |
+
def decode_params(params): ...
|
| 21 |
+
def collapse_rfc2231_value(value, errors=..., fallback_charset=...): ...
|
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/2/httplib.pyi
ADDED
|
@@ -0,0 +1,218 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import mimetools
|
| 2 |
+
import ssl
|
| 3 |
+
from typing import Any, Dict, Optional, Protocol
|
| 4 |
+
|
| 5 |
+
class HTTPMessage(mimetools.Message):
|
| 6 |
+
def addcontinue(self, key: str, more: str) -> None: ...
|
| 7 |
+
dict: Dict[str, str]
|
| 8 |
+
def addheader(self, key: str, value: str) -> None: ...
|
| 9 |
+
unixfrom: str
|
| 10 |
+
headers: Any
|
| 11 |
+
status: str
|
| 12 |
+
seekable: bool
|
| 13 |
+
def readheaders(self) -> None: ...
|
| 14 |
+
|
| 15 |
+
class HTTPResponse:
|
| 16 |
+
fp: Any
|
| 17 |
+
debuglevel: Any
|
| 18 |
+
strict: Any
|
| 19 |
+
msg: Any
|
| 20 |
+
version: Any
|
| 21 |
+
status: Any
|
| 22 |
+
reason: Any
|
| 23 |
+
chunked: Any
|
| 24 |
+
chunk_left: Any
|
| 25 |
+
length: Any
|
| 26 |
+
will_close: Any
|
| 27 |
+
def __init__(
|
| 28 |
+
self, sock, debuglevel: int = ..., strict: int = ..., method: Optional[Any] = ..., buffering: bool = ...
|
| 29 |
+
) -> None: ...
|
| 30 |
+
def begin(self): ...
|
| 31 |
+
def close(self): ...
|
| 32 |
+
def isclosed(self): ...
|
| 33 |
+
def read(self, amt: Optional[Any] = ...): ...
|
| 34 |
+
def fileno(self): ...
|
| 35 |
+
def getheader(self, name, default: Optional[Any] = ...): ...
|
| 36 |
+
def getheaders(self): ...
|
| 37 |
+
|
| 38 |
+
# This is an API stub only for HTTPConnection and HTTPSConnection, as used in
|
| 39 |
+
# urllib2.AbstractHTTPHandler.do_open, which takes either the class
|
| 40 |
+
# HTTPConnection or the class HTTPSConnection, *not* an instance of either
|
| 41 |
+
# class. do_open does not use all of the parameters of HTTPConnection.__init__
|
| 42 |
+
# or HTTPSConnection.__init__, so HTTPConnectionProtocol only implements the
|
| 43 |
+
# parameters that do_open does use.
|
| 44 |
+
class HTTPConnectionProtocol(Protocol):
|
| 45 |
+
def __call__(self, host: str, timeout: int = ..., **http_con_args: Any) -> HTTPConnection: ...
|
| 46 |
+
|
| 47 |
+
class HTTPConnection:
|
| 48 |
+
response_class: Any
|
| 49 |
+
default_port: Any
|
| 50 |
+
auto_open: Any
|
| 51 |
+
debuglevel: Any
|
| 52 |
+
strict: Any
|
| 53 |
+
timeout: Any
|
| 54 |
+
source_address: Any
|
| 55 |
+
sock: Any
|
| 56 |
+
host: str = ...
|
| 57 |
+
port: int = ...
|
| 58 |
+
def __init__(
|
| 59 |
+
self, host, port: Optional[Any] = ..., strict: Optional[Any] = ..., timeout=..., source_address: Optional[Any] = ...
|
| 60 |
+
) -> None: ...
|
| 61 |
+
def set_tunnel(self, host, port: Optional[Any] = ..., headers: Optional[Any] = ...): ...
|
| 62 |
+
def set_debuglevel(self, level): ...
|
| 63 |
+
def connect(self): ...
|
| 64 |
+
def close(self): ...
|
| 65 |
+
def send(self, data): ...
|
| 66 |
+
def putrequest(self, method, url, skip_host: int = ..., skip_accept_encoding: int = ...): ...
|
| 67 |
+
def putheader(self, header, *values): ...
|
| 68 |
+
def endheaders(self, message_body: Optional[Any] = ...): ...
|
| 69 |
+
def request(self, method, url, body: Optional[Any] = ..., headers=...): ...
|
| 70 |
+
def getresponse(self, buffering: bool = ...): ...
|
| 71 |
+
|
| 72 |
+
class HTTP:
|
| 73 |
+
debuglevel: Any
|
| 74 |
+
def __init__(self, host: str = ..., port: Optional[Any] = ..., strict: Optional[Any] = ...) -> None: ...
|
| 75 |
+
def connect(self, host: Optional[Any] = ..., port: Optional[Any] = ...): ...
|
| 76 |
+
def getfile(self): ...
|
| 77 |
+
file: Any
|
| 78 |
+
headers: Any
|
| 79 |
+
def getreply(self, buffering: bool = ...): ...
|
| 80 |
+
def close(self): ...
|
| 81 |
+
|
| 82 |
+
class HTTPSConnection(HTTPConnection):
|
| 83 |
+
default_port: Any
|
| 84 |
+
key_file: Any
|
| 85 |
+
cert_file: Any
|
| 86 |
+
def __init__(
|
| 87 |
+
self,
|
| 88 |
+
host,
|
| 89 |
+
port: Optional[Any] = ...,
|
| 90 |
+
key_file: Optional[Any] = ...,
|
| 91 |
+
cert_file: Optional[Any] = ...,
|
| 92 |
+
strict: Optional[Any] = ...,
|
| 93 |
+
timeout=...,
|
| 94 |
+
source_address: Optional[Any] = ...,
|
| 95 |
+
context: Optional[Any] = ...,
|
| 96 |
+
) -> None: ...
|
| 97 |
+
sock: Any
|
| 98 |
+
def connect(self): ...
|
| 99 |
+
|
| 100 |
+
class HTTPS(HTTP):
|
| 101 |
+
key_file: Any
|
| 102 |
+
cert_file: Any
|
| 103 |
+
def __init__(
|
| 104 |
+
self,
|
| 105 |
+
host: str = ...,
|
| 106 |
+
port: Optional[Any] = ...,
|
| 107 |
+
key_file: Optional[Any] = ...,
|
| 108 |
+
cert_file: Optional[Any] = ...,
|
| 109 |
+
strict: Optional[Any] = ...,
|
| 110 |
+
context: Optional[Any] = ...,
|
| 111 |
+
) -> None: ...
|
| 112 |
+
|
| 113 |
+
class HTTPException(Exception): ...
|
| 114 |
+
class NotConnected(HTTPException): ...
|
| 115 |
+
class InvalidURL(HTTPException): ...
|
| 116 |
+
|
| 117 |
+
class UnknownProtocol(HTTPException):
|
| 118 |
+
args: Any
|
| 119 |
+
version: Any
|
| 120 |
+
def __init__(self, version) -> None: ...
|
| 121 |
+
|
| 122 |
+
class UnknownTransferEncoding(HTTPException): ...
|
| 123 |
+
class UnimplementedFileMode(HTTPException): ...
|
| 124 |
+
|
| 125 |
+
class IncompleteRead(HTTPException):
|
| 126 |
+
args: Any
|
| 127 |
+
partial: Any
|
| 128 |
+
expected: Any
|
| 129 |
+
def __init__(self, partial, expected: Optional[Any] = ...) -> None: ...
|
| 130 |
+
|
| 131 |
+
class ImproperConnectionState(HTTPException): ...
|
| 132 |
+
class CannotSendRequest(ImproperConnectionState): ...
|
| 133 |
+
class CannotSendHeader(ImproperConnectionState): ...
|
| 134 |
+
class ResponseNotReady(ImproperConnectionState): ...
|
| 135 |
+
|
| 136 |
+
class BadStatusLine(HTTPException):
|
| 137 |
+
args: Any
|
| 138 |
+
line: Any
|
| 139 |
+
def __init__(self, line) -> None: ...
|
| 140 |
+
|
| 141 |
+
class LineTooLong(HTTPException):
|
| 142 |
+
def __init__(self, line_type) -> None: ...
|
| 143 |
+
|
| 144 |
+
error: Any
|
| 145 |
+
|
| 146 |
+
class LineAndFileWrapper:
|
| 147 |
+
def __init__(self, line, file) -> None: ...
|
| 148 |
+
def __getattr__(self, attr): ...
|
| 149 |
+
def read(self, amt: Optional[Any] = ...): ...
|
| 150 |
+
def readline(self): ...
|
| 151 |
+
def readlines(self, size: Optional[Any] = ...): ...
|
| 152 |
+
|
| 153 |
+
# Constants
|
| 154 |
+
|
| 155 |
+
responses: Dict[int, str]
|
| 156 |
+
|
| 157 |
+
HTTP_PORT: int
|
| 158 |
+
HTTPS_PORT: int
|
| 159 |
+
|
| 160 |
+
# status codes
|
| 161 |
+
# informational
|
| 162 |
+
CONTINUE: int
|
| 163 |
+
SWITCHING_PROTOCOLS: int
|
| 164 |
+
PROCESSING: int
|
| 165 |
+
|
| 166 |
+
# successful
|
| 167 |
+
OK: int
|
| 168 |
+
CREATED: int
|
| 169 |
+
ACCEPTED: int
|
| 170 |
+
NON_AUTHORITATIVE_INFORMATION: int
|
| 171 |
+
NO_CONTENT: int
|
| 172 |
+
RESET_CONTENT: int
|
| 173 |
+
PARTIAL_CONTENT: int
|
| 174 |
+
MULTI_STATUS: int
|
| 175 |
+
IM_USED: int
|
| 176 |
+
|
| 177 |
+
# redirection
|
| 178 |
+
MULTIPLE_CHOICES: int
|
| 179 |
+
MOVED_PERMANENTLY: int
|
| 180 |
+
FOUND: int
|
| 181 |
+
SEE_OTHER: int
|
| 182 |
+
NOT_MODIFIED: int
|
| 183 |
+
USE_PROXY: int
|
| 184 |
+
TEMPORARY_REDIRECT: int
|
| 185 |
+
|
| 186 |
+
# client error
|
| 187 |
+
BAD_REQUEST: int
|
| 188 |
+
UNAUTHORIZED: int
|
| 189 |
+
PAYMENT_REQUIRED: int
|
| 190 |
+
FORBIDDEN: int
|
| 191 |
+
NOT_FOUND: int
|
| 192 |
+
METHOD_NOT_ALLOWED: int
|
| 193 |
+
NOT_ACCEPTABLE: int
|
| 194 |
+
PROXY_AUTHENTICATION_REQUIRED: int
|
| 195 |
+
REQUEST_TIMEOUT: int
|
| 196 |
+
CONFLICT: int
|
| 197 |
+
GONE: int
|
| 198 |
+
LENGTH_REQUIRED: int
|
| 199 |
+
PRECONDITION_FAILED: int
|
| 200 |
+
REQUEST_ENTITY_TOO_LARGE: int
|
| 201 |
+
REQUEST_URI_TOO_LONG: int
|
| 202 |
+
UNSUPPORTED_MEDIA_TYPE: int
|
| 203 |
+
REQUESTED_RANGE_NOT_SATISFIABLE: int
|
| 204 |
+
EXPECTATION_FAILED: int
|
| 205 |
+
UNPROCESSABLE_ENTITY: int
|
| 206 |
+
LOCKED: int
|
| 207 |
+
FAILED_DEPENDENCY: int
|
| 208 |
+
UPGRADE_REQUIRED: int
|
| 209 |
+
|
| 210 |
+
# server error
|
| 211 |
+
INTERNAL_SERVER_ERROR: int
|
| 212 |
+
NOT_IMPLEMENTED: int
|
| 213 |
+
BAD_GATEWAY: int
|
| 214 |
+
SERVICE_UNAVAILABLE: int
|
| 215 |
+
GATEWAY_TIMEOUT: int
|
| 216 |
+
HTTP_VERSION_NOT_SUPPORTED: int
|
| 217 |
+
INSUFFICIENT_STORAGE: int
|
| 218 |
+
NOT_EXTENDED: int
|
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/2/itertools.pyi
ADDED
|
@@ -0,0 +1,164 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from typing import Any, Callable, Generic, Iterable, Iterator, Optional, Sequence, Tuple, TypeVar, Union, overload
|
| 2 |
+
|
| 3 |
+
_T = TypeVar("_T")
|
| 4 |
+
_S = TypeVar("_S")
|
| 5 |
+
|
| 6 |
+
def count(start: int = ..., step: int = ...) -> Iterator[int]: ... # more general types?
|
| 7 |
+
|
| 8 |
+
class cycle(Iterator[_T], Generic[_T]):
|
| 9 |
+
def __init__(self, iterable: Iterable[_T]) -> None: ...
|
| 10 |
+
def next(self) -> _T: ...
|
| 11 |
+
def __iter__(self) -> Iterator[_T]: ...
|
| 12 |
+
|
| 13 |
+
def repeat(object: _T, times: int = ...) -> Iterator[_T]: ...
|
| 14 |
+
|
| 15 |
+
class chain(Iterator[_T], Generic[_T]):
|
| 16 |
+
def __init__(self, *iterables: Iterable[_T]) -> None: ...
|
| 17 |
+
def next(self) -> _T: ...
|
| 18 |
+
def __iter__(self) -> Iterator[_T]: ...
|
| 19 |
+
@staticmethod
|
| 20 |
+
def from_iterable(iterable: Iterable[Iterable[_S]]) -> Iterator[_S]: ...
|
| 21 |
+
|
| 22 |
+
def compress(data: Iterable[_T], selectors: Iterable[Any]) -> Iterator[_T]: ...
|
| 23 |
+
def dropwhile(predicate: Callable[[_T], Any], iterable: Iterable[_T]) -> Iterator[_T]: ...
|
| 24 |
+
def ifilter(predicate: Optional[Callable[[_T], Any]], iterable: Iterable[_T]) -> Iterator[_T]: ...
|
| 25 |
+
def ifilterfalse(predicate: Optional[Callable[[_T], Any]], iterable: Iterable[_T]) -> Iterator[_T]: ...
|
| 26 |
+
@overload
|
| 27 |
+
def groupby(iterable: Iterable[_T], key: None = ...) -> Iterator[Tuple[_T, Iterator[_T]]]: ...
|
| 28 |
+
@overload
|
| 29 |
+
def groupby(iterable: Iterable[_T], key: Callable[[_T], _S]) -> Iterator[Tuple[_S, Iterator[_T]]]: ...
|
| 30 |
+
@overload
|
| 31 |
+
def islice(iterable: Iterable[_T], stop: Optional[int]) -> Iterator[_T]: ...
|
| 32 |
+
@overload
|
| 33 |
+
def islice(iterable: Iterable[_T], start: Optional[int], stop: Optional[int], step: Optional[int] = ...) -> Iterator[_T]: ...
|
| 34 |
+
|
| 35 |
+
_T1 = TypeVar("_T1")
|
| 36 |
+
_T2 = TypeVar("_T2")
|
| 37 |
+
_T3 = TypeVar("_T3")
|
| 38 |
+
_T4 = TypeVar("_T4")
|
| 39 |
+
_T5 = TypeVar("_T5")
|
| 40 |
+
_T6 = TypeVar("_T6")
|
| 41 |
+
@overload
|
| 42 |
+
def imap(func: Callable[[_T1], _S], iter1: Iterable[_T1]) -> Iterator[_S]: ...
|
| 43 |
+
@overload
|
| 44 |
+
def imap(func: Callable[[_T1, _T2], _S], iter1: Iterable[_T1], iter2: Iterable[_T2]) -> Iterator[_S]: ...
|
| 45 |
+
@overload
|
| 46 |
+
def imap(
|
| 47 |
+
func: Callable[[_T1, _T2, _T3], _S], iter1: Iterable[_T1], iter2: Iterable[_T2], iter3: Iterable[_T3]
|
| 48 |
+
) -> Iterator[_S]: ...
|
| 49 |
+
@overload
|
| 50 |
+
def imap(
|
| 51 |
+
func: Callable[[_T1, _T2, _T3, _T4], _S],
|
| 52 |
+
iter1: Iterable[_T1],
|
| 53 |
+
iter2: Iterable[_T2],
|
| 54 |
+
iter3: Iterable[_T3],
|
| 55 |
+
iter4: Iterable[_T4],
|
| 56 |
+
) -> Iterator[_S]: ...
|
| 57 |
+
@overload
|
| 58 |
+
def imap(
|
| 59 |
+
func: Callable[[_T1, _T2, _T3, _T4, _T5], _S],
|
| 60 |
+
iter1: Iterable[_T1],
|
| 61 |
+
iter2: Iterable[_T2],
|
| 62 |
+
iter3: Iterable[_T3],
|
| 63 |
+
iter4: Iterable[_T4],
|
| 64 |
+
iter5: Iterable[_T5],
|
| 65 |
+
) -> Iterator[_S]: ...
|
| 66 |
+
@overload
|
| 67 |
+
def imap(
|
| 68 |
+
func: Callable[[_T1, _T2, _T3, _T4, _T5, _T6], _S],
|
| 69 |
+
iter1: Iterable[_T1],
|
| 70 |
+
iter2: Iterable[_T2],
|
| 71 |
+
iter3: Iterable[_T3],
|
| 72 |
+
iter4: Iterable[_T4],
|
| 73 |
+
iter5: Iterable[_T5],
|
| 74 |
+
iter6: Iterable[_T6],
|
| 75 |
+
) -> Iterator[_S]: ...
|
| 76 |
+
@overload
|
| 77 |
+
def imap(
|
| 78 |
+
func: Callable[..., _S],
|
| 79 |
+
iter1: Iterable[Any],
|
| 80 |
+
iter2: Iterable[Any],
|
| 81 |
+
iter3: Iterable[Any],
|
| 82 |
+
iter4: Iterable[Any],
|
| 83 |
+
iter5: Iterable[Any],
|
| 84 |
+
iter6: Iterable[Any],
|
| 85 |
+
iter7: Iterable[Any],
|
| 86 |
+
*iterables: Iterable[Any],
|
| 87 |
+
) -> Iterator[_S]: ...
|
| 88 |
+
def starmap(func: Any, iterable: Iterable[Any]) -> Iterator[Any]: ...
|
| 89 |
+
def takewhile(predicate: Callable[[_T], Any], iterable: Iterable[_T]) -> Iterator[_T]: ...
|
| 90 |
+
def tee(iterable: Iterable[_T], n: int = ...) -> Tuple[Iterator[_T], ...]: ...
|
| 91 |
+
@overload
|
| 92 |
+
def izip(iter1: Iterable[_T1]) -> Iterator[Tuple[_T1]]: ...
|
| 93 |
+
@overload
|
| 94 |
+
def izip(iter1: Iterable[_T1], iter2: Iterable[_T2]) -> Iterator[Tuple[_T1, _T2]]: ...
|
| 95 |
+
@overload
|
| 96 |
+
def izip(iter1: Iterable[_T1], iter2: Iterable[_T2], iter3: Iterable[_T3]) -> Iterator[Tuple[_T1, _T2, _T3]]: ...
|
| 97 |
+
@overload
|
| 98 |
+
def izip(
|
| 99 |
+
iter1: Iterable[_T1], iter2: Iterable[_T2], iter3: Iterable[_T3], iter4: Iterable[_T4]
|
| 100 |
+
) -> Iterator[Tuple[_T1, _T2, _T3, _T4]]: ...
|
| 101 |
+
@overload
|
| 102 |
+
def izip(
|
| 103 |
+
iter1: Iterable[_T1], iter2: Iterable[_T2], iter3: Iterable[_T3], iter4: Iterable[_T4], iter5: Iterable[_T5]
|
| 104 |
+
) -> Iterator[Tuple[_T1, _T2, _T3, _T4, _T5]]: ...
|
| 105 |
+
@overload
|
| 106 |
+
def izip(
|
| 107 |
+
iter1: Iterable[_T1],
|
| 108 |
+
iter2: Iterable[_T2],
|
| 109 |
+
iter3: Iterable[_T3],
|
| 110 |
+
iter4: Iterable[_T4],
|
| 111 |
+
iter5: Iterable[_T5],
|
| 112 |
+
iter6: Iterable[_T6],
|
| 113 |
+
) -> Iterator[Tuple[_T1, _T2, _T3, _T4, _T5, _T6]]: ...
|
| 114 |
+
@overload
|
| 115 |
+
def izip(
|
| 116 |
+
iter1: Iterable[Any],
|
| 117 |
+
iter2: Iterable[Any],
|
| 118 |
+
iter3: Iterable[Any],
|
| 119 |
+
iter4: Iterable[Any],
|
| 120 |
+
iter5: Iterable[Any],
|
| 121 |
+
iter6: Iterable[Any],
|
| 122 |
+
iter7: Iterable[Any],
|
| 123 |
+
*iterables: Iterable[Any],
|
| 124 |
+
) -> Iterator[Tuple[Any, ...]]: ...
|
| 125 |
+
def izip_longest(*p: Iterable[Any], fillvalue: Any = ...) -> Iterator[Any]: ...
|
| 126 |
+
@overload
|
| 127 |
+
def product(iter1: Iterable[_T1]) -> Iterator[Tuple[_T1]]: ...
|
| 128 |
+
@overload
|
| 129 |
+
def product(iter1: Iterable[_T1], iter2: Iterable[_T2]) -> Iterator[Tuple[_T1, _T2]]: ...
|
| 130 |
+
@overload
|
| 131 |
+
def product(iter1: Iterable[_T1], iter2: Iterable[_T2], iter3: Iterable[_T3]) -> Iterator[Tuple[_T1, _T2, _T3]]: ...
|
| 132 |
+
@overload
|
| 133 |
+
def product(
|
| 134 |
+
iter1: Iterable[_T1], iter2: Iterable[_T2], iter3: Iterable[_T3], iter4: Iterable[_T4]
|
| 135 |
+
) -> Iterator[Tuple[_T1, _T2, _T3, _T4]]: ...
|
| 136 |
+
@overload
|
| 137 |
+
def product(
|
| 138 |
+
iter1: Iterable[_T1], iter2: Iterable[_T2], iter3: Iterable[_T3], iter4: Iterable[_T4], iter5: Iterable[_T5]
|
| 139 |
+
) -> Iterator[Tuple[_T1, _T2, _T3, _T4, _T5]]: ...
|
| 140 |
+
@overload
|
| 141 |
+
def product(
|
| 142 |
+
iter1: Iterable[_T1],
|
| 143 |
+
iter2: Iterable[_T2],
|
| 144 |
+
iter3: Iterable[_T3],
|
| 145 |
+
iter4: Iterable[_T4],
|
| 146 |
+
iter5: Iterable[_T5],
|
| 147 |
+
iter6: Iterable[_T6],
|
| 148 |
+
) -> Iterator[Tuple[_T1, _T2, _T3, _T4, _T5, _T6]]: ...
|
| 149 |
+
@overload
|
| 150 |
+
def product(
|
| 151 |
+
iter1: Iterable[Any],
|
| 152 |
+
iter2: Iterable[Any],
|
| 153 |
+
iter3: Iterable[Any],
|
| 154 |
+
iter4: Iterable[Any],
|
| 155 |
+
iter5: Iterable[Any],
|
| 156 |
+
iter6: Iterable[Any],
|
| 157 |
+
iter7: Iterable[Any],
|
| 158 |
+
*iterables: Iterable[Any],
|
| 159 |
+
) -> Iterator[Tuple[Any, ...]]: ...
|
| 160 |
+
@overload
|
| 161 |
+
def product(*iterables: Iterable[Any], repeat: int) -> Iterator[Tuple[Any, ...]]: ...
|
| 162 |
+
def permutations(iterable: Iterable[_T], r: int = ...) -> Iterator[Sequence[_T]]: ...
|
| 163 |
+
def combinations(iterable: Iterable[_T], r: int) -> Iterator[Sequence[_T]]: ...
|
| 164 |
+
def combinations_with_replacement(iterable: Iterable[_T], r: int) -> Iterator[Sequence[_T]]: ...
|
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/2/mutex.pyi
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from typing import Any, Callable, Deque, TypeVar
|
| 2 |
+
|
| 3 |
+
_ArgType = TypeVar("_ArgType")
|
| 4 |
+
|
| 5 |
+
class mutex:
|
| 6 |
+
locked: bool
|
| 7 |
+
queue: Deque[Any]
|
| 8 |
+
def __init__(self) -> None: ...
|
| 9 |
+
def test(self) -> bool: ...
|
| 10 |
+
def testandset(self) -> bool: ...
|
| 11 |
+
def lock(self, function: Callable[[_ArgType], Any], argument: _ArgType) -> None: ...
|
| 12 |
+
def unlock(self) -> None: ...
|
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/2/os2emxpath.pyi
ADDED
|
@@ -0,0 +1,85 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import os
|
| 2 |
+
import sys
|
| 3 |
+
from _typeshed import AnyPath, BytesPath, StrPath
|
| 4 |
+
from genericpath import exists as exists
|
| 5 |
+
from typing import Any, AnyStr, Callable, List, Optional, Sequence, Text, Tuple, TypeVar, overload
|
| 6 |
+
|
| 7 |
+
_T = TypeVar("_T")
|
| 8 |
+
|
| 9 |
+
# ----- os.path variables -----
|
| 10 |
+
supports_unicode_filenames: bool
|
| 11 |
+
# aliases (also in os)
|
| 12 |
+
curdir: str
|
| 13 |
+
pardir: str
|
| 14 |
+
sep: str
|
| 15 |
+
if sys.platform == "win32":
|
| 16 |
+
altsep: str
|
| 17 |
+
else:
|
| 18 |
+
altsep: Optional[str]
|
| 19 |
+
extsep: str
|
| 20 |
+
pathsep: str
|
| 21 |
+
defpath: str
|
| 22 |
+
devnull: str
|
| 23 |
+
|
| 24 |
+
# ----- os.path function stubs -----
|
| 25 |
+
def abspath(path: AnyStr) -> AnyStr: ...
|
| 26 |
+
def basename(p: AnyStr) -> AnyStr: ...
|
| 27 |
+
def dirname(p: AnyStr) -> AnyStr: ...
|
| 28 |
+
def expanduser(path: AnyStr) -> AnyStr: ...
|
| 29 |
+
def expandvars(path: AnyStr) -> AnyStr: ...
|
| 30 |
+
def normcase(s: AnyStr) -> AnyStr: ...
|
| 31 |
+
def normpath(path: AnyStr) -> AnyStr: ...
|
| 32 |
+
|
| 33 |
+
if sys.platform == "win32":
|
| 34 |
+
def realpath(path: AnyStr) -> AnyStr: ...
|
| 35 |
+
|
| 36 |
+
else:
|
| 37 |
+
def realpath(filename: AnyStr) -> AnyStr: ...
|
| 38 |
+
|
| 39 |
+
# NOTE: Empty lists results in '' (str) regardless of contained type.
|
| 40 |
+
# Also, in Python 2 mixed sequences of Text and bytes results in either Text or bytes
|
| 41 |
+
# So, fall back to Any
|
| 42 |
+
def commonprefix(m: Sequence[AnyPath]) -> Any: ...
|
| 43 |
+
def lexists(path: AnyPath) -> bool: ...
|
| 44 |
+
|
| 45 |
+
# These return float if os.stat_float_times() == True,
|
| 46 |
+
# but int is a subclass of float.
|
| 47 |
+
def getatime(filename: AnyPath) -> float: ...
|
| 48 |
+
def getmtime(filename: AnyPath) -> float: ...
|
| 49 |
+
def getctime(filename: AnyPath) -> float: ...
|
| 50 |
+
def getsize(filename: AnyPath) -> int: ...
|
| 51 |
+
def isabs(s: AnyPath) -> bool: ...
|
| 52 |
+
def isfile(path: AnyPath) -> bool: ...
|
| 53 |
+
def isdir(s: AnyPath) -> bool: ...
|
| 54 |
+
def islink(path: AnyPath) -> bool: ...
|
| 55 |
+
def ismount(path: AnyPath) -> bool: ...
|
| 56 |
+
|
| 57 |
+
# Make sure signatures are disjunct, and allow combinations of bytes and unicode.
|
| 58 |
+
# (Since Python 2 allows that, too)
|
| 59 |
+
# Note that e.g. os.path.join("a", "b", "c", "d", u"e") will still result in
|
| 60 |
+
# a type error.
|
| 61 |
+
@overload
|
| 62 |
+
def join(__p1: bytes, *p: bytes) -> bytes: ...
|
| 63 |
+
@overload
|
| 64 |
+
def join(__p1: bytes, __p2: bytes, __p3: bytes, __p4: Text, *p: AnyPath) -> Text: ...
|
| 65 |
+
@overload
|
| 66 |
+
def join(__p1: bytes, __p2: bytes, __p3: Text, *p: AnyPath) -> Text: ...
|
| 67 |
+
@overload
|
| 68 |
+
def join(__p1: bytes, __p2: Text, *p: AnyPath) -> Text: ...
|
| 69 |
+
@overload
|
| 70 |
+
def join(__p1: Text, *p: AnyPath) -> Text: ...
|
| 71 |
+
@overload
|
| 72 |
+
def relpath(path: BytesPath, start: Optional[BytesPath] = ...) -> bytes: ...
|
| 73 |
+
@overload
|
| 74 |
+
def relpath(path: StrPath, start: Optional[StrPath] = ...) -> Text: ...
|
| 75 |
+
def samefile(f1: AnyPath, f2: AnyPath) -> bool: ...
|
| 76 |
+
def sameopenfile(fp1: int, fp2: int) -> bool: ...
|
| 77 |
+
def samestat(s1: os.stat_result, s2: os.stat_result) -> bool: ...
|
| 78 |
+
def split(p: AnyStr) -> Tuple[AnyStr, AnyStr]: ...
|
| 79 |
+
def splitdrive(p: AnyStr) -> Tuple[AnyStr, AnyStr]: ...
|
| 80 |
+
def splitext(p: AnyStr) -> Tuple[AnyStr, AnyStr]: ...
|
| 81 |
+
|
| 82 |
+
if sys.platform == "win32":
|
| 83 |
+
def splitunc(p: AnyStr) -> Tuple[AnyStr, AnyStr]: ... # deprecated
|
| 84 |
+
|
| 85 |
+
def walk(path: AnyStr, visit: Callable[[_T, AnyStr, List[AnyStr]], Any], arg: _T) -> None: ...
|
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/2/spwd.pyi
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from typing import List, NamedTuple
|
| 2 |
+
|
| 3 |
+
class struct_spwd(NamedTuple):
|
| 4 |
+
sp_nam: str
|
| 5 |
+
sp_pwd: str
|
| 6 |
+
sp_lstchg: int
|
| 7 |
+
sp_min: int
|
| 8 |
+
sp_max: int
|
| 9 |
+
sp_warn: int
|
| 10 |
+
sp_inact: int
|
| 11 |
+
sp_expire: int
|
| 12 |
+
sp_flag: int
|
| 13 |
+
|
| 14 |
+
def getspall() -> List[struct_spwd]: ...
|
| 15 |
+
def getspnam(name: str) -> struct_spwd: ...
|
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/2/sre_constants.pyi
ADDED
|
@@ -0,0 +1,93 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from typing import Dict, List, TypeVar
|
| 2 |
+
|
| 3 |
+
MAGIC: int
|
| 4 |
+
MAXREPEAT: int
|
| 5 |
+
|
| 6 |
+
class error(Exception): ...
|
| 7 |
+
|
| 8 |
+
FAILURE: str
|
| 9 |
+
SUCCESS: str
|
| 10 |
+
ANY: str
|
| 11 |
+
ANY_ALL: str
|
| 12 |
+
ASSERT: str
|
| 13 |
+
ASSERT_NOT: str
|
| 14 |
+
AT: str
|
| 15 |
+
BIGCHARSET: str
|
| 16 |
+
BRANCH: str
|
| 17 |
+
CALL: str
|
| 18 |
+
CATEGORY: str
|
| 19 |
+
CHARSET: str
|
| 20 |
+
GROUPREF: str
|
| 21 |
+
GROUPREF_IGNORE: str
|
| 22 |
+
GROUPREF_EXISTS: str
|
| 23 |
+
IN: str
|
| 24 |
+
IN_IGNORE: str
|
| 25 |
+
INFO: str
|
| 26 |
+
JUMP: str
|
| 27 |
+
LITERAL: str
|
| 28 |
+
LITERAL_IGNORE: str
|
| 29 |
+
MARK: str
|
| 30 |
+
MAX_REPEAT: str
|
| 31 |
+
MAX_UNTIL: str
|
| 32 |
+
MIN_REPEAT: str
|
| 33 |
+
MIN_UNTIL: str
|
| 34 |
+
NEGATE: str
|
| 35 |
+
NOT_LITERAL: str
|
| 36 |
+
NOT_LITERAL_IGNORE: str
|
| 37 |
+
RANGE: str
|
| 38 |
+
REPEAT: str
|
| 39 |
+
REPEAT_ONE: str
|
| 40 |
+
SUBPATTERN: str
|
| 41 |
+
MIN_REPEAT_ONE: str
|
| 42 |
+
AT_BEGINNING: str
|
| 43 |
+
AT_BEGINNING_LINE: str
|
| 44 |
+
AT_BEGINNING_STRING: str
|
| 45 |
+
AT_BOUNDARY: str
|
| 46 |
+
AT_NON_BOUNDARY: str
|
| 47 |
+
AT_END: str
|
| 48 |
+
AT_END_LINE: str
|
| 49 |
+
AT_END_STRING: str
|
| 50 |
+
AT_LOC_BOUNDARY: str
|
| 51 |
+
AT_LOC_NON_BOUNDARY: str
|
| 52 |
+
AT_UNI_BOUNDARY: str
|
| 53 |
+
AT_UNI_NON_BOUNDARY: str
|
| 54 |
+
CATEGORY_DIGIT: str
|
| 55 |
+
CATEGORY_NOT_DIGIT: str
|
| 56 |
+
CATEGORY_SPACE: str
|
| 57 |
+
CATEGORY_NOT_SPACE: str
|
| 58 |
+
CATEGORY_WORD: str
|
| 59 |
+
CATEGORY_NOT_WORD: str
|
| 60 |
+
CATEGORY_LINEBREAK: str
|
| 61 |
+
CATEGORY_NOT_LINEBREAK: str
|
| 62 |
+
CATEGORY_LOC_WORD: str
|
| 63 |
+
CATEGORY_LOC_NOT_WORD: str
|
| 64 |
+
CATEGORY_UNI_DIGIT: str
|
| 65 |
+
CATEGORY_UNI_NOT_DIGIT: str
|
| 66 |
+
CATEGORY_UNI_SPACE: str
|
| 67 |
+
CATEGORY_UNI_NOT_SPACE: str
|
| 68 |
+
CATEGORY_UNI_WORD: str
|
| 69 |
+
CATEGORY_UNI_NOT_WORD: str
|
| 70 |
+
CATEGORY_UNI_LINEBREAK: str
|
| 71 |
+
CATEGORY_UNI_NOT_LINEBREAK: str
|
| 72 |
+
|
| 73 |
+
_T = TypeVar("_T")
|
| 74 |
+
|
| 75 |
+
def makedict(list: List[_T]) -> Dict[_T, int]: ...
|
| 76 |
+
|
| 77 |
+
OP_IGNORE: Dict[str, str]
|
| 78 |
+
AT_MULTILINE: Dict[str, str]
|
| 79 |
+
AT_LOCALE: Dict[str, str]
|
| 80 |
+
AT_UNICODE: Dict[str, str]
|
| 81 |
+
CH_LOCALE: Dict[str, str]
|
| 82 |
+
CH_UNICODE: Dict[str, str]
|
| 83 |
+
SRE_FLAG_TEMPLATE: int
|
| 84 |
+
SRE_FLAG_IGNORECASE: int
|
| 85 |
+
SRE_FLAG_LOCALE: int
|
| 86 |
+
SRE_FLAG_MULTILINE: int
|
| 87 |
+
SRE_FLAG_DOTALL: int
|
| 88 |
+
SRE_FLAG_UNICODE: int
|
| 89 |
+
SRE_FLAG_VERBOSE: int
|
| 90 |
+
SRE_FLAG_DEBUG: int
|
| 91 |
+
SRE_INFO_PREFIX: int
|
| 92 |
+
SRE_INFO_LITERAL: int
|
| 93 |
+
SRE_INFO_CHARSET: int
|
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/2/sre_parse.pyi
ADDED
|
@@ -0,0 +1,62 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from typing import Any, Dict, Iterable, List, Match, Optional, Pattern as _Pattern, Set, Tuple, Union
|
| 2 |
+
|
| 3 |
+
SPECIAL_CHARS: str
|
| 4 |
+
REPEAT_CHARS: str
|
| 5 |
+
DIGITS: Set[Any]
|
| 6 |
+
OCTDIGITS: Set[Any]
|
| 7 |
+
HEXDIGITS: Set[Any]
|
| 8 |
+
WHITESPACE: Set[Any]
|
| 9 |
+
ESCAPES: Dict[str, Tuple[str, int]]
|
| 10 |
+
CATEGORIES: Dict[str, Union[Tuple[str, str], Tuple[str, List[Tuple[str, str]]]]]
|
| 11 |
+
FLAGS: Dict[str, int]
|
| 12 |
+
|
| 13 |
+
class Pattern:
|
| 14 |
+
flags: int
|
| 15 |
+
open: List[int]
|
| 16 |
+
groups: int
|
| 17 |
+
groupdict: Dict[str, int]
|
| 18 |
+
lookbehind: int
|
| 19 |
+
def __init__(self) -> None: ...
|
| 20 |
+
def opengroup(self, name: str = ...) -> int: ...
|
| 21 |
+
def closegroup(self, gid: int) -> None: ...
|
| 22 |
+
def checkgroup(self, gid: int) -> bool: ...
|
| 23 |
+
|
| 24 |
+
_OpSubpatternType = Tuple[Optional[int], int, int, SubPattern]
|
| 25 |
+
_OpGroupRefExistsType = Tuple[int, SubPattern, SubPattern]
|
| 26 |
+
_OpInType = List[Tuple[str, int]]
|
| 27 |
+
_OpBranchType = Tuple[None, List[SubPattern]]
|
| 28 |
+
_AvType = Union[_OpInType, _OpBranchType, Iterable[SubPattern], _OpGroupRefExistsType, _OpSubpatternType]
|
| 29 |
+
_CodeType = Union[str, _AvType]
|
| 30 |
+
|
| 31 |
+
class SubPattern:
|
| 32 |
+
pattern: str
|
| 33 |
+
data: List[_CodeType]
|
| 34 |
+
width: Optional[int]
|
| 35 |
+
def __init__(self, pattern, data: List[_CodeType] = ...) -> None: ...
|
| 36 |
+
def dump(self, level: int = ...) -> None: ...
|
| 37 |
+
def __len__(self) -> int: ...
|
| 38 |
+
def __delitem__(self, index: Union[int, slice]) -> None: ...
|
| 39 |
+
def __getitem__(self, index: Union[int, slice]) -> Union[SubPattern, _CodeType]: ...
|
| 40 |
+
def __setitem__(self, index: Union[int, slice], code: _CodeType): ...
|
| 41 |
+
def insert(self, index, code: _CodeType) -> None: ...
|
| 42 |
+
def append(self, code: _CodeType) -> None: ...
|
| 43 |
+
def getwidth(self) -> int: ...
|
| 44 |
+
|
| 45 |
+
class Tokenizer:
|
| 46 |
+
string: str
|
| 47 |
+
index: int
|
| 48 |
+
def __init__(self, string: str) -> None: ...
|
| 49 |
+
def match(self, char: str, skip: int = ...) -> int: ...
|
| 50 |
+
def get(self) -> Optional[str]: ...
|
| 51 |
+
def tell(self) -> Tuple[int, Optional[str]]: ...
|
| 52 |
+
def seek(self, index: int) -> None: ...
|
| 53 |
+
|
| 54 |
+
def isident(char: str) -> bool: ...
|
| 55 |
+
def isdigit(char: str) -> bool: ...
|
| 56 |
+
def isname(name: str) -> bool: ...
|
| 57 |
+
def parse(str: str, flags: int = ..., pattern: Pattern = ...) -> SubPattern: ...
|
| 58 |
+
|
| 59 |
+
_Template = Tuple[List[Tuple[int, int]], List[Optional[int]]]
|
| 60 |
+
|
| 61 |
+
def parse_template(source: str, pattern: _Pattern[Any]) -> _Template: ...
|
| 62 |
+
def expand_template(template: _Template, match: Match[Any]) -> str: ...
|
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/2/whichdb.pyi
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from typing import Optional, Text
|
| 2 |
+
|
| 3 |
+
def whichdb(filename: Text) -> Optional[str]: ...
|
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/2and3/__future__.pyi
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import sys
|
| 2 |
+
from typing import List
|
| 3 |
+
|
| 4 |
+
class _Feature:
|
| 5 |
+
def getOptionalRelease(self) -> sys._version_info: ...
|
| 6 |
+
def getMandatoryRelease(self) -> sys._version_info: ...
|
| 7 |
+
compiler_flag: int
|
| 8 |
+
|
| 9 |
+
absolute_import: _Feature
|
| 10 |
+
division: _Feature
|
| 11 |
+
generators: _Feature
|
| 12 |
+
nested_scopes: _Feature
|
| 13 |
+
print_function: _Feature
|
| 14 |
+
unicode_literals: _Feature
|
| 15 |
+
with_statement: _Feature
|
| 16 |
+
if sys.version_info >= (3, 0):
|
| 17 |
+
barry_as_FLUFL: _Feature
|
| 18 |
+
|
| 19 |
+
if sys.version_info >= (3, 5):
|
| 20 |
+
generator_stop: _Feature
|
| 21 |
+
|
| 22 |
+
if sys.version_info >= (3, 7):
|
| 23 |
+
annotations: _Feature
|
| 24 |
+
|
| 25 |
+
all_feature_names: List[str] # undocumented
|
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/2and3/_bisect.pyi
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from typing import MutableSequence, Optional, Sequence, TypeVar
|
| 2 |
+
|
| 3 |
+
_T = TypeVar("_T")
|
| 4 |
+
|
| 5 |
+
def bisect_left(a: Sequence[_T], x: _T, lo: int = ..., hi: Optional[int] = ...) -> int: ...
|
| 6 |
+
def bisect_right(a: Sequence[_T], x: _T, lo: int = ..., hi: Optional[int] = ...) -> int: ...
|
| 7 |
+
def insort_left(a: MutableSequence[_T], x: _T, lo: int = ..., hi: Optional[int] = ...) -> None: ...
|
| 8 |
+
def insort_right(a: MutableSequence[_T], x: _T, lo: int = ..., hi: Optional[int] = ...) -> None: ...
|
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/2and3/_curses.pyi
ADDED
|
@@ -0,0 +1,490 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import sys
|
| 2 |
+
from typing import IO, Any, BinaryIO, NamedTuple, Optional, Tuple, Union, overload
|
| 3 |
+
|
| 4 |
+
_chtype = Union[str, bytes, int]
|
| 5 |
+
|
| 6 |
+
ALL_MOUSE_EVENTS: int
|
| 7 |
+
A_ALTCHARSET: int
|
| 8 |
+
A_ATTRIBUTES: int
|
| 9 |
+
A_BLINK: int
|
| 10 |
+
A_BOLD: int
|
| 11 |
+
A_CHARTEXT: int
|
| 12 |
+
A_COLOR: int
|
| 13 |
+
A_DIM: int
|
| 14 |
+
A_HORIZONTAL: int
|
| 15 |
+
A_INVIS: int
|
| 16 |
+
if sys.version_info >= (3, 7):
|
| 17 |
+
A_ITALIC: int
|
| 18 |
+
A_LEFT: int
|
| 19 |
+
A_LOW: int
|
| 20 |
+
A_NORMAL: int
|
| 21 |
+
A_PROTECT: int
|
| 22 |
+
A_REVERSE: int
|
| 23 |
+
A_RIGHT: int
|
| 24 |
+
A_STANDOUT: int
|
| 25 |
+
A_TOP: int
|
| 26 |
+
A_UNDERLINE: int
|
| 27 |
+
A_VERTICAL: int
|
| 28 |
+
BUTTON1_CLICKED: int
|
| 29 |
+
BUTTON1_DOUBLE_CLICKED: int
|
| 30 |
+
BUTTON1_PRESSED: int
|
| 31 |
+
BUTTON1_RELEASED: int
|
| 32 |
+
BUTTON1_TRIPLE_CLICKED: int
|
| 33 |
+
BUTTON2_CLICKED: int
|
| 34 |
+
BUTTON2_DOUBLE_CLICKED: int
|
| 35 |
+
BUTTON2_PRESSED: int
|
| 36 |
+
BUTTON2_RELEASED: int
|
| 37 |
+
BUTTON2_TRIPLE_CLICKED: int
|
| 38 |
+
BUTTON3_CLICKED: int
|
| 39 |
+
BUTTON3_DOUBLE_CLICKED: int
|
| 40 |
+
BUTTON3_PRESSED: int
|
| 41 |
+
BUTTON3_RELEASED: int
|
| 42 |
+
BUTTON3_TRIPLE_CLICKED: int
|
| 43 |
+
BUTTON4_CLICKED: int
|
| 44 |
+
BUTTON4_DOUBLE_CLICKED: int
|
| 45 |
+
BUTTON4_PRESSED: int
|
| 46 |
+
BUTTON4_RELEASED: int
|
| 47 |
+
BUTTON4_TRIPLE_CLICKED: int
|
| 48 |
+
BUTTON_ALT: int
|
| 49 |
+
BUTTON_CTRL: int
|
| 50 |
+
BUTTON_SHIFT: int
|
| 51 |
+
COLOR_BLACK: int
|
| 52 |
+
COLOR_BLUE: int
|
| 53 |
+
COLOR_CYAN: int
|
| 54 |
+
COLOR_GREEN: int
|
| 55 |
+
COLOR_MAGENTA: int
|
| 56 |
+
COLOR_RED: int
|
| 57 |
+
COLOR_WHITE: int
|
| 58 |
+
COLOR_YELLOW: int
|
| 59 |
+
ERR: int
|
| 60 |
+
KEY_A1: int
|
| 61 |
+
KEY_A3: int
|
| 62 |
+
KEY_B2: int
|
| 63 |
+
KEY_BACKSPACE: int
|
| 64 |
+
KEY_BEG: int
|
| 65 |
+
KEY_BREAK: int
|
| 66 |
+
KEY_BTAB: int
|
| 67 |
+
KEY_C1: int
|
| 68 |
+
KEY_C3: int
|
| 69 |
+
KEY_CANCEL: int
|
| 70 |
+
KEY_CATAB: int
|
| 71 |
+
KEY_CLEAR: int
|
| 72 |
+
KEY_CLOSE: int
|
| 73 |
+
KEY_COMMAND: int
|
| 74 |
+
KEY_COPY: int
|
| 75 |
+
KEY_CREATE: int
|
| 76 |
+
KEY_CTAB: int
|
| 77 |
+
KEY_DC: int
|
| 78 |
+
KEY_DL: int
|
| 79 |
+
KEY_DOWN: int
|
| 80 |
+
KEY_EIC: int
|
| 81 |
+
KEY_END: int
|
| 82 |
+
KEY_ENTER: int
|
| 83 |
+
KEY_EOL: int
|
| 84 |
+
KEY_EOS: int
|
| 85 |
+
KEY_EXIT: int
|
| 86 |
+
KEY_F0: int
|
| 87 |
+
KEY_F1: int
|
| 88 |
+
KEY_F10: int
|
| 89 |
+
KEY_F11: int
|
| 90 |
+
KEY_F12: int
|
| 91 |
+
KEY_F13: int
|
| 92 |
+
KEY_F14: int
|
| 93 |
+
KEY_F15: int
|
| 94 |
+
KEY_F16: int
|
| 95 |
+
KEY_F17: int
|
| 96 |
+
KEY_F18: int
|
| 97 |
+
KEY_F19: int
|
| 98 |
+
KEY_F2: int
|
| 99 |
+
KEY_F20: int
|
| 100 |
+
KEY_F21: int
|
| 101 |
+
KEY_F22: int
|
| 102 |
+
KEY_F23: int
|
| 103 |
+
KEY_F24: int
|
| 104 |
+
KEY_F25: int
|
| 105 |
+
KEY_F26: int
|
| 106 |
+
KEY_F27: int
|
| 107 |
+
KEY_F28: int
|
| 108 |
+
KEY_F29: int
|
| 109 |
+
KEY_F3: int
|
| 110 |
+
KEY_F30: int
|
| 111 |
+
KEY_F31: int
|
| 112 |
+
KEY_F32: int
|
| 113 |
+
KEY_F33: int
|
| 114 |
+
KEY_F34: int
|
| 115 |
+
KEY_F35: int
|
| 116 |
+
KEY_F36: int
|
| 117 |
+
KEY_F37: int
|
| 118 |
+
KEY_F38: int
|
| 119 |
+
KEY_F39: int
|
| 120 |
+
KEY_F4: int
|
| 121 |
+
KEY_F40: int
|
| 122 |
+
KEY_F41: int
|
| 123 |
+
KEY_F42: int
|
| 124 |
+
KEY_F43: int
|
| 125 |
+
KEY_F44: int
|
| 126 |
+
KEY_F45: int
|
| 127 |
+
KEY_F46: int
|
| 128 |
+
KEY_F47: int
|
| 129 |
+
KEY_F48: int
|
| 130 |
+
KEY_F49: int
|
| 131 |
+
KEY_F5: int
|
| 132 |
+
KEY_F50: int
|
| 133 |
+
KEY_F51: int
|
| 134 |
+
KEY_F52: int
|
| 135 |
+
KEY_F53: int
|
| 136 |
+
KEY_F54: int
|
| 137 |
+
KEY_F55: int
|
| 138 |
+
KEY_F56: int
|
| 139 |
+
KEY_F57: int
|
| 140 |
+
KEY_F58: int
|
| 141 |
+
KEY_F59: int
|
| 142 |
+
KEY_F6: int
|
| 143 |
+
KEY_F60: int
|
| 144 |
+
KEY_F61: int
|
| 145 |
+
KEY_F62: int
|
| 146 |
+
KEY_F63: int
|
| 147 |
+
KEY_F7: int
|
| 148 |
+
KEY_F8: int
|
| 149 |
+
KEY_F9: int
|
| 150 |
+
KEY_FIND: int
|
| 151 |
+
KEY_HELP: int
|
| 152 |
+
KEY_HOME: int
|
| 153 |
+
KEY_IC: int
|
| 154 |
+
KEY_IL: int
|
| 155 |
+
KEY_LEFT: int
|
| 156 |
+
KEY_LL: int
|
| 157 |
+
KEY_MARK: int
|
| 158 |
+
KEY_MAX: int
|
| 159 |
+
KEY_MESSAGE: int
|
| 160 |
+
KEY_MIN: int
|
| 161 |
+
KEY_MOUSE: int
|
| 162 |
+
KEY_MOVE: int
|
| 163 |
+
KEY_NEXT: int
|
| 164 |
+
KEY_NPAGE: int
|
| 165 |
+
KEY_OPEN: int
|
| 166 |
+
KEY_OPTIONS: int
|
| 167 |
+
KEY_PPAGE: int
|
| 168 |
+
KEY_PREVIOUS: int
|
| 169 |
+
KEY_PRINT: int
|
| 170 |
+
KEY_REDO: int
|
| 171 |
+
KEY_REFERENCE: int
|
| 172 |
+
KEY_REFRESH: int
|
| 173 |
+
KEY_REPLACE: int
|
| 174 |
+
KEY_RESET: int
|
| 175 |
+
KEY_RESIZE: int
|
| 176 |
+
KEY_RESTART: int
|
| 177 |
+
KEY_RESUME: int
|
| 178 |
+
KEY_RIGHT: int
|
| 179 |
+
KEY_SAVE: int
|
| 180 |
+
KEY_SBEG: int
|
| 181 |
+
KEY_SCANCEL: int
|
| 182 |
+
KEY_SCOMMAND: int
|
| 183 |
+
KEY_SCOPY: int
|
| 184 |
+
KEY_SCREATE: int
|
| 185 |
+
KEY_SDC: int
|
| 186 |
+
KEY_SDL: int
|
| 187 |
+
KEY_SELECT: int
|
| 188 |
+
KEY_SEND: int
|
| 189 |
+
KEY_SEOL: int
|
| 190 |
+
KEY_SEXIT: int
|
| 191 |
+
KEY_SF: int
|
| 192 |
+
KEY_SFIND: int
|
| 193 |
+
KEY_SHELP: int
|
| 194 |
+
KEY_SHOME: int
|
| 195 |
+
KEY_SIC: int
|
| 196 |
+
KEY_SLEFT: int
|
| 197 |
+
KEY_SMESSAGE: int
|
| 198 |
+
KEY_SMOVE: int
|
| 199 |
+
KEY_SNEXT: int
|
| 200 |
+
KEY_SOPTIONS: int
|
| 201 |
+
KEY_SPREVIOUS: int
|
| 202 |
+
KEY_SPRINT: int
|
| 203 |
+
KEY_SR: int
|
| 204 |
+
KEY_SREDO: int
|
| 205 |
+
KEY_SREPLACE: int
|
| 206 |
+
KEY_SRESET: int
|
| 207 |
+
KEY_SRIGHT: int
|
| 208 |
+
KEY_SRSUME: int
|
| 209 |
+
KEY_SSAVE: int
|
| 210 |
+
KEY_SSUSPEND: int
|
| 211 |
+
KEY_STAB: int
|
| 212 |
+
KEY_SUNDO: int
|
| 213 |
+
KEY_SUSPEND: int
|
| 214 |
+
KEY_UNDO: int
|
| 215 |
+
KEY_UP: int
|
| 216 |
+
OK: int
|
| 217 |
+
REPORT_MOUSE_POSITION: int
|
| 218 |
+
_C_API: Any
|
| 219 |
+
version: bytes
|
| 220 |
+
|
| 221 |
+
def baudrate() -> int: ...
|
| 222 |
+
def beep() -> None: ...
|
| 223 |
+
def can_change_color() -> bool: ...
|
| 224 |
+
def cbreak(__flag: bool = ...) -> None: ...
|
| 225 |
+
def color_content(__color_number: int) -> Tuple[int, int, int]: ...
|
| 226 |
+
def color_pair(__color_number: int) -> int: ...
|
| 227 |
+
def curs_set(__visibility: int) -> int: ...
|
| 228 |
+
def def_prog_mode() -> None: ...
|
| 229 |
+
def def_shell_mode() -> None: ...
|
| 230 |
+
def delay_output(__ms: int) -> None: ...
|
| 231 |
+
def doupdate() -> None: ...
|
| 232 |
+
def echo(__flag: bool = ...) -> None: ...
|
| 233 |
+
def endwin() -> None: ...
|
| 234 |
+
def erasechar() -> bytes: ...
|
| 235 |
+
def filter() -> None: ...
|
| 236 |
+
def flash() -> None: ...
|
| 237 |
+
def flushinp() -> None: ...
|
| 238 |
+
def getmouse() -> Tuple[int, int, int, int, int]: ...
|
| 239 |
+
def getsyx() -> Tuple[int, int]: ...
|
| 240 |
+
def getwin(__file: BinaryIO) -> _CursesWindow: ...
|
| 241 |
+
def halfdelay(__tenths: int) -> None: ...
|
| 242 |
+
def has_colors() -> bool: ...
|
| 243 |
+
def has_ic() -> bool: ...
|
| 244 |
+
def has_il() -> bool: ...
|
| 245 |
+
def has_key(__key: int) -> bool: ...
|
| 246 |
+
def init_color(__color_number: int, __r: int, __g: int, __b: int) -> None: ...
|
| 247 |
+
def init_pair(__pair_number: int, __fg: int, __bg: int) -> None: ...
|
| 248 |
+
def initscr() -> _CursesWindow: ...
|
| 249 |
+
def intrflush(__flag: bool) -> None: ...
|
| 250 |
+
def is_term_resized(__nlines: int, __ncols: int) -> bool: ...
|
| 251 |
+
def isendwin() -> bool: ...
|
| 252 |
+
def keyname(__key: int) -> bytes: ...
|
| 253 |
+
def killchar() -> bytes: ...
|
| 254 |
+
def longname() -> bytes: ...
|
| 255 |
+
def meta(__yes: bool) -> None: ...
|
| 256 |
+
def mouseinterval(__interval: int) -> None: ...
|
| 257 |
+
def mousemask(__newmask: int) -> Tuple[int, int]: ...
|
| 258 |
+
def napms(__ms: int) -> int: ...
|
| 259 |
+
def newpad(__nlines: int, __ncols: int) -> _CursesWindow: ...
|
| 260 |
+
def newwin(__nlines: int, __ncols: int, __begin_y: int = ..., __begin_x: int = ...) -> _CursesWindow: ...
|
| 261 |
+
def nl(__flag: bool = ...) -> None: ...
|
| 262 |
+
def nocbreak() -> None: ...
|
| 263 |
+
def noecho() -> None: ...
|
| 264 |
+
def nonl() -> None: ...
|
| 265 |
+
def noqiflush() -> None: ...
|
| 266 |
+
def noraw() -> None: ...
|
| 267 |
+
def pair_content(__pair_number: int) -> Tuple[int, int]: ...
|
| 268 |
+
def pair_number(__attr: int) -> int: ...
|
| 269 |
+
def putp(__string: bytes) -> None: ...
|
| 270 |
+
def qiflush(__flag: bool = ...) -> None: ...
|
| 271 |
+
def raw(__flag: bool = ...) -> None: ...
|
| 272 |
+
def reset_prog_mode() -> None: ...
|
| 273 |
+
def reset_shell_mode() -> None: ...
|
| 274 |
+
def resetty() -> None: ...
|
| 275 |
+
def resize_term(__nlines: int, __ncols: int) -> None: ...
|
| 276 |
+
def resizeterm(__nlines: int, __ncols: int) -> None: ...
|
| 277 |
+
def savetty() -> None: ...
|
| 278 |
+
def setsyx(__y: int, __x: int) -> None: ...
|
| 279 |
+
def setupterm(term: Optional[str] = ..., fd: int = ...) -> None: ...
|
| 280 |
+
def start_color() -> None: ...
|
| 281 |
+
def termattrs() -> int: ...
|
| 282 |
+
def termname() -> bytes: ...
|
| 283 |
+
def tigetflag(__capname: str) -> int: ...
|
| 284 |
+
def tigetnum(__capname: str) -> int: ...
|
| 285 |
+
def tigetstr(__capname: str) -> bytes: ...
|
| 286 |
+
def tparm(
|
| 287 |
+
__str: bytes,
|
| 288 |
+
__i1: int = ...,
|
| 289 |
+
__i2: int = ...,
|
| 290 |
+
__i3: int = ...,
|
| 291 |
+
__i4: int = ...,
|
| 292 |
+
__i5: int = ...,
|
| 293 |
+
__i6: int = ...,
|
| 294 |
+
__i7: int = ...,
|
| 295 |
+
__i8: int = ...,
|
| 296 |
+
__i9: int = ...,
|
| 297 |
+
) -> bytes: ...
|
| 298 |
+
def typeahead(__fd: int) -> None: ...
|
| 299 |
+
def unctrl(__ch: _chtype) -> bytes: ...
|
| 300 |
+
|
| 301 |
+
if sys.version_info >= (3, 3):
|
| 302 |
+
def unget_wch(__ch: Union[int, str]) -> None: ...
|
| 303 |
+
|
| 304 |
+
def ungetch(__ch: _chtype) -> None: ...
|
| 305 |
+
def ungetmouse(__id: int, __x: int, __y: int, __z: int, __bstate: int) -> None: ...
|
| 306 |
+
|
| 307 |
+
if sys.version_info >= (3, 5):
|
| 308 |
+
def update_lines_cols() -> int: ...
|
| 309 |
+
|
| 310 |
+
def use_default_colors() -> None: ...
|
| 311 |
+
def use_env(__flag: bool) -> None: ...
|
| 312 |
+
|
| 313 |
+
class error(Exception): ...
|
| 314 |
+
|
| 315 |
+
class _CursesWindow:
|
| 316 |
+
if sys.version_info >= (3, 3):
|
| 317 |
+
encoding: str
|
| 318 |
+
@overload
|
| 319 |
+
def addch(self, ch: _chtype, attr: int = ...) -> None: ...
|
| 320 |
+
@overload
|
| 321 |
+
def addch(self, y: int, x: int, ch: _chtype, attr: int = ...) -> None: ...
|
| 322 |
+
@overload
|
| 323 |
+
def addnstr(self, str: str, n: int, attr: int = ...) -> None: ...
|
| 324 |
+
@overload
|
| 325 |
+
def addnstr(self, y: int, x: int, str: str, n: int, attr: int = ...) -> None: ...
|
| 326 |
+
@overload
|
| 327 |
+
def addstr(self, str: str, attr: int = ...) -> None: ...
|
| 328 |
+
@overload
|
| 329 |
+
def addstr(self, y: int, x: int, str: str, attr: int = ...) -> None: ...
|
| 330 |
+
def attroff(self, attr: int) -> None: ...
|
| 331 |
+
def attron(self, attr: int) -> None: ...
|
| 332 |
+
def attrset(self, attr: int) -> None: ...
|
| 333 |
+
def bkgd(self, ch: _chtype, attr: int = ...) -> None: ...
|
| 334 |
+
def bkgdset(self, ch: _chtype, attr: int = ...) -> None: ...
|
| 335 |
+
def border(
|
| 336 |
+
self,
|
| 337 |
+
ls: _chtype = ...,
|
| 338 |
+
rs: _chtype = ...,
|
| 339 |
+
ts: _chtype = ...,
|
| 340 |
+
bs: _chtype = ...,
|
| 341 |
+
tl: _chtype = ...,
|
| 342 |
+
tr: _chtype = ...,
|
| 343 |
+
bl: _chtype = ...,
|
| 344 |
+
br: _chtype = ...,
|
| 345 |
+
) -> None: ...
|
| 346 |
+
@overload
|
| 347 |
+
def box(self) -> None: ...
|
| 348 |
+
@overload
|
| 349 |
+
def box(self, vertch: _chtype = ..., horch: _chtype = ...) -> None: ...
|
| 350 |
+
@overload
|
| 351 |
+
def chgat(self, attr: int) -> None: ...
|
| 352 |
+
@overload
|
| 353 |
+
def chgat(self, num: int, attr: int) -> None: ...
|
| 354 |
+
@overload
|
| 355 |
+
def chgat(self, y: int, x: int, attr: int) -> None: ...
|
| 356 |
+
@overload
|
| 357 |
+
def chgat(self, y: int, x: int, num: int, attr: int) -> None: ...
|
| 358 |
+
def clear(self) -> None: ...
|
| 359 |
+
def clearok(self, yes: int) -> None: ...
|
| 360 |
+
def clrtobot(self) -> None: ...
|
| 361 |
+
def clrtoeol(self) -> None: ...
|
| 362 |
+
def cursyncup(self) -> None: ...
|
| 363 |
+
@overload
|
| 364 |
+
def delch(self) -> None: ...
|
| 365 |
+
@overload
|
| 366 |
+
def delch(self, y: int, x: int) -> None: ...
|
| 367 |
+
def deleteln(self) -> None: ...
|
| 368 |
+
@overload
|
| 369 |
+
def derwin(self, begin_y: int, begin_x: int) -> _CursesWindow: ...
|
| 370 |
+
@overload
|
| 371 |
+
def derwin(self, nlines: int, ncols: int, begin_y: int, begin_x: int) -> _CursesWindow: ...
|
| 372 |
+
def echochar(self, ch: _chtype, attr: int = ...) -> None: ...
|
| 373 |
+
def enclose(self, y: int, x: int) -> bool: ...
|
| 374 |
+
def erase(self) -> None: ...
|
| 375 |
+
def getbegyx(self) -> Tuple[int, int]: ...
|
| 376 |
+
def getbkgd(self) -> Tuple[int, int]: ...
|
| 377 |
+
@overload
|
| 378 |
+
def getch(self) -> int: ...
|
| 379 |
+
@overload
|
| 380 |
+
def getch(self, y: int, x: int) -> int: ...
|
| 381 |
+
if sys.version_info >= (3, 3):
|
| 382 |
+
@overload
|
| 383 |
+
def get_wch(self) -> Union[int, str]: ...
|
| 384 |
+
@overload
|
| 385 |
+
def get_wch(self, y: int, x: int) -> Union[int, str]: ...
|
| 386 |
+
@overload
|
| 387 |
+
def getkey(self) -> str: ...
|
| 388 |
+
@overload
|
| 389 |
+
def getkey(self, y: int, x: int) -> str: ...
|
| 390 |
+
def getmaxyx(self) -> Tuple[int, int]: ...
|
| 391 |
+
def getparyx(self) -> Tuple[int, int]: ...
|
| 392 |
+
@overload
|
| 393 |
+
def getstr(self) -> _chtype: ...
|
| 394 |
+
@overload
|
| 395 |
+
def getstr(self, n: int) -> _chtype: ...
|
| 396 |
+
@overload
|
| 397 |
+
def getstr(self, y: int, x: int) -> _chtype: ...
|
| 398 |
+
@overload
|
| 399 |
+
def getstr(self, y: int, x: int, n: int) -> _chtype: ...
|
| 400 |
+
def getyx(self) -> Tuple[int, int]: ...
|
| 401 |
+
@overload
|
| 402 |
+
def hline(self, ch: _chtype, n: int) -> None: ...
|
| 403 |
+
@overload
|
| 404 |
+
def hline(self, y: int, x: int, ch: _chtype, n: int) -> None: ...
|
| 405 |
+
def idcok(self, flag: bool) -> None: ...
|
| 406 |
+
def idlok(self, yes: bool) -> None: ...
|
| 407 |
+
def immedok(self, flag: bool) -> None: ...
|
| 408 |
+
@overload
|
| 409 |
+
def inch(self) -> _chtype: ...
|
| 410 |
+
@overload
|
| 411 |
+
def inch(self, y: int, x: int) -> _chtype: ...
|
| 412 |
+
@overload
|
| 413 |
+
def insch(self, ch: _chtype, attr: int = ...) -> None: ...
|
| 414 |
+
@overload
|
| 415 |
+
def insch(self, y: int, x: int, ch: _chtype, attr: int = ...) -> None: ...
|
| 416 |
+
def insdelln(self, nlines: int) -> None: ...
|
| 417 |
+
def insertln(self) -> None: ...
|
| 418 |
+
@overload
|
| 419 |
+
def insnstr(self, str: str, n: int, attr: int = ...) -> None: ...
|
| 420 |
+
@overload
|
| 421 |
+
def insnstr(self, y: int, x: int, str: str, n: int, attr: int = ...) -> None: ...
|
| 422 |
+
@overload
|
| 423 |
+
def insstr(self, str: str, attr: int = ...) -> None: ...
|
| 424 |
+
@overload
|
| 425 |
+
def insstr(self, y: int, x: int, str: str, attr: int = ...) -> None: ...
|
| 426 |
+
@overload
|
| 427 |
+
def instr(self, n: int = ...) -> _chtype: ...
|
| 428 |
+
@overload
|
| 429 |
+
def instr(self, y: int, x: int, n: int = ...) -> _chtype: ...
|
| 430 |
+
def is_linetouched(self, line: int) -> bool: ...
|
| 431 |
+
def is_wintouched(self) -> bool: ...
|
| 432 |
+
def keypad(self, yes: bool) -> None: ...
|
| 433 |
+
def leaveok(self, yes: bool) -> None: ...
|
| 434 |
+
def move(self, new_y: int, new_x: int) -> None: ...
|
| 435 |
+
def mvderwin(self, y: int, x: int) -> None: ...
|
| 436 |
+
def mvwin(self, new_y: int, new_x: int) -> None: ...
|
| 437 |
+
def nodelay(self, yes: bool) -> None: ...
|
| 438 |
+
def notimeout(self, yes: bool) -> None: ...
|
| 439 |
+
def noutrefresh(self) -> None: ...
|
| 440 |
+
@overload
|
| 441 |
+
def overlay(self, destwin: _CursesWindow) -> None: ...
|
| 442 |
+
@overload
|
| 443 |
+
def overlay(
|
| 444 |
+
self, destwin: _CursesWindow, sminrow: int, smincol: int, dminrow: int, dmincol: int, dmaxrow: int, dmaxcol: int
|
| 445 |
+
) -> None: ...
|
| 446 |
+
@overload
|
| 447 |
+
def overwrite(self, destwin: _CursesWindow) -> None: ...
|
| 448 |
+
@overload
|
| 449 |
+
def overwrite(
|
| 450 |
+
self, destwin: _CursesWindow, sminrow: int, smincol: int, dminrow: int, dmincol: int, dmaxrow: int, dmaxcol: int
|
| 451 |
+
) -> None: ...
|
| 452 |
+
def putwin(self, file: IO[Any]) -> None: ...
|
| 453 |
+
def redrawln(self, beg: int, num: int) -> None: ...
|
| 454 |
+
def redrawwin(self) -> None: ...
|
| 455 |
+
@overload
|
| 456 |
+
def refresh(self) -> None: ...
|
| 457 |
+
@overload
|
| 458 |
+
def refresh(self, pminrow: int, pmincol: int, sminrow: int, smincol: int, smaxrow: int, smaxcol: int) -> None: ...
|
| 459 |
+
def resize(self, nlines: int, ncols: int) -> None: ...
|
| 460 |
+
def scroll(self, lines: int = ...) -> None: ...
|
| 461 |
+
def scrollok(self, flag: bool) -> None: ...
|
| 462 |
+
def setscrreg(self, top: int, bottom: int) -> None: ...
|
| 463 |
+
def standend(self) -> None: ...
|
| 464 |
+
def standout(self) -> None: ...
|
| 465 |
+
@overload
|
| 466 |
+
def subpad(self, begin_y: int, begin_x: int) -> _CursesWindow: ...
|
| 467 |
+
@overload
|
| 468 |
+
def subpad(self, nlines: int, ncols: int, begin_y: int, begin_x: int) -> _CursesWindow: ...
|
| 469 |
+
@overload
|
| 470 |
+
def subwin(self, begin_y: int, begin_x: int) -> _CursesWindow: ...
|
| 471 |
+
@overload
|
| 472 |
+
def subwin(self, nlines: int, ncols: int, begin_y: int, begin_x: int) -> _CursesWindow: ...
|
| 473 |
+
def syncdown(self) -> None: ...
|
| 474 |
+
def syncok(self, flag: bool) -> None: ...
|
| 475 |
+
def syncup(self) -> None: ...
|
| 476 |
+
def timeout(self, delay: int) -> None: ...
|
| 477 |
+
def touchline(self, start: int, count: int, changed: bool = ...) -> None: ...
|
| 478 |
+
def touchwin(self) -> None: ...
|
| 479 |
+
def untouchwin(self) -> None: ...
|
| 480 |
+
@overload
|
| 481 |
+
def vline(self, ch: _chtype, n: int) -> None: ...
|
| 482 |
+
@overload
|
| 483 |
+
def vline(self, y: int, x: int, ch: _chtype, n: int) -> None: ...
|
| 484 |
+
|
| 485 |
+
if sys.version_info >= (3, 8):
|
| 486 |
+
class _ncurses_version(NamedTuple):
|
| 487 |
+
major: int
|
| 488 |
+
minor: int
|
| 489 |
+
patch: int
|
| 490 |
+
ncurses_version: _ncurses_version
|
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/2and3/asyncore.pyi
ADDED
|
@@ -0,0 +1,119 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import sys
|
| 2 |
+
from _typeshed import FileDescriptorLike
|
| 3 |
+
from socket import SocketType
|
| 4 |
+
from typing import Any, Dict, Optional, Tuple, Union, overload
|
| 5 |
+
|
| 6 |
+
# cyclic dependence with asynchat
|
| 7 |
+
_maptype = Dict[int, Any]
|
| 8 |
+
|
| 9 |
+
socket_map: _maptype = ... # Undocumented
|
| 10 |
+
|
| 11 |
+
class ExitNow(Exception): ...
|
| 12 |
+
|
| 13 |
+
def read(obj: Any) -> None: ...
|
| 14 |
+
def write(obj: Any) -> None: ...
|
| 15 |
+
def readwrite(obj: Any, flags: int) -> None: ...
|
| 16 |
+
def poll(timeout: float = ..., map: Optional[_maptype] = ...) -> None: ...
|
| 17 |
+
def poll2(timeout: float = ..., map: Optional[_maptype] = ...) -> None: ...
|
| 18 |
+
|
| 19 |
+
poll3 = poll2
|
| 20 |
+
|
| 21 |
+
def loop(timeout: float = ..., use_poll: bool = ..., map: Optional[_maptype] = ..., count: Optional[int] = ...) -> None: ...
|
| 22 |
+
|
| 23 |
+
# Not really subclass of socket.socket; it's only delegation.
|
| 24 |
+
# It is not covariant to it.
|
| 25 |
+
class dispatcher:
|
| 26 |
+
|
| 27 |
+
debug: bool
|
| 28 |
+
connected: bool
|
| 29 |
+
accepting: bool
|
| 30 |
+
connecting: bool
|
| 31 |
+
closing: bool
|
| 32 |
+
ignore_log_types: frozenset[str]
|
| 33 |
+
socket: Optional[SocketType]
|
| 34 |
+
def __init__(self, sock: Optional[SocketType] = ..., map: Optional[_maptype] = ...) -> None: ...
|
| 35 |
+
def add_channel(self, map: Optional[_maptype] = ...) -> None: ...
|
| 36 |
+
def del_channel(self, map: Optional[_maptype] = ...) -> None: ...
|
| 37 |
+
def create_socket(self, family: int = ..., type: int = ...) -> None: ...
|
| 38 |
+
def set_socket(self, sock: SocketType, map: Optional[_maptype] = ...) -> None: ...
|
| 39 |
+
def set_reuse_addr(self) -> None: ...
|
| 40 |
+
def readable(self) -> bool: ...
|
| 41 |
+
def writable(self) -> bool: ...
|
| 42 |
+
def listen(self, num: int) -> None: ...
|
| 43 |
+
def bind(self, addr: Union[Tuple[Any, ...], str]) -> None: ...
|
| 44 |
+
def connect(self, address: Union[Tuple[Any, ...], str]) -> None: ...
|
| 45 |
+
def accept(self) -> Optional[Tuple[SocketType, Any]]: ...
|
| 46 |
+
def send(self, data: bytes) -> int: ...
|
| 47 |
+
def recv(self, buffer_size: int) -> bytes: ...
|
| 48 |
+
def close(self) -> None: ...
|
| 49 |
+
def log(self, message: Any) -> None: ...
|
| 50 |
+
def log_info(self, message: Any, type: str = ...) -> None: ...
|
| 51 |
+
def handle_read_event(self) -> None: ...
|
| 52 |
+
def handle_connect_event(self) -> None: ...
|
| 53 |
+
def handle_write_event(self) -> None: ...
|
| 54 |
+
def handle_expt_event(self) -> None: ...
|
| 55 |
+
def handle_error(self) -> None: ...
|
| 56 |
+
def handle_expt(self) -> None: ...
|
| 57 |
+
def handle_read(self) -> None: ...
|
| 58 |
+
def handle_write(self) -> None: ...
|
| 59 |
+
def handle_connect(self) -> None: ...
|
| 60 |
+
def handle_accept(self) -> None: ...
|
| 61 |
+
def handle_close(self) -> None: ...
|
| 62 |
+
if sys.version_info < (3, 5):
|
| 63 |
+
# Historically, some methods were "imported" from `self.socket` by
|
| 64 |
+
# means of `__getattr__`. This was long deprecated, and as of Python
|
| 65 |
+
# 3.5 has been removed; simply call the relevant methods directly on
|
| 66 |
+
# self.socket if necessary.
|
| 67 |
+
def detach(self) -> int: ...
|
| 68 |
+
def fileno(self) -> int: ...
|
| 69 |
+
# return value is an address
|
| 70 |
+
def getpeername(self) -> Any: ...
|
| 71 |
+
def getsockname(self) -> Any: ...
|
| 72 |
+
@overload
|
| 73 |
+
def getsockopt(self, level: int, optname: int, buflen: None = ...) -> int: ...
|
| 74 |
+
@overload
|
| 75 |
+
def getsockopt(self, level: int, optname: int, buflen: int) -> bytes: ...
|
| 76 |
+
def gettimeout(self) -> float: ...
|
| 77 |
+
def ioctl(self, control: object, option: Tuple[int, int, int]) -> None: ...
|
| 78 |
+
# TODO the return value may be BinaryIO or TextIO, depending on mode
|
| 79 |
+
def makefile(
|
| 80 |
+
self, mode: str = ..., buffering: int = ..., encoding: str = ..., errors: str = ..., newline: str = ...
|
| 81 |
+
) -> Any: ...
|
| 82 |
+
# return type is an address
|
| 83 |
+
def recvfrom(self, bufsize: int, flags: int = ...) -> Any: ...
|
| 84 |
+
def recvfrom_into(self, buffer: bytes, nbytes: int, flags: int = ...) -> Any: ...
|
| 85 |
+
def recv_into(self, buffer: bytes, nbytes: int, flags: int = ...) -> Any: ...
|
| 86 |
+
def sendall(self, data: bytes, flags: int = ...) -> None: ...
|
| 87 |
+
def sendto(self, data: bytes, address: Union[Tuple[str, int], str], flags: int = ...) -> int: ...
|
| 88 |
+
def setblocking(self, flag: bool) -> None: ...
|
| 89 |
+
def settimeout(self, value: Union[float, None]) -> None: ...
|
| 90 |
+
def setsockopt(self, level: int, optname: int, value: Union[int, bytes]) -> None: ...
|
| 91 |
+
def shutdown(self, how: int) -> None: ...
|
| 92 |
+
|
| 93 |
+
class dispatcher_with_send(dispatcher):
|
| 94 |
+
def __init__(self, sock: SocketType = ..., map: Optional[_maptype] = ...) -> None: ...
|
| 95 |
+
def initiate_send(self) -> None: ...
|
| 96 |
+
def handle_write(self) -> None: ...
|
| 97 |
+
# incompatible signature:
|
| 98 |
+
# def send(self, data: bytes) -> Optional[int]: ...
|
| 99 |
+
|
| 100 |
+
def compact_traceback() -> Tuple[Tuple[str, str, str], type, type, str]: ...
|
| 101 |
+
def close_all(map: Optional[_maptype] = ..., ignore_all: bool = ...) -> None: ...
|
| 102 |
+
|
| 103 |
+
if sys.platform != "win32":
|
| 104 |
+
class file_wrapper:
|
| 105 |
+
fd: int
|
| 106 |
+
def __init__(self, fd: int) -> None: ...
|
| 107 |
+
def recv(self, bufsize: int, flags: int = ...) -> bytes: ...
|
| 108 |
+
def send(self, data: bytes, flags: int = ...) -> int: ...
|
| 109 |
+
@overload
|
| 110 |
+
def getsockopt(self, level: int, optname: int, buflen: None = ...) -> int: ...
|
| 111 |
+
@overload
|
| 112 |
+
def getsockopt(self, level: int, optname: int, buflen: int) -> bytes: ...
|
| 113 |
+
def read(self, bufsize: int, flags: int = ...) -> bytes: ...
|
| 114 |
+
def write(self, data: bytes, flags: int = ...) -> int: ...
|
| 115 |
+
def close(self) -> None: ...
|
| 116 |
+
def fileno(self) -> int: ...
|
| 117 |
+
class file_dispatcher(dispatcher):
|
| 118 |
+
def __init__(self, fd: FileDescriptorLike, map: Optional[_maptype] = ...) -> None: ...
|
| 119 |
+
def set_file(self, fd: int) -> None: ...
|
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/2and3/cmath.pyi
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import sys
|
| 2 |
+
from typing import SupportsComplex, SupportsFloat, Tuple, Union
|
| 3 |
+
|
| 4 |
+
e: float
|
| 5 |
+
pi: float
|
| 6 |
+
if sys.version_info >= (3, 6):
|
| 7 |
+
inf: float
|
| 8 |
+
infj: complex
|
| 9 |
+
nan: float
|
| 10 |
+
nanj: complex
|
| 11 |
+
tau: float
|
| 12 |
+
|
| 13 |
+
_C = Union[SupportsFloat, SupportsComplex]
|
| 14 |
+
|
| 15 |
+
def acos(__z: _C) -> complex: ...
|
| 16 |
+
def acosh(__z: _C) -> complex: ...
|
| 17 |
+
def asin(__z: _C) -> complex: ...
|
| 18 |
+
def asinh(__z: _C) -> complex: ...
|
| 19 |
+
def atan(__z: _C) -> complex: ...
|
| 20 |
+
def atanh(__z: _C) -> complex: ...
|
| 21 |
+
def cos(__z: _C) -> complex: ...
|
| 22 |
+
def cosh(__z: _C) -> complex: ...
|
| 23 |
+
def exp(__z: _C) -> complex: ...
|
| 24 |
+
|
| 25 |
+
if sys.version_info >= (3, 5):
|
| 26 |
+
def isclose(a: _C, b: _C, *, rel_tol: SupportsFloat = ..., abs_tol: SupportsFloat = ...) -> bool: ...
|
| 27 |
+
|
| 28 |
+
def isinf(__z: _C) -> bool: ...
|
| 29 |
+
def isnan(__z: _C) -> bool: ...
|
| 30 |
+
def log(__x: _C, __y_obj: _C = ...) -> complex: ...
|
| 31 |
+
def log10(__z: _C) -> complex: ...
|
| 32 |
+
def phase(__z: _C) -> float: ...
|
| 33 |
+
def polar(__z: _C) -> Tuple[float, float]: ...
|
| 34 |
+
def rect(__r: float, __phi: float) -> complex: ...
|
| 35 |
+
def sin(__z: _C) -> complex: ...
|
| 36 |
+
def sinh(__z: _C) -> complex: ...
|
| 37 |
+
def sqrt(__z: _C) -> complex: ...
|
| 38 |
+
def tan(__z: _C) -> complex: ...
|
| 39 |
+
def tanh(__z: _C) -> complex: ...
|
| 40 |
+
|
| 41 |
+
if sys.version_info >= (3,):
|
| 42 |
+
def isfinite(__z: _C) -> bool: ...
|
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/2and3/codeop.pyi
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from types import CodeType
|
| 2 |
+
from typing import Optional
|
| 3 |
+
|
| 4 |
+
def compile_command(source: str, filename: str = ..., symbol: str = ...) -> Optional[CodeType]: ...
|
| 5 |
+
|
| 6 |
+
class Compile:
|
| 7 |
+
flags: int
|
| 8 |
+
def __init__(self) -> None: ...
|
| 9 |
+
def __call__(self, source: str, filename: str, symbol: str) -> CodeType: ...
|
| 10 |
+
|
| 11 |
+
class CommandCompiler:
|
| 12 |
+
compiler: Compile
|
| 13 |
+
def __init__(self) -> None: ...
|
| 14 |
+
def __call__(self, source: str, filename: str = ..., symbol: str = ...) -> Optional[CodeType]: ...
|
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/2and3/contextlib.pyi
ADDED
|
@@ -0,0 +1,102 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import sys
|
| 2 |
+
from types import TracebackType
|
| 3 |
+
from typing import IO, Any, Callable, ContextManager, Iterable, Iterator, Optional, Type, TypeVar, overload
|
| 4 |
+
|
| 5 |
+
if sys.version_info >= (3, 5):
|
| 6 |
+
from typing import AsyncContextManager, AsyncIterator
|
| 7 |
+
|
| 8 |
+
if sys.version_info >= (3, 6):
|
| 9 |
+
AbstractContextManager = ContextManager
|
| 10 |
+
if sys.version_info >= (3, 7):
|
| 11 |
+
AbstractAsyncContextManager = AsyncContextManager
|
| 12 |
+
|
| 13 |
+
_T = TypeVar("_T")
|
| 14 |
+
_T_co = TypeVar("_T_co", covariant=True)
|
| 15 |
+
_T_io = TypeVar("_T_io", bound=Optional[IO[str]])
|
| 16 |
+
_F = TypeVar("_F", bound=Callable[..., Any])
|
| 17 |
+
|
| 18 |
+
_ExitFunc = Callable[[Optional[Type[BaseException]], Optional[BaseException], Optional[TracebackType]], bool]
|
| 19 |
+
_CM_EF = TypeVar("_CM_EF", ContextManager[Any], _ExitFunc)
|
| 20 |
+
|
| 21 |
+
if sys.version_info >= (3, 2):
|
| 22 |
+
class _GeneratorContextManager(ContextManager[_T_co]):
|
| 23 |
+
def __call__(self, func: _F) -> _F: ...
|
| 24 |
+
def contextmanager(func: Callable[..., Iterator[_T]]) -> Callable[..., _GeneratorContextManager[_T]]: ...
|
| 25 |
+
|
| 26 |
+
else:
|
| 27 |
+
class GeneratorContextManager(ContextManager[_T_co]):
|
| 28 |
+
def __call__(self, func: _F) -> _F: ...
|
| 29 |
+
def contextmanager(func: Callable[..., Iterator[_T]]) -> Callable[..., ContextManager[_T]]: ...
|
| 30 |
+
|
| 31 |
+
if sys.version_info >= (3, 7):
|
| 32 |
+
def asynccontextmanager(func: Callable[..., AsyncIterator[_T]]) -> Callable[..., AsyncContextManager[_T]]: ...
|
| 33 |
+
|
| 34 |
+
if sys.version_info < (3,):
|
| 35 |
+
def nested(*mgr: ContextManager[Any]) -> ContextManager[Iterable[Any]]: ...
|
| 36 |
+
|
| 37 |
+
class closing(ContextManager[_T]):
|
| 38 |
+
def __init__(self, thing: _T) -> None: ...
|
| 39 |
+
|
| 40 |
+
if sys.version_info >= (3, 4):
|
| 41 |
+
class suppress(ContextManager[None]):
|
| 42 |
+
def __init__(self, *exceptions: Type[BaseException]) -> None: ...
|
| 43 |
+
def __exit__(
|
| 44 |
+
self, exctype: Optional[Type[BaseException]], excinst: Optional[BaseException], exctb: Optional[TracebackType]
|
| 45 |
+
) -> bool: ...
|
| 46 |
+
class redirect_stdout(ContextManager[_T_io]):
|
| 47 |
+
def __init__(self, new_target: _T_io) -> None: ...
|
| 48 |
+
|
| 49 |
+
if sys.version_info >= (3, 5):
|
| 50 |
+
class redirect_stderr(ContextManager[_T_io]):
|
| 51 |
+
def __init__(self, new_target: _T_io) -> None: ...
|
| 52 |
+
|
| 53 |
+
if sys.version_info >= (3,):
|
| 54 |
+
class ContextDecorator:
|
| 55 |
+
def __call__(self, func: _F) -> _F: ...
|
| 56 |
+
_U = TypeVar("_U", bound=ExitStack)
|
| 57 |
+
class ExitStack(ContextManager[ExitStack]):
|
| 58 |
+
def __init__(self) -> None: ...
|
| 59 |
+
def enter_context(self, cm: ContextManager[_T]) -> _T: ...
|
| 60 |
+
def push(self, exit: _CM_EF) -> _CM_EF: ...
|
| 61 |
+
def callback(self, callback: Callable[..., Any], *args: Any, **kwds: Any) -> Callable[..., Any]: ...
|
| 62 |
+
def pop_all(self: _U) -> _U: ...
|
| 63 |
+
def close(self) -> None: ...
|
| 64 |
+
def __enter__(self: _U) -> _U: ...
|
| 65 |
+
def __exit__(
|
| 66 |
+
self,
|
| 67 |
+
__exc_type: Optional[Type[BaseException]],
|
| 68 |
+
__exc_value: Optional[BaseException],
|
| 69 |
+
__traceback: Optional[TracebackType],
|
| 70 |
+
) -> bool: ...
|
| 71 |
+
|
| 72 |
+
if sys.version_info >= (3, 7):
|
| 73 |
+
from typing import Awaitable
|
| 74 |
+
|
| 75 |
+
_S = TypeVar("_S", bound=AsyncExitStack)
|
| 76 |
+
|
| 77 |
+
_ExitCoroFunc = Callable[[Optional[Type[BaseException]], Optional[BaseException], Optional[TracebackType]], Awaitable[bool]]
|
| 78 |
+
_CallbackCoroFunc = Callable[..., Awaitable[Any]]
|
| 79 |
+
_ACM_EF = TypeVar("_ACM_EF", AsyncContextManager[Any], _ExitCoroFunc)
|
| 80 |
+
class AsyncExitStack(AsyncContextManager[AsyncExitStack]):
|
| 81 |
+
def __init__(self) -> None: ...
|
| 82 |
+
def enter_context(self, cm: ContextManager[_T]) -> _T: ...
|
| 83 |
+
def enter_async_context(self, cm: AsyncContextManager[_T]) -> Awaitable[_T]: ...
|
| 84 |
+
def push(self, exit: _CM_EF) -> _CM_EF: ...
|
| 85 |
+
def push_async_exit(self, exit: _ACM_EF) -> _ACM_EF: ...
|
| 86 |
+
def callback(self, callback: Callable[..., Any], *args: Any, **kwds: Any) -> Callable[..., Any]: ...
|
| 87 |
+
def push_async_callback(self, callback: _CallbackCoroFunc, *args: Any, **kwds: Any) -> _CallbackCoroFunc: ...
|
| 88 |
+
def pop_all(self: _S) -> _S: ...
|
| 89 |
+
def aclose(self) -> Awaitable[None]: ...
|
| 90 |
+
def __aenter__(self: _S) -> Awaitable[_S]: ...
|
| 91 |
+
def __aexit__(
|
| 92 |
+
self,
|
| 93 |
+
__exc_type: Optional[Type[BaseException]],
|
| 94 |
+
__exc_value: Optional[BaseException],
|
| 95 |
+
__traceback: Optional[TracebackType],
|
| 96 |
+
) -> Awaitable[bool]: ...
|
| 97 |
+
|
| 98 |
+
if sys.version_info >= (3, 7):
|
| 99 |
+
@overload
|
| 100 |
+
def nullcontext(enter_result: _T) -> ContextManager[_T]: ...
|
| 101 |
+
@overload
|
| 102 |
+
def nullcontext() -> ContextManager[None]: ...
|
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/2and3/crypt.pyi
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import sys
|
| 2 |
+
from typing import List, Optional, Union
|
| 3 |
+
|
| 4 |
+
if sys.version_info >= (3, 3):
|
| 5 |
+
class _Method: ...
|
| 6 |
+
METHOD_CRYPT: _Method
|
| 7 |
+
METHOD_MD5: _Method
|
| 8 |
+
METHOD_SHA256: _Method
|
| 9 |
+
METHOD_SHA512: _Method
|
| 10 |
+
if sys.version_info >= (3, 7):
|
| 11 |
+
METHOD_BLOWFISH: _Method
|
| 12 |
+
|
| 13 |
+
methods: List[_Method]
|
| 14 |
+
|
| 15 |
+
if sys.version_info >= (3, 7):
|
| 16 |
+
def mksalt(method: Optional[_Method] = ..., *, rounds: Optional[int] = ...) -> str: ...
|
| 17 |
+
else:
|
| 18 |
+
def mksalt(method: Optional[_Method] = ...) -> str: ...
|
| 19 |
+
def crypt(word: str, salt: Optional[Union[str, _Method]] = ...) -> str: ...
|
| 20 |
+
|
| 21 |
+
else:
|
| 22 |
+
def crypt(word: str, salt: str) -> str: ...
|
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/2and3/difflib.pyi
ADDED
|
@@ -0,0 +1,153 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import sys
|
| 2 |
+
from typing import (
|
| 3 |
+
Any,
|
| 4 |
+
AnyStr,
|
| 5 |
+
Callable,
|
| 6 |
+
Generic,
|
| 7 |
+
Iterable,
|
| 8 |
+
Iterator,
|
| 9 |
+
List,
|
| 10 |
+
NamedTuple,
|
| 11 |
+
Optional,
|
| 12 |
+
Sequence,
|
| 13 |
+
Text,
|
| 14 |
+
Tuple,
|
| 15 |
+
TypeVar,
|
| 16 |
+
Union,
|
| 17 |
+
overload,
|
| 18 |
+
)
|
| 19 |
+
|
| 20 |
+
if sys.version_info >= (3, 9):
|
| 21 |
+
from types import GenericAlias
|
| 22 |
+
|
| 23 |
+
_T = TypeVar("_T")
|
| 24 |
+
|
| 25 |
+
if sys.version_info >= (3,):
|
| 26 |
+
_StrType = Text
|
| 27 |
+
else:
|
| 28 |
+
# Aliases can't point to type vars, so we need to redeclare AnyStr
|
| 29 |
+
_StrType = TypeVar("_StrType", Text, bytes)
|
| 30 |
+
|
| 31 |
+
_JunkCallback = Union[Callable[[Text], bool], Callable[[str], bool]]
|
| 32 |
+
|
| 33 |
+
class Match(NamedTuple):
|
| 34 |
+
a: int
|
| 35 |
+
b: int
|
| 36 |
+
size: int
|
| 37 |
+
|
| 38 |
+
class SequenceMatcher(Generic[_T]):
|
| 39 |
+
def __init__(
|
| 40 |
+
self, isjunk: Optional[Callable[[_T], bool]] = ..., a: Sequence[_T] = ..., b: Sequence[_T] = ..., autojunk: bool = ...
|
| 41 |
+
) -> None: ...
|
| 42 |
+
def set_seqs(self, a: Sequence[_T], b: Sequence[_T]) -> None: ...
|
| 43 |
+
def set_seq1(self, a: Sequence[_T]) -> None: ...
|
| 44 |
+
def set_seq2(self, b: Sequence[_T]) -> None: ...
|
| 45 |
+
if sys.version_info >= (3, 9):
|
| 46 |
+
def find_longest_match(
|
| 47 |
+
self, alo: int = ..., ahi: Optional[int] = ..., blo: int = ..., bhi: Optional[int] = ...
|
| 48 |
+
) -> Match: ...
|
| 49 |
+
else:
|
| 50 |
+
def find_longest_match(self, alo: int, ahi: int, blo: int, bhi: int) -> Match: ...
|
| 51 |
+
def get_matching_blocks(self) -> List[Match]: ...
|
| 52 |
+
def get_opcodes(self) -> List[Tuple[str, int, int, int, int]]: ...
|
| 53 |
+
def get_grouped_opcodes(self, n: int = ...) -> Iterable[List[Tuple[str, int, int, int, int]]]: ...
|
| 54 |
+
def ratio(self) -> float: ...
|
| 55 |
+
def quick_ratio(self) -> float: ...
|
| 56 |
+
def real_quick_ratio(self) -> float: ...
|
| 57 |
+
if sys.version_info >= (3, 9):
|
| 58 |
+
def __class_getitem__(cls, item: Any) -> GenericAlias: ...
|
| 59 |
+
|
| 60 |
+
# mypy thinks the signatures of the overloads overlap, but the types still work fine
|
| 61 |
+
@overload
|
| 62 |
+
def get_close_matches( # type: ignore
|
| 63 |
+
word: AnyStr, possibilities: Iterable[AnyStr], n: int = ..., cutoff: float = ...
|
| 64 |
+
) -> List[AnyStr]: ...
|
| 65 |
+
@overload
|
| 66 |
+
def get_close_matches(
|
| 67 |
+
word: Sequence[_T], possibilities: Iterable[Sequence[_T]], n: int = ..., cutoff: float = ...
|
| 68 |
+
) -> List[Sequence[_T]]: ...
|
| 69 |
+
|
| 70 |
+
class Differ:
|
| 71 |
+
def __init__(self, linejunk: Optional[_JunkCallback] = ..., charjunk: Optional[_JunkCallback] = ...) -> None: ...
|
| 72 |
+
def compare(self, a: Sequence[_StrType], b: Sequence[_StrType]) -> Iterator[_StrType]: ...
|
| 73 |
+
|
| 74 |
+
def IS_LINE_JUNK(line: _StrType, pat: Any = ...) -> bool: ... # pat is undocumented
|
| 75 |
+
def IS_CHARACTER_JUNK(ch: _StrType, ws: _StrType = ...) -> bool: ... # ws is undocumented
|
| 76 |
+
def unified_diff(
|
| 77 |
+
a: Sequence[_StrType],
|
| 78 |
+
b: Sequence[_StrType],
|
| 79 |
+
fromfile: _StrType = ...,
|
| 80 |
+
tofile: _StrType = ...,
|
| 81 |
+
fromfiledate: _StrType = ...,
|
| 82 |
+
tofiledate: _StrType = ...,
|
| 83 |
+
n: int = ...,
|
| 84 |
+
lineterm: _StrType = ...,
|
| 85 |
+
) -> Iterator[_StrType]: ...
|
| 86 |
+
def context_diff(
|
| 87 |
+
a: Sequence[_StrType],
|
| 88 |
+
b: Sequence[_StrType],
|
| 89 |
+
fromfile: _StrType = ...,
|
| 90 |
+
tofile: _StrType = ...,
|
| 91 |
+
fromfiledate: _StrType = ...,
|
| 92 |
+
tofiledate: _StrType = ...,
|
| 93 |
+
n: int = ...,
|
| 94 |
+
lineterm: _StrType = ...,
|
| 95 |
+
) -> Iterator[_StrType]: ...
|
| 96 |
+
def ndiff(
|
| 97 |
+
a: Sequence[_StrType], b: Sequence[_StrType], linejunk: Optional[_JunkCallback] = ..., charjunk: Optional[_JunkCallback] = ...
|
| 98 |
+
) -> Iterator[_StrType]: ...
|
| 99 |
+
|
| 100 |
+
class HtmlDiff(object):
|
| 101 |
+
def __init__(
|
| 102 |
+
self,
|
| 103 |
+
tabsize: int = ...,
|
| 104 |
+
wrapcolumn: Optional[int] = ...,
|
| 105 |
+
linejunk: Optional[_JunkCallback] = ...,
|
| 106 |
+
charjunk: Optional[_JunkCallback] = ...,
|
| 107 |
+
) -> None: ...
|
| 108 |
+
if sys.version_info >= (3, 5):
|
| 109 |
+
def make_file(
|
| 110 |
+
self,
|
| 111 |
+
fromlines: Sequence[_StrType],
|
| 112 |
+
tolines: Sequence[_StrType],
|
| 113 |
+
fromdesc: _StrType = ...,
|
| 114 |
+
todesc: _StrType = ...,
|
| 115 |
+
context: bool = ...,
|
| 116 |
+
numlines: int = ...,
|
| 117 |
+
*,
|
| 118 |
+
charset: str = ...,
|
| 119 |
+
) -> _StrType: ...
|
| 120 |
+
else:
|
| 121 |
+
def make_file(
|
| 122 |
+
self,
|
| 123 |
+
fromlines: Sequence[_StrType],
|
| 124 |
+
tolines: Sequence[_StrType],
|
| 125 |
+
fromdesc: _StrType = ...,
|
| 126 |
+
todesc: _StrType = ...,
|
| 127 |
+
context: bool = ...,
|
| 128 |
+
numlines: int = ...,
|
| 129 |
+
) -> _StrType: ...
|
| 130 |
+
def make_table(
|
| 131 |
+
self,
|
| 132 |
+
fromlines: Sequence[_StrType],
|
| 133 |
+
tolines: Sequence[_StrType],
|
| 134 |
+
fromdesc: _StrType = ...,
|
| 135 |
+
todesc: _StrType = ...,
|
| 136 |
+
context: bool = ...,
|
| 137 |
+
numlines: int = ...,
|
| 138 |
+
) -> _StrType: ...
|
| 139 |
+
|
| 140 |
+
def restore(delta: Iterable[_StrType], which: int) -> Iterator[_StrType]: ...
|
| 141 |
+
|
| 142 |
+
if sys.version_info >= (3, 5):
|
| 143 |
+
def diff_bytes(
|
| 144 |
+
dfunc: Callable[[Sequence[str], Sequence[str], str, str, str, str, int, str], Iterator[str]],
|
| 145 |
+
a: Sequence[bytes],
|
| 146 |
+
b: Sequence[bytes],
|
| 147 |
+
fromfile: bytes = ...,
|
| 148 |
+
tofile: bytes = ...,
|
| 149 |
+
fromfiledate: bytes = ...,
|
| 150 |
+
tofiledate: bytes = ...,
|
| 151 |
+
n: int = ...,
|
| 152 |
+
lineterm: bytes = ...,
|
| 153 |
+
) -> Iterator[bytes]: ...
|
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/2and3/dummy_threading.pyi
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from _dummy_threading import *
|
| 2 |
+
from _dummy_threading import __all__ as __all__
|
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/2and3/fractions.pyi
ADDED
|
@@ -0,0 +1,159 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import sys
|
| 2 |
+
from decimal import Decimal
|
| 3 |
+
from numbers import Integral, Rational, Real
|
| 4 |
+
from typing import Optional, Tuple, Union, overload
|
| 5 |
+
from typing_extensions import Literal
|
| 6 |
+
|
| 7 |
+
_ComparableNum = Union[int, float, Decimal, Real]
|
| 8 |
+
|
| 9 |
+
if sys.version_info < (3, 9):
|
| 10 |
+
@overload
|
| 11 |
+
def gcd(a: int, b: int) -> int: ...
|
| 12 |
+
@overload
|
| 13 |
+
def gcd(a: Integral, b: int) -> Integral: ...
|
| 14 |
+
@overload
|
| 15 |
+
def gcd(a: int, b: Integral) -> Integral: ...
|
| 16 |
+
@overload
|
| 17 |
+
def gcd(a: Integral, b: Integral) -> Integral: ...
|
| 18 |
+
|
| 19 |
+
class Fraction(Rational):
|
| 20 |
+
@overload
|
| 21 |
+
def __new__(
|
| 22 |
+
cls, numerator: Union[int, Rational] = ..., denominator: Optional[Union[int, Rational]] = ..., *, _normalize: bool = ...
|
| 23 |
+
) -> Fraction: ...
|
| 24 |
+
@overload
|
| 25 |
+
def __new__(cls, __value: Union[float, Decimal, str], *, _normalize: bool = ...) -> Fraction: ...
|
| 26 |
+
@classmethod
|
| 27 |
+
def from_float(cls, f: float) -> Fraction: ...
|
| 28 |
+
@classmethod
|
| 29 |
+
def from_decimal(cls, dec: Decimal) -> Fraction: ...
|
| 30 |
+
def limit_denominator(self, max_denominator: int = ...) -> Fraction: ...
|
| 31 |
+
if sys.version_info >= (3, 8):
|
| 32 |
+
def as_integer_ratio(self) -> Tuple[int, int]: ...
|
| 33 |
+
@property
|
| 34 |
+
def numerator(self) -> int: ...
|
| 35 |
+
@property
|
| 36 |
+
def denominator(self) -> int: ...
|
| 37 |
+
@overload
|
| 38 |
+
def __add__(self, other: Union[int, Fraction]) -> Fraction: ...
|
| 39 |
+
@overload
|
| 40 |
+
def __add__(self, other: float) -> float: ...
|
| 41 |
+
@overload
|
| 42 |
+
def __add__(self, other: complex) -> complex: ...
|
| 43 |
+
@overload
|
| 44 |
+
def __radd__(self, other: Union[int, Fraction]) -> Fraction: ...
|
| 45 |
+
@overload
|
| 46 |
+
def __radd__(self, other: float) -> float: ...
|
| 47 |
+
@overload
|
| 48 |
+
def __radd__(self, other: complex) -> complex: ...
|
| 49 |
+
@overload
|
| 50 |
+
def __sub__(self, other: Union[int, Fraction]) -> Fraction: ...
|
| 51 |
+
@overload
|
| 52 |
+
def __sub__(self, other: float) -> float: ...
|
| 53 |
+
@overload
|
| 54 |
+
def __sub__(self, other: complex) -> complex: ...
|
| 55 |
+
@overload
|
| 56 |
+
def __rsub__(self, other: Union[int, Fraction]) -> Fraction: ...
|
| 57 |
+
@overload
|
| 58 |
+
def __rsub__(self, other: float) -> float: ...
|
| 59 |
+
@overload
|
| 60 |
+
def __rsub__(self, other: complex) -> complex: ...
|
| 61 |
+
@overload
|
| 62 |
+
def __mul__(self, other: Union[int, Fraction]) -> Fraction: ...
|
| 63 |
+
@overload
|
| 64 |
+
def __mul__(self, other: float) -> float: ...
|
| 65 |
+
@overload
|
| 66 |
+
def __mul__(self, other: complex) -> complex: ...
|
| 67 |
+
@overload
|
| 68 |
+
def __rmul__(self, other: Union[int, Fraction]) -> Fraction: ...
|
| 69 |
+
@overload
|
| 70 |
+
def __rmul__(self, other: float) -> float: ...
|
| 71 |
+
@overload
|
| 72 |
+
def __rmul__(self, other: complex) -> complex: ...
|
| 73 |
+
@overload
|
| 74 |
+
def __truediv__(self, other: Union[int, Fraction]) -> Fraction: ...
|
| 75 |
+
@overload
|
| 76 |
+
def __truediv__(self, other: float) -> float: ...
|
| 77 |
+
@overload
|
| 78 |
+
def __truediv__(self, other: complex) -> complex: ...
|
| 79 |
+
@overload
|
| 80 |
+
def __rtruediv__(self, other: Union[int, Fraction]) -> Fraction: ...
|
| 81 |
+
@overload
|
| 82 |
+
def __rtruediv__(self, other: float) -> float: ...
|
| 83 |
+
@overload
|
| 84 |
+
def __rtruediv__(self, other: complex) -> complex: ...
|
| 85 |
+
if sys.version_info < (3, 0):
|
| 86 |
+
@overload
|
| 87 |
+
def __div__(self, other: Union[int, Fraction]) -> Fraction: ...
|
| 88 |
+
@overload
|
| 89 |
+
def __div__(self, other: float) -> float: ...
|
| 90 |
+
@overload
|
| 91 |
+
def __div__(self, other: complex) -> complex: ...
|
| 92 |
+
@overload
|
| 93 |
+
def __rdiv__(self, other: Union[int, Fraction]) -> Fraction: ...
|
| 94 |
+
@overload
|
| 95 |
+
def __rdiv__(self, other: float) -> float: ...
|
| 96 |
+
@overload
|
| 97 |
+
def __rdiv__(self, other: complex) -> complex: ...
|
| 98 |
+
@overload
|
| 99 |
+
def __floordiv__(self, other: Union[int, Fraction]) -> int: ...
|
| 100 |
+
@overload
|
| 101 |
+
def __floordiv__(self, other: float) -> float: ...
|
| 102 |
+
@overload
|
| 103 |
+
def __rfloordiv__(self, other: Union[int, Fraction]) -> int: ...
|
| 104 |
+
@overload
|
| 105 |
+
def __rfloordiv__(self, other: float) -> float: ...
|
| 106 |
+
@overload
|
| 107 |
+
def __mod__(self, other: Union[int, Fraction]) -> Fraction: ...
|
| 108 |
+
@overload
|
| 109 |
+
def __mod__(self, other: float) -> float: ...
|
| 110 |
+
@overload
|
| 111 |
+
def __rmod__(self, other: Union[int, Fraction]) -> Fraction: ...
|
| 112 |
+
@overload
|
| 113 |
+
def __rmod__(self, other: float) -> float: ...
|
| 114 |
+
@overload
|
| 115 |
+
def __divmod__(self, other: Union[int, Fraction]) -> Tuple[int, Fraction]: ...
|
| 116 |
+
@overload
|
| 117 |
+
def __divmod__(self, other: float) -> Tuple[float, Fraction]: ...
|
| 118 |
+
@overload
|
| 119 |
+
def __rdivmod__(self, other: Union[int, Fraction]) -> Tuple[int, Fraction]: ...
|
| 120 |
+
@overload
|
| 121 |
+
def __rdivmod__(self, other: float) -> Tuple[float, Fraction]: ...
|
| 122 |
+
@overload
|
| 123 |
+
def __pow__(self, other: int) -> Fraction: ...
|
| 124 |
+
@overload
|
| 125 |
+
def __pow__(self, other: Union[float, Fraction]) -> float: ...
|
| 126 |
+
@overload
|
| 127 |
+
def __pow__(self, other: complex) -> complex: ...
|
| 128 |
+
@overload
|
| 129 |
+
def __rpow__(self, other: Union[int, float, Fraction]) -> float: ...
|
| 130 |
+
@overload
|
| 131 |
+
def __rpow__(self, other: complex) -> complex: ...
|
| 132 |
+
def __pos__(self) -> Fraction: ...
|
| 133 |
+
def __neg__(self) -> Fraction: ...
|
| 134 |
+
def __abs__(self) -> Fraction: ...
|
| 135 |
+
def __trunc__(self) -> int: ...
|
| 136 |
+
if sys.version_info >= (3, 0):
|
| 137 |
+
def __floor__(self) -> int: ...
|
| 138 |
+
def __ceil__(self) -> int: ...
|
| 139 |
+
@overload
|
| 140 |
+
def __round__(self, ndigits: None = ...) -> int: ...
|
| 141 |
+
@overload
|
| 142 |
+
def __round__(self, ndigits: int) -> Fraction: ...
|
| 143 |
+
def __hash__(self) -> int: ...
|
| 144 |
+
def __eq__(self, other: object) -> bool: ...
|
| 145 |
+
def __lt__(self, other: _ComparableNum) -> bool: ...
|
| 146 |
+
def __gt__(self, other: _ComparableNum) -> bool: ...
|
| 147 |
+
def __le__(self, other: _ComparableNum) -> bool: ...
|
| 148 |
+
def __ge__(self, other: _ComparableNum) -> bool: ...
|
| 149 |
+
if sys.version_info >= (3, 0):
|
| 150 |
+
def __bool__(self) -> bool: ...
|
| 151 |
+
else:
|
| 152 |
+
def __nonzero__(self) -> bool: ...
|
| 153 |
+
# Not actually defined within fractions.py, but provides more useful
|
| 154 |
+
# overrides
|
| 155 |
+
@property
|
| 156 |
+
def real(self) -> Fraction: ...
|
| 157 |
+
@property
|
| 158 |
+
def imag(self) -> Literal[0]: ...
|
| 159 |
+
def conjugate(self) -> Fraction: ...
|
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/2and3/imaplib.pyi
ADDED
|
@@ -0,0 +1,172 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import subprocess
|
| 2 |
+
import sys
|
| 3 |
+
import time
|
| 4 |
+
from socket import socket as _socket
|
| 5 |
+
from ssl import SSLContext, SSLSocket
|
| 6 |
+
from types import TracebackType
|
| 7 |
+
from typing import IO, Any, Callable, Dict, List, Optional, Pattern, Text, Tuple, Type, Union
|
| 8 |
+
from typing_extensions import Literal
|
| 9 |
+
|
| 10 |
+
# TODO: Commands should use their actual return types, not this type alias.
|
| 11 |
+
# E.g. Tuple[Literal["OK"], List[bytes]]
|
| 12 |
+
_CommandResults = Tuple[str, List[Any]]
|
| 13 |
+
|
| 14 |
+
_AnyResponseData = Union[List[None], List[Union[bytes, Tuple[bytes, bytes]]]]
|
| 15 |
+
|
| 16 |
+
class IMAP4:
|
| 17 |
+
error: Type[Exception] = ...
|
| 18 |
+
abort: Type[Exception] = ...
|
| 19 |
+
readonly: Type[Exception] = ...
|
| 20 |
+
mustquote: Pattern[Text] = ...
|
| 21 |
+
debug: int = ...
|
| 22 |
+
state: str = ...
|
| 23 |
+
literal: Optional[Text] = ...
|
| 24 |
+
tagged_commands: Dict[bytes, Optional[List[bytes]]]
|
| 25 |
+
untagged_responses: Dict[str, List[Union[bytes, Tuple[bytes, bytes]]]]
|
| 26 |
+
continuation_response: str = ...
|
| 27 |
+
is_readonly: bool = ...
|
| 28 |
+
tagnum: int = ...
|
| 29 |
+
tagpre: str = ...
|
| 30 |
+
tagre: Pattern[Text] = ...
|
| 31 |
+
welcome: bytes = ...
|
| 32 |
+
capabilities: Tuple[str] = ...
|
| 33 |
+
PROTOCOL_VERSION: str = ...
|
| 34 |
+
if sys.version_info >= (3, 9):
|
| 35 |
+
def __init__(self, host: str = ..., port: int = ..., timeout: Optional[float] = ...) -> None: ...
|
| 36 |
+
def open(self, host: str = ..., port: int = ..., timeout: Optional[float] = ...) -> None: ...
|
| 37 |
+
else:
|
| 38 |
+
def __init__(self, host: str = ..., port: int = ...) -> None: ...
|
| 39 |
+
def open(self, host: str = ..., port: int = ...) -> None: ...
|
| 40 |
+
def __getattr__(self, attr: str) -> Any: ...
|
| 41 |
+
host: str = ...
|
| 42 |
+
port: int = ...
|
| 43 |
+
sock: _socket = ...
|
| 44 |
+
file: Union[IO[Text], IO[bytes]] = ...
|
| 45 |
+
def read(self, size: int) -> bytes: ...
|
| 46 |
+
def readline(self) -> bytes: ...
|
| 47 |
+
def send(self, data: bytes) -> None: ...
|
| 48 |
+
def shutdown(self) -> None: ...
|
| 49 |
+
def socket(self) -> _socket: ...
|
| 50 |
+
def recent(self) -> _CommandResults: ...
|
| 51 |
+
def response(self, code: str) -> _CommandResults: ...
|
| 52 |
+
def append(self, mailbox: str, flags: str, date_time: str, message: str) -> str: ...
|
| 53 |
+
def authenticate(self, mechanism: str, authobject: Callable[[bytes], Optional[bytes]]) -> Tuple[str, str]: ...
|
| 54 |
+
def capability(self) -> _CommandResults: ...
|
| 55 |
+
def check(self) -> _CommandResults: ...
|
| 56 |
+
def close(self) -> _CommandResults: ...
|
| 57 |
+
def copy(self, message_set: str, new_mailbox: str) -> _CommandResults: ...
|
| 58 |
+
def create(self, mailbox: str) -> _CommandResults: ...
|
| 59 |
+
def delete(self, mailbox: str) -> _CommandResults: ...
|
| 60 |
+
def deleteacl(self, mailbox: str, who: str) -> _CommandResults: ...
|
| 61 |
+
if sys.version_info >= (3, 5):
|
| 62 |
+
def enable(self, capability: str) -> _CommandResults: ...
|
| 63 |
+
def __enter__(self) -> IMAP4: ...
|
| 64 |
+
def __exit__(self, t: Optional[Type[BaseException]], v: Optional[BaseException], tb: Optional[TracebackType]) -> None: ...
|
| 65 |
+
def expunge(self) -> _CommandResults: ...
|
| 66 |
+
def fetch(self, message_set: str, message_parts: str) -> Tuple[str, _AnyResponseData]: ...
|
| 67 |
+
def getacl(self, mailbox: str) -> _CommandResults: ...
|
| 68 |
+
def getannotation(self, mailbox: str, entry: str, attribute: str) -> _CommandResults: ...
|
| 69 |
+
def getquota(self, root: str) -> _CommandResults: ...
|
| 70 |
+
def getquotaroot(self, mailbox: str) -> _CommandResults: ...
|
| 71 |
+
def list(self, directory: str = ..., pattern: str = ...) -> Tuple[str, _AnyResponseData]: ...
|
| 72 |
+
def login(self, user: str, password: str) -> Tuple[Literal["OK"], List[bytes]]: ...
|
| 73 |
+
def login_cram_md5(self, user: str, password: str) -> _CommandResults: ...
|
| 74 |
+
def logout(self) -> Tuple[str, _AnyResponseData]: ...
|
| 75 |
+
def lsub(self, directory: str = ..., pattern: str = ...) -> _CommandResults: ...
|
| 76 |
+
def myrights(self, mailbox: str) -> _CommandResults: ...
|
| 77 |
+
def namespace(self) -> _CommandResults: ...
|
| 78 |
+
def noop(self) -> Tuple[str, List[bytes]]: ...
|
| 79 |
+
def partial(self, message_num: str, message_part: str, start: str, length: str) -> _CommandResults: ...
|
| 80 |
+
def proxyauth(self, user: str) -> _CommandResults: ...
|
| 81 |
+
def rename(self, oldmailbox: str, newmailbox: str) -> _CommandResults: ...
|
| 82 |
+
def search(self, charset: Optional[str], *criteria: str) -> _CommandResults: ...
|
| 83 |
+
def select(self, mailbox: str = ..., readonly: bool = ...) -> Tuple[str, List[Optional[bytes]]]: ...
|
| 84 |
+
def setacl(self, mailbox: str, who: str, what: str) -> _CommandResults: ...
|
| 85 |
+
def setannotation(self, *args: str) -> _CommandResults: ...
|
| 86 |
+
def setquota(self, root: str, limits: str) -> _CommandResults: ...
|
| 87 |
+
def sort(self, sort_criteria: str, charset: str, *search_criteria: str) -> _CommandResults: ...
|
| 88 |
+
if sys.version_info >= (3,):
|
| 89 |
+
def starttls(self, ssl_context: Optional[Any] = ...) -> Tuple[Literal["OK"], List[None]]: ...
|
| 90 |
+
def status(self, mailbox: str, names: str) -> _CommandResults: ...
|
| 91 |
+
def store(self, message_set: str, command: str, flags: str) -> _CommandResults: ...
|
| 92 |
+
def subscribe(self, mailbox: str) -> _CommandResults: ...
|
| 93 |
+
def thread(self, threading_algorithm: str, charset: str, *search_criteria: str) -> _CommandResults: ...
|
| 94 |
+
def uid(self, command: str, *args: str) -> _CommandResults: ...
|
| 95 |
+
def unsubscribe(self, mailbox: str) -> _CommandResults: ...
|
| 96 |
+
if sys.version_info >= (3, 9):
|
| 97 |
+
def unselect(self) -> _CommandResults: ...
|
| 98 |
+
def xatom(self, name: str, *args: str) -> _CommandResults: ...
|
| 99 |
+
def print_log(self) -> None: ...
|
| 100 |
+
|
| 101 |
+
class IMAP4_SSL(IMAP4):
|
| 102 |
+
keyfile: str = ...
|
| 103 |
+
certfile: str = ...
|
| 104 |
+
if sys.version_info >= (3, 9):
|
| 105 |
+
def __init__(
|
| 106 |
+
self,
|
| 107 |
+
host: str = ...,
|
| 108 |
+
port: int = ...,
|
| 109 |
+
keyfile: Optional[str] = ...,
|
| 110 |
+
certfile: Optional[str] = ...,
|
| 111 |
+
ssl_context: Optional[SSLContext] = ...,
|
| 112 |
+
timeout: Optional[float] = ...,
|
| 113 |
+
) -> None: ...
|
| 114 |
+
elif sys.version_info >= (3, 3):
|
| 115 |
+
def __init__(
|
| 116 |
+
self,
|
| 117 |
+
host: str = ...,
|
| 118 |
+
port: int = ...,
|
| 119 |
+
keyfile: Optional[str] = ...,
|
| 120 |
+
certfile: Optional[str] = ...,
|
| 121 |
+
ssl_context: Optional[SSLContext] = ...,
|
| 122 |
+
) -> None: ...
|
| 123 |
+
else:
|
| 124 |
+
def __init__(
|
| 125 |
+
self, host: str = ..., port: int = ..., keyfile: Optional[str] = ..., certfile: Optional[str] = ...
|
| 126 |
+
) -> None: ...
|
| 127 |
+
host: str = ...
|
| 128 |
+
port: int = ...
|
| 129 |
+
sock: _socket = ...
|
| 130 |
+
sslobj: SSLSocket = ...
|
| 131 |
+
file: IO[Any] = ...
|
| 132 |
+
if sys.version_info >= (3, 9):
|
| 133 |
+
def open(self, host: str = ..., port: Optional[int] = ..., timeout: Optional[float] = ...) -> None: ...
|
| 134 |
+
else:
|
| 135 |
+
def open(self, host: str = ..., port: Optional[int] = ...) -> None: ...
|
| 136 |
+
def read(self, size: int) -> bytes: ...
|
| 137 |
+
def readline(self) -> bytes: ...
|
| 138 |
+
def send(self, data: bytes) -> None: ...
|
| 139 |
+
def shutdown(self) -> None: ...
|
| 140 |
+
def socket(self) -> _socket: ...
|
| 141 |
+
def ssl(self) -> SSLSocket: ...
|
| 142 |
+
|
| 143 |
+
class IMAP4_stream(IMAP4):
|
| 144 |
+
command: str = ...
|
| 145 |
+
def __init__(self, command: str) -> None: ...
|
| 146 |
+
host: str = ...
|
| 147 |
+
port: int = ...
|
| 148 |
+
sock: _socket = ...
|
| 149 |
+
file: IO[Any] = ...
|
| 150 |
+
process: subprocess.Popen[bytes] = ...
|
| 151 |
+
writefile: IO[Any] = ...
|
| 152 |
+
readfile: IO[Any] = ...
|
| 153 |
+
if sys.version_info >= (3, 9):
|
| 154 |
+
def open(self, host: Optional[str] = ..., port: Optional[int] = ..., timeout: Optional[float] = ...) -> None: ...
|
| 155 |
+
else:
|
| 156 |
+
def open(self, host: Optional[str] = ..., port: Optional[int] = ...) -> None: ...
|
| 157 |
+
def read(self, size: int) -> bytes: ...
|
| 158 |
+
def readline(self) -> bytes: ...
|
| 159 |
+
def send(self, data: bytes) -> None: ...
|
| 160 |
+
def shutdown(self) -> None: ...
|
| 161 |
+
|
| 162 |
+
class _Authenticator:
|
| 163 |
+
mech: Callable[[bytes], bytes] = ...
|
| 164 |
+
def __init__(self, mechinst: Callable[[bytes], bytes]) -> None: ...
|
| 165 |
+
def process(self, data: str) -> str: ...
|
| 166 |
+
def encode(self, inp: bytes) -> str: ...
|
| 167 |
+
def decode(self, inp: str) -> bytes: ...
|
| 168 |
+
|
| 169 |
+
def Internaldate2tuple(resp: str) -> time.struct_time: ...
|
| 170 |
+
def Int2AP(num: int) -> str: ...
|
| 171 |
+
def ParseFlags(resp: str) -> Tuple[str]: ...
|
| 172 |
+
def Time2Internaldate(date_time: Union[float, time.struct_time, str]) -> str: ...
|
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/2and3/keyword.pyi
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import sys
|
| 2 |
+
from typing import Sequence, Text
|
| 3 |
+
|
| 4 |
+
def iskeyword(s: Text) -> bool: ...
|
| 5 |
+
|
| 6 |
+
kwlist: Sequence[str]
|
| 7 |
+
|
| 8 |
+
if sys.version_info >= (3, 9):
|
| 9 |
+
def issoftkeyword(s: str) -> bool: ...
|
| 10 |
+
softkwlist: Sequence[str]
|
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/2and3/mailcap.pyi
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from typing import Dict, List, Mapping, Optional, Sequence, Tuple, Union
|
| 2 |
+
|
| 3 |
+
_Cap = Dict[str, Union[str, int]]
|
| 4 |
+
|
| 5 |
+
def findmatch(
|
| 6 |
+
caps: Mapping[str, List[_Cap]], MIMEtype: str, key: str = ..., filename: str = ..., plist: Sequence[str] = ...
|
| 7 |
+
) -> Tuple[Optional[str], Optional[_Cap]]: ...
|
| 8 |
+
def getcaps() -> Dict[str, List[_Cap]]: ...
|
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/2and3/mimetypes.pyi
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import sys
|
| 2 |
+
from typing import IO, Dict, List, Optional, Sequence, Text, Tuple, Union
|
| 3 |
+
|
| 4 |
+
if sys.version_info >= (3, 8):
|
| 5 |
+
from os import PathLike
|
| 6 |
+
def guess_type(url: Union[Text, PathLike[str]], strict: bool = ...) -> Tuple[Optional[str], Optional[str]]: ...
|
| 7 |
+
|
| 8 |
+
else:
|
| 9 |
+
def guess_type(url: Text, strict: bool = ...) -> Tuple[Optional[str], Optional[str]]: ...
|
| 10 |
+
|
| 11 |
+
def guess_all_extensions(type: str, strict: bool = ...) -> List[str]: ...
|
| 12 |
+
def guess_extension(type: str, strict: bool = ...) -> Optional[str]: ...
|
| 13 |
+
def init(files: Optional[Sequence[str]] = ...) -> None: ...
|
| 14 |
+
def read_mime_types(filename: str) -> Optional[Dict[str, str]]: ...
|
| 15 |
+
def add_type(type: str, ext: str, strict: bool = ...) -> None: ...
|
| 16 |
+
|
| 17 |
+
inited: bool
|
| 18 |
+
knownfiles: List[str]
|
| 19 |
+
suffix_map: Dict[str, str]
|
| 20 |
+
encodings_map: Dict[str, str]
|
| 21 |
+
types_map: Dict[str, str]
|
| 22 |
+
common_types: Dict[str, str]
|
| 23 |
+
|
| 24 |
+
class MimeTypes:
|
| 25 |
+
suffix_map: Dict[str, str]
|
| 26 |
+
encodings_map: Dict[str, str]
|
| 27 |
+
types_map: Tuple[Dict[str, str], Dict[str, str]]
|
| 28 |
+
types_map_inv: Tuple[Dict[str, str], Dict[str, str]]
|
| 29 |
+
def __init__(self, filenames: Tuple[str, ...] = ..., strict: bool = ...) -> None: ...
|
| 30 |
+
def guess_extension(self, type: str, strict: bool = ...) -> Optional[str]: ...
|
| 31 |
+
def guess_type(self, url: str, strict: bool = ...) -> Tuple[Optional[str], Optional[str]]: ...
|
| 32 |
+
def guess_all_extensions(self, type: str, strict: bool = ...) -> List[str]: ...
|
| 33 |
+
def read(self, filename: str, strict: bool = ...) -> None: ...
|
| 34 |
+
def readfp(self, fp: IO[str], strict: bool = ...) -> None: ...
|
| 35 |
+
if sys.platform == "win32":
|
| 36 |
+
def read_windows_registry(self, strict: bool = ...) -> None: ...
|
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/2and3/msvcrt.pyi
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import sys
|
| 2 |
+
from typing import Text
|
| 3 |
+
|
| 4 |
+
# This module is only available on Windows
|
| 5 |
+
if sys.platform == "win32":
|
| 6 |
+
LK_LOCK: int
|
| 7 |
+
LK_NBLCK: int
|
| 8 |
+
LK_NBRLCK: int
|
| 9 |
+
LK_RLCK: int
|
| 10 |
+
LK_UNLCK: int
|
| 11 |
+
def locking(__fd: int, __mode: int, __nbytes: int) -> None: ...
|
| 12 |
+
def setmode(__fd: int, __mode: int) -> int: ...
|
| 13 |
+
def open_osfhandle(__handle: int, __flags: int) -> int: ...
|
| 14 |
+
def get_osfhandle(__fd: int) -> int: ...
|
| 15 |
+
def kbhit() -> bool: ...
|
| 16 |
+
def getch() -> bytes: ...
|
| 17 |
+
def getwch() -> Text: ...
|
| 18 |
+
def getche() -> bytes: ...
|
| 19 |
+
def getwche() -> Text: ...
|
| 20 |
+
def putch(__char: bytes) -> None: ...
|
| 21 |
+
def putwch(__unicode_char: Text) -> None: ...
|
| 22 |
+
def ungetch(__char: bytes) -> None: ...
|
| 23 |
+
def ungetwch(__unicode_char: Text) -> None: ...
|
| 24 |
+
def heapmin() -> None: ...
|