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 +4 -0
- material/dataset/Datasets/Electron Microscopy Image Masks/TiO2_Masks_Manual_4connected/1908294_m.tif +3 -0
- material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/2/CGIHTTPServer.pyi +6 -0
- material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/2/Cookie.pyi +40 -0
- material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/2/_sre.pyi +51 -0
- material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/2/atexit.pyi +5 -0
- material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/2/dummy_thread.pyi +21 -0
- material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/2/imp.pyi +33 -0
- material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/2/md5.pyi +5 -0
- material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/2/sets.pyi +60 -0
- material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/2/urllib2.pyi +186 -0
- material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/2/xmlrpclib.pyi +248 -0
- material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/3/collections/__init__.pyi +327 -0
- material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/3/collections/abc.pyi +27 -0
- material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/3/dbm/ndbm.pyi +34 -0
- material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/3/distutils/command/build_scripts.pyi +0 -0
- material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/3/distutils/command/install_scripts.pyi +0 -0
- material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/3/distutils/config.pyi +17 -0
- material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/3/distutils/core.pyi +48 -0
- material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/3/distutils/debug.pyi +1 -0
- material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/3/distutils/dep_util.pyi +5 -0
- material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/3/distutils/fancy_getopt.pyi +21 -0
- material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/3/distutils/filelist.pyi +1 -0
- material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/3/distutils/log.pyi +25 -0
- material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/3/distutils/sysconfig.pyi +14 -0
- material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/3/distutils/text_file.pyi +21 -0
- material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/3/distutils/util.pyi +23 -0
- material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/3/distutils/version.pyi +38 -0
- material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/3/email/__init__.pyi +23 -0
- material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/3/email/charset.pyi +28 -0
- material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/3/email/contentmanager.pyi +11 -0
- material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/3/email/encoders.pyi +6 -0
- material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/3/email/errors.pyi +17 -0
- material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/3/email/feedparser.pyi +21 -0
- material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/3/email/generator.pyi +18 -0
- material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/3/email/header.pyi +26 -0
- material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/3/email/headerregistry.pyi +90 -0
- material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/3/email/iterators.pyi +5 -0
- material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/3/email/message.pyi +87 -0
- material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/3/email/mime/application.pyi +16 -0
- material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/3/email/mime/base.pyi +8 -0
- material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/3/email/mime/message.pyi +7 -0
- material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/3/email/mime/multipart.pyi +17 -0
- material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/3/email/mime/text.pyi +8 -0
- material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/3/email/parser.pyi +27 -0
- material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/3/email/policy.pyi +54 -0
- material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/3/email/utils.pyi +40 -0
- material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/3/hashlib.pyi +123 -0
- material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/3/http/client.pyi +211 -0
- material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/3/importlib/util.pyi +40 -0
.gitattributes
CHANGED
|
@@ -474,3 +474,7 @@ material/dataset/Datasets/Electron[[:space:]]Microscopy[[:space:]]Image[[:space:
|
|
| 474 |
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/xlsxwriter/__pycache__/worksheet.cpython-310.pyc filter=lfs diff=lfs merge=lfs -text
|
| 475 |
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/matplotlib/mpl-data/fonts/ttf/DejaVuSansMono-Bold.ttf filter=lfs diff=lfs merge=lfs -text
|
| 476 |
material/dataset/Datasets/Electron[[:space:]]Microscopy[[:space:]]Image[[:space:]]Masks/TiO2_Masks_Manual_4connected/1908298_m.tif filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 474 |
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/xlsxwriter/__pycache__/worksheet.cpython-310.pyc filter=lfs diff=lfs merge=lfs -text
|
| 475 |
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/matplotlib/mpl-data/fonts/ttf/DejaVuSansMono-Bold.ttf filter=lfs diff=lfs merge=lfs -text
|
| 476 |
material/dataset/Datasets/Electron[[:space:]]Microscopy[[:space:]]Image[[:space:]]Masks/TiO2_Masks_Manual_4connected/1908298_m.tif filter=lfs diff=lfs merge=lfs -text
|
| 477 |
+
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/matplotlib/mpl-data/fonts/ttf/DejaVuSans.ttf filter=lfs diff=lfs merge=lfs -text
|
| 478 |
+
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/pillow.libs/libbrotlicommon-c55a5f7a.so.1.1.0 filter=lfs diff=lfs merge=lfs -text
|
| 479 |
+
material/dataset/Datasets/Electron[[:space:]]Microscopy[[:space:]]Image[[:space:]]Masks/TiO2_Masks_Manual_4connected/1908294_m.tif filter=lfs diff=lfs merge=lfs -text
|
| 480 |
+
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/pygments/lexers/__pycache__/lisp.cpython-310.pyc filter=lfs diff=lfs merge=lfs -text
|
material/dataset/Datasets/Electron Microscopy Image Masks/TiO2_Masks_Manual_4connected/1908294_m.tif
ADDED
|
|
Git LFS Details
|
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/2/CGIHTTPServer.pyi
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import SimpleHTTPServer
|
| 2 |
+
from typing import List
|
| 3 |
+
|
| 4 |
+
class CGIHTTPRequestHandler(SimpleHTTPServer.SimpleHTTPRequestHandler):
|
| 5 |
+
cgi_directories: List[str]
|
| 6 |
+
def do_POST(self) -> None: ...
|
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/2/Cookie.pyi
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from typing import Any, Dict, Optional
|
| 2 |
+
|
| 3 |
+
class CookieError(Exception): ...
|
| 4 |
+
|
| 5 |
+
class Morsel(Dict[Any, Any]):
|
| 6 |
+
key: Any
|
| 7 |
+
def __init__(self): ...
|
| 8 |
+
def __setitem__(self, K, V): ...
|
| 9 |
+
def isReservedKey(self, K): ...
|
| 10 |
+
value: Any
|
| 11 |
+
coded_value: Any
|
| 12 |
+
def set(self, key, val, coded_val, LegalChars=..., idmap=..., translate=...): ...
|
| 13 |
+
def output(self, attrs: Optional[Any] = ..., header=...): ...
|
| 14 |
+
def js_output(self, attrs: Optional[Any] = ...): ...
|
| 15 |
+
def OutputString(self, attrs: Optional[Any] = ...): ...
|
| 16 |
+
|
| 17 |
+
class BaseCookie(Dict[Any, Any]):
|
| 18 |
+
def value_decode(self, val): ...
|
| 19 |
+
def value_encode(self, val): ...
|
| 20 |
+
def __init__(self, input: Optional[Any] = ...): ...
|
| 21 |
+
def __setitem__(self, key, value): ...
|
| 22 |
+
def output(self, attrs: Optional[Any] = ..., header=..., sep=...): ...
|
| 23 |
+
def js_output(self, attrs: Optional[Any] = ...): ...
|
| 24 |
+
def load(self, rawdata): ...
|
| 25 |
+
|
| 26 |
+
class SimpleCookie(BaseCookie):
|
| 27 |
+
def value_decode(self, val): ...
|
| 28 |
+
def value_encode(self, val): ...
|
| 29 |
+
|
| 30 |
+
class SerialCookie(BaseCookie):
|
| 31 |
+
def __init__(self, input: Optional[Any] = ...): ...
|
| 32 |
+
def value_decode(self, val): ...
|
| 33 |
+
def value_encode(self, val): ...
|
| 34 |
+
|
| 35 |
+
class SmartCookie(BaseCookie):
|
| 36 |
+
def __init__(self, input: Optional[Any] = ...): ...
|
| 37 |
+
def value_decode(self, val): ...
|
| 38 |
+
def value_encode(self, val): ...
|
| 39 |
+
|
| 40 |
+
Cookie: Any
|
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/2/_sre.pyi
ADDED
|
@@ -0,0 +1,51 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from typing import Any, Dict, Iterable, List, Mapping, Optional, Sequence, Tuple, Union, overload
|
| 2 |
+
|
| 3 |
+
CODESIZE: int
|
| 4 |
+
MAGIC: int
|
| 5 |
+
MAXREPEAT: long
|
| 6 |
+
copyright: str
|
| 7 |
+
|
| 8 |
+
class SRE_Match(object):
|
| 9 |
+
def start(self, group: int = ...) -> int: ...
|
| 10 |
+
def end(self, group: int = ...) -> int: ...
|
| 11 |
+
def expand(self, s: str) -> Any: ...
|
| 12 |
+
@overload
|
| 13 |
+
def group(self) -> str: ...
|
| 14 |
+
@overload
|
| 15 |
+
def group(self, group: int = ...) -> Optional[str]: ...
|
| 16 |
+
def groupdict(self) -> Dict[int, Optional[str]]: ...
|
| 17 |
+
def groups(self) -> Tuple[Optional[str], ...]: ...
|
| 18 |
+
def span(self) -> Tuple[int, int]: ...
|
| 19 |
+
@property
|
| 20 |
+
def regs(self) -> Tuple[Tuple[int, int], ...]: ... # undocumented
|
| 21 |
+
|
| 22 |
+
class SRE_Scanner(object):
|
| 23 |
+
pattern: str
|
| 24 |
+
def match(self) -> SRE_Match: ...
|
| 25 |
+
def search(self) -> SRE_Match: ...
|
| 26 |
+
|
| 27 |
+
class SRE_Pattern(object):
|
| 28 |
+
pattern: str
|
| 29 |
+
flags: int
|
| 30 |
+
groups: int
|
| 31 |
+
groupindex: Mapping[str, int]
|
| 32 |
+
indexgroup: Sequence[int]
|
| 33 |
+
def findall(self, source: str, pos: int = ..., endpos: int = ...) -> List[Union[Tuple[Any, ...], str]]: ...
|
| 34 |
+
def finditer(self, source: str, pos: int = ..., endpos: int = ...) -> Iterable[Union[Tuple[Any, ...], str]]: ...
|
| 35 |
+
def match(self, pattern, pos: int = ..., endpos: int = ...) -> SRE_Match: ...
|
| 36 |
+
def scanner(self, s: str, start: int = ..., end: int = ...) -> SRE_Scanner: ...
|
| 37 |
+
def search(self, pattern, pos: int = ..., endpos: int = ...) -> SRE_Match: ...
|
| 38 |
+
def split(self, source: str, maxsplit: int = ...) -> List[Optional[str]]: ...
|
| 39 |
+
def sub(self, repl: str, string: str, count: int = ...) -> Tuple[Any, ...]: ...
|
| 40 |
+
def subn(self, repl: str, string: str, count: int = ...) -> Tuple[Any, ...]: ...
|
| 41 |
+
|
| 42 |
+
def compile(
|
| 43 |
+
pattern: str,
|
| 44 |
+
flags: int,
|
| 45 |
+
code: List[int],
|
| 46 |
+
groups: int = ...,
|
| 47 |
+
groupindex: Mapping[str, int] = ...,
|
| 48 |
+
indexgroup: Sequence[int] = ...,
|
| 49 |
+
) -> SRE_Pattern: ...
|
| 50 |
+
def getcodesize() -> int: ...
|
| 51 |
+
def getlower(a: int, b: int) -> int: ...
|
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/2/atexit.pyi
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from typing import Any, TypeVar
|
| 2 |
+
|
| 3 |
+
_FT = TypeVar("_FT")
|
| 4 |
+
|
| 5 |
+
def register(func: _FT, *args: Any, **kargs: Any) -> _FT: ...
|
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/2/dummy_thread.pyi
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from typing import Any, Callable, Dict, NoReturn, Optional, Tuple
|
| 2 |
+
|
| 3 |
+
class error(Exception):
|
| 4 |
+
def __init__(self, *args: Any) -> None: ...
|
| 5 |
+
|
| 6 |
+
def start_new_thread(function: Callable[..., Any], args: Tuple[Any, ...], kwargs: Dict[str, Any] = ...) -> None: ...
|
| 7 |
+
def exit() -> NoReturn: ...
|
| 8 |
+
def get_ident() -> int: ...
|
| 9 |
+
def allocate_lock() -> LockType: ...
|
| 10 |
+
def stack_size(size: Optional[int] = ...) -> int: ...
|
| 11 |
+
|
| 12 |
+
class LockType(object):
|
| 13 |
+
locked_status: bool
|
| 14 |
+
def __init__(self) -> None: ...
|
| 15 |
+
def acquire(self, waitflag: Optional[bool] = ...) -> bool: ...
|
| 16 |
+
def __enter__(self, waitflag: Optional[bool] = ...) -> bool: ...
|
| 17 |
+
def __exit__(self, typ: Any, val: Any, tb: Any) -> None: ...
|
| 18 |
+
def release(self) -> bool: ...
|
| 19 |
+
def locked(self) -> bool: ...
|
| 20 |
+
|
| 21 |
+
def interrupt_main() -> None: ...
|
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/2/imp.pyi
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import types
|
| 2 |
+
from typing import IO, Any, Iterable, List, Optional, Tuple
|
| 3 |
+
|
| 4 |
+
C_BUILTIN: int
|
| 5 |
+
C_EXTENSION: int
|
| 6 |
+
IMP_HOOK: int
|
| 7 |
+
PKG_DIRECTORY: int
|
| 8 |
+
PY_CODERESOURCE: int
|
| 9 |
+
PY_COMPILED: int
|
| 10 |
+
PY_FROZEN: int
|
| 11 |
+
PY_RESOURCE: int
|
| 12 |
+
PY_SOURCE: int
|
| 13 |
+
SEARCH_ERROR: int
|
| 14 |
+
|
| 15 |
+
def acquire_lock() -> None: ...
|
| 16 |
+
def find_module(name: str, path: Iterable[str] = ...) -> Optional[Tuple[IO[Any], str, Tuple[str, str, int]]]: ...
|
| 17 |
+
def get_magic() -> str: ...
|
| 18 |
+
def get_suffixes() -> List[Tuple[str, str, int]]: ...
|
| 19 |
+
def init_builtin(name: str) -> types.ModuleType: ...
|
| 20 |
+
def init_frozen(name: str) -> types.ModuleType: ...
|
| 21 |
+
def is_builtin(name: str) -> int: ...
|
| 22 |
+
def is_frozen(name: str) -> bool: ...
|
| 23 |
+
def load_compiled(name: str, pathname: str, file: IO[Any] = ...) -> types.ModuleType: ...
|
| 24 |
+
def load_dynamic(name: str, pathname: str, file: IO[Any] = ...) -> types.ModuleType: ...
|
| 25 |
+
def load_module(name: str, file: str, pathname: str, description: Tuple[str, str, int]) -> types.ModuleType: ...
|
| 26 |
+
def load_source(name: str, pathname: str, file: IO[Any] = ...) -> types.ModuleType: ...
|
| 27 |
+
def lock_held() -> bool: ...
|
| 28 |
+
def new_module(name: str) -> types.ModuleType: ...
|
| 29 |
+
def release_lock() -> None: ...
|
| 30 |
+
|
| 31 |
+
class NullImporter:
|
| 32 |
+
def __init__(self, path_string: str) -> None: ...
|
| 33 |
+
def find_module(self, fullname: str, path: str = ...) -> None: ...
|
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/2/md5.pyi
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from hashlib import md5 as md5
|
| 2 |
+
|
| 3 |
+
new = md5
|
| 4 |
+
blocksize: int
|
| 5 |
+
digest_size: int
|
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/2/sets.pyi
ADDED
|
@@ -0,0 +1,60 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from typing import Any, Callable, Hashable, Iterable, Iterator, MutableMapping, Optional, TypeVar, Union
|
| 2 |
+
|
| 3 |
+
_T = TypeVar("_T")
|
| 4 |
+
_Setlike = Union[BaseSet[_T], Iterable[_T]]
|
| 5 |
+
_SelfT = TypeVar("_SelfT")
|
| 6 |
+
|
| 7 |
+
class BaseSet(Iterable[_T]):
|
| 8 |
+
def __init__(self) -> None: ...
|
| 9 |
+
def __len__(self) -> int: ...
|
| 10 |
+
def __repr__(self) -> str: ...
|
| 11 |
+
def __str__(self) -> str: ...
|
| 12 |
+
def __iter__(self) -> Iterator[_T]: ...
|
| 13 |
+
def __cmp__(self, other: Any) -> int: ...
|
| 14 |
+
def __eq__(self, other: Any) -> bool: ...
|
| 15 |
+
def __ne__(self, other: Any) -> bool: ...
|
| 16 |
+
def copy(self: _SelfT) -> _SelfT: ...
|
| 17 |
+
def __copy__(self: _SelfT) -> _SelfT: ...
|
| 18 |
+
def __deepcopy__(self: _SelfT, memo: MutableMapping[int, BaseSet[_T]]) -> _SelfT: ...
|
| 19 |
+
def __or__(self: _SelfT, other: BaseSet[_T]) -> _SelfT: ...
|
| 20 |
+
def union(self: _SelfT, other: _Setlike[_T]) -> _SelfT: ...
|
| 21 |
+
def __and__(self: _SelfT, other: BaseSet[_T]) -> _SelfT: ...
|
| 22 |
+
def intersection(self: _SelfT, other: _Setlike[Any]) -> _SelfT: ...
|
| 23 |
+
def __xor__(self: _SelfT, other: BaseSet[_T]) -> _SelfT: ...
|
| 24 |
+
def symmetric_difference(self: _SelfT, other: _Setlike[_T]) -> _SelfT: ...
|
| 25 |
+
def __sub__(self: _SelfT, other: BaseSet[_T]) -> _SelfT: ...
|
| 26 |
+
def difference(self: _SelfT, other: _Setlike[Any]) -> _SelfT: ...
|
| 27 |
+
def __contains__(self, element: Any) -> bool: ...
|
| 28 |
+
def issubset(self, other: BaseSet[_T]) -> bool: ...
|
| 29 |
+
def issuperset(self, other: BaseSet[_T]) -> bool: ...
|
| 30 |
+
def __le__(self, other: BaseSet[_T]) -> bool: ...
|
| 31 |
+
def __ge__(self, other: BaseSet[_T]) -> bool: ...
|
| 32 |
+
def __lt__(self, other: BaseSet[_T]) -> bool: ...
|
| 33 |
+
def __gt__(self, other: BaseSet[_T]) -> bool: ...
|
| 34 |
+
|
| 35 |
+
class ImmutableSet(BaseSet[_T], Hashable):
|
| 36 |
+
def __init__(self, iterable: Optional[_Setlike[_T]] = ...) -> None: ...
|
| 37 |
+
def __hash__(self) -> int: ...
|
| 38 |
+
|
| 39 |
+
class Set(BaseSet[_T]):
|
| 40 |
+
def __init__(self, iterable: Optional[_Setlike[_T]] = ...) -> None: ...
|
| 41 |
+
def __ior__(self: _SelfT, other: BaseSet[_T]) -> _SelfT: ...
|
| 42 |
+
def union_update(self, other: _Setlike[_T]) -> None: ...
|
| 43 |
+
def __iand__(self: _SelfT, other: BaseSet[_T]) -> _SelfT: ...
|
| 44 |
+
def intersection_update(self, other: _Setlike[Any]) -> None: ...
|
| 45 |
+
def __ixor__(self: _SelfT, other: BaseSet[_T]) -> _SelfT: ...
|
| 46 |
+
def symmetric_difference_update(self, other: _Setlike[_T]) -> None: ...
|
| 47 |
+
def __isub__(self: _SelfT, other: BaseSet[_T]) -> _SelfT: ...
|
| 48 |
+
def difference_update(self, other: _Setlike[Any]) -> None: ...
|
| 49 |
+
def update(self, iterable: _Setlike[_T]) -> None: ...
|
| 50 |
+
def clear(self) -> None: ...
|
| 51 |
+
def add(self, element: _T) -> None: ...
|
| 52 |
+
def remove(self, element: _T) -> None: ...
|
| 53 |
+
def discard(self, element: _T) -> None: ...
|
| 54 |
+
def pop(self) -> _T: ...
|
| 55 |
+
def __as_immutable__(self) -> ImmutableSet[_T]: ...
|
| 56 |
+
def __as_temporarily_immutable__(self) -> _TemporarilyImmutableSet[_T]: ...
|
| 57 |
+
|
| 58 |
+
class _TemporarilyImmutableSet(BaseSet[_T]):
|
| 59 |
+
def __init__(self, set: BaseSet[_T]) -> None: ...
|
| 60 |
+
def __hash__(self) -> int: ...
|
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/2/urllib2.pyi
ADDED
|
@@ -0,0 +1,186 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import ssl
|
| 2 |
+
from httplib import HTTPConnectionProtocol, HTTPResponse
|
| 3 |
+
from typing import Any, AnyStr, Callable, Dict, List, Mapping, Optional, Sequence, Text, Tuple, Type, Union
|
| 4 |
+
from urllib import addinfourl
|
| 5 |
+
|
| 6 |
+
_string = Union[str, unicode]
|
| 7 |
+
|
| 8 |
+
class URLError(IOError):
|
| 9 |
+
reason: Union[str, BaseException]
|
| 10 |
+
|
| 11 |
+
class HTTPError(URLError, addinfourl):
|
| 12 |
+
code: int
|
| 13 |
+
headers: Mapping[str, str]
|
| 14 |
+
def __init__(self, url, code: int, msg: str, hdrs: Mapping[str, str], fp: addinfourl) -> None: ...
|
| 15 |
+
|
| 16 |
+
class Request(object):
|
| 17 |
+
host: str
|
| 18 |
+
port: str
|
| 19 |
+
data: str
|
| 20 |
+
headers: Dict[str, str]
|
| 21 |
+
unverifiable: bool
|
| 22 |
+
type: Optional[str]
|
| 23 |
+
origin_req_host = ...
|
| 24 |
+
unredirected_hdrs: Dict[str, str]
|
| 25 |
+
def __init__(
|
| 26 |
+
self,
|
| 27 |
+
url: str,
|
| 28 |
+
data: Optional[str] = ...,
|
| 29 |
+
headers: Dict[str, str] = ...,
|
| 30 |
+
origin_req_host: Optional[str] = ...,
|
| 31 |
+
unverifiable: bool = ...,
|
| 32 |
+
) -> None: ...
|
| 33 |
+
def __getattr__(self, attr): ...
|
| 34 |
+
def get_method(self) -> str: ...
|
| 35 |
+
def add_data(self, data) -> None: ...
|
| 36 |
+
def has_data(self) -> bool: ...
|
| 37 |
+
def get_data(self) -> str: ...
|
| 38 |
+
def get_full_url(self) -> str: ...
|
| 39 |
+
def get_type(self): ...
|
| 40 |
+
def get_host(self) -> str: ...
|
| 41 |
+
def get_selector(self): ...
|
| 42 |
+
def set_proxy(self, host, type) -> None: ...
|
| 43 |
+
def has_proxy(self) -> bool: ...
|
| 44 |
+
def get_origin_req_host(self) -> str: ...
|
| 45 |
+
def is_unverifiable(self) -> bool: ...
|
| 46 |
+
def add_header(self, key: str, val: str) -> None: ...
|
| 47 |
+
def add_unredirected_header(self, key: str, val: str) -> None: ...
|
| 48 |
+
def has_header(self, header_name: str) -> bool: ...
|
| 49 |
+
def get_header(self, header_name: str, default: Optional[str] = ...) -> str: ...
|
| 50 |
+
def header_items(self): ...
|
| 51 |
+
|
| 52 |
+
class OpenerDirector(object):
|
| 53 |
+
addheaders: List[Tuple[str, str]]
|
| 54 |
+
def add_handler(self, handler: BaseHandler) -> None: ...
|
| 55 |
+
def open(
|
| 56 |
+
self, fullurl: Union[Request, _string], data: Optional[_string] = ..., timeout: Optional[float] = ...
|
| 57 |
+
) -> Optional[addinfourl]: ...
|
| 58 |
+
def error(self, proto: _string, *args: Any): ...
|
| 59 |
+
|
| 60 |
+
# Note that this type is somewhat a lie. The return *can* be None if
|
| 61 |
+
# a custom opener has been installed that fails to handle the request.
|
| 62 |
+
def urlopen(
|
| 63 |
+
url: Union[Request, _string],
|
| 64 |
+
data: Optional[_string] = ...,
|
| 65 |
+
timeout: Optional[float] = ...,
|
| 66 |
+
cafile: Optional[_string] = ...,
|
| 67 |
+
capath: Optional[_string] = ...,
|
| 68 |
+
cadefault: bool = ...,
|
| 69 |
+
context: Optional[ssl.SSLContext] = ...,
|
| 70 |
+
) -> addinfourl: ...
|
| 71 |
+
def install_opener(opener: OpenerDirector) -> None: ...
|
| 72 |
+
def build_opener(*handlers: Union[BaseHandler, Type[BaseHandler]]) -> OpenerDirector: ...
|
| 73 |
+
|
| 74 |
+
class BaseHandler:
|
| 75 |
+
handler_order: int
|
| 76 |
+
parent: OpenerDirector
|
| 77 |
+
def add_parent(self, parent: OpenerDirector) -> None: ...
|
| 78 |
+
def close(self) -> None: ...
|
| 79 |
+
def __lt__(self, other: Any) -> bool: ...
|
| 80 |
+
|
| 81 |
+
class HTTPErrorProcessor(BaseHandler):
|
| 82 |
+
def http_response(self, request, response): ...
|
| 83 |
+
|
| 84 |
+
class HTTPDefaultErrorHandler(BaseHandler):
|
| 85 |
+
def http_error_default(self, req: Request, fp: addinfourl, code: int, msg: str, hdrs: Mapping[str, str]): ...
|
| 86 |
+
|
| 87 |
+
class HTTPRedirectHandler(BaseHandler):
|
| 88 |
+
max_repeats: int
|
| 89 |
+
max_redirections: int
|
| 90 |
+
def redirect_request(self, req: Request, fp: addinfourl, code: int, msg: str, headers: Mapping[str, str], newurl): ...
|
| 91 |
+
def http_error_301(self, req: Request, fp: addinfourl, code: int, msg: str, headers: Mapping[str, str]): ...
|
| 92 |
+
def http_error_302(self, req: Request, fp: addinfourl, code: int, msg: str, headers: Mapping[str, str]): ...
|
| 93 |
+
def http_error_303(self, req: Request, fp: addinfourl, code: int, msg: str, headers: Mapping[str, str]): ...
|
| 94 |
+
def http_error_307(self, req: Request, fp: addinfourl, code: int, msg: str, headers: Mapping[str, str]): ...
|
| 95 |
+
inf_msg: str
|
| 96 |
+
|
| 97 |
+
class ProxyHandler(BaseHandler):
|
| 98 |
+
proxies: Mapping[str, str]
|
| 99 |
+
def __init__(self, proxies: Optional[Mapping[str, str]] = ...): ...
|
| 100 |
+
def proxy_open(self, req: Request, proxy, type): ...
|
| 101 |
+
|
| 102 |
+
class HTTPPasswordMgr:
|
| 103 |
+
def __init__(self) -> None: ...
|
| 104 |
+
def add_password(self, realm: Optional[Text], uri: Union[Text, Sequence[Text]], user: Text, passwd: Text) -> None: ...
|
| 105 |
+
def find_user_password(self, realm: Optional[Text], authuri: Text) -> Tuple[Any, Any]: ...
|
| 106 |
+
def reduce_uri(self, uri: _string, default_port: bool = ...) -> Tuple[Any, Any]: ...
|
| 107 |
+
def is_suburi(self, base: _string, test: _string) -> bool: ...
|
| 108 |
+
|
| 109 |
+
class HTTPPasswordMgrWithDefaultRealm(HTTPPasswordMgr): ...
|
| 110 |
+
|
| 111 |
+
class AbstractBasicAuthHandler:
|
| 112 |
+
def __init__(self, password_mgr: Optional[HTTPPasswordMgr] = ...) -> None: ...
|
| 113 |
+
def add_password(self, realm: Optional[Text], uri: Union[Text, Sequence[Text]], user: Text, passwd: Text) -> None: ...
|
| 114 |
+
def http_error_auth_reqed(self, authreq, host, req: Request, headers: Mapping[str, str]): ...
|
| 115 |
+
def retry_http_basic_auth(self, host, req: Request, realm): ...
|
| 116 |
+
|
| 117 |
+
class HTTPBasicAuthHandler(AbstractBasicAuthHandler, BaseHandler):
|
| 118 |
+
auth_header: str
|
| 119 |
+
def http_error_401(self, req: Request, fp: addinfourl, code: int, msg: str, headers: Mapping[str, str]): ...
|
| 120 |
+
|
| 121 |
+
class ProxyBasicAuthHandler(AbstractBasicAuthHandler, BaseHandler):
|
| 122 |
+
auth_header: str
|
| 123 |
+
def http_error_407(self, req: Request, fp: addinfourl, code: int, msg: str, headers: Mapping[str, str]): ...
|
| 124 |
+
|
| 125 |
+
class AbstractDigestAuthHandler:
|
| 126 |
+
def __init__(self, passwd: Optional[HTTPPasswordMgr] = ...) -> None: ...
|
| 127 |
+
def add_password(self, realm: Optional[Text], uri: Union[Text, Sequence[Text]], user: Text, passwd: Text) -> None: ...
|
| 128 |
+
def reset_retry_count(self) -> None: ...
|
| 129 |
+
def http_error_auth_reqed(self, auth_header: str, host: str, req: Request, headers: Mapping[str, str]) -> None: ...
|
| 130 |
+
def retry_http_digest_auth(self, req: Request, auth: str) -> Optional[HTTPResponse]: ...
|
| 131 |
+
def get_cnonce(self, nonce: str) -> str: ...
|
| 132 |
+
def get_authorization(self, req: Request, chal: Mapping[str, str]) -> str: ...
|
| 133 |
+
def get_algorithm_impls(self, algorithm: str) -> Tuple[Callable[[str], str], Callable[[str, str], str]]: ...
|
| 134 |
+
def get_entity_digest(self, data: Optional[bytes], chal: Mapping[str, str]) -> Optional[str]: ...
|
| 135 |
+
|
| 136 |
+
class HTTPDigestAuthHandler(BaseHandler, AbstractDigestAuthHandler):
|
| 137 |
+
auth_header: str
|
| 138 |
+
handler_order: int
|
| 139 |
+
def http_error_401(self, req: Request, fp: addinfourl, code: int, msg: str, headers: Mapping[str, str]): ...
|
| 140 |
+
|
| 141 |
+
class ProxyDigestAuthHandler(BaseHandler, AbstractDigestAuthHandler):
|
| 142 |
+
auth_header: str
|
| 143 |
+
handler_order: int
|
| 144 |
+
def http_error_407(self, req: Request, fp: addinfourl, code: int, msg: str, headers: Mapping[str, str]): ...
|
| 145 |
+
|
| 146 |
+
class AbstractHTTPHandler(BaseHandler): # undocumented
|
| 147 |
+
def __init__(self, debuglevel: int = ...) -> None: ...
|
| 148 |
+
def set_http_debuglevel(self, level: int) -> None: ...
|
| 149 |
+
def do_request_(self, request: Request) -> Request: ...
|
| 150 |
+
def do_open(self, http_class: HTTPConnectionProtocol, req: Request, **http_conn_args: Optional[Any]) -> addinfourl: ...
|
| 151 |
+
|
| 152 |
+
class HTTPHandler(AbstractHTTPHandler):
|
| 153 |
+
def http_open(self, req: Request) -> addinfourl: ...
|
| 154 |
+
def http_request(self, request: Request) -> Request: ... # undocumented
|
| 155 |
+
|
| 156 |
+
class HTTPSHandler(AbstractHTTPHandler):
|
| 157 |
+
def __init__(self, debuglevel: int = ..., context: Optional[ssl.SSLContext] = ...) -> None: ...
|
| 158 |
+
def https_open(self, req: Request) -> addinfourl: ...
|
| 159 |
+
def https_request(self, request: Request) -> Request: ... # undocumented
|
| 160 |
+
|
| 161 |
+
class HTTPCookieProcessor(BaseHandler):
|
| 162 |
+
def __init__(self, cookiejar: Optional[Any] = ...): ...
|
| 163 |
+
def http_request(self, request: Request): ...
|
| 164 |
+
def http_response(self, request: Request, response): ...
|
| 165 |
+
|
| 166 |
+
class UnknownHandler(BaseHandler):
|
| 167 |
+
def unknown_open(self, req: Request): ...
|
| 168 |
+
|
| 169 |
+
class FileHandler(BaseHandler):
|
| 170 |
+
def file_open(self, req: Request): ...
|
| 171 |
+
def get_names(self): ...
|
| 172 |
+
def open_local_file(self, req: Request): ...
|
| 173 |
+
|
| 174 |
+
class FTPHandler(BaseHandler):
|
| 175 |
+
def ftp_open(self, req: Request): ...
|
| 176 |
+
def connect_ftp(self, user, passwd, host, port, dirs, timeout): ...
|
| 177 |
+
|
| 178 |
+
class CacheFTPHandler(FTPHandler):
|
| 179 |
+
def __init__(self) -> None: ...
|
| 180 |
+
def setTimeout(self, t: Optional[float]): ...
|
| 181 |
+
def setMaxConns(self, m: int): ...
|
| 182 |
+
def check_cache(self): ...
|
| 183 |
+
def clear_cache(self): ...
|
| 184 |
+
|
| 185 |
+
def parse_http_list(s: AnyStr) -> List[AnyStr]: ...
|
| 186 |
+
def parse_keqv_list(l: List[AnyStr]) -> Dict[AnyStr, AnyStr]: ...
|
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/2/xmlrpclib.pyi
ADDED
|
@@ -0,0 +1,248 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from datetime import datetime
|
| 2 |
+
from gzip import GzipFile
|
| 3 |
+
from httplib import HTTPConnection, HTTPResponse, HTTPSConnection
|
| 4 |
+
from ssl import SSLContext
|
| 5 |
+
from StringIO import StringIO
|
| 6 |
+
from time import struct_time
|
| 7 |
+
from types import InstanceType
|
| 8 |
+
from typing import IO, Any, AnyStr, Callable, Iterable, List, Mapping, MutableMapping, Optional, Tuple, Type, TypeVar, Union
|
| 9 |
+
|
| 10 |
+
_Unmarshaller = Any
|
| 11 |
+
_timeTuple = Tuple[int, int, int, int, int, int, int, int, int]
|
| 12 |
+
# Represents types that can be compared against a DateTime object
|
| 13 |
+
_dateTimeComp = Union[unicode, DateTime, datetime]
|
| 14 |
+
# A "host description" used by Transport factories
|
| 15 |
+
_hostDesc = Union[str, Tuple[str, Mapping[Any, Any]]]
|
| 16 |
+
|
| 17 |
+
def escape(s: AnyStr, replace: Callable[[AnyStr, AnyStr, AnyStr], AnyStr] = ...) -> AnyStr: ...
|
| 18 |
+
|
| 19 |
+
MAXINT: int
|
| 20 |
+
MININT: int
|
| 21 |
+
PARSE_ERROR: int
|
| 22 |
+
SERVER_ERROR: int
|
| 23 |
+
APPLICATION_ERROR: int
|
| 24 |
+
SYSTEM_ERROR: int
|
| 25 |
+
TRANSPORT_ERROR: int
|
| 26 |
+
NOT_WELLFORMED_ERROR: int
|
| 27 |
+
UNSUPPORTED_ENCODING: int
|
| 28 |
+
INVALID_ENCODING_CHAR: int
|
| 29 |
+
INVALID_XMLRPC: int
|
| 30 |
+
METHOD_NOT_FOUND: int
|
| 31 |
+
INVALID_METHOD_PARAMS: int
|
| 32 |
+
INTERNAL_ERROR: int
|
| 33 |
+
|
| 34 |
+
class Error(Exception): ...
|
| 35 |
+
|
| 36 |
+
class ProtocolError(Error):
|
| 37 |
+
url: str
|
| 38 |
+
errcode: int
|
| 39 |
+
errmsg: str
|
| 40 |
+
headers: Any
|
| 41 |
+
def __init__(self, url: str, errcode: int, errmsg: str, headers: Any) -> None: ...
|
| 42 |
+
|
| 43 |
+
class ResponseError(Error): ...
|
| 44 |
+
|
| 45 |
+
class Fault(Error):
|
| 46 |
+
faultCode: Any
|
| 47 |
+
faultString: str
|
| 48 |
+
def __init__(self, faultCode: Any, faultString: str, **extra: Any) -> None: ...
|
| 49 |
+
|
| 50 |
+
boolean: Type[bool]
|
| 51 |
+
Boolean: Type[bool]
|
| 52 |
+
|
| 53 |
+
class DateTime:
|
| 54 |
+
value: str
|
| 55 |
+
def __init__(self, value: Union[str, unicode, datetime, float, int, _timeTuple, struct_time] = ...) -> None: ...
|
| 56 |
+
def make_comparable(self, other: _dateTimeComp) -> Tuple[unicode, unicode]: ...
|
| 57 |
+
def __lt__(self, other: _dateTimeComp) -> bool: ...
|
| 58 |
+
def __le__(self, other: _dateTimeComp) -> bool: ...
|
| 59 |
+
def __gt__(self, other: _dateTimeComp) -> bool: ...
|
| 60 |
+
def __ge__(self, other: _dateTimeComp) -> bool: ...
|
| 61 |
+
def __eq__(self, other: _dateTimeComp) -> bool: ... # type: ignore
|
| 62 |
+
def __ne__(self, other: _dateTimeComp) -> bool: ... # type: ignore
|
| 63 |
+
def timetuple(self) -> struct_time: ...
|
| 64 |
+
def __cmp__(self, other: _dateTimeComp) -> int: ...
|
| 65 |
+
def decode(self, data: Any) -> None: ...
|
| 66 |
+
def encode(self, out: IO[str]) -> None: ...
|
| 67 |
+
|
| 68 |
+
class Binary:
|
| 69 |
+
data: str
|
| 70 |
+
def __init__(self, data: Optional[str] = ...) -> None: ...
|
| 71 |
+
def __cmp__(self, other: Any) -> int: ...
|
| 72 |
+
def decode(self, data: str) -> None: ...
|
| 73 |
+
def encode(self, out: IO[str]) -> None: ...
|
| 74 |
+
|
| 75 |
+
WRAPPERS: Tuple[Type[Any], ...]
|
| 76 |
+
|
| 77 |
+
# Still part of the public API, but see http://bugs.python.org/issue1773632
|
| 78 |
+
FastParser: None
|
| 79 |
+
FastUnmarshaller: None
|
| 80 |
+
FastMarshaller: None
|
| 81 |
+
|
| 82 |
+
# xmlrpclib.py will leave ExpatParser undefined if it can't import expat from
|
| 83 |
+
# xml.parsers. Because this is Python 2.7, the import will succeed.
|
| 84 |
+
class ExpatParser:
|
| 85 |
+
def __init__(self, target: _Unmarshaller) -> None: ...
|
| 86 |
+
def feed(self, data: str): ...
|
| 87 |
+
def close(self): ...
|
| 88 |
+
|
| 89 |
+
# TODO: Add xmllib.XMLParser as base class
|
| 90 |
+
class SlowParser:
|
| 91 |
+
handle_xml: Callable[[str, bool], None]
|
| 92 |
+
unknown_starttag: Callable[[str, Any], None]
|
| 93 |
+
handle_data: Callable[[str], None]
|
| 94 |
+
handle_cdata: Callable[[str], None]
|
| 95 |
+
unknown_endtag: Callable[[str, Callable[[Iterable[str], str], str]], None]
|
| 96 |
+
def __init__(self, target: _Unmarshaller) -> None: ...
|
| 97 |
+
|
| 98 |
+
class Marshaller:
|
| 99 |
+
memo: MutableMapping[int, Any]
|
| 100 |
+
data: Optional[str]
|
| 101 |
+
encoding: Optional[str]
|
| 102 |
+
allow_none: bool
|
| 103 |
+
def __init__(self, encoding: Optional[str] = ..., allow_none: bool = ...) -> None: ...
|
| 104 |
+
dispatch: Mapping[type, Callable[[Marshaller, str, Callable[[str], None]], None]]
|
| 105 |
+
def dumps(
|
| 106 |
+
self,
|
| 107 |
+
values: Union[
|
| 108 |
+
Iterable[
|
| 109 |
+
Union[
|
| 110 |
+
None,
|
| 111 |
+
int,
|
| 112 |
+
bool,
|
| 113 |
+
long,
|
| 114 |
+
float,
|
| 115 |
+
str,
|
| 116 |
+
unicode,
|
| 117 |
+
List[Any],
|
| 118 |
+
Tuple[Any, ...],
|
| 119 |
+
Mapping[Any, Any],
|
| 120 |
+
datetime,
|
| 121 |
+
InstanceType,
|
| 122 |
+
]
|
| 123 |
+
],
|
| 124 |
+
Fault,
|
| 125 |
+
],
|
| 126 |
+
) -> str: ...
|
| 127 |
+
def dump_nil(self, value: None, write: Callable[[str], None]) -> None: ...
|
| 128 |
+
def dump_int(self, value: int, write: Callable[[str], None]) -> None: ...
|
| 129 |
+
def dump_bool(self, value: bool, write: Callable[[str], None]) -> None: ...
|
| 130 |
+
def dump_long(self, value: long, write: Callable[[str], None]) -> None: ...
|
| 131 |
+
def dump_double(self, value: float, write: Callable[[str], None]) -> None: ...
|
| 132 |
+
def dump_string(
|
| 133 |
+
self,
|
| 134 |
+
value: str,
|
| 135 |
+
write: Callable[[str], None],
|
| 136 |
+
escape: Callable[[AnyStr, Callable[[AnyStr, AnyStr, AnyStr], AnyStr]], AnyStr] = ...,
|
| 137 |
+
) -> None: ...
|
| 138 |
+
def dump_unicode(
|
| 139 |
+
self,
|
| 140 |
+
value: unicode,
|
| 141 |
+
write: Callable[[str], None],
|
| 142 |
+
escape: Callable[[AnyStr, Callable[[AnyStr, AnyStr, AnyStr], AnyStr]], AnyStr] = ...,
|
| 143 |
+
) -> None: ...
|
| 144 |
+
def dump_array(self, value: Iterable[Any], write: Callable[[str], None]) -> None: ...
|
| 145 |
+
def dump_struct(
|
| 146 |
+
self,
|
| 147 |
+
value: Mapping[unicode, Any],
|
| 148 |
+
write: Callable[[str], None],
|
| 149 |
+
escape: Callable[[AnyStr, Callable[[AnyStr, AnyStr, AnyStr], AnyStr]], AnyStr] = ...,
|
| 150 |
+
) -> None: ...
|
| 151 |
+
def dump_datetime(self, value: datetime, write: Callable[[str], None]) -> None: ...
|
| 152 |
+
def dump_instance(self, value: InstanceType, write: Callable[[str], None]) -> None: ...
|
| 153 |
+
|
| 154 |
+
class Unmarshaller:
|
| 155 |
+
def append(self, object: Any) -> None: ...
|
| 156 |
+
def __init__(self, use_datetime: bool = ...) -> None: ...
|
| 157 |
+
def close(self) -> Tuple[Any, ...]: ...
|
| 158 |
+
def getmethodname(self) -> Optional[str]: ...
|
| 159 |
+
def xml(self, encoding: str, standalone: bool) -> None: ...
|
| 160 |
+
def start(self, tag: str, attrs: Any) -> None: ...
|
| 161 |
+
def data(self, text: str) -> None: ...
|
| 162 |
+
def end(self, tag: str, join: Callable[[Iterable[str], str], str] = ...) -> None: ...
|
| 163 |
+
def end_dispatch(self, tag: str, data: str) -> None: ...
|
| 164 |
+
dispatch: Mapping[str, Callable[[Unmarshaller, str], None]]
|
| 165 |
+
def end_nil(self, data: str): ...
|
| 166 |
+
def end_boolean(self, data: str) -> None: ...
|
| 167 |
+
def end_int(self, data: str) -> None: ...
|
| 168 |
+
def end_double(self, data: str) -> None: ...
|
| 169 |
+
def end_string(self, data: str) -> None: ...
|
| 170 |
+
def end_array(self, data: str) -> None: ...
|
| 171 |
+
def end_struct(self, data: str) -> None: ...
|
| 172 |
+
def end_base64(self, data: str) -> None: ...
|
| 173 |
+
def end_dateTime(self, data: str) -> None: ...
|
| 174 |
+
def end_value(self, data: str) -> None: ...
|
| 175 |
+
def end_params(self, data: str) -> None: ...
|
| 176 |
+
def end_fault(self, data: str) -> None: ...
|
| 177 |
+
def end_methodName(self, data: str) -> None: ...
|
| 178 |
+
|
| 179 |
+
class _MultiCallMethod:
|
| 180 |
+
def __init__(self, call_list: List[Tuple[str, Tuple[Any, ...]]], name: str) -> None: ...
|
| 181 |
+
|
| 182 |
+
class MultiCallIterator:
|
| 183 |
+
def __init__(self, results: List[Any]) -> None: ...
|
| 184 |
+
|
| 185 |
+
class MultiCall:
|
| 186 |
+
def __init__(self, server: ServerProxy) -> None: ...
|
| 187 |
+
def __getattr__(self, name: str) -> _MultiCallMethod: ...
|
| 188 |
+
def __call__(self) -> MultiCallIterator: ...
|
| 189 |
+
|
| 190 |
+
def getparser(use_datetime: bool = ...) -> Tuple[Union[ExpatParser, SlowParser], Unmarshaller]: ...
|
| 191 |
+
def dumps(
|
| 192 |
+
params: Union[Tuple[Any, ...], Fault],
|
| 193 |
+
methodname: Optional[str] = ...,
|
| 194 |
+
methodresponse: Optional[bool] = ...,
|
| 195 |
+
encoding: Optional[str] = ...,
|
| 196 |
+
allow_none: bool = ...,
|
| 197 |
+
) -> str: ...
|
| 198 |
+
def loads(data: str, use_datetime: bool = ...) -> Tuple[Tuple[Any, ...], Optional[str]]: ...
|
| 199 |
+
def gzip_encode(data: str) -> str: ...
|
| 200 |
+
def gzip_decode(data: str, max_decode: int = ...) -> str: ...
|
| 201 |
+
|
| 202 |
+
class GzipDecodedResponse(GzipFile):
|
| 203 |
+
stringio: StringIO[Any]
|
| 204 |
+
def __init__(self, response: HTTPResponse) -> None: ...
|
| 205 |
+
def close(self): ...
|
| 206 |
+
|
| 207 |
+
class _Method:
|
| 208 |
+
def __init__(self, send: Callable[[str, Tuple[Any, ...]], Any], name: str) -> None: ...
|
| 209 |
+
def __getattr__(self, name: str) -> _Method: ...
|
| 210 |
+
def __call__(self, *args: Any) -> Any: ...
|
| 211 |
+
|
| 212 |
+
class Transport:
|
| 213 |
+
user_agent: str
|
| 214 |
+
accept_gzip_encoding: bool
|
| 215 |
+
encode_threshold: Optional[int]
|
| 216 |
+
def __init__(self, use_datetime: bool = ...) -> None: ...
|
| 217 |
+
def request(self, host: _hostDesc, handler: str, request_body: str, verbose: bool = ...) -> Tuple[Any, ...]: ...
|
| 218 |
+
verbose: bool
|
| 219 |
+
def single_request(self, host: _hostDesc, handler: str, request_body: str, verbose: bool = ...) -> Tuple[Any, ...]: ...
|
| 220 |
+
def getparser(self) -> Tuple[Union[ExpatParser, SlowParser], Unmarshaller]: ...
|
| 221 |
+
def get_host_info(self, host: _hostDesc) -> Tuple[str, Optional[List[Tuple[str, str]]], Optional[Mapping[Any, Any]]]: ...
|
| 222 |
+
def make_connection(self, host: _hostDesc) -> HTTPConnection: ...
|
| 223 |
+
def close(self) -> None: ...
|
| 224 |
+
def send_request(self, connection: HTTPConnection, handler: str, request_body: str) -> None: ...
|
| 225 |
+
def send_host(self, connection: HTTPConnection, host: str) -> None: ...
|
| 226 |
+
def send_user_agent(self, connection: HTTPConnection) -> None: ...
|
| 227 |
+
def send_content(self, connection: HTTPConnection, request_body: str) -> None: ...
|
| 228 |
+
def parse_response(self, response: HTTPResponse) -> Tuple[Any, ...]: ...
|
| 229 |
+
|
| 230 |
+
class SafeTransport(Transport):
|
| 231 |
+
def __init__(self, use_datetime: bool = ..., context: Optional[SSLContext] = ...) -> None: ...
|
| 232 |
+
def make_connection(self, host: _hostDesc) -> HTTPSConnection: ...
|
| 233 |
+
|
| 234 |
+
class ServerProxy:
|
| 235 |
+
def __init__(
|
| 236 |
+
self,
|
| 237 |
+
uri: str,
|
| 238 |
+
transport: Optional[Transport] = ...,
|
| 239 |
+
encoding: Optional[str] = ...,
|
| 240 |
+
verbose: bool = ...,
|
| 241 |
+
allow_none: bool = ...,
|
| 242 |
+
use_datetime: bool = ...,
|
| 243 |
+
context: Optional[SSLContext] = ...,
|
| 244 |
+
) -> None: ...
|
| 245 |
+
def __getattr__(self, name: str) -> _Method: ...
|
| 246 |
+
def __call__(self, attr: str) -> Optional[Transport]: ...
|
| 247 |
+
|
| 248 |
+
Server = ServerProxy
|
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/3/collections/__init__.pyi
ADDED
|
@@ -0,0 +1,327 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import sys
|
| 2 |
+
import typing
|
| 3 |
+
from typing import (
|
| 4 |
+
AbstractSet,
|
| 5 |
+
Any,
|
| 6 |
+
AsyncGenerator as AsyncGenerator,
|
| 7 |
+
AsyncIterable as AsyncIterable,
|
| 8 |
+
AsyncIterator as AsyncIterator,
|
| 9 |
+
Awaitable as Awaitable,
|
| 10 |
+
ByteString as ByteString,
|
| 11 |
+
Callable as Callable,
|
| 12 |
+
Collection as Collection,
|
| 13 |
+
Container as Container,
|
| 14 |
+
Coroutine as Coroutine,
|
| 15 |
+
Dict,
|
| 16 |
+
Generator as Generator,
|
| 17 |
+
Generic,
|
| 18 |
+
Hashable as Hashable,
|
| 19 |
+
ItemsView as ItemsView,
|
| 20 |
+
Iterable as Iterable,
|
| 21 |
+
Iterator as Iterator,
|
| 22 |
+
KeysView as KeysView,
|
| 23 |
+
List,
|
| 24 |
+
Mapping as Mapping,
|
| 25 |
+
MappingView as MappingView,
|
| 26 |
+
MutableMapping as MutableMapping,
|
| 27 |
+
MutableSequence as MutableSequence,
|
| 28 |
+
MutableSet as MutableSet,
|
| 29 |
+
Optional,
|
| 30 |
+
Reversible as Reversible,
|
| 31 |
+
Sequence as Sequence,
|
| 32 |
+
Sized as Sized,
|
| 33 |
+
Tuple,
|
| 34 |
+
Type,
|
| 35 |
+
TypeVar,
|
| 36 |
+
Union,
|
| 37 |
+
ValuesView as ValuesView,
|
| 38 |
+
overload,
|
| 39 |
+
)
|
| 40 |
+
|
| 41 |
+
Set = AbstractSet
|
| 42 |
+
|
| 43 |
+
_S = TypeVar("_S")
|
| 44 |
+
_T = TypeVar("_T")
|
| 45 |
+
_KT = TypeVar("_KT")
|
| 46 |
+
_VT = TypeVar("_VT")
|
| 47 |
+
|
| 48 |
+
# namedtuple is special-cased in the type checker; the initializer is ignored.
|
| 49 |
+
if sys.version_info >= (3, 7):
|
| 50 |
+
def namedtuple(
|
| 51 |
+
typename: str,
|
| 52 |
+
field_names: Union[str, Iterable[str]],
|
| 53 |
+
*,
|
| 54 |
+
rename: bool = ...,
|
| 55 |
+
module: Optional[str] = ...,
|
| 56 |
+
defaults: Optional[Iterable[Any]] = ...,
|
| 57 |
+
) -> Type[Tuple[Any, ...]]: ...
|
| 58 |
+
|
| 59 |
+
else:
|
| 60 |
+
def namedtuple(
|
| 61 |
+
typename: str,
|
| 62 |
+
field_names: Union[str, Iterable[str]],
|
| 63 |
+
*,
|
| 64 |
+
verbose: bool = ...,
|
| 65 |
+
rename: bool = ...,
|
| 66 |
+
module: Optional[str] = ...,
|
| 67 |
+
) -> Type[Tuple[Any, ...]]: ...
|
| 68 |
+
|
| 69 |
+
class UserDict(MutableMapping[_KT, _VT]):
|
| 70 |
+
data: Dict[_KT, _VT]
|
| 71 |
+
def __init__(self, __dict: Optional[Mapping[_KT, _VT]] = ..., **kwargs: _VT) -> None: ...
|
| 72 |
+
def __len__(self) -> int: ...
|
| 73 |
+
def __getitem__(self, key: _KT) -> _VT: ...
|
| 74 |
+
def __setitem__(self, key: _KT, item: _VT) -> None: ...
|
| 75 |
+
def __delitem__(self, key: _KT) -> None: ...
|
| 76 |
+
def __iter__(self) -> Iterator[_KT]: ...
|
| 77 |
+
def __contains__(self, key: object) -> bool: ...
|
| 78 |
+
def copy(self: _S) -> _S: ...
|
| 79 |
+
@classmethod
|
| 80 |
+
def fromkeys(cls: Type[_S], iterable: Iterable[_KT], value: Optional[_VT] = ...) -> _S: ...
|
| 81 |
+
|
| 82 |
+
class UserList(MutableSequence[_T]):
|
| 83 |
+
data: List[_T]
|
| 84 |
+
def __init__(self, initlist: Optional[Iterable[_T]] = ...) -> None: ...
|
| 85 |
+
def __lt__(self, other: object) -> bool: ...
|
| 86 |
+
def __le__(self, other: object) -> bool: ...
|
| 87 |
+
def __gt__(self, other: object) -> bool: ...
|
| 88 |
+
def __ge__(self, other: object) -> bool: ...
|
| 89 |
+
def __contains__(self, item: object) -> bool: ...
|
| 90 |
+
def __len__(self) -> int: ...
|
| 91 |
+
@overload
|
| 92 |
+
def __getitem__(self, i: int) -> _T: ...
|
| 93 |
+
@overload
|
| 94 |
+
def __getitem__(self, i: slice) -> MutableSequence[_T]: ...
|
| 95 |
+
@overload
|
| 96 |
+
def __setitem__(self, i: int, o: _T) -> None: ...
|
| 97 |
+
@overload
|
| 98 |
+
def __setitem__(self, i: slice, o: Iterable[_T]) -> None: ...
|
| 99 |
+
def __delitem__(self, i: Union[int, slice]) -> None: ...
|
| 100 |
+
def __add__(self: _S, other: Iterable[_T]) -> _S: ...
|
| 101 |
+
def __iadd__(self: _S, other: Iterable[_T]) -> _S: ...
|
| 102 |
+
def __mul__(self: _S, n: int) -> _S: ...
|
| 103 |
+
def __imul__(self: _S, n: int) -> _S: ...
|
| 104 |
+
def append(self, item: _T) -> None: ...
|
| 105 |
+
def insert(self, i: int, item: _T) -> None: ...
|
| 106 |
+
def pop(self, i: int = ...) -> _T: ...
|
| 107 |
+
def remove(self, item: _T) -> None: ...
|
| 108 |
+
def clear(self) -> None: ...
|
| 109 |
+
def copy(self: _S) -> _S: ...
|
| 110 |
+
def count(self, item: _T) -> int: ...
|
| 111 |
+
def index(self, item: _T, *args: Any) -> int: ...
|
| 112 |
+
def reverse(self) -> None: ...
|
| 113 |
+
def sort(self, *args: Any, **kwds: Any) -> None: ...
|
| 114 |
+
def extend(self, other: Iterable[_T]) -> None: ...
|
| 115 |
+
|
| 116 |
+
_UserStringT = TypeVar("_UserStringT", bound=UserString)
|
| 117 |
+
|
| 118 |
+
class UserString(Sequence[str]):
|
| 119 |
+
data: str
|
| 120 |
+
def __init__(self, seq: object) -> None: ...
|
| 121 |
+
def __int__(self) -> int: ...
|
| 122 |
+
def __float__(self) -> float: ...
|
| 123 |
+
def __complex__(self) -> complex: ...
|
| 124 |
+
def __getnewargs__(self) -> Tuple[str]: ...
|
| 125 |
+
def __lt__(self, string: Union[str, UserString]) -> bool: ...
|
| 126 |
+
def __le__(self, string: Union[str, UserString]) -> bool: ...
|
| 127 |
+
def __gt__(self, string: Union[str, UserString]) -> bool: ...
|
| 128 |
+
def __ge__(self, string: Union[str, UserString]) -> bool: ...
|
| 129 |
+
def __contains__(self, char: object) -> bool: ...
|
| 130 |
+
def __len__(self) -> int: ...
|
| 131 |
+
# It should return a str to implement Sequence correctly, but it doesn't.
|
| 132 |
+
def __getitem__(self: _UserStringT, i: Union[int, slice]) -> _UserStringT: ... # type: ignore
|
| 133 |
+
def __add__(self: _UserStringT, other: object) -> _UserStringT: ...
|
| 134 |
+
def __mul__(self: _UserStringT, n: int) -> _UserStringT: ...
|
| 135 |
+
def __mod__(self: _UserStringT, args: Any) -> _UserStringT: ...
|
| 136 |
+
def capitalize(self: _UserStringT) -> _UserStringT: ...
|
| 137 |
+
def casefold(self: _UserStringT) -> _UserStringT: ...
|
| 138 |
+
def center(self: _UserStringT, width: int, *args: Any) -> _UserStringT: ...
|
| 139 |
+
def count(self, sub: Union[str, UserString], start: int = ..., end: int = ...) -> int: ...
|
| 140 |
+
if sys.version_info >= (3, 8):
|
| 141 |
+
def encode(self: _UserStringT, encoding: Optional[str] = ..., errors: Optional[str] = ...) -> bytes: ...
|
| 142 |
+
else:
|
| 143 |
+
def encode(self: _UserStringT, encoding: Optional[str] = ..., errors: Optional[str] = ...) -> _UserStringT: ...
|
| 144 |
+
def endswith(self, suffix: Union[str, Tuple[str, ...]], start: int = ..., end: int = ...) -> bool: ...
|
| 145 |
+
def expandtabs(self: _UserStringT, tabsize: int = ...) -> _UserStringT: ...
|
| 146 |
+
def find(self, sub: Union[str, UserString], start: int = ..., end: int = ...) -> int: ...
|
| 147 |
+
def format(self, *args: Any, **kwds: Any) -> str: ...
|
| 148 |
+
def format_map(self, mapping: Mapping[str, Any]) -> str: ...
|
| 149 |
+
def index(self, sub: str, start: int = ..., end: int = ...) -> int: ...
|
| 150 |
+
def isalpha(self) -> bool: ...
|
| 151 |
+
def isalnum(self) -> bool: ...
|
| 152 |
+
def isdecimal(self) -> bool: ...
|
| 153 |
+
def isdigit(self) -> bool: ...
|
| 154 |
+
def isidentifier(self) -> bool: ...
|
| 155 |
+
def islower(self) -> bool: ...
|
| 156 |
+
def isnumeric(self) -> bool: ...
|
| 157 |
+
def isprintable(self) -> bool: ...
|
| 158 |
+
def isspace(self) -> bool: ...
|
| 159 |
+
def istitle(self) -> bool: ...
|
| 160 |
+
def isupper(self) -> bool: ...
|
| 161 |
+
def join(self, seq: Iterable[str]) -> str: ...
|
| 162 |
+
def ljust(self: _UserStringT, width: int, *args: Any) -> _UserStringT: ...
|
| 163 |
+
def lower(self: _UserStringT) -> _UserStringT: ...
|
| 164 |
+
def lstrip(self: _UserStringT, chars: Optional[str] = ...) -> _UserStringT: ...
|
| 165 |
+
@staticmethod
|
| 166 |
+
@overload
|
| 167 |
+
def maketrans(x: Union[Dict[int, _T], Dict[str, _T], Dict[Union[str, int], _T]]) -> Dict[int, _T]: ...
|
| 168 |
+
@staticmethod
|
| 169 |
+
@overload
|
| 170 |
+
def maketrans(x: str, y: str, z: str = ...) -> Dict[int, Union[int, None]]: ...
|
| 171 |
+
def partition(self, sep: str) -> Tuple[str, str, str]: ...
|
| 172 |
+
if sys.version_info >= (3, 9):
|
| 173 |
+
def removeprefix(self: _UserStringT, __prefix: Union[str, UserString]) -> _UserStringT: ...
|
| 174 |
+
def removesuffix(self: _UserStringT, __suffix: Union[str, UserString]) -> _UserStringT: ...
|
| 175 |
+
def replace(
|
| 176 |
+
self: _UserStringT, old: Union[str, UserString], new: Union[str, UserString], maxsplit: int = ...
|
| 177 |
+
) -> _UserStringT: ...
|
| 178 |
+
def rfind(self, sub: Union[str, UserString], start: int = ..., end: int = ...) -> int: ...
|
| 179 |
+
def rindex(self, sub: Union[str, UserString], start: int = ..., end: int = ...) -> int: ...
|
| 180 |
+
def rjust(self: _UserStringT, width: int, *args: Any) -> _UserStringT: ...
|
| 181 |
+
def rpartition(self, sep: str) -> Tuple[str, str, str]: ...
|
| 182 |
+
def rstrip(self: _UserStringT, chars: Optional[str] = ...) -> _UserStringT: ...
|
| 183 |
+
def split(self, sep: Optional[str] = ..., maxsplit: int = ...) -> List[str]: ...
|
| 184 |
+
def rsplit(self, sep: Optional[str] = ..., maxsplit: int = ...) -> List[str]: ...
|
| 185 |
+
def splitlines(self, keepends: bool = ...) -> List[str]: ...
|
| 186 |
+
def startswith(self, prefix: Union[str, Tuple[str, ...]], start: int = ..., end: int = ...) -> bool: ...
|
| 187 |
+
def strip(self: _UserStringT, chars: Optional[str] = ...) -> _UserStringT: ...
|
| 188 |
+
def swapcase(self: _UserStringT) -> _UserStringT: ...
|
| 189 |
+
def title(self: _UserStringT) -> _UserStringT: ...
|
| 190 |
+
def translate(self: _UserStringT, *args: Any) -> _UserStringT: ...
|
| 191 |
+
def upper(self: _UserStringT) -> _UserStringT: ...
|
| 192 |
+
def zfill(self: _UserStringT, width: int) -> _UserStringT: ...
|
| 193 |
+
|
| 194 |
+
class deque(MutableSequence[_T], Generic[_T]):
|
| 195 |
+
@property
|
| 196 |
+
def maxlen(self) -> Optional[int]: ...
|
| 197 |
+
def __init__(self, iterable: Iterable[_T] = ..., maxlen: Optional[int] = ...) -> None: ...
|
| 198 |
+
def append(self, x: _T) -> None: ...
|
| 199 |
+
def appendleft(self, x: _T) -> None: ...
|
| 200 |
+
def clear(self) -> None: ...
|
| 201 |
+
def copy(self) -> deque[_T]: ...
|
| 202 |
+
def count(self, x: _T) -> int: ...
|
| 203 |
+
def extend(self, iterable: Iterable[_T]) -> None: ...
|
| 204 |
+
def extendleft(self, iterable: Iterable[_T]) -> None: ...
|
| 205 |
+
def insert(self, i: int, x: _T) -> None: ...
|
| 206 |
+
def index(self, x: _T, start: int = ..., stop: int = ...) -> int: ...
|
| 207 |
+
def pop(self) -> _T: ... # type: ignore
|
| 208 |
+
def popleft(self) -> _T: ...
|
| 209 |
+
def remove(self, value: _T) -> None: ...
|
| 210 |
+
def reverse(self) -> None: ...
|
| 211 |
+
def rotate(self, n: int = ...) -> None: ...
|
| 212 |
+
def __len__(self) -> int: ...
|
| 213 |
+
def __iter__(self) -> Iterator[_T]: ...
|
| 214 |
+
def __str__(self) -> str: ...
|
| 215 |
+
def __hash__(self) -> int: ...
|
| 216 |
+
# These methods of deque don't really take slices, but we need to
|
| 217 |
+
# define them as taking a slice to satisfy MutableSequence.
|
| 218 |
+
@overload
|
| 219 |
+
def __getitem__(self, index: int) -> _T: ...
|
| 220 |
+
@overload
|
| 221 |
+
def __getitem__(self, s: slice) -> MutableSequence[_T]: ...
|
| 222 |
+
@overload
|
| 223 |
+
def __setitem__(self, i: int, x: _T) -> None: ...
|
| 224 |
+
@overload
|
| 225 |
+
def __setitem__(self, s: slice, o: Iterable[_T]) -> None: ...
|
| 226 |
+
@overload
|
| 227 |
+
def __delitem__(self, i: int) -> None: ...
|
| 228 |
+
@overload
|
| 229 |
+
def __delitem__(self, s: slice) -> None: ...
|
| 230 |
+
def __contains__(self, o: object) -> bool: ...
|
| 231 |
+
def __reversed__(self) -> Iterator[_T]: ...
|
| 232 |
+
def __iadd__(self: _S, iterable: Iterable[_T]) -> _S: ...
|
| 233 |
+
def __add__(self, other: deque[_T]) -> deque[_T]: ...
|
| 234 |
+
def __mul__(self, other: int) -> deque[_T]: ...
|
| 235 |
+
def __imul__(self, other: int) -> None: ...
|
| 236 |
+
|
| 237 |
+
class Counter(Dict[_T, int], Generic[_T]):
|
| 238 |
+
@overload
|
| 239 |
+
def __init__(self, __iterable: None = ..., **kwargs: int) -> None: ...
|
| 240 |
+
@overload
|
| 241 |
+
def __init__(self, __mapping: Mapping[_T, int]) -> None: ...
|
| 242 |
+
@overload
|
| 243 |
+
def __init__(self, __iterable: Iterable[_T]) -> None: ...
|
| 244 |
+
def copy(self: _S) -> _S: ...
|
| 245 |
+
def elements(self) -> Iterator[_T]: ...
|
| 246 |
+
def most_common(self, n: Optional[int] = ...) -> List[Tuple[_T, int]]: ...
|
| 247 |
+
@overload
|
| 248 |
+
def subtract(self, __iterable: None = ...) -> None: ...
|
| 249 |
+
@overload
|
| 250 |
+
def subtract(self, __mapping: Mapping[_T, int]) -> None: ...
|
| 251 |
+
@overload
|
| 252 |
+
def subtract(self, __iterable: Iterable[_T]) -> None: ...
|
| 253 |
+
# The Iterable[Tuple[...]] argument type is not actually desirable
|
| 254 |
+
# (the tuples will be added as keys, breaking type safety) but
|
| 255 |
+
# it's included so that the signature is compatible with
|
| 256 |
+
# Dict.update. Not sure if we should use '# type: ignore' instead
|
| 257 |
+
# and omit the type from the union.
|
| 258 |
+
@overload
|
| 259 |
+
def update(self, __m: Mapping[_T, int], **kwargs: int) -> None: ...
|
| 260 |
+
@overload
|
| 261 |
+
def update(self, __m: Union[Iterable[_T], Iterable[Tuple[_T, int]]], **kwargs: int) -> None: ...
|
| 262 |
+
@overload
|
| 263 |
+
def update(self, __m: None = ..., **kwargs: int) -> None: ...
|
| 264 |
+
def __add__(self, other: Counter[_T]) -> Counter[_T]: ...
|
| 265 |
+
def __sub__(self, other: Counter[_T]) -> Counter[_T]: ...
|
| 266 |
+
def __and__(self, other: Counter[_T]) -> Counter[_T]: ...
|
| 267 |
+
def __or__(self, other: Counter[_T]) -> Counter[_T]: ... # type: ignore
|
| 268 |
+
def __pos__(self) -> Counter[_T]: ...
|
| 269 |
+
def __neg__(self) -> Counter[_T]: ...
|
| 270 |
+
def __iadd__(self, other: Counter[_T]) -> Counter[_T]: ...
|
| 271 |
+
def __isub__(self, other: Counter[_T]) -> Counter[_T]: ...
|
| 272 |
+
def __iand__(self, other: Counter[_T]) -> Counter[_T]: ...
|
| 273 |
+
def __ior__(self, other: Counter[_T]) -> Counter[_T]: ... # type: ignore
|
| 274 |
+
|
| 275 |
+
class _OrderedDictKeysView(KeysView[_KT], Reversible[_KT]):
|
| 276 |
+
def __reversed__(self) -> Iterator[_KT]: ...
|
| 277 |
+
|
| 278 |
+
class _OrderedDictItemsView(ItemsView[_KT, _VT], Reversible[Tuple[_KT, _VT]]):
|
| 279 |
+
def __reversed__(self) -> Iterator[Tuple[_KT, _VT]]: ...
|
| 280 |
+
|
| 281 |
+
class _OrderedDictValuesView(ValuesView[_VT], Reversible[_VT]):
|
| 282 |
+
def __reversed__(self) -> Iterator[_VT]: ...
|
| 283 |
+
|
| 284 |
+
class OrderedDict(Dict[_KT, _VT], Reversible[_KT], Generic[_KT, _VT]):
|
| 285 |
+
def popitem(self, last: bool = ...) -> Tuple[_KT, _VT]: ...
|
| 286 |
+
def move_to_end(self, key: _KT, last: bool = ...) -> None: ...
|
| 287 |
+
def copy(self: _S) -> _S: ...
|
| 288 |
+
def __reversed__(self) -> Iterator[_KT]: ...
|
| 289 |
+
def keys(self) -> _OrderedDictKeysView[_KT]: ...
|
| 290 |
+
def items(self) -> _OrderedDictItemsView[_KT, _VT]: ...
|
| 291 |
+
def values(self) -> _OrderedDictValuesView[_VT]: ...
|
| 292 |
+
|
| 293 |
+
class defaultdict(Dict[_KT, _VT], Generic[_KT, _VT]):
|
| 294 |
+
default_factory: Optional[Callable[[], _VT]]
|
| 295 |
+
@overload
|
| 296 |
+
def __init__(self, **kwargs: _VT) -> None: ...
|
| 297 |
+
@overload
|
| 298 |
+
def __init__(self, default_factory: Optional[Callable[[], _VT]]) -> None: ...
|
| 299 |
+
@overload
|
| 300 |
+
def __init__(self, default_factory: Optional[Callable[[], _VT]], **kwargs: _VT) -> None: ...
|
| 301 |
+
@overload
|
| 302 |
+
def __init__(self, default_factory: Optional[Callable[[], _VT]], map: Mapping[_KT, _VT]) -> None: ...
|
| 303 |
+
@overload
|
| 304 |
+
def __init__(self, default_factory: Optional[Callable[[], _VT]], map: Mapping[_KT, _VT], **kwargs: _VT) -> None: ...
|
| 305 |
+
@overload
|
| 306 |
+
def __init__(self, default_factory: Optional[Callable[[], _VT]], iterable: Iterable[Tuple[_KT, _VT]]) -> None: ...
|
| 307 |
+
@overload
|
| 308 |
+
def __init__(
|
| 309 |
+
self, default_factory: Optional[Callable[[], _VT]], iterable: Iterable[Tuple[_KT, _VT]], **kwargs: _VT
|
| 310 |
+
) -> None: ...
|
| 311 |
+
def __missing__(self, key: _KT) -> _VT: ...
|
| 312 |
+
# TODO __reversed__
|
| 313 |
+
def copy(self: _S) -> _S: ...
|
| 314 |
+
|
| 315 |
+
class ChainMap(MutableMapping[_KT, _VT], Generic[_KT, _VT]):
|
| 316 |
+
def __init__(self, *maps: Mapping[_KT, _VT]) -> None: ...
|
| 317 |
+
@property
|
| 318 |
+
def maps(self) -> List[Mapping[_KT, _VT]]: ...
|
| 319 |
+
def new_child(self, m: Mapping[_KT, _VT] = ...) -> typing.ChainMap[_KT, _VT]: ...
|
| 320 |
+
@property
|
| 321 |
+
def parents(self) -> typing.ChainMap[_KT, _VT]: ...
|
| 322 |
+
def __setitem__(self, k: _KT, v: _VT) -> None: ...
|
| 323 |
+
def __delitem__(self, v: _KT) -> None: ...
|
| 324 |
+
def __getitem__(self, k: _KT) -> _VT: ...
|
| 325 |
+
def __iter__(self) -> Iterator[_KT]: ...
|
| 326 |
+
def __len__(self) -> int: ...
|
| 327 |
+
def __missing__(self, key: _KT) -> _VT: ... # undocumented
|
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/3/collections/abc.pyi
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from . import (
|
| 2 |
+
AsyncGenerator as AsyncGenerator,
|
| 3 |
+
AsyncIterable as AsyncIterable,
|
| 4 |
+
AsyncIterator as AsyncIterator,
|
| 5 |
+
Awaitable as Awaitable,
|
| 6 |
+
ByteString as ByteString,
|
| 7 |
+
Callable as Callable,
|
| 8 |
+
Collection as Collection,
|
| 9 |
+
Container as Container,
|
| 10 |
+
Coroutine as Coroutine,
|
| 11 |
+
Generator as Generator,
|
| 12 |
+
Hashable as Hashable,
|
| 13 |
+
ItemsView as ItemsView,
|
| 14 |
+
Iterable as Iterable,
|
| 15 |
+
Iterator as Iterator,
|
| 16 |
+
KeysView as KeysView,
|
| 17 |
+
Mapping as Mapping,
|
| 18 |
+
MappingView as MappingView,
|
| 19 |
+
MutableMapping as MutableMapping,
|
| 20 |
+
MutableSequence as MutableSequence,
|
| 21 |
+
MutableSet as MutableSet,
|
| 22 |
+
Reversible as Reversible,
|
| 23 |
+
Sequence as Sequence,
|
| 24 |
+
Set as Set,
|
| 25 |
+
Sized as Sized,
|
| 26 |
+
ValuesView as ValuesView,
|
| 27 |
+
)
|
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/3/dbm/ndbm.pyi
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from types import TracebackType
|
| 2 |
+
from typing import List, Optional, Type, TypeVar, Union, overload
|
| 3 |
+
|
| 4 |
+
_T = TypeVar("_T")
|
| 5 |
+
_KeyType = Union[str, bytes]
|
| 6 |
+
_ValueType = Union[str, bytes]
|
| 7 |
+
|
| 8 |
+
class error(OSError): ...
|
| 9 |
+
|
| 10 |
+
library: str = ...
|
| 11 |
+
|
| 12 |
+
# Actual typename dbm, not exposed by the implementation
|
| 13 |
+
class _dbm:
|
| 14 |
+
def close(self) -> None: ...
|
| 15 |
+
def __getitem__(self, item: _KeyType) -> bytes: ...
|
| 16 |
+
def __setitem__(self, key: _KeyType, value: _ValueType) -> None: ...
|
| 17 |
+
def __delitem__(self, key: _KeyType) -> None: ...
|
| 18 |
+
def __len__(self) -> int: ...
|
| 19 |
+
def __del__(self) -> None: ...
|
| 20 |
+
def __enter__(self) -> _dbm: ...
|
| 21 |
+
def __exit__(
|
| 22 |
+
self, exc_type: Optional[Type[BaseException]], exc_val: Optional[BaseException], exc_tb: Optional[TracebackType]
|
| 23 |
+
) -> None: ...
|
| 24 |
+
@overload
|
| 25 |
+
def get(self, k: _KeyType) -> Optional[bytes]: ...
|
| 26 |
+
@overload
|
| 27 |
+
def get(self, k: _KeyType, default: Union[bytes, _T]) -> Union[bytes, _T]: ...
|
| 28 |
+
def keys(self) -> List[bytes]: ...
|
| 29 |
+
def setdefault(self, k: _KeyType, default: _ValueType = ...) -> bytes: ...
|
| 30 |
+
# Don't exist at runtime
|
| 31 |
+
__new__: None # type: ignore
|
| 32 |
+
__init__: None # type: ignore
|
| 33 |
+
|
| 34 |
+
def open(__filename: str, __flags: str = ..., __mode: int = ...) -> _dbm: ...
|
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/3/distutils/command/build_scripts.pyi
ADDED
|
File without changes
|
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/3/distutils/command/install_scripts.pyi
ADDED
|
File without changes
|
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/3/distutils/config.pyi
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from abc import abstractmethod
|
| 2 |
+
from distutils.cmd import Command
|
| 3 |
+
from typing import ClassVar, List, Optional, Tuple
|
| 4 |
+
|
| 5 |
+
DEFAULT_PYPIRC: str
|
| 6 |
+
|
| 7 |
+
class PyPIRCCommand(Command):
|
| 8 |
+
DEFAULT_REPOSITORY: ClassVar[str]
|
| 9 |
+
DEFAULT_REALM: ClassVar[str]
|
| 10 |
+
repository: None
|
| 11 |
+
realm: None
|
| 12 |
+
user_options: ClassVar[List[Tuple[str, Optional[str], str]]]
|
| 13 |
+
boolean_options: ClassVar[List[str]]
|
| 14 |
+
def initialize_options(self) -> None: ...
|
| 15 |
+
def finalize_options(self) -> None: ...
|
| 16 |
+
@abstractmethod
|
| 17 |
+
def run(self) -> None: ...
|
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/3/distutils/core.pyi
ADDED
|
@@ -0,0 +1,48 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from distutils.cmd import Command as Command
|
| 2 |
+
from distutils.dist import Distribution as Distribution
|
| 3 |
+
from distutils.extension import Extension as Extension
|
| 4 |
+
from typing import Any, List, Mapping, Optional, Tuple, Type, Union
|
| 5 |
+
|
| 6 |
+
def setup(
|
| 7 |
+
*,
|
| 8 |
+
name: str = ...,
|
| 9 |
+
version: str = ...,
|
| 10 |
+
description: str = ...,
|
| 11 |
+
long_description: str = ...,
|
| 12 |
+
author: str = ...,
|
| 13 |
+
author_email: str = ...,
|
| 14 |
+
maintainer: str = ...,
|
| 15 |
+
maintainer_email: str = ...,
|
| 16 |
+
url: str = ...,
|
| 17 |
+
download_url: str = ...,
|
| 18 |
+
packages: List[str] = ...,
|
| 19 |
+
py_modules: List[str] = ...,
|
| 20 |
+
scripts: List[str] = ...,
|
| 21 |
+
ext_modules: List[Extension] = ...,
|
| 22 |
+
classifiers: List[str] = ...,
|
| 23 |
+
distclass: Type[Distribution] = ...,
|
| 24 |
+
script_name: str = ...,
|
| 25 |
+
script_args: List[str] = ...,
|
| 26 |
+
options: Mapping[str, Any] = ...,
|
| 27 |
+
license: str = ...,
|
| 28 |
+
keywords: Union[List[str], str] = ...,
|
| 29 |
+
platforms: Union[List[str], str] = ...,
|
| 30 |
+
cmdclass: Mapping[str, Type[Command]] = ...,
|
| 31 |
+
data_files: List[Tuple[str, List[str]]] = ...,
|
| 32 |
+
package_dir: Mapping[str, str] = ...,
|
| 33 |
+
obsoletes: List[str] = ...,
|
| 34 |
+
provides: List[str] = ...,
|
| 35 |
+
requires: List[str] = ...,
|
| 36 |
+
command_packages: List[str] = ...,
|
| 37 |
+
command_options: Mapping[str, Mapping[str, Tuple[Any, Any]]] = ...,
|
| 38 |
+
package_data: Mapping[str, List[str]] = ...,
|
| 39 |
+
include_package_data: bool = ...,
|
| 40 |
+
libraries: List[str] = ...,
|
| 41 |
+
headers: List[str] = ...,
|
| 42 |
+
ext_package: str = ...,
|
| 43 |
+
include_dirs: List[str] = ...,
|
| 44 |
+
password: str = ...,
|
| 45 |
+
fullname: str = ...,
|
| 46 |
+
**attrs: Any,
|
| 47 |
+
) -> None: ...
|
| 48 |
+
def run_setup(script_name: str, script_args: Optional[List[str]] = ..., stop_after: str = ...) -> Distribution: ...
|
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/3/distutils/debug.pyi
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
DEBUG: bool
|
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/3/distutils/dep_util.pyi
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from typing import List, Tuple
|
| 2 |
+
|
| 3 |
+
def newer(source: str, target: str) -> bool: ...
|
| 4 |
+
def newer_pairwise(sources: List[str], targets: List[str]) -> List[Tuple[str, str]]: ...
|
| 5 |
+
def newer_group(sources: List[str], target: str, missing: str = ...) -> bool: ...
|
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/3/distutils/fancy_getopt.pyi
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from typing import Any, List, Mapping, Optional, Tuple, Union, overload
|
| 2 |
+
|
| 3 |
+
_Option = Tuple[str, Optional[str], str]
|
| 4 |
+
_GR = Tuple[List[str], OptionDummy]
|
| 5 |
+
|
| 6 |
+
def fancy_getopt(
|
| 7 |
+
options: List[_Option], negative_opt: Mapping[_Option, _Option], object: Any, args: Optional[List[str]]
|
| 8 |
+
) -> Union[List[str], _GR]: ...
|
| 9 |
+
def wrap_text(text: str, width: int) -> List[str]: ...
|
| 10 |
+
|
| 11 |
+
class FancyGetopt:
|
| 12 |
+
def __init__(self, option_table: Optional[List[_Option]] = ...) -> None: ...
|
| 13 |
+
# TODO kinda wrong, `getopt(object=object())` is invalid
|
| 14 |
+
@overload
|
| 15 |
+
def getopt(self, args: Optional[List[str]] = ...) -> _GR: ...
|
| 16 |
+
@overload
|
| 17 |
+
def getopt(self, args: Optional[List[str]], object: Any) -> List[str]: ...
|
| 18 |
+
def get_option_order(self) -> List[Tuple[str, str]]: ...
|
| 19 |
+
def generate_help(self, header: Optional[str] = ...) -> List[str]: ...
|
| 20 |
+
|
| 21 |
+
class OptionDummy: ...
|
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/3/distutils/filelist.pyi
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
class FileList: ...
|
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/3/distutils/log.pyi
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from typing import Any
|
| 2 |
+
|
| 3 |
+
DEBUG: int
|
| 4 |
+
INFO: int
|
| 5 |
+
WARN: int
|
| 6 |
+
ERROR: int
|
| 7 |
+
FATAL: int
|
| 8 |
+
|
| 9 |
+
class Log:
|
| 10 |
+
def __init__(self, threshold: int = ...) -> None: ...
|
| 11 |
+
def log(self, level: int, msg: str, *args: Any) -> None: ...
|
| 12 |
+
def debug(self, msg: str, *args: Any) -> None: ...
|
| 13 |
+
def info(self, msg: str, *args: Any) -> None: ...
|
| 14 |
+
def warn(self, msg: str, *args: Any) -> None: ...
|
| 15 |
+
def error(self, msg: str, *args: Any) -> None: ...
|
| 16 |
+
def fatal(self, msg: str, *args: Any) -> None: ...
|
| 17 |
+
|
| 18 |
+
def log(level: int, msg: str, *args: Any) -> None: ...
|
| 19 |
+
def debug(msg: str, *args: Any) -> None: ...
|
| 20 |
+
def info(msg: str, *args: Any) -> None: ...
|
| 21 |
+
def warn(msg: str, *args: Any) -> None: ...
|
| 22 |
+
def error(msg: str, *args: Any) -> None: ...
|
| 23 |
+
def fatal(msg: str, *args: Any) -> None: ...
|
| 24 |
+
def set_threshold(level: int) -> int: ...
|
| 25 |
+
def set_verbosity(v: int) -> None: ...
|
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/3/distutils/sysconfig.pyi
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from distutils.ccompiler import CCompiler
|
| 2 |
+
from typing import Mapping, Optional, Union
|
| 3 |
+
|
| 4 |
+
PREFIX: str
|
| 5 |
+
EXEC_PREFIX: str
|
| 6 |
+
|
| 7 |
+
def get_config_var(name: str) -> Union[int, str, None]: ...
|
| 8 |
+
def get_config_vars(*args: str) -> Mapping[str, Union[int, str]]: ...
|
| 9 |
+
def get_config_h_filename() -> str: ...
|
| 10 |
+
def get_makefile_filename() -> str: ...
|
| 11 |
+
def get_python_inc(plat_specific: bool = ..., prefix: Optional[str] = ...) -> str: ...
|
| 12 |
+
def get_python_lib(plat_specific: bool = ..., standard_lib: bool = ..., prefix: Optional[str] = ...) -> str: ...
|
| 13 |
+
def customize_compiler(compiler: CCompiler) -> None: ...
|
| 14 |
+
def set_python_build() -> None: ...
|
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/3/distutils/text_file.pyi
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from typing import IO, List, Optional, Tuple, Union
|
| 2 |
+
|
| 3 |
+
class TextFile:
|
| 4 |
+
def __init__(
|
| 5 |
+
self,
|
| 6 |
+
filename: Optional[str] = ...,
|
| 7 |
+
file: Optional[IO[str]] = ...,
|
| 8 |
+
*,
|
| 9 |
+
strip_comments: bool = ...,
|
| 10 |
+
lstrip_ws: bool = ...,
|
| 11 |
+
rstrip_ws: bool = ...,
|
| 12 |
+
skip_blanks: bool = ...,
|
| 13 |
+
join_lines: bool = ...,
|
| 14 |
+
collapse_join: bool = ...,
|
| 15 |
+
) -> None: ...
|
| 16 |
+
def open(self, filename: str) -> None: ...
|
| 17 |
+
def close(self) -> None: ...
|
| 18 |
+
def warn(self, msg: str, line: Union[List[int], Tuple[int, int], int] = ...) -> None: ...
|
| 19 |
+
def readline(self) -> Optional[str]: ...
|
| 20 |
+
def readlines(self) -> List[str]: ...
|
| 21 |
+
def unreadline(self, line: str) -> str: ...
|
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/3/distutils/util.pyi
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from typing import Any, Callable, List, Mapping, Optional, Tuple
|
| 2 |
+
|
| 3 |
+
def get_platform() -> str: ...
|
| 4 |
+
def convert_path(pathname: str) -> str: ...
|
| 5 |
+
def change_root(new_root: str, pathname: str) -> str: ...
|
| 6 |
+
def check_environ() -> None: ...
|
| 7 |
+
def subst_vars(s: str, local_vars: Mapping[str, str]) -> None: ...
|
| 8 |
+
def split_quoted(s: str) -> List[str]: ...
|
| 9 |
+
def execute(
|
| 10 |
+
func: Callable[..., None], args: Tuple[Any, ...], msg: Optional[str] = ..., verbose: bool = ..., dry_run: bool = ...
|
| 11 |
+
) -> None: ...
|
| 12 |
+
def strtobool(val: str) -> bool: ...
|
| 13 |
+
def byte_compile(
|
| 14 |
+
py_files: List[str],
|
| 15 |
+
optimize: int = ...,
|
| 16 |
+
force: bool = ...,
|
| 17 |
+
prefix: Optional[str] = ...,
|
| 18 |
+
base_dir: Optional[str] = ...,
|
| 19 |
+
verbose: bool = ...,
|
| 20 |
+
dry_run: bool = ...,
|
| 21 |
+
direct: Optional[bool] = ...,
|
| 22 |
+
) -> None: ...
|
| 23 |
+
def rfc822_escape(header: str) -> str: ...
|
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/3/distutils/version.pyi
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from abc import abstractmethod
|
| 2 |
+
from typing import Optional, Pattern, Tuple, TypeVar, Union
|
| 3 |
+
|
| 4 |
+
_T = TypeVar("_T", bound=Version)
|
| 5 |
+
|
| 6 |
+
class Version:
|
| 7 |
+
def __repr__(self) -> str: ...
|
| 8 |
+
def __eq__(self, other: object) -> bool: ...
|
| 9 |
+
def __lt__(self: _T, other: Union[_T, str]) -> bool: ...
|
| 10 |
+
def __le__(self: _T, other: Union[_T, str]) -> bool: ...
|
| 11 |
+
def __gt__(self: _T, other: Union[_T, str]) -> bool: ...
|
| 12 |
+
def __ge__(self: _T, other: Union[_T, str]) -> bool: ...
|
| 13 |
+
@abstractmethod
|
| 14 |
+
def __init__(self, vstring: Optional[str] = ...) -> None: ...
|
| 15 |
+
@abstractmethod
|
| 16 |
+
def parse(self: _T, vstring: str) -> _T: ...
|
| 17 |
+
@abstractmethod
|
| 18 |
+
def __str__(self) -> str: ...
|
| 19 |
+
@abstractmethod
|
| 20 |
+
def _cmp(self: _T, other: Union[_T, str]) -> bool: ...
|
| 21 |
+
|
| 22 |
+
class StrictVersion(Version):
|
| 23 |
+
version_re: Pattern[str]
|
| 24 |
+
version: Tuple[int, int, int]
|
| 25 |
+
prerelease: Optional[Tuple[str, int]]
|
| 26 |
+
def __init__(self, vstring: Optional[str] = ...) -> None: ...
|
| 27 |
+
def parse(self: _T, vstring: str) -> _T: ...
|
| 28 |
+
def __str__(self) -> str: ...
|
| 29 |
+
def _cmp(self: _T, other: Union[_T, str]) -> bool: ...
|
| 30 |
+
|
| 31 |
+
class LooseVersion(Version):
|
| 32 |
+
component_re: Pattern[str]
|
| 33 |
+
vstring: str
|
| 34 |
+
version: Tuple[Union[str, int], ...]
|
| 35 |
+
def __init__(self, vstring: Optional[str] = ...) -> None: ...
|
| 36 |
+
def parse(self: _T, vstring: str) -> _T: ...
|
| 37 |
+
def __str__(self) -> str: ...
|
| 38 |
+
def _cmp(self: _T, other: Union[_T, str]) -> bool: ...
|
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/3/email/__init__.pyi
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from email.message import Message
|
| 2 |
+
from email.policy import Policy
|
| 3 |
+
from typing import IO, Callable
|
| 4 |
+
|
| 5 |
+
def message_from_string(s: str, _class: Callable[[], Message] = ..., *, policy: Policy = ...) -> Message: ...
|
| 6 |
+
def message_from_bytes(s: bytes, _class: Callable[[], Message] = ..., *, policy: Policy = ...) -> Message: ...
|
| 7 |
+
def message_from_file(fp: IO[str], _class: Callable[[], Message] = ..., *, policy: Policy = ...) -> Message: ...
|
| 8 |
+
def message_from_binary_file(fp: IO[bytes], _class: Callable[[], Message] = ..., *, policy: Policy = ...) -> Message: ...
|
| 9 |
+
|
| 10 |
+
# Names in __all__ with no definition:
|
| 11 |
+
# base64mime
|
| 12 |
+
# charset
|
| 13 |
+
# encoders
|
| 14 |
+
# errors
|
| 15 |
+
# feedparser
|
| 16 |
+
# generator
|
| 17 |
+
# header
|
| 18 |
+
# iterators
|
| 19 |
+
# message
|
| 20 |
+
# mime
|
| 21 |
+
# parser
|
| 22 |
+
# quoprimime
|
| 23 |
+
# utils
|
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/3/email/charset.pyi
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from typing import Any, Iterator, List, Optional
|
| 2 |
+
|
| 3 |
+
QP: int # undocumented
|
| 4 |
+
BASE64: int # undocumented
|
| 5 |
+
SHORTEST: int # undocumented
|
| 6 |
+
|
| 7 |
+
class Charset:
|
| 8 |
+
input_charset: str
|
| 9 |
+
header_encoding: int
|
| 10 |
+
body_encoding: int
|
| 11 |
+
output_charset: Optional[str]
|
| 12 |
+
input_codec: Optional[str]
|
| 13 |
+
output_codec: Optional[str]
|
| 14 |
+
def __init__(self, input_charset: str = ...) -> None: ...
|
| 15 |
+
def get_body_encoding(self) -> str: ...
|
| 16 |
+
def get_output_charset(self) -> Optional[str]: ...
|
| 17 |
+
def header_encode(self, string: str) -> str: ...
|
| 18 |
+
def header_encode_lines(self, string: str, maxlengths: Iterator[int]) -> List[str]: ...
|
| 19 |
+
def body_encode(self, string: str) -> str: ...
|
| 20 |
+
def __str__(self) -> str: ...
|
| 21 |
+
def __eq__(self, other: Any) -> bool: ...
|
| 22 |
+
def __ne__(self, other: Any) -> bool: ...
|
| 23 |
+
|
| 24 |
+
def add_charset(
|
| 25 |
+
charset: str, header_enc: Optional[int] = ..., body_enc: Optional[int] = ..., output_charset: Optional[str] = ...
|
| 26 |
+
) -> None: ...
|
| 27 |
+
def add_alias(alias: str, canonical: str) -> None: ...
|
| 28 |
+
def add_codec(charset: str, codecname: str) -> None: ...
|
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/3/email/contentmanager.pyi
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from email.message import Message
|
| 2 |
+
from typing import Any, Callable
|
| 3 |
+
|
| 4 |
+
class ContentManager:
|
| 5 |
+
def __init__(self) -> None: ...
|
| 6 |
+
def get_content(self, msg: Message, *args: Any, **kw: Any) -> Any: ...
|
| 7 |
+
def set_content(self, msg: Message, obj: Any, *args: Any, **kw: Any) -> Any: ...
|
| 8 |
+
def add_get_handler(self, key: str, handler: Callable[..., Any]) -> None: ...
|
| 9 |
+
def add_set_handler(self, typekey: type, handler: Callable[..., Any]) -> None: ...
|
| 10 |
+
|
| 11 |
+
raw_data_manager: ContentManager
|
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/3/email/encoders.pyi
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from email.message import Message
|
| 2 |
+
|
| 3 |
+
def encode_base64(msg: Message) -> None: ...
|
| 4 |
+
def encode_quopri(msg: Message) -> None: ...
|
| 5 |
+
def encode_7or8bit(msg: Message) -> None: ...
|
| 6 |
+
def encode_noop(msg: Message) -> None: ...
|
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/3/email/errors.pyi
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
class MessageError(Exception): ...
|
| 2 |
+
class MessageParseError(MessageError): ...
|
| 3 |
+
class HeaderParseError(MessageParseError): ...
|
| 4 |
+
class BoundaryError(MessageParseError): ...
|
| 5 |
+
class MultipartConversionError(MessageError, TypeError): ...
|
| 6 |
+
class MessageDefect(ValueError): ...
|
| 7 |
+
class NoBoundaryInMultipartDefect(MessageDefect): ...
|
| 8 |
+
class StartBoundaryNotFoundDefect(MessageDefect): ...
|
| 9 |
+
class FirstHeaderLineIsContinuationDefect(MessageDefect): ...
|
| 10 |
+
class MisplacedEnvelopeHeaderDefect(MessageDefect): ...
|
| 11 |
+
class MultipartInvariantViolationDefect(MessageDefect): ...
|
| 12 |
+
class InvalidBase64PaddingDefect(MessageDefect): ...
|
| 13 |
+
class InvalidBase64CharactersDefect(MessageDefect): ...
|
| 14 |
+
class CloseBoundaryNotFoundDefect(MessageDefect): ...
|
| 15 |
+
class MissingHeaderBodySeparatorDefect(MessageDefect): ...
|
| 16 |
+
|
| 17 |
+
MalformedHeaderDefect = MissingHeaderBodySeparatorDefect
|
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/3/email/feedparser.pyi
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from email.message import Message
|
| 2 |
+
from email.policy import Policy
|
| 3 |
+
from typing import Callable, Generic, TypeVar, overload
|
| 4 |
+
|
| 5 |
+
_M = TypeVar("_M", bound=Message)
|
| 6 |
+
|
| 7 |
+
class FeedParser(Generic[_M]):
|
| 8 |
+
@overload
|
| 9 |
+
def __init__(self: FeedParser[Message], _factory: None = ..., *, policy: Policy = ...) -> None: ...
|
| 10 |
+
@overload
|
| 11 |
+
def __init__(self, _factory: Callable[[], _M], *, policy: Policy = ...) -> None: ...
|
| 12 |
+
def feed(self, data: str) -> None: ...
|
| 13 |
+
def close(self) -> _M: ...
|
| 14 |
+
|
| 15 |
+
class BytesFeedParser(Generic[_M]):
|
| 16 |
+
@overload
|
| 17 |
+
def __init__(self: BytesFeedParser[Message], _factory: None = ..., *, policy: Policy = ...) -> None: ...
|
| 18 |
+
@overload
|
| 19 |
+
def __init__(self, _factory: Callable[[], _M], *, policy: Policy = ...) -> None: ...
|
| 20 |
+
def feed(self, data: bytes) -> None: ...
|
| 21 |
+
def close(self) -> _M: ...
|
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/3/email/generator.pyi
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from email.message import Message
|
| 2 |
+
from email.policy import Policy
|
| 3 |
+
from typing import BinaryIO, Optional, TextIO
|
| 4 |
+
|
| 5 |
+
class Generator:
|
| 6 |
+
def clone(self, fp: TextIO) -> Generator: ...
|
| 7 |
+
def write(self, s: str) -> None: ...
|
| 8 |
+
def __init__(self, outfp: TextIO, mangle_from_: bool = ..., maxheaderlen: int = ..., *, policy: Policy = ...) -> None: ...
|
| 9 |
+
def flatten(self, msg: Message, unixfrom: bool = ..., linesep: Optional[str] = ...) -> None: ...
|
| 10 |
+
|
| 11 |
+
class BytesGenerator:
|
| 12 |
+
def clone(self, fp: BinaryIO) -> BytesGenerator: ...
|
| 13 |
+
def write(self, s: str) -> None: ...
|
| 14 |
+
def __init__(self, outfp: BinaryIO, mangle_from_: bool = ..., maxheaderlen: int = ..., *, policy: Policy = ...) -> None: ...
|
| 15 |
+
def flatten(self, msg: Message, unixfrom: bool = ..., linesep: Optional[str] = ...) -> None: ...
|
| 16 |
+
|
| 17 |
+
class DecodedGenerator(Generator):
|
| 18 |
+
def __init__(self, outfp: TextIO, mangle_from_: bool = ..., maxheaderlen: int = ..., *, fmt: Optional[str] = ...) -> None: ...
|
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/3/email/header.pyi
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from email.charset import Charset
|
| 2 |
+
from typing import Any, List, Optional, Tuple, Union
|
| 3 |
+
|
| 4 |
+
class Header:
|
| 5 |
+
def __init__(
|
| 6 |
+
self,
|
| 7 |
+
s: Union[bytes, str, None] = ...,
|
| 8 |
+
charset: Union[Charset, str, None] = ...,
|
| 9 |
+
maxlinelen: Optional[int] = ...,
|
| 10 |
+
header_name: Optional[str] = ...,
|
| 11 |
+
continuation_ws: str = ...,
|
| 12 |
+
errors: str = ...,
|
| 13 |
+
) -> None: ...
|
| 14 |
+
def append(self, s: Union[bytes, str], charset: Union[Charset, str, None] = ..., errors: str = ...) -> None: ...
|
| 15 |
+
def encode(self, splitchars: str = ..., maxlinelen: Optional[int] = ..., linesep: str = ...) -> str: ...
|
| 16 |
+
def __str__(self) -> str: ...
|
| 17 |
+
def __eq__(self, other: Any) -> bool: ...
|
| 18 |
+
def __ne__(self, other: Any) -> bool: ...
|
| 19 |
+
|
| 20 |
+
def decode_header(header: Union[Header, str]) -> List[Tuple[bytes, Optional[str]]]: ...
|
| 21 |
+
def make_header(
|
| 22 |
+
decoded_seq: List[Tuple[bytes, Optional[str]]],
|
| 23 |
+
maxlinelen: Optional[int] = ...,
|
| 24 |
+
header_name: Optional[str] = ...,
|
| 25 |
+
continuation_ws: str = ...,
|
| 26 |
+
) -> Header: ...
|
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/3/email/headerregistry.pyi
ADDED
|
@@ -0,0 +1,90 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from datetime import datetime as _datetime
|
| 2 |
+
from email.errors import MessageDefect
|
| 3 |
+
from email.policy import Policy
|
| 4 |
+
from typing import Any, Dict, Mapping, Optional, Tuple, Union
|
| 5 |
+
|
| 6 |
+
class BaseHeader(str):
|
| 7 |
+
@property
|
| 8 |
+
def name(self) -> str: ...
|
| 9 |
+
@property
|
| 10 |
+
def defects(self) -> Tuple[MessageDefect, ...]: ...
|
| 11 |
+
@property
|
| 12 |
+
def max_count(self) -> Optional[int]: ...
|
| 13 |
+
def __new__(cls, name: str, value: Any) -> BaseHeader: ...
|
| 14 |
+
def init(self, *args: Any, **kw: Any) -> None: ...
|
| 15 |
+
def fold(self, *, policy: Policy) -> str: ...
|
| 16 |
+
|
| 17 |
+
class UnstructuredHeader:
|
| 18 |
+
@classmethod
|
| 19 |
+
def parse(cls, string: str, kwds: Dict[str, Any]) -> None: ...
|
| 20 |
+
|
| 21 |
+
class UniqueUnstructuredHeader(UnstructuredHeader): ...
|
| 22 |
+
|
| 23 |
+
class DateHeader:
|
| 24 |
+
datetime: _datetime
|
| 25 |
+
@classmethod
|
| 26 |
+
def parse(cls, string: Union[str, _datetime], kwds: Dict[str, Any]) -> None: ...
|
| 27 |
+
|
| 28 |
+
class UniqueDateHeader(DateHeader): ...
|
| 29 |
+
|
| 30 |
+
class AddressHeader:
|
| 31 |
+
groups: Tuple[Group, ...]
|
| 32 |
+
addresses: Tuple[Address, ...]
|
| 33 |
+
@classmethod
|
| 34 |
+
def parse(cls, string: str, kwds: Dict[str, Any]) -> None: ...
|
| 35 |
+
|
| 36 |
+
class UniqueAddressHeader(AddressHeader): ...
|
| 37 |
+
|
| 38 |
+
class SingleAddressHeader(AddressHeader):
|
| 39 |
+
@property
|
| 40 |
+
def address(self) -> Address: ...
|
| 41 |
+
|
| 42 |
+
class UniqueSingleAddressHeader(SingleAddressHeader): ...
|
| 43 |
+
|
| 44 |
+
class MIMEVersionHeader:
|
| 45 |
+
version: Optional[str]
|
| 46 |
+
major: Optional[int]
|
| 47 |
+
minor: Optional[int]
|
| 48 |
+
@classmethod
|
| 49 |
+
def parse(cls, string: str, kwds: Dict[str, Any]) -> None: ...
|
| 50 |
+
|
| 51 |
+
class ParameterizedMIMEHeader:
|
| 52 |
+
params: Mapping[str, Any]
|
| 53 |
+
@classmethod
|
| 54 |
+
def parse(cls, string: str, kwds: Dict[str, Any]) -> None: ...
|
| 55 |
+
|
| 56 |
+
class ContentTypeHeader(ParameterizedMIMEHeader):
|
| 57 |
+
content_type: str
|
| 58 |
+
maintype: str
|
| 59 |
+
subtype: str
|
| 60 |
+
|
| 61 |
+
class ContentDispositionHeader(ParameterizedMIMEHeader):
|
| 62 |
+
content_disposition: str
|
| 63 |
+
|
| 64 |
+
class ContentTransferEncodingHeader:
|
| 65 |
+
cte: str
|
| 66 |
+
@classmethod
|
| 67 |
+
def parse(cls, string: str, kwds: Dict[str, Any]) -> None: ...
|
| 68 |
+
|
| 69 |
+
class HeaderRegistry:
|
| 70 |
+
def __init__(self, base_class: BaseHeader = ..., default_class: BaseHeader = ..., use_default_map: bool = ...) -> None: ...
|
| 71 |
+
def map_to_type(self, name: str, cls: BaseHeader) -> None: ...
|
| 72 |
+
def __getitem__(self, name: str) -> BaseHeader: ...
|
| 73 |
+
def __call__(self, name: str, value: Any) -> BaseHeader: ...
|
| 74 |
+
|
| 75 |
+
class Address:
|
| 76 |
+
display_name: str
|
| 77 |
+
username: str
|
| 78 |
+
domain: str
|
| 79 |
+
@property
|
| 80 |
+
def addr_spec(self) -> str: ...
|
| 81 |
+
def __init__(
|
| 82 |
+
self, display_name: str = ..., username: Optional[str] = ..., domain: Optional[str] = ..., addr_spec: Optional[str] = ...
|
| 83 |
+
) -> None: ...
|
| 84 |
+
def __str__(self) -> str: ...
|
| 85 |
+
|
| 86 |
+
class Group:
|
| 87 |
+
display_name: Optional[str]
|
| 88 |
+
addresses: Tuple[Address, ...]
|
| 89 |
+
def __init__(self, display_name: Optional[str] = ..., addresses: Optional[Tuple[Address, ...]] = ...) -> None: ...
|
| 90 |
+
def __str__(self) -> str: ...
|
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/3/email/iterators.pyi
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from email.message import Message
|
| 2 |
+
from typing import Iterator, Optional
|
| 3 |
+
|
| 4 |
+
def body_line_iterator(msg: Message, decode: bool = ...) -> Iterator[str]: ...
|
| 5 |
+
def typed_subpart_iterator(msg: Message, maintype: str = ..., subtype: Optional[str] = ...) -> Iterator[str]: ...
|
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/3/email/message.pyi
ADDED
|
@@ -0,0 +1,87 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from email.charset import Charset
|
| 2 |
+
from email.contentmanager import ContentManager
|
| 3 |
+
from email.errors import MessageDefect
|
| 4 |
+
from email.policy import Policy
|
| 5 |
+
from typing import Any, Generator, Iterator, List, Optional, Sequence, Tuple, TypeVar, Union
|
| 6 |
+
|
| 7 |
+
_T = TypeVar("_T")
|
| 8 |
+
|
| 9 |
+
_PayloadType = Union[List[Message], str, bytes]
|
| 10 |
+
_CharsetType = Union[Charset, str, None]
|
| 11 |
+
_ParamsType = Union[str, None, Tuple[str, Optional[str], str]]
|
| 12 |
+
_ParamType = Union[str, Tuple[Optional[str], Optional[str], str]]
|
| 13 |
+
_HeaderType = Any
|
| 14 |
+
|
| 15 |
+
class Message:
|
| 16 |
+
preamble: Optional[str]
|
| 17 |
+
epilogue: Optional[str]
|
| 18 |
+
defects: List[MessageDefect]
|
| 19 |
+
def __str__(self) -> str: ...
|
| 20 |
+
def is_multipart(self) -> bool: ...
|
| 21 |
+
def set_unixfrom(self, unixfrom: str) -> None: ...
|
| 22 |
+
def get_unixfrom(self) -> Optional[str]: ...
|
| 23 |
+
def attach(self, payload: Message) -> None: ...
|
| 24 |
+
def get_payload(self, i: int = ..., decode: bool = ...) -> Any: ... # returns Optional[_PayloadType]
|
| 25 |
+
def set_payload(self, payload: _PayloadType, charset: _CharsetType = ...) -> None: ...
|
| 26 |
+
def set_charset(self, charset: _CharsetType) -> None: ...
|
| 27 |
+
def get_charset(self) -> _CharsetType: ...
|
| 28 |
+
def __len__(self) -> int: ...
|
| 29 |
+
def __contains__(self, name: str) -> bool: ...
|
| 30 |
+
def __getitem__(self, name: str) -> _HeaderType: ...
|
| 31 |
+
def __setitem__(self, name: str, val: _HeaderType) -> None: ...
|
| 32 |
+
def __delitem__(self, name: str) -> None: ...
|
| 33 |
+
def keys(self) -> List[str]: ...
|
| 34 |
+
def values(self) -> List[_HeaderType]: ...
|
| 35 |
+
def items(self) -> List[Tuple[str, _HeaderType]]: ...
|
| 36 |
+
def get(self, name: str, failobj: _T = ...) -> Union[_HeaderType, _T]: ...
|
| 37 |
+
def get_all(self, name: str, failobj: _T = ...) -> Union[List[_HeaderType], _T]: ...
|
| 38 |
+
def add_header(self, _name: str, _value: str, **_params: _ParamsType) -> None: ...
|
| 39 |
+
def replace_header(self, _name: str, _value: _HeaderType) -> None: ...
|
| 40 |
+
def get_content_type(self) -> str: ...
|
| 41 |
+
def get_content_maintype(self) -> str: ...
|
| 42 |
+
def get_content_subtype(self) -> str: ...
|
| 43 |
+
def get_default_type(self) -> str: ...
|
| 44 |
+
def set_default_type(self, ctype: str) -> None: ...
|
| 45 |
+
def get_params(self, failobj: _T = ..., header: str = ..., unquote: bool = ...) -> Union[List[Tuple[str, str]], _T]: ...
|
| 46 |
+
def get_param(self, param: str, failobj: _T = ..., header: str = ..., unquote: bool = ...) -> Union[_T, _ParamType]: ...
|
| 47 |
+
def del_param(self, param: str, header: str = ..., requote: bool = ...) -> None: ...
|
| 48 |
+
def set_type(self, type: str, header: str = ..., requote: bool = ...) -> None: ...
|
| 49 |
+
def get_filename(self, failobj: _T = ...) -> Union[_T, str]: ...
|
| 50 |
+
def get_boundary(self, failobj: _T = ...) -> Union[_T, str]: ...
|
| 51 |
+
def set_boundary(self, boundary: str) -> None: ...
|
| 52 |
+
def get_content_charset(self, failobj: _T = ...) -> Union[_T, str]: ...
|
| 53 |
+
def get_charsets(self, failobj: _T = ...) -> Union[_T, List[str]]: ...
|
| 54 |
+
def walk(self) -> Generator[Message, None, None]: ...
|
| 55 |
+
def get_content_disposition(self) -> Optional[str]: ...
|
| 56 |
+
def as_string(self, unixfrom: bool = ..., maxheaderlen: int = ..., policy: Optional[Policy] = ...) -> str: ...
|
| 57 |
+
def as_bytes(self, unixfrom: bool = ..., policy: Optional[Policy] = ...) -> bytes: ...
|
| 58 |
+
def __bytes__(self) -> bytes: ...
|
| 59 |
+
def set_param(
|
| 60 |
+
self,
|
| 61 |
+
param: str,
|
| 62 |
+
value: str,
|
| 63 |
+
header: str = ...,
|
| 64 |
+
requote: bool = ...,
|
| 65 |
+
charset: str = ...,
|
| 66 |
+
language: str = ...,
|
| 67 |
+
replace: bool = ...,
|
| 68 |
+
) -> None: ...
|
| 69 |
+
def __init__(self, policy: Policy = ...) -> None: ...
|
| 70 |
+
|
| 71 |
+
class MIMEPart(Message):
|
| 72 |
+
def get_body(self, preferencelist: Sequence[str] = ...) -> Optional[Message]: ...
|
| 73 |
+
def iter_attachments(self) -> Iterator[Message]: ...
|
| 74 |
+
def iter_parts(self) -> Iterator[Message]: ...
|
| 75 |
+
def get_content(self, *args: Any, content_manager: Optional[ContentManager] = ..., **kw: Any) -> Any: ...
|
| 76 |
+
def set_content(self, *args: Any, content_manager: Optional[ContentManager] = ..., **kw: Any) -> None: ...
|
| 77 |
+
def make_related(self, boundary: Optional[str] = ...) -> None: ...
|
| 78 |
+
def make_alternative(self, boundary: Optional[str] = ...) -> None: ...
|
| 79 |
+
def make_mixed(self, boundary: Optional[str] = ...) -> None: ...
|
| 80 |
+
def add_related(self, *args: Any, content_manager: Optional[ContentManager] = ..., **kw: Any) -> None: ...
|
| 81 |
+
def add_alternative(self, *args: Any, content_manager: Optional[ContentManager] = ..., **kw: Any) -> None: ...
|
| 82 |
+
def add_attachment(self, *args: Any, content_manager: Optional[ContentManager] = ..., **kw: Any) -> None: ...
|
| 83 |
+
def clear(self) -> None: ...
|
| 84 |
+
def clear_content(self) -> None: ...
|
| 85 |
+
def is_attachment(self) -> bool: ...
|
| 86 |
+
|
| 87 |
+
class EmailMessage(MIMEPart): ...
|
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/3/email/mime/application.pyi
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from email.mime.nonmultipart import MIMENonMultipart
|
| 2 |
+
from email.policy import Policy
|
| 3 |
+
from typing import Callable, Optional, Tuple, Union
|
| 4 |
+
|
| 5 |
+
_ParamsType = Union[str, None, Tuple[str, Optional[str], str]]
|
| 6 |
+
|
| 7 |
+
class MIMEApplication(MIMENonMultipart):
|
| 8 |
+
def __init__(
|
| 9 |
+
self,
|
| 10 |
+
_data: Union[str, bytes],
|
| 11 |
+
_subtype: str = ...,
|
| 12 |
+
_encoder: Callable[[MIMEApplication], None] = ...,
|
| 13 |
+
*,
|
| 14 |
+
policy: Optional[Policy] = ...,
|
| 15 |
+
**_params: _ParamsType,
|
| 16 |
+
) -> None: ...
|
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/3/email/mime/base.pyi
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import email.message
|
| 2 |
+
from email.policy import Policy
|
| 3 |
+
from typing import Optional, Tuple, Union
|
| 4 |
+
|
| 5 |
+
_ParamsType = Union[str, None, Tuple[str, Optional[str], str]]
|
| 6 |
+
|
| 7 |
+
class MIMEBase(email.message.Message):
|
| 8 |
+
def __init__(self, _maintype: str, _subtype: str, *, policy: Optional[Policy] = ..., **_params: _ParamsType) -> None: ...
|
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/3/email/mime/message.pyi
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from email.message import Message
|
| 2 |
+
from email.mime.nonmultipart import MIMENonMultipart
|
| 3 |
+
from email.policy import Policy
|
| 4 |
+
from typing import Optional
|
| 5 |
+
|
| 6 |
+
class MIMEMessage(MIMENonMultipart):
|
| 7 |
+
def __init__(self, _msg: Message, _subtype: str = ..., *, policy: Optional[Policy] = ...) -> None: ...
|
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/3/email/mime/multipart.pyi
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from email.message import Message
|
| 2 |
+
from email.mime.base import MIMEBase
|
| 3 |
+
from email.policy import Policy
|
| 4 |
+
from typing import Optional, Sequence, Tuple, Union
|
| 5 |
+
|
| 6 |
+
_ParamsType = Union[str, None, Tuple[str, Optional[str], str]]
|
| 7 |
+
|
| 8 |
+
class MIMEMultipart(MIMEBase):
|
| 9 |
+
def __init__(
|
| 10 |
+
self,
|
| 11 |
+
_subtype: str = ...,
|
| 12 |
+
boundary: Optional[str] = ...,
|
| 13 |
+
_subparts: Optional[Sequence[Message]] = ...,
|
| 14 |
+
*,
|
| 15 |
+
policy: Optional[Policy] = ...,
|
| 16 |
+
**_params: _ParamsType,
|
| 17 |
+
) -> None: ...
|
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/3/email/mime/text.pyi
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from email.mime.nonmultipart import MIMENonMultipart
|
| 2 |
+
from email.policy import Policy
|
| 3 |
+
from typing import Optional
|
| 4 |
+
|
| 5 |
+
class MIMEText(MIMENonMultipart):
|
| 6 |
+
def __init__(
|
| 7 |
+
self, _text: str, _subtype: str = ..., _charset: Optional[str] = ..., *, policy: Optional[Policy] = ...
|
| 8 |
+
) -> None: ...
|
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/3/email/parser.pyi
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import email.feedparser
|
| 2 |
+
from email.message import Message
|
| 3 |
+
from email.policy import Policy
|
| 4 |
+
from typing import BinaryIO, Callable, TextIO
|
| 5 |
+
|
| 6 |
+
FeedParser = email.feedparser.FeedParser
|
| 7 |
+
BytesFeedParser = email.feedparser.BytesFeedParser
|
| 8 |
+
|
| 9 |
+
class Parser:
|
| 10 |
+
def __init__(self, _class: Callable[[], Message] = ..., *, policy: Policy = ...) -> None: ...
|
| 11 |
+
def parse(self, fp: TextIO, headersonly: bool = ...) -> Message: ...
|
| 12 |
+
def parsestr(self, text: str, headersonly: bool = ...) -> Message: ...
|
| 13 |
+
|
| 14 |
+
class HeaderParser(Parser):
|
| 15 |
+
def __init__(self, _class: Callable[[], Message] = ..., *, policy: Policy = ...) -> None: ...
|
| 16 |
+
def parse(self, fp: TextIO, headersonly: bool = ...) -> Message: ...
|
| 17 |
+
def parsestr(self, text: str, headersonly: bool = ...) -> Message: ...
|
| 18 |
+
|
| 19 |
+
class BytesHeaderParser(BytesParser):
|
| 20 |
+
def __init__(self, _class: Callable[[], Message] = ..., *, policy: Policy = ...) -> None: ...
|
| 21 |
+
def parse(self, fp: BinaryIO, headersonly: bool = ...) -> Message: ...
|
| 22 |
+
def parsebytes(self, text: bytes, headersonly: bool = ...) -> Message: ...
|
| 23 |
+
|
| 24 |
+
class BytesParser:
|
| 25 |
+
def __init__(self, _class: Callable[[], Message] = ..., *, policy: Policy = ...) -> None: ...
|
| 26 |
+
def parse(self, fp: BinaryIO, headersonly: bool = ...) -> Message: ...
|
| 27 |
+
def parsebytes(self, text: bytes, headersonly: bool = ...) -> Message: ...
|
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/3/email/policy.pyi
ADDED
|
@@ -0,0 +1,54 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from abc import abstractmethod
|
| 2 |
+
from email.contentmanager import ContentManager
|
| 3 |
+
from email.errors import MessageDefect
|
| 4 |
+
from email.header import Header
|
| 5 |
+
from email.message import Message
|
| 6 |
+
from typing import Any, Callable, List, Optional, Tuple, Union
|
| 7 |
+
|
| 8 |
+
class Policy:
|
| 9 |
+
max_line_length: Optional[int]
|
| 10 |
+
linesep: str
|
| 11 |
+
cte_type: str
|
| 12 |
+
raise_on_defect: bool
|
| 13 |
+
mange_from: bool
|
| 14 |
+
def __init__(self, **kw: Any) -> None: ...
|
| 15 |
+
def clone(self, **kw: Any) -> Policy: ...
|
| 16 |
+
def handle_defect(self, obj: Message, defect: MessageDefect) -> None: ...
|
| 17 |
+
def register_defect(self, obj: Message, defect: MessageDefect) -> None: ...
|
| 18 |
+
def header_max_count(self, name: str) -> Optional[int]: ...
|
| 19 |
+
@abstractmethod
|
| 20 |
+
def header_source_parse(self, sourcelines: List[str]) -> Tuple[str, str]: ...
|
| 21 |
+
@abstractmethod
|
| 22 |
+
def header_store_parse(self, name: str, value: str) -> Tuple[str, str]: ...
|
| 23 |
+
@abstractmethod
|
| 24 |
+
def header_fetch_parse(self, name: str, value: str) -> str: ...
|
| 25 |
+
@abstractmethod
|
| 26 |
+
def fold(self, name: str, value: str) -> str: ...
|
| 27 |
+
@abstractmethod
|
| 28 |
+
def fold_binary(self, name: str, value: str) -> bytes: ...
|
| 29 |
+
|
| 30 |
+
class Compat32(Policy):
|
| 31 |
+
def header_source_parse(self, sourcelines: List[str]) -> Tuple[str, str]: ...
|
| 32 |
+
def header_store_parse(self, name: str, value: str) -> Tuple[str, str]: ...
|
| 33 |
+
def header_fetch_parse(self, name: str, value: str) -> Union[str, Header]: ... # type: ignore
|
| 34 |
+
def fold(self, name: str, value: str) -> str: ...
|
| 35 |
+
def fold_binary(self, name: str, value: str) -> bytes: ...
|
| 36 |
+
|
| 37 |
+
compat32: Compat32
|
| 38 |
+
|
| 39 |
+
class EmailPolicy(Policy):
|
| 40 |
+
utf8: bool
|
| 41 |
+
refold_source: str
|
| 42 |
+
header_factory: Callable[[str, str], str]
|
| 43 |
+
content_manager: ContentManager
|
| 44 |
+
def header_source_parse(self, sourcelines: List[str]) -> Tuple[str, str]: ...
|
| 45 |
+
def header_store_parse(self, name: str, value: str) -> Tuple[str, str]: ...
|
| 46 |
+
def header_fetch_parse(self, name: str, value: str) -> str: ...
|
| 47 |
+
def fold(self, name: str, value: str) -> str: ...
|
| 48 |
+
def fold_binary(self, name: str, value: str) -> bytes: ...
|
| 49 |
+
|
| 50 |
+
default: EmailPolicy
|
| 51 |
+
SMTP: EmailPolicy
|
| 52 |
+
SMTPUTF8: EmailPolicy
|
| 53 |
+
HTTP: EmailPolicy
|
| 54 |
+
strict: EmailPolicy
|
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/3/email/utils.pyi
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import datetime
|
| 2 |
+
import sys
|
| 3 |
+
from email.charset import Charset
|
| 4 |
+
from typing import List, Optional, Tuple, Union, overload
|
| 5 |
+
|
| 6 |
+
_ParamType = Union[str, Tuple[Optional[str], Optional[str], str]]
|
| 7 |
+
_PDTZ = Tuple[int, int, int, int, int, int, int, int, int, Optional[int]]
|
| 8 |
+
|
| 9 |
+
def quote(str: str) -> str: ...
|
| 10 |
+
def unquote(str: str) -> str: ...
|
| 11 |
+
def parseaddr(address: Optional[str]) -> Tuple[str, str]: ...
|
| 12 |
+
def formataddr(pair: Tuple[Optional[str], str], charset: Union[str, Charset] = ...) -> str: ...
|
| 13 |
+
def getaddresses(fieldvalues: List[str]) -> List[Tuple[str, str]]: ...
|
| 14 |
+
@overload
|
| 15 |
+
def parsedate(date: None) -> None: ...
|
| 16 |
+
@overload
|
| 17 |
+
def parsedate(date: str) -> Optional[Tuple[int, int, int, int, int, int, int, int, int]]: ...
|
| 18 |
+
@overload
|
| 19 |
+
def parsedate_tz(date: None) -> None: ...
|
| 20 |
+
@overload
|
| 21 |
+
def parsedate_tz(date: str) -> Optional[_PDTZ]: ...
|
| 22 |
+
|
| 23 |
+
if sys.version_info >= (3, 10):
|
| 24 |
+
@overload
|
| 25 |
+
def parsedate_to_datetime(date: None) -> None: ...
|
| 26 |
+
@overload
|
| 27 |
+
def parsedate_to_datetime(date: str) -> datetime.datetime: ...
|
| 28 |
+
|
| 29 |
+
else:
|
| 30 |
+
def parsedate_to_datetime(date: str) -> datetime.datetime: ...
|
| 31 |
+
|
| 32 |
+
def mktime_tz(tuple: _PDTZ) -> int: ...
|
| 33 |
+
def formatdate(timeval: Optional[float] = ..., localtime: bool = ..., usegmt: bool = ...) -> str: ...
|
| 34 |
+
def format_datetime(dt: datetime.datetime, usegmt: bool = ...) -> str: ...
|
| 35 |
+
def localtime(dt: Optional[datetime.datetime] = ...) -> datetime.datetime: ...
|
| 36 |
+
def make_msgid(idstring: Optional[str] = ..., domain: Optional[str] = ...) -> str: ...
|
| 37 |
+
def decode_rfc2231(s: str) -> Tuple[Optional[str], Optional[str], str]: ...
|
| 38 |
+
def encode_rfc2231(s: str, charset: Optional[str] = ..., language: Optional[str] = ...) -> str: ...
|
| 39 |
+
def collapse_rfc2231_value(value: _ParamType, errors: str = ..., fallback_charset: str = ...) -> str: ...
|
| 40 |
+
def decode_params(params: List[Tuple[str, str]]) -> List[Tuple[str, _ParamType]]: ...
|
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/3/hashlib.pyi
ADDED
|
@@ -0,0 +1,123 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import sys
|
| 2 |
+
from _typeshed import ReadableBuffer
|
| 3 |
+
from typing import AbstractSet, Optional
|
| 4 |
+
|
| 5 |
+
class _Hash(object):
|
| 6 |
+
digest_size: int
|
| 7 |
+
block_size: int
|
| 8 |
+
|
| 9 |
+
# [Python documentation note] Changed in version 3.4: The name attribute has
|
| 10 |
+
# been present in CPython since its inception, but until Python 3.4 was not
|
| 11 |
+
# formally specified, so may not exist on some platforms
|
| 12 |
+
name: str
|
| 13 |
+
def __init__(self, data: ReadableBuffer = ...) -> None: ...
|
| 14 |
+
def copy(self) -> _Hash: ...
|
| 15 |
+
def digest(self) -> bytes: ...
|
| 16 |
+
def hexdigest(self) -> str: ...
|
| 17 |
+
def update(self, __data: ReadableBuffer) -> None: ...
|
| 18 |
+
|
| 19 |
+
if sys.version_info >= (3, 9):
|
| 20 |
+
def md5(string: ReadableBuffer = ..., *, usedforsecurity: bool = ...) -> _Hash: ...
|
| 21 |
+
def sha1(string: ReadableBuffer = ..., *, usedforsecurity: bool = ...) -> _Hash: ...
|
| 22 |
+
def sha224(string: ReadableBuffer = ..., *, usedforsecurity: bool = ...) -> _Hash: ...
|
| 23 |
+
def sha256(string: ReadableBuffer = ..., *, usedforsecurity: bool = ...) -> _Hash: ...
|
| 24 |
+
def sha384(string: ReadableBuffer = ..., *, usedforsecurity: bool = ...) -> _Hash: ...
|
| 25 |
+
def sha512(string: ReadableBuffer = ..., *, usedforsecurity: bool = ...) -> _Hash: ...
|
| 26 |
+
|
| 27 |
+
elif sys.version_info >= (3, 8):
|
| 28 |
+
def md5(string: ReadableBuffer = ...) -> _Hash: ...
|
| 29 |
+
def sha1(string: ReadableBuffer = ...) -> _Hash: ...
|
| 30 |
+
def sha224(string: ReadableBuffer = ...) -> _Hash: ...
|
| 31 |
+
def sha256(string: ReadableBuffer = ...) -> _Hash: ...
|
| 32 |
+
def sha384(string: ReadableBuffer = ...) -> _Hash: ...
|
| 33 |
+
def sha512(string: ReadableBuffer = ...) -> _Hash: ...
|
| 34 |
+
|
| 35 |
+
else:
|
| 36 |
+
def md5(__string: ReadableBuffer = ...) -> _Hash: ...
|
| 37 |
+
def sha1(__string: ReadableBuffer = ...) -> _Hash: ...
|
| 38 |
+
def sha224(__string: ReadableBuffer = ...) -> _Hash: ...
|
| 39 |
+
def sha256(__string: ReadableBuffer = ...) -> _Hash: ...
|
| 40 |
+
def sha384(__string: ReadableBuffer = ...) -> _Hash: ...
|
| 41 |
+
def sha512(__string: ReadableBuffer = ...) -> _Hash: ...
|
| 42 |
+
|
| 43 |
+
def new(name: str, data: ReadableBuffer = ...) -> _Hash: ...
|
| 44 |
+
|
| 45 |
+
algorithms_guaranteed: AbstractSet[str]
|
| 46 |
+
algorithms_available: AbstractSet[str]
|
| 47 |
+
|
| 48 |
+
def pbkdf2_hmac(
|
| 49 |
+
hash_name: str, password: ReadableBuffer, salt: ReadableBuffer, iterations: int, dklen: Optional[int] = ...
|
| 50 |
+
) -> bytes: ...
|
| 51 |
+
|
| 52 |
+
class _VarLenHash(object):
|
| 53 |
+
digest_size: int
|
| 54 |
+
block_size: int
|
| 55 |
+
name: str
|
| 56 |
+
def __init__(self, data: ReadableBuffer = ...) -> None: ...
|
| 57 |
+
def copy(self) -> _VarLenHash: ...
|
| 58 |
+
def digest(self, __length: int) -> bytes: ...
|
| 59 |
+
def hexdigest(self, __length: int) -> str: ...
|
| 60 |
+
def update(self, __data: ReadableBuffer) -> None: ...
|
| 61 |
+
|
| 62 |
+
sha3_224 = _Hash
|
| 63 |
+
sha3_256 = _Hash
|
| 64 |
+
sha3_384 = _Hash
|
| 65 |
+
sha3_512 = _Hash
|
| 66 |
+
shake_128 = _VarLenHash
|
| 67 |
+
shake_256 = _VarLenHash
|
| 68 |
+
|
| 69 |
+
def scrypt(
|
| 70 |
+
password: ReadableBuffer,
|
| 71 |
+
*,
|
| 72 |
+
salt: Optional[ReadableBuffer] = ...,
|
| 73 |
+
n: Optional[int] = ...,
|
| 74 |
+
r: Optional[int] = ...,
|
| 75 |
+
p: Optional[int] = ...,
|
| 76 |
+
maxmem: int = ...,
|
| 77 |
+
dklen: int = ...,
|
| 78 |
+
) -> bytes: ...
|
| 79 |
+
|
| 80 |
+
class _BlakeHash(_Hash):
|
| 81 |
+
MAX_DIGEST_SIZE: int
|
| 82 |
+
MAX_KEY_SIZE: int
|
| 83 |
+
PERSON_SIZE: int
|
| 84 |
+
SALT_SIZE: int
|
| 85 |
+
|
| 86 |
+
if sys.version_info >= (3, 9):
|
| 87 |
+
def __init__(
|
| 88 |
+
self,
|
| 89 |
+
__data: ReadableBuffer = ...,
|
| 90 |
+
*,
|
| 91 |
+
digest_size: int = ...,
|
| 92 |
+
key: ReadableBuffer = ...,
|
| 93 |
+
salt: ReadableBuffer = ...,
|
| 94 |
+
person: ReadableBuffer = ...,
|
| 95 |
+
fanout: int = ...,
|
| 96 |
+
depth: int = ...,
|
| 97 |
+
leaf_size: int = ...,
|
| 98 |
+
node_offset: int = ...,
|
| 99 |
+
node_depth: int = ...,
|
| 100 |
+
inner_size: int = ...,
|
| 101 |
+
last_node: bool = ...,
|
| 102 |
+
usedforsecurity: bool = ...,
|
| 103 |
+
) -> None: ...
|
| 104 |
+
else:
|
| 105 |
+
def __init__(
|
| 106 |
+
self,
|
| 107 |
+
__data: ReadableBuffer = ...,
|
| 108 |
+
*,
|
| 109 |
+
digest_size: int = ...,
|
| 110 |
+
key: ReadableBuffer = ...,
|
| 111 |
+
salt: ReadableBuffer = ...,
|
| 112 |
+
person: ReadableBuffer = ...,
|
| 113 |
+
fanout: int = ...,
|
| 114 |
+
depth: int = ...,
|
| 115 |
+
leaf_size: int = ...,
|
| 116 |
+
node_offset: int = ...,
|
| 117 |
+
node_depth: int = ...,
|
| 118 |
+
inner_size: int = ...,
|
| 119 |
+
last_node: bool = ...,
|
| 120 |
+
) -> None: ...
|
| 121 |
+
|
| 122 |
+
blake2b = _BlakeHash
|
| 123 |
+
blake2s = _BlakeHash
|
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/3/http/client.pyi
ADDED
|
@@ -0,0 +1,211 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import email.message
|
| 2 |
+
import io
|
| 3 |
+
import ssl
|
| 4 |
+
import sys
|
| 5 |
+
import types
|
| 6 |
+
from socket import socket
|
| 7 |
+
from typing import (
|
| 8 |
+
IO,
|
| 9 |
+
Any,
|
| 10 |
+
BinaryIO,
|
| 11 |
+
Callable,
|
| 12 |
+
Dict,
|
| 13 |
+
Iterable,
|
| 14 |
+
Iterator,
|
| 15 |
+
List,
|
| 16 |
+
Mapping,
|
| 17 |
+
Optional,
|
| 18 |
+
Protocol,
|
| 19 |
+
Tuple,
|
| 20 |
+
Type,
|
| 21 |
+
TypeVar,
|
| 22 |
+
Union,
|
| 23 |
+
overload,
|
| 24 |
+
)
|
| 25 |
+
|
| 26 |
+
_DataType = Union[bytes, IO[Any], Iterable[bytes], str]
|
| 27 |
+
_T = TypeVar("_T")
|
| 28 |
+
|
| 29 |
+
HTTP_PORT: int
|
| 30 |
+
HTTPS_PORT: int
|
| 31 |
+
|
| 32 |
+
CONTINUE: int
|
| 33 |
+
SWITCHING_PROTOCOLS: int
|
| 34 |
+
PROCESSING: int
|
| 35 |
+
|
| 36 |
+
OK: int
|
| 37 |
+
CREATED: int
|
| 38 |
+
ACCEPTED: int
|
| 39 |
+
NON_AUTHORITATIVE_INFORMATION: int
|
| 40 |
+
NO_CONTENT: int
|
| 41 |
+
RESET_CONTENT: int
|
| 42 |
+
PARTIAL_CONTENT: int
|
| 43 |
+
MULTI_STATUS: int
|
| 44 |
+
IM_USED: int
|
| 45 |
+
|
| 46 |
+
MULTIPLE_CHOICES: int
|
| 47 |
+
MOVED_PERMANENTLY: int
|
| 48 |
+
FOUND: int
|
| 49 |
+
SEE_OTHER: int
|
| 50 |
+
NOT_MODIFIED: int
|
| 51 |
+
USE_PROXY: int
|
| 52 |
+
TEMPORARY_REDIRECT: int
|
| 53 |
+
|
| 54 |
+
BAD_REQUEST: int
|
| 55 |
+
UNAUTHORIZED: int
|
| 56 |
+
PAYMENT_REQUIRED: int
|
| 57 |
+
FORBIDDEN: int
|
| 58 |
+
NOT_FOUND: int
|
| 59 |
+
METHOD_NOT_ALLOWED: int
|
| 60 |
+
NOT_ACCEPTABLE: int
|
| 61 |
+
PROXY_AUTHENTICATION_REQUIRED: int
|
| 62 |
+
REQUEST_TIMEOUT: int
|
| 63 |
+
CONFLICT: int
|
| 64 |
+
GONE: int
|
| 65 |
+
LENGTH_REQUIRED: int
|
| 66 |
+
PRECONDITION_FAILED: int
|
| 67 |
+
REQUEST_ENTITY_TOO_LARGE: int
|
| 68 |
+
REQUEST_URI_TOO_LONG: int
|
| 69 |
+
UNSUPPORTED_MEDIA_TYPE: int
|
| 70 |
+
REQUESTED_RANGE_NOT_SATISFIABLE: int
|
| 71 |
+
EXPECTATION_FAILED: int
|
| 72 |
+
UNPROCESSABLE_ENTITY: int
|
| 73 |
+
LOCKED: int
|
| 74 |
+
FAILED_DEPENDENCY: int
|
| 75 |
+
UPGRADE_REQUIRED: int
|
| 76 |
+
PRECONDITION_REQUIRED: int
|
| 77 |
+
TOO_MANY_REQUESTS: int
|
| 78 |
+
REQUEST_HEADER_FIELDS_TOO_LARGE: int
|
| 79 |
+
|
| 80 |
+
INTERNAL_SERVER_ERROR: int
|
| 81 |
+
NOT_IMPLEMENTED: int
|
| 82 |
+
BAD_GATEWAY: int
|
| 83 |
+
SERVICE_UNAVAILABLE: int
|
| 84 |
+
GATEWAY_TIMEOUT: int
|
| 85 |
+
HTTP_VERSION_NOT_SUPPORTED: int
|
| 86 |
+
INSUFFICIENT_STORAGE: int
|
| 87 |
+
NOT_EXTENDED: int
|
| 88 |
+
NETWORK_AUTHENTICATION_REQUIRED: int
|
| 89 |
+
|
| 90 |
+
responses: Dict[int, str]
|
| 91 |
+
|
| 92 |
+
class HTTPMessage(email.message.Message): ...
|
| 93 |
+
|
| 94 |
+
def parse_headers(fp: io.BufferedIOBase, _class: Callable[[], email.message.Message] = ...) -> HTTPMessage: ...
|
| 95 |
+
|
| 96 |
+
class HTTPResponse(io.BufferedIOBase, BinaryIO):
|
| 97 |
+
msg: HTTPMessage
|
| 98 |
+
headers: HTTPMessage
|
| 99 |
+
version: int
|
| 100 |
+
debuglevel: int
|
| 101 |
+
closed: bool
|
| 102 |
+
status: int
|
| 103 |
+
reason: str
|
| 104 |
+
def __init__(self, sock: socket, debuglevel: int = ..., method: Optional[str] = ..., url: Optional[str] = ...) -> None: ...
|
| 105 |
+
def read(self, amt: Optional[int] = ...) -> bytes: ...
|
| 106 |
+
@overload
|
| 107 |
+
def getheader(self, name: str) -> Optional[str]: ...
|
| 108 |
+
@overload
|
| 109 |
+
def getheader(self, name: str, default: _T) -> Union[str, _T]: ...
|
| 110 |
+
def getheaders(self) -> List[Tuple[str, str]]: ...
|
| 111 |
+
def fileno(self) -> int: ...
|
| 112 |
+
def isclosed(self) -> bool: ...
|
| 113 |
+
def __iter__(self) -> Iterator[bytes]: ...
|
| 114 |
+
def __enter__(self) -> HTTPResponse: ...
|
| 115 |
+
def __exit__(
|
| 116 |
+
self, exc_type: Optional[Type[BaseException]], exc_val: Optional[BaseException], exc_tb: Optional[types.TracebackType]
|
| 117 |
+
) -> Optional[bool]: ...
|
| 118 |
+
def info(self) -> email.message.Message: ...
|
| 119 |
+
def geturl(self) -> str: ...
|
| 120 |
+
def getcode(self) -> int: ...
|
| 121 |
+
def begin(self) -> None: ...
|
| 122 |
+
|
| 123 |
+
# This is an API stub only for the class below, not a class itself.
|
| 124 |
+
# urllib.request uses it for a parameter.
|
| 125 |
+
class _HTTPConnectionProtocol(Protocol):
|
| 126 |
+
if sys.version_info >= (3, 7):
|
| 127 |
+
def __call__(
|
| 128 |
+
self,
|
| 129 |
+
host: str,
|
| 130 |
+
port: Optional[int] = ...,
|
| 131 |
+
timeout: float = ...,
|
| 132 |
+
source_address: Optional[Tuple[str, int]] = ...,
|
| 133 |
+
blocksize: int = ...,
|
| 134 |
+
) -> HTTPConnection: ...
|
| 135 |
+
else:
|
| 136 |
+
def __call__(
|
| 137 |
+
self, host: str, port: Optional[int] = ..., timeout: float = ..., source_address: Optional[Tuple[str, int]] = ...
|
| 138 |
+
) -> HTTPConnection: ...
|
| 139 |
+
|
| 140 |
+
class HTTPConnection:
|
| 141 |
+
timeout: Optional[float]
|
| 142 |
+
host: str
|
| 143 |
+
port: int
|
| 144 |
+
sock: Any
|
| 145 |
+
if sys.version_info >= (3, 7):
|
| 146 |
+
def __init__(
|
| 147 |
+
self,
|
| 148 |
+
host: str,
|
| 149 |
+
port: Optional[int] = ...,
|
| 150 |
+
timeout: Optional[float] = ...,
|
| 151 |
+
source_address: Optional[Tuple[str, int]] = ...,
|
| 152 |
+
blocksize: int = ...,
|
| 153 |
+
) -> None: ...
|
| 154 |
+
else:
|
| 155 |
+
def __init__(
|
| 156 |
+
self,
|
| 157 |
+
host: str,
|
| 158 |
+
port: Optional[int] = ...,
|
| 159 |
+
timeout: Optional[float] = ...,
|
| 160 |
+
source_address: Optional[Tuple[str, int]] = ...,
|
| 161 |
+
) -> None: ...
|
| 162 |
+
def request(
|
| 163 |
+
self,
|
| 164 |
+
method: str,
|
| 165 |
+
url: str,
|
| 166 |
+
body: Optional[_DataType] = ...,
|
| 167 |
+
headers: Mapping[str, str] = ...,
|
| 168 |
+
*,
|
| 169 |
+
encode_chunked: bool = ...,
|
| 170 |
+
) -> None: ...
|
| 171 |
+
def getresponse(self) -> HTTPResponse: ...
|
| 172 |
+
def set_debuglevel(self, level: int) -> None: ...
|
| 173 |
+
def set_tunnel(self, host: str, port: Optional[int] = ..., headers: Optional[Mapping[str, str]] = ...) -> None: ...
|
| 174 |
+
def connect(self) -> None: ...
|
| 175 |
+
def close(self) -> None: ...
|
| 176 |
+
def putrequest(self, method: str, url: str, skip_host: bool = ..., skip_accept_encoding: bool = ...) -> None: ...
|
| 177 |
+
def putheader(self, header: str, *argument: str) -> None: ...
|
| 178 |
+
def endheaders(self, message_body: Optional[_DataType] = ..., *, encode_chunked: bool = ...) -> None: ...
|
| 179 |
+
def send(self, data: _DataType) -> None: ...
|
| 180 |
+
|
| 181 |
+
class HTTPSConnection(HTTPConnection):
|
| 182 |
+
def __init__(
|
| 183 |
+
self,
|
| 184 |
+
host: str,
|
| 185 |
+
port: Optional[int] = ...,
|
| 186 |
+
key_file: Optional[str] = ...,
|
| 187 |
+
cert_file: Optional[str] = ...,
|
| 188 |
+
timeout: Optional[float] = ...,
|
| 189 |
+
source_address: Optional[Tuple[str, int]] = ...,
|
| 190 |
+
*,
|
| 191 |
+
context: Optional[ssl.SSLContext] = ...,
|
| 192 |
+
check_hostname: Optional[bool] = ...,
|
| 193 |
+
) -> None: ...
|
| 194 |
+
|
| 195 |
+
class HTTPException(Exception): ...
|
| 196 |
+
|
| 197 |
+
error = HTTPException
|
| 198 |
+
|
| 199 |
+
class NotConnected(HTTPException): ...
|
| 200 |
+
class InvalidURL(HTTPException): ...
|
| 201 |
+
class UnknownProtocol(HTTPException): ...
|
| 202 |
+
class UnknownTransferEncoding(HTTPException): ...
|
| 203 |
+
class UnimplementedFileMode(HTTPException): ...
|
| 204 |
+
class IncompleteRead(HTTPException): ...
|
| 205 |
+
class ImproperConnectionState(HTTPException): ...
|
| 206 |
+
class CannotSendRequest(ImproperConnectionState): ...
|
| 207 |
+
class CannotSendHeader(ImproperConnectionState): ...
|
| 208 |
+
class ResponseNotReady(ImproperConnectionState): ...
|
| 209 |
+
class BadStatusLine(HTTPException): ...
|
| 210 |
+
class LineTooLong(HTTPException): ...
|
| 211 |
+
class RemoteDisconnected(ConnectionResetError, BadStatusLine): ...
|
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/3/importlib/util.pyi
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import importlib.abc
|
| 2 |
+
import importlib.machinery
|
| 3 |
+
import os
|
| 4 |
+
import types
|
| 5 |
+
from typing import Any, Callable, List, Optional, Union
|
| 6 |
+
|
| 7 |
+
def module_for_loader(fxn: Callable[..., types.ModuleType]) -> Callable[..., types.ModuleType]: ...
|
| 8 |
+
def set_loader(fxn: Callable[..., types.ModuleType]) -> Callable[..., types.ModuleType]: ...
|
| 9 |
+
def set_package(fxn: Callable[..., types.ModuleType]) -> Callable[..., types.ModuleType]: ...
|
| 10 |
+
def resolve_name(name: str, package: str) -> str: ...
|
| 11 |
+
|
| 12 |
+
MAGIC_NUMBER: bytes
|
| 13 |
+
|
| 14 |
+
def cache_from_source(path: str, debug_override: Optional[bool] = ..., *, optimization: Optional[Any] = ...) -> str: ...
|
| 15 |
+
def source_from_cache(path: str) -> str: ...
|
| 16 |
+
def decode_source(source_bytes: bytes) -> str: ...
|
| 17 |
+
def find_spec(name: str, package: Optional[str] = ...) -> Optional[importlib.machinery.ModuleSpec]: ...
|
| 18 |
+
def spec_from_loader(
|
| 19 |
+
name: str,
|
| 20 |
+
loader: Optional[importlib.abc.Loader],
|
| 21 |
+
*,
|
| 22 |
+
origin: Optional[str] = ...,
|
| 23 |
+
loader_state: Optional[Any] = ...,
|
| 24 |
+
is_package: Optional[bool] = ...,
|
| 25 |
+
) -> importlib.machinery.ModuleSpec: ...
|
| 26 |
+
def spec_from_file_location(
|
| 27 |
+
name: str,
|
| 28 |
+
location: Union[str, bytes, os.PathLike[str], os.PathLike[bytes]],
|
| 29 |
+
*,
|
| 30 |
+
loader: Optional[importlib.abc.Loader] = ...,
|
| 31 |
+
submodule_search_locations: Optional[List[str]] = ...,
|
| 32 |
+
) -> importlib.machinery.ModuleSpec: ...
|
| 33 |
+
def module_from_spec(spec: importlib.machinery.ModuleSpec) -> types.ModuleType: ...
|
| 34 |
+
|
| 35 |
+
class LazyLoader(importlib.abc.Loader):
|
| 36 |
+
def __init__(self, loader: importlib.abc.Loader) -> None: ...
|
| 37 |
+
@classmethod
|
| 38 |
+
def factory(cls, loader: importlib.abc.Loader) -> Callable[..., LazyLoader]: ...
|
| 39 |
+
def create_module(self, spec: importlib.machinery.ModuleSpec) -> Optional[types.ModuleType]: ...
|
| 40 |
+
def exec_module(self, module: types.ModuleType) -> None: ...
|