Soptq commited on
Commit
81b9b2a
·
verified ·
1 Parent(s): c6938b1

Add files using upload-large-folder tool

Browse files
This view is limited to 50 files because it contains too many changes.   See raw diff
Files changed (50) hide show
  1. .gitattributes +3 -0
  2. material/dataset/Datasets/Electron Microscopy Image Masks/TiO2_Masks_Manual_4connected/1908296_m.tif +3 -0
  3. material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/3.9/graphlib.pyi +16 -0
  4. material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/3/_compat_pickle.pyi +10 -0
  5. material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/3/_dummy_thread.pyi +21 -0
  6. material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/3/_imp.pyi +17 -0
  7. material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/3/_json.pyi +38 -0
  8. material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/3/_operator.pyi +60 -0
  9. material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/3/_posixsubprocess.pyi +24 -0
  10. material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/3/_pydecimal.pyi +3 -0
  11. material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/3/_sitebuiltins.pyi +16 -0
  12. material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/3/_stat.pyi +65 -0
  13. material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/3/_thread.pyi +41 -0
  14. material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/3/_threading_local.pyi +16 -0
  15. material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/3/abc.pyi +20 -0
  16. material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/3/copyreg.pyi +16 -0
  17. material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/3/fcntl.pyi +99 -0
  18. material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/3/getpass.pyi +6 -0
  19. material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/3/gettext.pyi +80 -0
  20. material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/3/glob.pyi +8 -0
  21. material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/3/io.pyi +186 -0
  22. material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/3/lzma.pyi +164 -0
  23. material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/3/macurl2path.pyi +7 -0
  24. material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/3/ntpath.pyi +144 -0
  25. material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/3/nturl2path.pyi +2 -0
  26. material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/3/posix.pyi +165 -0
  27. material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/3/queue.pyi +52 -0
  28. material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/3/resource.pyi +55 -0
  29. material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/3/runpy.pyi +22 -0
  30. material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/3/secrets.pyi +12 -0
  31. material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/3/signal.pyi +194 -0
  32. material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/3/smtplib.pyi +159 -0
  33. material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/3/socketserver.pyi +133 -0
  34. material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/3/statistics.pyi +72 -0
  35. material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/3/subprocess.pyi +1054 -0
  36. material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/3/symbol.pyi +90 -0
  37. material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/3/sys.pyi +235 -0
  38. material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/3/tokenize.pyi +116 -0
  39. material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/3/types.pyi +334 -0
  40. material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/3/typing.pyi +687 -0
  41. material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/3/winreg.pyi +100 -0
  42. material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/3/xxlimited.pyi +13 -0
  43. material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/3/zipapp.pyi +24 -0
  44. material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/third_party/2and3/atomicwrites/__init__.pyi +16 -0
  45. material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/third_party/2and3/boto/connection.pyi +174 -0
  46. material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/third_party/2and3/click/__init__.pyi +84 -0
  47. material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/third_party/2and3/click/_termui_impl.pyi +14 -0
  48. material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/third_party/2and3/click/globals.pyi +8 -0
  49. material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/third_party/2and3/click/parser.pyi +65 -0
  50. material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/third_party/2and3/click/termui.pyi +103 -0
.gitattributes CHANGED
@@ -470,3 +470,6 @@ material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/matplotlib/t
470
  material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/matplotlib/mpl-data/fonts/ttf/DejaVuSansMono.ttf filter=lfs diff=lfs merge=lfs -text
471
  material/dataset/Datasets/Electron[[:space:]]Microscopy[[:space:]]Image[[:space:]]Masks/TiO2_Masks_TSEM/Image_Registration/Input/1908308/1908308.tif filter=lfs diff=lfs merge=lfs -text
472
  material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/matplotlib/_path.cpython-310-x86_64-linux-gnu.so filter=lfs diff=lfs merge=lfs -text
 
 
 
 
470
  material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/matplotlib/mpl-data/fonts/ttf/DejaVuSansMono.ttf filter=lfs diff=lfs merge=lfs -text
471
  material/dataset/Datasets/Electron[[:space:]]Microscopy[[:space:]]Image[[:space:]]Masks/TiO2_Masks_TSEM/Image_Registration/Input/1908308/1908308.tif filter=lfs diff=lfs merge=lfs -text
472
  material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/matplotlib/_path.cpython-310-x86_64-linux-gnu.so filter=lfs diff=lfs merge=lfs -text
473
+ material/dataset/Datasets/Electron[[:space:]]Microscopy[[:space:]]Image[[:space:]]Masks/TiO2_Masks_Manual_4connected/1908296_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
material/dataset/Datasets/Electron Microscopy Image Masks/TiO2_Masks_Manual_4connected/1908296_m.tif ADDED

Git LFS Details

  • SHA256: 12b9961573e389eedd27c108f67fc1dad61c2583119026d2d1df0ec286680c7d
  • Pointer size: 131 Bytes
  • Size of remote file: 787 kB
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/3.9/graphlib.pyi ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from _typeshed import SupportsItems
2
+ from typing import Generic, Iterable, Optional, Tuple, TypeVar
3
+
4
+ _T = TypeVar("_T")
5
+
6
+ class TopologicalSorter(Generic[_T]):
7
+ def __init__(self, graph: Optional[SupportsItems[_T, Iterable[_T]]] = ...) -> None: ...
8
+ def add(self, node: _T, *predecessors: _T) -> None: ...
9
+ def prepare(self) -> None: ...
10
+ def is_active(self) -> bool: ...
11
+ def __bool__(self) -> bool: ...
12
+ def done(self, *nodes: _T) -> None: ...
13
+ def get_ready(self) -> Tuple[_T, ...]: ...
14
+ def static_order(self) -> Iterable[_T]: ...
15
+
16
+ class CycleError(ValueError): ...
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/3/_compat_pickle.pyi ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ from typing import Dict, Tuple
2
+
3
+ IMPORT_MAPPING: Dict[str, str]
4
+ NAME_MAPPING: Dict[Tuple[str, str], Tuple[str, str]]
5
+ PYTHON2_EXCEPTIONS: Tuple[str, ...]
6
+ MULTIPROCESSING_EXCEPTIONS: Tuple[str, ...]
7
+ REVERSE_IMPORT_MAPPING: Dict[str, str]
8
+ REVERSE_NAME_MAPPING: Dict[Tuple[str, str], Tuple[str, str]]
9
+ PYTHON3_OSERROR_EXCEPTIONS: Tuple[str, ...]
10
+ PYTHON3_IMPORTERROR_EXCEPTIONS: Tuple[str, ...]
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/3/_dummy_thread.pyi ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from typing import Any, Callable, Dict, NoReturn, Optional, Tuple
2
+
3
+ TIMEOUT_MAX: int
4
+ error = RuntimeError
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] = ..., timeout: int = ...) -> bool: ...
16
+ def __enter__(self, waitflag: Optional[bool] = ..., timeout: int = ...) -> 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/3/_imp.pyi ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import types
2
+ from importlib.machinery import ModuleSpec
3
+ from typing import Any, List
4
+
5
+ def create_builtin(__spec: ModuleSpec) -> types.ModuleType: ...
6
+ def create_dynamic(__spec: ModuleSpec, __file: Any = ...) -> None: ...
7
+ def acquire_lock() -> None: ...
8
+ def exec_builtin(__mod: types.ModuleType) -> int: ...
9
+ def exec_dynamic(__mod: types.ModuleType) -> int: ...
10
+ def extension_suffixes() -> List[str]: ...
11
+ def get_frozen_object(__name: str) -> types.CodeType: ...
12
+ def init_frozen(__name: str) -> types.ModuleType: ...
13
+ def is_builtin(__name: str) -> int: ...
14
+ def is_frozen(__name: str) -> bool: ...
15
+ def is_frozen_package(__name: str) -> bool: ...
16
+ def lock_held() -> bool: ...
17
+ def release_lock() -> None: ...
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/3/_json.pyi ADDED
@@ -0,0 +1,38 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from typing import Any, Callable, Dict, Optional, Tuple
2
+
3
+ class make_encoder:
4
+ sort_keys: Any
5
+ skipkeys: Any
6
+ key_separator: Any
7
+ indent: Any
8
+ markers: Any
9
+ default: Any
10
+ encoder: Any
11
+ item_separator: Any
12
+ def __init__(
13
+ self,
14
+ markers: Optional[Dict[int, Any]],
15
+ default: Callable[[Any], Any],
16
+ encoder: Callable[[str], str],
17
+ indent: Optional[int],
18
+ key_separator: str,
19
+ item_separator: str,
20
+ sort_keys: bool,
21
+ skipkeys: bool,
22
+ allow_nan: bool,
23
+ ) -> None: ...
24
+ def __call__(self, obj: object, _current_indent_level: int) -> Any: ...
25
+
26
+ class make_scanner:
27
+ object_hook: Any
28
+ object_pairs_hook: Any
29
+ parse_int: Any
30
+ parse_constant: Any
31
+ parse_float: Any
32
+ strict: bool
33
+ # TODO: 'context' needs the attrs above (ducktype), but not __call__.
34
+ def __init__(self, context: make_scanner) -> None: ...
35
+ def __call__(self, string: str, index: int) -> Tuple[Any, int]: ...
36
+
37
+ def encode_basestring_ascii(s: str) -> str: ...
38
+ def scanstring(string: str, end: int, strict: bool = ...) -> Tuple[str, int]: ...
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/3/_operator.pyi ADDED
@@ -0,0 +1,60 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # In reality the import is the other way around, but this way we can keep the operator stub in 2and3
2
+ from operator import (
3
+ abs as abs,
4
+ add as add,
5
+ and_ as and_,
6
+ attrgetter as attrgetter,
7
+ concat as concat,
8
+ contains as contains,
9
+ countOf as countOf,
10
+ delitem as delitem,
11
+ eq as eq,
12
+ floordiv as floordiv,
13
+ ge as ge,
14
+ getitem as getitem,
15
+ gt as gt,
16
+ iadd as iadd,
17
+ iand as iand,
18
+ iconcat as iconcat,
19
+ ifloordiv as ifloordiv,
20
+ ilshift as ilshift,
21
+ imatmul as imatmul,
22
+ imod as imod,
23
+ imul as imul,
24
+ index as index,
25
+ indexOf as indexOf,
26
+ inv as inv,
27
+ invert as invert,
28
+ ior as ior,
29
+ ipow as ipow,
30
+ irshift as irshift,
31
+ is_ as is_,
32
+ is_not as is_not,
33
+ isub as isub,
34
+ itemgetter as itemgetter,
35
+ itruediv as itruediv,
36
+ ixor as ixor,
37
+ le as le,
38
+ length_hint as length_hint,
39
+ lshift as lshift,
40
+ lt as lt,
41
+ matmul as matmul,
42
+ methodcaller as methodcaller,
43
+ mod as mod,
44
+ mul as mul,
45
+ ne as ne,
46
+ neg as neg,
47
+ not_ as not_,
48
+ or_ as or_,
49
+ pos as pos,
50
+ pow as pow,
51
+ rshift as rshift,
52
+ setitem as setitem,
53
+ sub as sub,
54
+ truediv as truediv,
55
+ truth as truth,
56
+ xor as xor,
57
+ )
58
+ from typing import AnyStr
59
+
60
+ def _compare_digest(__a: AnyStr, __b: AnyStr) -> bool: ...
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/3/_posixsubprocess.pyi ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # NOTE: These are incomplete!
2
+
3
+ from typing import Callable, Sequence, Tuple
4
+
5
+ def cloexec_pipe() -> Tuple[int, int]: ...
6
+ def fork_exec(
7
+ args: Sequence[str],
8
+ executable_list: Sequence[bytes],
9
+ close_fds: bool,
10
+ fds_to_keep: Sequence[int],
11
+ cwd: str,
12
+ env_list: Sequence[bytes],
13
+ p2cread: int,
14
+ p2cwrite: int,
15
+ c2pred: int,
16
+ c2pwrite: int,
17
+ errread: int,
18
+ errwrite: int,
19
+ errpipe_read: int,
20
+ errpipe_write: int,
21
+ restore_signals: int,
22
+ start_new_session: int,
23
+ preexec_fn: Callable[[], None],
24
+ ) -> int: ...
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/3/_pydecimal.pyi ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ # This is a slight lie, the implementations aren't exactly identical
2
+ # However, in all likelihood, the differences are inconsequential
3
+ from decimal import *
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/3/_sitebuiltins.pyi ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from typing import ClassVar, Iterable, NoReturn, Optional
2
+ from typing_extensions import Literal
3
+
4
+ class Quitter:
5
+ name: str
6
+ eof: str
7
+ def __init__(self, name: str, eof: str) -> None: ...
8
+ def __call__(self, code: Optional[int] = ...) -> NoReturn: ...
9
+
10
+ class _Printer:
11
+ MAXLINES: ClassVar[Literal[23]]
12
+ def __init__(self, name: str, data: str, files: Iterable[str] = ..., dirs: Iterable[str] = ...) -> None: ...
13
+ def __call__(self) -> None: ...
14
+
15
+ class _Helper:
16
+ def __call__(self, request: object) -> None: ...
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/3/_stat.pyi ADDED
@@ -0,0 +1,65 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ SF_APPEND: int
2
+ SF_ARCHIVED: int
3
+ SF_IMMUTABLE: int
4
+ SF_NOUNLINK: int
5
+ SF_SNAPSHOT: int
6
+ ST_ATIME: int
7
+ ST_CTIME: int
8
+ ST_DEV: int
9
+ ST_GID: int
10
+ ST_INO: int
11
+ ST_MODE: int
12
+ ST_MTIME: int
13
+ ST_NLINK: int
14
+ ST_SIZE: int
15
+ ST_UID: int
16
+ S_ENFMT: int
17
+ S_IEXEC: int
18
+ S_IFBLK: int
19
+ S_IFCHR: int
20
+ S_IFDIR: int
21
+ S_IFDOOR: int
22
+ S_IFIFO: int
23
+ S_IFLNK: int
24
+ S_IFPORT: int
25
+ S_IFREG: int
26
+ S_IFSOCK: int
27
+ S_IFWHT: int
28
+ S_IREAD: int
29
+ S_IRGRP: int
30
+ S_IROTH: int
31
+ S_IRUSR: int
32
+ S_IRWXG: int
33
+ S_IRWXO: int
34
+ S_IRWXU: int
35
+ S_ISGID: int
36
+ S_ISUID: int
37
+ S_ISVTX: int
38
+ S_IWGRP: int
39
+ S_IWOTH: int
40
+ S_IWRITE: int
41
+ S_IWUSR: int
42
+ S_IXGRP: int
43
+ S_IXOTH: int
44
+ S_IXUSR: int
45
+ UF_APPEND: int
46
+ UF_COMPRESSED: int
47
+ UF_HIDDEN: int
48
+ UF_IMMUTABLE: int
49
+ UF_NODUMP: int
50
+ UF_NOUNLINK: int
51
+ UF_OPAQUE: int
52
+
53
+ def S_IMODE(mode: int) -> int: ...
54
+ def S_IFMT(mode: int) -> int: ...
55
+ def S_ISBLK(mode: int) -> bool: ...
56
+ def S_ISCHR(mode: int) -> bool: ...
57
+ def S_ISDIR(mode: int) -> bool: ...
58
+ def S_ISDOOR(mode: int) -> bool: ...
59
+ def S_ISFIFO(mode: int) -> bool: ...
60
+ def S_ISLNK(mode: int) -> bool: ...
61
+ def S_ISPORT(mode: int) -> bool: ...
62
+ def S_ISREG(mode: int) -> bool: ...
63
+ def S_ISSOCK(mode: int) -> bool: ...
64
+ def S_ISWHT(mode: int) -> bool: ...
65
+ def filemode(mode: int) -> str: ...
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/3/_thread.pyi ADDED
@@ -0,0 +1,41 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import sys
2
+ from threading import Thread
3
+ from types import TracebackType
4
+ from typing import Any, Callable, Dict, NoReturn, Optional, Tuple, Type
5
+
6
+ error = RuntimeError
7
+
8
+ def _count() -> int: ...
9
+
10
+ _dangling: Any
11
+
12
+ class LockType:
13
+ def acquire(self, blocking: bool = ..., timeout: float = ...) -> bool: ...
14
+ def release(self) -> None: ...
15
+ def locked(self) -> bool: ...
16
+ def __enter__(self) -> bool: ...
17
+ def __exit__(
18
+ self, type: Optional[Type[BaseException]], value: Optional[BaseException], traceback: Optional[TracebackType]
19
+ ) -> None: ...
20
+
21
+ def start_new_thread(function: Callable[..., Any], args: Tuple[Any, ...], kwargs: Dict[str, Any] = ...) -> int: ...
22
+ def interrupt_main() -> None: ...
23
+ def exit() -> NoReturn: ...
24
+ def allocate_lock() -> LockType: ...
25
+ def get_ident() -> int: ...
26
+ def stack_size(size: int = ...) -> int: ...
27
+
28
+ TIMEOUT_MAX: float
29
+
30
+ if sys.version_info >= (3, 8):
31
+ def get_native_id() -> int: ... # only available on some platforms
32
+ class _ExceptHookArgs(Tuple[Type[BaseException], Optional[BaseException], Optional[TracebackType], Optional[Thread]]):
33
+ @property
34
+ def exc_type(self) -> Type[BaseException]: ...
35
+ @property
36
+ def exc_value(self) -> Optional[BaseException]: ...
37
+ @property
38
+ def exc_traceback(self) -> Optional[TracebackType]: ...
39
+ @property
40
+ def thread(self) -> Optional[Thread]: ...
41
+ _excepthook: Callable[[_ExceptHookArgs], Any]
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/3/_threading_local.pyi ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from typing import Any, Dict, Tuple
2
+ from weakref import ReferenceType
3
+
4
+ localdict = Dict[Any, Any]
5
+
6
+ class _localimpl:
7
+ key: str
8
+ dicts: Dict[int, Tuple[ReferenceType[Any], localdict]]
9
+ def __init__(self) -> None: ...
10
+ def get_dict(self) -> localdict: ...
11
+ def create_dict(self) -> localdict: ...
12
+
13
+ class local:
14
+ def __getattribute__(self, name: str) -> Any: ...
15
+ def __setattr__(self, name: str, value: Any) -> None: ...
16
+ def __delattr__(self, name: str) -> None: ...
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/3/abc.pyi ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from typing import Any, Callable, Type, TypeVar
2
+
3
+ _T = TypeVar("_T")
4
+ _FuncT = TypeVar("_FuncT", bound=Callable[..., Any])
5
+
6
+ # These definitions have special processing in mypy
7
+ class ABCMeta(type):
8
+ def register(cls: ABCMeta, subclass: Type[_T]) -> Type[_T]: ...
9
+
10
+ def abstractmethod(callable: _FuncT) -> _FuncT: ...
11
+
12
+ class abstractproperty(property): ...
13
+
14
+ # These two are deprecated and not supported by mypy
15
+ def abstractstaticmethod(callable: _FuncT) -> _FuncT: ...
16
+ def abstractclassmethod(callable: _FuncT) -> _FuncT: ...
17
+
18
+ class ABC(metaclass=ABCMeta): ...
19
+
20
+ def get_cache_token() -> object: ...
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/3/copyreg.pyi ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from typing import Any, Callable, Hashable, List, Optional, SupportsInt, Tuple, TypeVar, Union
2
+
3
+ _Type = TypeVar("_Type", bound=type)
4
+ _Reduce = Union[Tuple[Callable[..., _Type], Tuple[Any, ...]], Tuple[Callable[..., _Type], Tuple[Any, ...], Optional[Any]]]
5
+
6
+ __all__: List[str]
7
+
8
+ def pickle(
9
+ ob_type: _Type,
10
+ pickle_function: Callable[[_Type], Union[str, _Reduce[_Type]]],
11
+ constructor_ob: Optional[Callable[[_Reduce[_Type]], _Type]] = ...,
12
+ ) -> None: ...
13
+ def constructor(object: Callable[[_Reduce[_Type]], _Type]) -> None: ...
14
+ def add_extension(module: Hashable, name: Hashable, code: SupportsInt) -> None: ...
15
+ def remove_extension(module: Hashable, name: Hashable, code: int) -> None: ...
16
+ def clear_extension_cache() -> None: ...
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/3/fcntl.pyi ADDED
@@ -0,0 +1,99 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import sys
2
+ from _typeshed import FileDescriptorLike
3
+ from array import array
4
+ from typing import Any, Union, overload
5
+ from typing_extensions import Literal
6
+
7
+ FASYNC: int
8
+ FD_CLOEXEC: int
9
+ DN_ACCESS: int
10
+ DN_ATTRIB: int
11
+ DN_CREATE: int
12
+ DN_DELETE: int
13
+ DN_MODIFY: int
14
+ DN_MULTISHOT: int
15
+ DN_RENAME: int
16
+ F_DUPFD: int
17
+ F_DUPFD_CLOEXEC: int
18
+ F_FULLFSYNC: int
19
+ F_EXLCK: int
20
+ F_GETFD: int
21
+ F_GETFL: int
22
+ F_GETLEASE: int
23
+ F_GETLK: int
24
+ F_GETLK64: int
25
+ F_GETOWN: int
26
+ F_NOCACHE: int
27
+ F_GETSIG: int
28
+ F_NOTIFY: int
29
+ F_RDLCK: int
30
+ F_SETFD: int
31
+ F_SETFL: int
32
+ F_SETLEASE: int
33
+ F_SETLK: int
34
+ F_SETLK64: int
35
+ F_SETLKW: int
36
+ F_SETLKW64: int
37
+ if sys.version_info >= (3, 9) and sys.platform == "linux":
38
+ F_OFD_GETLK: int
39
+ F_OFD_SETLK: int
40
+ F_OFD_SETLKW: int
41
+ F_SETOWN: int
42
+ F_SETSIG: int
43
+ F_SHLCK: int
44
+ F_UNLCK: int
45
+ F_WRLCK: int
46
+ I_ATMARK: int
47
+ I_CANPUT: int
48
+ I_CKBAND: int
49
+ I_FDINSERT: int
50
+ I_FIND: int
51
+ I_FLUSH: int
52
+ I_FLUSHBAND: int
53
+ I_GETBAND: int
54
+ I_GETCLTIME: int
55
+ I_GETSIG: int
56
+ I_GRDOPT: int
57
+ I_GWROPT: int
58
+ I_LINK: int
59
+ I_LIST: int
60
+ I_LOOK: int
61
+ I_NREAD: int
62
+ I_PEEK: int
63
+ I_PLINK: int
64
+ I_POP: int
65
+ I_PUNLINK: int
66
+ I_PUSH: int
67
+ I_RECVFD: int
68
+ I_SENDFD: int
69
+ I_SETCLTIME: int
70
+ I_SETSIG: int
71
+ I_SRDOPT: int
72
+ I_STR: int
73
+ I_SWROPT: int
74
+ I_UNLINK: int
75
+ LOCK_EX: int
76
+ LOCK_MAND: int
77
+ LOCK_NB: int
78
+ LOCK_READ: int
79
+ LOCK_RW: int
80
+ LOCK_SH: int
81
+ LOCK_UN: int
82
+ LOCK_WRITE: int
83
+ @overload
84
+ def fcntl(__fd: FileDescriptorLike, __cmd: int, __arg: int = ...) -> int: ...
85
+ @overload
86
+ def fcntl(__fd: FileDescriptorLike, __cmd: int, __arg: bytes) -> bytes: ...
87
+
88
+ _ReadOnlyBuffer = bytes
89
+ _WritableBuffer = Union[bytearray, memoryview, array]
90
+ @overload
91
+ def ioctl(__fd: FileDescriptorLike, __request: int, __arg: int = ..., __mutate_flag: bool = ...) -> int: ...
92
+ @overload
93
+ def ioctl(__fd: FileDescriptorLike, __request: int, __arg: _WritableBuffer, __mutate_flag: Literal[True] = ...) -> int: ...
94
+ @overload
95
+ def ioctl(__fd: FileDescriptorLike, __request: int, __arg: _WritableBuffer, __mutate_flag: Literal[False]) -> bytes: ...
96
+ @overload
97
+ def ioctl(__fd: FileDescriptorLike, __request: int, __arg: _ReadOnlyBuffer, __mutate_flag: bool = ...) -> bytes: ...
98
+ def flock(__fd: FileDescriptorLike, __operation: int) -> None: ...
99
+ def lockf(__fd: FileDescriptorLike, __cmd: int, __len: int = ..., __start: int = ..., __whence: int = ...) -> Any: ...
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/3/getpass.pyi ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ from typing import Optional, TextIO
2
+
3
+ def getpass(prompt: str = ..., stream: Optional[TextIO] = ...) -> str: ...
4
+ def getuser() -> str: ...
5
+
6
+ class GetPassWarning(UserWarning): ...
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/3/gettext.pyi ADDED
@@ -0,0 +1,80 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import sys
2
+ from _typeshed import StrPath
3
+ from typing import IO, Any, Container, Iterable, Optional, Sequence, Type, TypeVar, overload
4
+ from typing_extensions import Literal
5
+
6
+ class NullTranslations:
7
+ def __init__(self, fp: Optional[IO[str]] = ...) -> None: ...
8
+ def _parse(self, fp: IO[str]) -> None: ...
9
+ def add_fallback(self, fallback: NullTranslations) -> None: ...
10
+ def gettext(self, message: str) -> str: ...
11
+ def lgettext(self, message: str) -> str: ...
12
+ def ngettext(self, msgid1: str, msgid2: str, n: int) -> str: ...
13
+ def lngettext(self, msgid1: str, msgid2: str, n: int) -> str: ...
14
+ if sys.version_info >= (3, 8):
15
+ def pgettext(self, context: str, message: str) -> str: ...
16
+ def npgettext(self, context: str, msgid1: str, msgid2: str, n: int) -> str: ...
17
+ def info(self) -> Any: ...
18
+ def charset(self) -> Any: ...
19
+ def output_charset(self) -> Any: ...
20
+ def set_output_charset(self, charset: str) -> None: ...
21
+ def install(self, names: Optional[Container[str]] = ...) -> None: ...
22
+
23
+ class GNUTranslations(NullTranslations):
24
+ LE_MAGIC: int
25
+ BE_MAGIC: int
26
+ CONTEXT: str
27
+ VERSIONS: Sequence[int]
28
+
29
+ def find(domain: str, localedir: Optional[StrPath] = ..., languages: Optional[Iterable[str]] = ..., all: bool = ...) -> Any: ...
30
+
31
+ _T = TypeVar("_T")
32
+ @overload
33
+ def translation(
34
+ domain: str,
35
+ localedir: Optional[StrPath] = ...,
36
+ languages: Optional[Iterable[str]] = ...,
37
+ class_: None = ...,
38
+ fallback: bool = ...,
39
+ codeset: Optional[str] = ...,
40
+ ) -> NullTranslations: ...
41
+ @overload
42
+ def translation(
43
+ domain: str,
44
+ localedir: Optional[StrPath] = ...,
45
+ languages: Optional[Iterable[str]] = ...,
46
+ class_: Type[_T] = ...,
47
+ fallback: Literal[False] = ...,
48
+ codeset: Optional[str] = ...,
49
+ ) -> _T: ...
50
+ @overload
51
+ def translation(
52
+ domain: str,
53
+ localedir: Optional[StrPath] = ...,
54
+ languages: Optional[Iterable[str]] = ...,
55
+ class_: Type[_T] = ...,
56
+ fallback: Literal[True] = ...,
57
+ codeset: Optional[str] = ...,
58
+ ) -> Any: ...
59
+ def install(
60
+ domain: str, localedir: Optional[StrPath] = ..., codeset: Optional[str] = ..., names: Optional[Container[str]] = ...
61
+ ) -> None: ...
62
+ def textdomain(domain: Optional[str] = ...) -> str: ...
63
+ def bindtextdomain(domain: str, localedir: Optional[StrPath] = ...) -> str: ...
64
+ def bind_textdomain_codeset(domain: str, codeset: Optional[str] = ...) -> str: ...
65
+ def dgettext(domain: str, message: str) -> str: ...
66
+ def ldgettext(domain: str, message: str) -> str: ...
67
+ def dngettext(domain: str, msgid1: str, msgid2: str, n: int) -> str: ...
68
+ def ldngettext(domain: str, msgid1: str, msgid2: str, n: int) -> str: ...
69
+ def gettext(message: str) -> str: ...
70
+ def lgettext(message: str) -> str: ...
71
+ def ngettext(msgid1: str, msgid2: str, n: int) -> str: ...
72
+ def lngettext(msgid1: str, msgid2: str, n: int) -> str: ...
73
+
74
+ if sys.version_info >= (3, 8):
75
+ def pgettext(context: str, message: str) -> str: ...
76
+ def dpgettext(domain: str, context: str, message: str) -> str: ...
77
+ def npgettext(context: str, msgid1: str, msgid2: str, n: int) -> str: ...
78
+ def dnpgettext(domain: str, context: str, msgid1: str, msgid2: str, n: int) -> str: ...
79
+
80
+ Catalog = translation
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/3/glob.pyi ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ from typing import AnyStr, Iterator, List, Union
2
+
3
+ def glob0(dirname: AnyStr, pattern: AnyStr) -> List[AnyStr]: ...
4
+ def glob1(dirname: AnyStr, pattern: AnyStr) -> List[AnyStr]: ...
5
+ def glob(pathname: AnyStr, *, recursive: bool = ...) -> List[AnyStr]: ...
6
+ def iglob(pathname: AnyStr, *, recursive: bool = ...) -> Iterator[AnyStr]: ...
7
+ def escape(pathname: AnyStr) -> AnyStr: ...
8
+ def has_magic(s: Union[str, bytes]) -> bool: ... # undocumented
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/3/io.pyi ADDED
@@ -0,0 +1,186 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import builtins
2
+ import codecs
3
+ import sys
4
+ from _typeshed import ReadableBuffer, WriteableBuffer
5
+ from types import TracebackType
6
+ from typing import IO, Any, BinaryIO, Callable, Iterable, Iterator, List, Optional, TextIO, Tuple, Type, TypeVar, Union
7
+
8
+ DEFAULT_BUFFER_SIZE: int
9
+
10
+ SEEK_SET: int
11
+ SEEK_CUR: int
12
+ SEEK_END: int
13
+
14
+ _T = TypeVar("_T", bound=IOBase)
15
+
16
+ open = builtins.open
17
+
18
+ if sys.version_info >= (3, 8):
19
+ def open_code(path: str) -> IO[bytes]: ...
20
+
21
+ BlockingIOError = builtins.BlockingIOError
22
+
23
+ class UnsupportedOperation(OSError, ValueError): ...
24
+
25
+ class IOBase:
26
+ def __iter__(self) -> Iterator[bytes]: ...
27
+ def __next__(self) -> bytes: ...
28
+ def __enter__(self: _T) -> _T: ...
29
+ def __exit__(
30
+ self, exc_type: Optional[Type[BaseException]], exc_val: Optional[BaseException], exc_tb: Optional[TracebackType]
31
+ ) -> Optional[bool]: ...
32
+ def close(self) -> None: ...
33
+ def fileno(self) -> int: ...
34
+ def flush(self) -> None: ...
35
+ def isatty(self) -> bool: ...
36
+ def readable(self) -> bool: ...
37
+ def readlines(self, __hint: int = ...) -> List[bytes]: ...
38
+ def seek(self, __offset: int, __whence: int = ...) -> int: ...
39
+ def seekable(self) -> bool: ...
40
+ def tell(self) -> int: ...
41
+ def truncate(self, __size: Optional[int] = ...) -> int: ...
42
+ def writable(self) -> bool: ...
43
+ def writelines(self, __lines: Iterable[ReadableBuffer]) -> None: ...
44
+ def readline(self, __size: Optional[int] = ...) -> bytes: ...
45
+ def __del__(self) -> None: ...
46
+ @property
47
+ def closed(self) -> bool: ...
48
+ def _checkClosed(self, msg: Optional[str] = ...) -> None: ... # undocumented
49
+
50
+ class RawIOBase(IOBase):
51
+ def readall(self) -> bytes: ...
52
+ def readinto(self, __buffer: WriteableBuffer) -> Optional[int]: ...
53
+ def write(self, __b: ReadableBuffer) -> Optional[int]: ...
54
+ def read(self, __size: int = ...) -> Optional[bytes]: ...
55
+
56
+ class BufferedIOBase(IOBase):
57
+ raw: RawIOBase # This is not part of the BufferedIOBase API and may not exist on some implementations.
58
+ def detach(self) -> RawIOBase: ...
59
+ def readinto(self, __buffer: WriteableBuffer) -> int: ...
60
+ def write(self, __buffer: ReadableBuffer) -> int: ...
61
+ def readinto1(self, __buffer: WriteableBuffer) -> int: ...
62
+ def read(self, __size: Optional[int] = ...) -> bytes: ...
63
+ def read1(self, __size: int = ...) -> bytes: ...
64
+
65
+ class FileIO(RawIOBase, BinaryIO):
66
+ mode: str
67
+ # Technically this is whatever is passed in as file, either a str, a bytes, or an int.
68
+ name: Union[int, str] # type: ignore
69
+ def __init__(
70
+ self,
71
+ file: Union[str, bytes, int],
72
+ mode: str = ...,
73
+ closefd: bool = ...,
74
+ opener: Optional[Callable[[Union[int, str], str], int]] = ...,
75
+ ) -> None: ...
76
+ @property
77
+ def closefd(self) -> bool: ...
78
+ def write(self, __b: ReadableBuffer) -> int: ...
79
+ def read(self, __size: int = ...) -> bytes: ...
80
+ def __enter__(self: _T) -> _T: ...
81
+
82
+ class BytesIO(BufferedIOBase, BinaryIO):
83
+ def __init__(self, initial_bytes: bytes = ...) -> None: ...
84
+ # BytesIO does not contain a "name" field. This workaround is necessary
85
+ # to allow BytesIO sub-classes to add this field, as it is defined
86
+ # as a read-only property on IO[].
87
+ name: Any
88
+ def __enter__(self: _T) -> _T: ...
89
+ def getvalue(self) -> bytes: ...
90
+ def getbuffer(self) -> memoryview: ...
91
+ if sys.version_info >= (3, 7):
92
+ def read1(self, __size: Optional[int] = ...) -> bytes: ...
93
+ else:
94
+ def read1(self, __size: Optional[int]) -> bytes: ... # type: ignore
95
+
96
+ class BufferedReader(BufferedIOBase, BinaryIO):
97
+ def __enter__(self: _T) -> _T: ...
98
+ def __init__(self, raw: RawIOBase, buffer_size: int = ...) -> None: ...
99
+ def peek(self, __size: int = ...) -> bytes: ...
100
+ if sys.version_info >= (3, 7):
101
+ def read1(self, __size: int = ...) -> bytes: ...
102
+ else:
103
+ def read1(self, __size: int) -> bytes: ... # type: ignore
104
+
105
+ class BufferedWriter(BufferedIOBase, BinaryIO):
106
+ def __enter__(self: _T) -> _T: ...
107
+ def __init__(self, raw: RawIOBase, buffer_size: int = ...) -> None: ...
108
+ def write(self, __buffer: ReadableBuffer) -> int: ...
109
+
110
+ class BufferedRandom(BufferedReader, BufferedWriter):
111
+ def __enter__(self: _T) -> _T: ...
112
+ def __init__(self, raw: RawIOBase, buffer_size: int = ...) -> None: ...
113
+ def seek(self, __target: int, __whence: int = ...) -> int: ...
114
+ if sys.version_info >= (3, 7):
115
+ def read1(self, __size: int = ...) -> bytes: ...
116
+ else:
117
+ def read1(self, __size: int) -> bytes: ... # type: ignore
118
+
119
+ class BufferedRWPair(BufferedIOBase):
120
+ def __init__(self, reader: RawIOBase, writer: RawIOBase, buffer_size: int = ...) -> None: ...
121
+ def peek(self, __size: int = ...) -> bytes: ...
122
+
123
+ class TextIOBase(IOBase):
124
+ encoding: str
125
+ errors: Optional[str]
126
+ newlines: Union[str, Tuple[str, ...], None]
127
+ def __iter__(self) -> Iterator[str]: ... # type: ignore
128
+ def __next__(self) -> str: ... # type: ignore
129
+ def detach(self) -> BinaryIO: ...
130
+ def write(self, __s: str) -> int: ...
131
+ def writelines(self, __lines: Iterable[str]) -> None: ... # type: ignore
132
+ def readline(self, __size: int = ...) -> str: ... # type: ignore
133
+ def readlines(self, __hint: int = ...) -> List[str]: ... # type: ignore
134
+ def read(self, __size: Optional[int] = ...) -> str: ...
135
+ def tell(self) -> int: ...
136
+
137
+ class TextIOWrapper(TextIOBase, TextIO):
138
+ def __init__(
139
+ self,
140
+ buffer: IO[bytes],
141
+ encoding: Optional[str] = ...,
142
+ errors: Optional[str] = ...,
143
+ newline: Optional[str] = ...,
144
+ line_buffering: bool = ...,
145
+ write_through: bool = ...,
146
+ ) -> None: ...
147
+ @property
148
+ def buffer(self) -> BinaryIO: ...
149
+ @property
150
+ def closed(self) -> bool: ...
151
+ @property
152
+ def line_buffering(self) -> bool: ...
153
+ if sys.version_info >= (3, 7):
154
+ @property
155
+ def write_through(self) -> bool: ...
156
+ def reconfigure(
157
+ self,
158
+ *,
159
+ encoding: Optional[str] = ...,
160
+ errors: Optional[str] = ...,
161
+ newline: Optional[str] = ...,
162
+ line_buffering: Optional[bool] = ...,
163
+ write_through: Optional[bool] = ...,
164
+ ) -> None: ...
165
+ # These are inherited from TextIOBase, but must exist in the stub to satisfy mypy.
166
+ def __enter__(self: _T) -> _T: ...
167
+ def __iter__(self) -> Iterator[str]: ... # type: ignore
168
+ def __next__(self) -> str: ... # type: ignore
169
+ def writelines(self, __lines: Iterable[str]) -> None: ... # type: ignore
170
+ def readline(self, __size: int = ...) -> str: ... # type: ignore
171
+ def readlines(self, __hint: int = ...) -> List[str]: ... # type: ignore
172
+ def seek(self, __cookie: int, __whence: int = ...) -> int: ...
173
+
174
+ class StringIO(TextIOWrapper):
175
+ def __init__(self, initial_value: Optional[str] = ..., newline: Optional[str] = ...) -> None: ...
176
+ # StringIO does not contain a "name" field. This workaround is necessary
177
+ # to allow StringIO sub-classes to add this field, as it is defined
178
+ # as a read-only property on IO[].
179
+ name: Any
180
+ def getvalue(self) -> str: ...
181
+
182
+ class IncrementalNewlineDecoder(codecs.IncrementalDecoder):
183
+ def __init__(self, decoder: Optional[codecs.IncrementalDecoder], translate: bool, errors: str = ...) -> None: ...
184
+ def decode(self, input: Union[bytes, str], final: bool = ...) -> str: ...
185
+ @property
186
+ def newlines(self) -> Optional[Union[str, Tuple[str, ...]]]: ...
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/3/lzma.pyi ADDED
@@ -0,0 +1,164 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import io
2
+ from _typeshed import AnyPath, ReadableBuffer
3
+ from typing import IO, Any, Mapping, Optional, Sequence, TextIO, TypeVar, Union, overload
4
+ from typing_extensions import Literal
5
+
6
+ _OpenBinaryWritingMode = Literal["w", "wb", "x", "xb", "a", "ab"]
7
+ _OpenTextWritingMode = Literal["wt", "xt", "at"]
8
+
9
+ _PathOrFile = Union[AnyPath, IO[bytes]]
10
+
11
+ _FilterChain = Sequence[Mapping[str, Any]]
12
+ _T = TypeVar("_T")
13
+
14
+ FORMAT_AUTO: int
15
+ FORMAT_XZ: int
16
+ FORMAT_ALONE: int
17
+ FORMAT_RAW: int
18
+ CHECK_NONE: int
19
+ CHECK_CRC32: int
20
+ CHECK_CRC64: int
21
+ CHECK_SHA256: int
22
+ CHECK_ID_MAX: int
23
+ CHECK_UNKNOWN: int
24
+ FILTER_LZMA1: int
25
+ FILTER_LZMA2: int
26
+ FILTER_DELTA: int
27
+ FILTER_X86: int
28
+ FILTER_IA64: int
29
+ FILTER_ARM: int
30
+ FILTER_ARMTHUMB: int
31
+ FILTER_SPARC: int
32
+ FILTER_POWERPC: int
33
+ MF_HC3: int
34
+ MF_HC4: int
35
+ MF_BT2: int
36
+ MF_BT3: int
37
+ MF_BT4: int
38
+ MODE_FAST: int
39
+ MODE_NORMAL: int
40
+ PRESET_DEFAULT: int
41
+ PRESET_EXTREME: int
42
+
43
+ # from _lzma.c
44
+ class LZMADecompressor(object):
45
+ def __init__(
46
+ self, format: Optional[int] = ..., memlimit: Optional[int] = ..., filters: Optional[_FilterChain] = ...
47
+ ) -> None: ...
48
+ def decompress(self, data: bytes, max_length: int = ...) -> bytes: ...
49
+ @property
50
+ def check(self) -> int: ...
51
+ @property
52
+ def eof(self) -> bool: ...
53
+ @property
54
+ def unused_data(self) -> bytes: ...
55
+ @property
56
+ def needs_input(self) -> bool: ...
57
+
58
+ # from _lzma.c
59
+ class LZMACompressor(object):
60
+ def __init__(
61
+ self, format: Optional[int] = ..., check: int = ..., preset: Optional[int] = ..., filters: Optional[_FilterChain] = ...
62
+ ) -> None: ...
63
+ def compress(self, data: bytes) -> bytes: ...
64
+ def flush(self) -> bytes: ...
65
+
66
+ class LZMAError(Exception): ...
67
+
68
+ class LZMAFile(io.BufferedIOBase, IO[bytes]):
69
+ def __init__(
70
+ self,
71
+ filename: Optional[_PathOrFile] = ...,
72
+ mode: str = ...,
73
+ *,
74
+ format: Optional[int] = ...,
75
+ check: int = ...,
76
+ preset: Optional[int] = ...,
77
+ filters: Optional[_FilterChain] = ...,
78
+ ) -> None: ...
79
+ def __enter__(self: _T) -> _T: ...
80
+ def close(self) -> None: ...
81
+ @property
82
+ def closed(self) -> bool: ...
83
+ def fileno(self) -> int: ...
84
+ def seekable(self) -> bool: ...
85
+ def readable(self) -> bool: ...
86
+ def writable(self) -> bool: ...
87
+ def peek(self, size: int = ...) -> bytes: ...
88
+ def read(self, size: Optional[int] = ...) -> bytes: ...
89
+ def read1(self, size: int = ...) -> bytes: ...
90
+ def readline(self, size: Optional[int] = ...) -> bytes: ...
91
+ def write(self, data: ReadableBuffer) -> int: ...
92
+ def seek(self, offset: int, whence: int = ...) -> int: ...
93
+ def tell(self) -> int: ...
94
+
95
+ @overload
96
+ def open(
97
+ filename: _PathOrFile,
98
+ mode: Literal["r", "rb"] = ...,
99
+ *,
100
+ format: Optional[int] = ...,
101
+ check: Literal[-1] = ...,
102
+ preset: None = ...,
103
+ filters: Optional[_FilterChain] = ...,
104
+ encoding: None = ...,
105
+ errors: None = ...,
106
+ newline: None = ...,
107
+ ) -> LZMAFile: ...
108
+ @overload
109
+ def open(
110
+ filename: _PathOrFile,
111
+ mode: _OpenBinaryWritingMode,
112
+ *,
113
+ format: Optional[int] = ...,
114
+ check: int = ...,
115
+ preset: Optional[int] = ...,
116
+ filters: Optional[_FilterChain] = ...,
117
+ encoding: None = ...,
118
+ errors: None = ...,
119
+ newline: None = ...,
120
+ ) -> LZMAFile: ...
121
+ @overload
122
+ def open(
123
+ filename: AnyPath,
124
+ mode: Literal["rt"],
125
+ *,
126
+ format: Optional[int] = ...,
127
+ check: Literal[-1] = ...,
128
+ preset: None = ...,
129
+ filters: Optional[_FilterChain] = ...,
130
+ encoding: Optional[str] = ...,
131
+ errors: Optional[str] = ...,
132
+ newline: Optional[str] = ...,
133
+ ) -> TextIO: ...
134
+ @overload
135
+ def open(
136
+ filename: AnyPath,
137
+ mode: _OpenTextWritingMode,
138
+ *,
139
+ format: Optional[int] = ...,
140
+ check: int = ...,
141
+ preset: Optional[int] = ...,
142
+ filters: Optional[_FilterChain] = ...,
143
+ encoding: Optional[str] = ...,
144
+ errors: Optional[str] = ...,
145
+ newline: Optional[str] = ...,
146
+ ) -> TextIO: ...
147
+ @overload
148
+ def open(
149
+ filename: _PathOrFile,
150
+ mode: str,
151
+ *,
152
+ format: Optional[int] = ...,
153
+ check: int = ...,
154
+ preset: Optional[int] = ...,
155
+ filters: Optional[_FilterChain] = ...,
156
+ encoding: Optional[str] = ...,
157
+ errors: Optional[str] = ...,
158
+ newline: Optional[str] = ...,
159
+ ) -> Union[LZMAFile, TextIO]: ...
160
+ def compress(
161
+ data: bytes, format: int = ..., check: int = ..., preset: Optional[int] = ..., filters: Optional[_FilterChain] = ...
162
+ ) -> bytes: ...
163
+ def decompress(data: bytes, format: int = ..., memlimit: Optional[int] = ..., filters: Optional[_FilterChain] = ...) -> bytes: ...
164
+ def is_check_supported(check: int) -> bool: ...
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/3/macurl2path.pyi ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ import sys
2
+ from typing import Union
3
+
4
+ if sys.version_info < (3, 7):
5
+ def url2pathname(pathname: str) -> str: ...
6
+ def pathname2url(pathname: str) -> str: ...
7
+ def _pncomp2url(component: Union[str, bytes]) -> str: ...
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/3/ntpath.pyi ADDED
@@ -0,0 +1,144 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import os
2
+ import sys
3
+ from _typeshed import AnyPath, BytesPath, StrPath
4
+ from genericpath import exists as exists
5
+ from typing import Any, AnyStr, Optional, Sequence, Tuple, TypeVar, overload
6
+
7
+ _T = TypeVar("_T")
8
+
9
+ if sys.version_info >= (3, 6):
10
+ from builtins import _PathLike
11
+
12
+ # ----- os.path variables -----
13
+ supports_unicode_filenames: bool
14
+ # aliases (also in os)
15
+ curdir: str
16
+ pardir: str
17
+ sep: str
18
+ if sys.platform == "win32":
19
+ altsep: str
20
+ else:
21
+ altsep: Optional[str]
22
+ extsep: str
23
+ pathsep: str
24
+ defpath: str
25
+ devnull: str
26
+
27
+ # ----- os.path function stubs -----
28
+ if sys.version_info >= (3, 6):
29
+ # Overloads are necessary to work around python/mypy#3644.
30
+ @overload
31
+ def abspath(path: _PathLike[AnyStr]) -> AnyStr: ...
32
+ @overload
33
+ def abspath(path: AnyStr) -> AnyStr: ...
34
+ @overload
35
+ def basename(p: _PathLike[AnyStr]) -> AnyStr: ...
36
+ @overload
37
+ def basename(p: AnyStr) -> AnyStr: ...
38
+ @overload
39
+ def dirname(p: _PathLike[AnyStr]) -> AnyStr: ...
40
+ @overload
41
+ def dirname(p: AnyStr) -> AnyStr: ...
42
+ @overload
43
+ def expanduser(path: _PathLike[AnyStr]) -> AnyStr: ...
44
+ @overload
45
+ def expanduser(path: AnyStr) -> AnyStr: ...
46
+ @overload
47
+ def expandvars(path: _PathLike[AnyStr]) -> AnyStr: ...
48
+ @overload
49
+ def expandvars(path: AnyStr) -> AnyStr: ...
50
+ @overload
51
+ def normcase(s: _PathLike[AnyStr]) -> AnyStr: ...
52
+ @overload
53
+ def normcase(s: AnyStr) -> AnyStr: ...
54
+ @overload
55
+ def normpath(path: _PathLike[AnyStr]) -> AnyStr: ...
56
+ @overload
57
+ def normpath(path: AnyStr) -> AnyStr: ...
58
+ if sys.platform == "win32":
59
+ @overload
60
+ def realpath(path: _PathLike[AnyStr]) -> AnyStr: ...
61
+ @overload
62
+ def realpath(path: AnyStr) -> AnyStr: ...
63
+ else:
64
+ @overload
65
+ def realpath(filename: _PathLike[AnyStr]) -> AnyStr: ...
66
+ @overload
67
+ def realpath(filename: AnyStr) -> AnyStr: ...
68
+
69
+ else:
70
+ def abspath(path: AnyStr) -> AnyStr: ...
71
+ def basename(p: AnyStr) -> AnyStr: ...
72
+ def dirname(p: AnyStr) -> AnyStr: ...
73
+ def expanduser(path: AnyStr) -> AnyStr: ...
74
+ def expandvars(path: AnyStr) -> AnyStr: ...
75
+ def normcase(s: AnyStr) -> AnyStr: ...
76
+ def normpath(path: AnyStr) -> AnyStr: ...
77
+ if sys.platform == "win32":
78
+ def realpath(path: AnyStr) -> AnyStr: ...
79
+ else:
80
+ def realpath(filename: AnyStr) -> AnyStr: ...
81
+
82
+ if sys.version_info >= (3, 6):
83
+ # In reality it returns str for sequences of StrPath and bytes for sequences
84
+ # of BytesPath, but mypy does not accept such a signature.
85
+ def commonpath(paths: Sequence[AnyPath]) -> Any: ...
86
+
87
+ elif sys.version_info >= (3, 5):
88
+ def commonpath(paths: Sequence[AnyStr]) -> AnyStr: ...
89
+
90
+ # NOTE: Empty lists results in '' (str) regardless of contained type.
91
+ # So, fall back to Any
92
+ def commonprefix(m: Sequence[AnyPath]) -> Any: ...
93
+ def lexists(path: AnyPath) -> bool: ...
94
+
95
+ # These return float if os.stat_float_times() == True,
96
+ # but int is a subclass of float.
97
+ def getatime(filename: AnyPath) -> float: ...
98
+ def getmtime(filename: AnyPath) -> float: ...
99
+ def getctime(filename: AnyPath) -> float: ...
100
+ def getsize(filename: AnyPath) -> int: ...
101
+ def isabs(s: AnyPath) -> bool: ...
102
+ def isfile(path: AnyPath) -> bool: ...
103
+ def isdir(s: AnyPath) -> bool: ...
104
+ def islink(path: AnyPath) -> bool: ...
105
+ def ismount(path: AnyPath) -> bool: ...
106
+
107
+ if sys.version_info >= (3, 6):
108
+ @overload
109
+ def join(a: StrPath, *paths: StrPath) -> str: ...
110
+ @overload
111
+ def join(a: BytesPath, *paths: BytesPath) -> bytes: ...
112
+
113
+ else:
114
+ def join(a: AnyStr, *paths: AnyStr) -> AnyStr: ...
115
+
116
+ @overload
117
+ def relpath(path: BytesPath, start: Optional[BytesPath] = ...) -> bytes: ...
118
+ @overload
119
+ def relpath(path: StrPath, start: Optional[StrPath] = ...) -> str: ...
120
+ def samefile(f1: AnyPath, f2: AnyPath) -> bool: ...
121
+ def sameopenfile(fp1: int, fp2: int) -> bool: ...
122
+ def samestat(s1: os.stat_result, s2: os.stat_result) -> bool: ...
123
+
124
+ if sys.version_info >= (3, 6):
125
+ @overload
126
+ def split(p: _PathLike[AnyStr]) -> Tuple[AnyStr, AnyStr]: ...
127
+ @overload
128
+ def split(p: AnyStr) -> Tuple[AnyStr, AnyStr]: ...
129
+ @overload
130
+ def splitdrive(p: _PathLike[AnyStr]) -> Tuple[AnyStr, AnyStr]: ...
131
+ @overload
132
+ def splitdrive(p: AnyStr) -> Tuple[AnyStr, AnyStr]: ...
133
+ @overload
134
+ def splitext(p: _PathLike[AnyStr]) -> Tuple[AnyStr, AnyStr]: ...
135
+ @overload
136
+ def splitext(p: AnyStr) -> Tuple[AnyStr, AnyStr]: ...
137
+
138
+ else:
139
+ def split(p: AnyStr) -> Tuple[AnyStr, AnyStr]: ...
140
+ def splitdrive(p: AnyStr) -> Tuple[AnyStr, AnyStr]: ...
141
+ def splitext(p: AnyStr) -> Tuple[AnyStr, AnyStr]: ...
142
+
143
+ if sys.version_info < (3, 7) and sys.platform == "win32":
144
+ def splitunc(p: AnyStr) -> Tuple[AnyStr, AnyStr]: ... # deprecated
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/3/nturl2path.pyi ADDED
@@ -0,0 +1,2 @@
 
 
 
1
+ def url2pathname(url: str) -> str: ...
2
+ def pathname2url(p: str) -> str: ...
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/3/posix.pyi ADDED
@@ -0,0 +1,165 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import sys
2
+ from builtins import _PathLike # See comment in builtins
3
+ from os import stat_result as stat_result
4
+ from typing import Dict, List, NamedTuple, Optional, overload
5
+
6
+ class uname_result(NamedTuple):
7
+ sysname: str
8
+ nodename: str
9
+ release: str
10
+ version: str
11
+ machine: str
12
+
13
+ class times_result(NamedTuple):
14
+ user: float
15
+ system: float
16
+ children_user: float
17
+ children_system: float
18
+ elapsed: float
19
+
20
+ class waitid_result(NamedTuple):
21
+ si_pid: int
22
+ si_uid: int
23
+ si_signo: int
24
+ si_status: int
25
+ si_code: int
26
+
27
+ class sched_param(NamedTuple):
28
+ sched_priority: int
29
+
30
+ CLD_CONTINUED: int
31
+ CLD_DUMPED: int
32
+ CLD_EXITED: int
33
+ CLD_TRAPPED: int
34
+
35
+ EX_CANTCREAT: int
36
+ EX_CONFIG: int
37
+ EX_DATAERR: int
38
+ EX_IOERR: int
39
+ EX_NOHOST: int
40
+ EX_NOINPUT: int
41
+ EX_NOPERM: int
42
+ EX_NOTFOUND: int
43
+ EX_NOUSER: int
44
+ EX_OK: int
45
+ EX_OSERR: int
46
+ EX_OSFILE: int
47
+ EX_PROTOCOL: int
48
+ EX_SOFTWARE: int
49
+ EX_TEMPFAIL: int
50
+ EX_UNAVAILABLE: int
51
+ EX_USAGE: int
52
+
53
+ F_OK: int
54
+ R_OK: int
55
+ W_OK: int
56
+ X_OK: int
57
+
58
+ F_LOCK: int
59
+ F_TEST: int
60
+ F_TLOCK: int
61
+ F_ULOCK: int
62
+
63
+ GRND_NONBLOCK: int
64
+ GRND_RANDOM: int
65
+ NGROUPS_MAX: int
66
+
67
+ O_APPEND: int
68
+ O_ACCMODE: int
69
+ O_ASYNC: int
70
+ O_CREAT: int
71
+ O_DIRECT: int
72
+ O_DIRECTORY: int
73
+ O_DSYNC: int
74
+ O_EXCL: int
75
+ O_LARGEFILE: int
76
+ O_NDELAY: int
77
+ O_NOATIME: int
78
+ O_NOCTTY: int
79
+ O_NOFOLLOW: int
80
+ O_NONBLOCK: int
81
+ O_RDONLY: int
82
+ O_RDWR: int
83
+ O_RSYNC: int
84
+ O_SYNC: int
85
+ O_TRUNC: int
86
+ O_WRONLY: int
87
+
88
+ POSIX_FADV_DONTNEED: int
89
+ POSIX_FADV_NOREUSE: int
90
+ POSIX_FADV_NORMAL: int
91
+ POSIX_FADV_RANDOM: int
92
+ POSIX_FADV_SEQUENTIAL: int
93
+ POSIX_FADV_WILLNEED: int
94
+
95
+ PRIO_PGRP: int
96
+ PRIO_PROCESS: int
97
+ PRIO_USER: int
98
+
99
+ P_ALL: int
100
+ P_PGID: int
101
+ P_PID: int
102
+
103
+ RTLD_DEEPBIND: int
104
+ RTLD_GLOBAL: int
105
+ RTLD_LAZY: int
106
+ RTLD_LOCAL: int
107
+ RTLD_NODELETE: int
108
+ RTLD_NOLOAD: int
109
+ RTLD_NOW: int
110
+
111
+ SCHED_BATCH: int
112
+ SCHED_FIFO: int
113
+ SCHED_IDLE: int
114
+ SCHED_OTHER: int
115
+ SCHED_RESET_ON_FORK: int
116
+ SCHED_RR: int
117
+
118
+ SEEK_DATA: int
119
+ SEEK_HOLE: int
120
+
121
+ ST_APPEND: int
122
+ ST_MANDLOCK: int
123
+ ST_NOATIME: int
124
+ ST_NODEV: int
125
+ ST_NODIRATIME: int
126
+ ST_NOEXEC: int
127
+ ST_NOSUID: int
128
+ ST_RDONLY: int
129
+ ST_RELATIME: int
130
+ ST_SYNCHRONOUS: int
131
+ ST_WRITE: int
132
+
133
+ TMP_MAX: int
134
+ WCONTINUED: int
135
+
136
+ def WCOREDUMP(__status: int) -> bool: ...
137
+ def WEXITSTATUS(status: int) -> int: ...
138
+ def WIFCONTINUED(status: int) -> bool: ...
139
+ def WIFEXITED(status: int) -> bool: ...
140
+ def WIFSIGNALED(status: int) -> bool: ...
141
+ def WIFSTOPPED(status: int) -> bool: ...
142
+
143
+ WNOHANG: int
144
+
145
+ def WSTOPSIG(status: int) -> int: ...
146
+ def WTERMSIG(status: int) -> int: ...
147
+
148
+ WUNTRACED: int
149
+
150
+ XATTR_CREATE: int
151
+ XATTR_REPLACE: int
152
+ XATTR_SIZE_MAX: int
153
+ @overload
154
+ def listdir(path: Optional[str] = ...) -> List[str]: ...
155
+ @overload
156
+ def listdir(path: bytes) -> List[bytes]: ...
157
+ @overload
158
+ def listdir(path: int) -> List[str]: ...
159
+ @overload
160
+ def listdir(path: _PathLike[str]) -> List[str]: ...
161
+
162
+ if sys.platform == "win32":
163
+ environ: Dict[str, str]
164
+ else:
165
+ environ: Dict[bytes, bytes]
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/3/queue.pyi ADDED
@@ -0,0 +1,52 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import sys
2
+ from threading import Condition, Lock
3
+ from typing import Any, Generic, Optional, TypeVar
4
+
5
+ if sys.version_info >= (3, 9):
6
+ from types import GenericAlias
7
+
8
+ _T = TypeVar("_T")
9
+
10
+ class Empty(Exception): ...
11
+ class Full(Exception): ...
12
+
13
+ class Queue(Generic[_T]):
14
+ maxsize: int
15
+
16
+ mutex: Lock # undocumented
17
+ not_empty: Condition # undocumented
18
+ not_full: Condition # undocumented
19
+ all_tasks_done: Condition # undocumented
20
+ unfinished_tasks: int # undocumented
21
+ queue: Any # undocumented
22
+ def __init__(self, maxsize: int = ...) -> None: ...
23
+ def _init(self, maxsize: int) -> None: ...
24
+ def empty(self) -> bool: ...
25
+ def full(self) -> bool: ...
26
+ def get(self, block: bool = ..., timeout: Optional[float] = ...) -> _T: ...
27
+ def get_nowait(self) -> _T: ...
28
+ def _get(self) -> _T: ...
29
+ def put(self, item: _T, block: bool = ..., timeout: Optional[float] = ...) -> None: ...
30
+ def put_nowait(self, item: _T) -> None: ...
31
+ def _put(self, item: _T) -> None: ...
32
+ def join(self) -> None: ...
33
+ def qsize(self) -> int: ...
34
+ def _qsize(self) -> int: ...
35
+ def task_done(self) -> None: ...
36
+ if sys.version_info >= (3, 9):
37
+ def __class_getitem__(cls, item: Any) -> GenericAlias: ...
38
+
39
+ class PriorityQueue(Queue[_T]): ...
40
+ class LifoQueue(Queue[_T]): ...
41
+
42
+ if sys.version_info >= (3, 7):
43
+ class SimpleQueue(Generic[_T]):
44
+ def __init__(self) -> None: ...
45
+ def empty(self) -> bool: ...
46
+ def get(self, block: bool = ..., timeout: Optional[float] = ...) -> _T: ...
47
+ def get_nowait(self) -> _T: ...
48
+ def put(self, item: _T, block: bool = ..., timeout: Optional[float] = ...) -> None: ...
49
+ def put_nowait(self, item: _T) -> None: ...
50
+ def qsize(self) -> int: ...
51
+ if sys.version_info >= (3, 9):
52
+ def __class_getitem__(cls, item: Any) -> GenericAlias: ...
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/3/resource.pyi ADDED
@@ -0,0 +1,55 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import sys
2
+ from typing import NamedTuple, Tuple, overload
3
+
4
+ RLIMIT_AS: int
5
+ RLIMIT_CORE: int
6
+ RLIMIT_CPU: int
7
+ RLIMIT_DATA: int
8
+ RLIMIT_FSIZE: int
9
+ RLIMIT_MEMLOCK: int
10
+ RLIMIT_NOFILE: int
11
+ RLIMIT_NPROC: int
12
+ RLIMIT_RSS: int
13
+ RLIMIT_STACK: int
14
+ RLIM_INFINITY: int
15
+ RUSAGE_CHILDREN: int
16
+ RUSAGE_SELF: int
17
+ if sys.platform == "linux":
18
+ RLIMIT_MSGQUEUE: int
19
+ RLIMIT_NICE: int
20
+ RLIMIT_OFILE: int
21
+ RLIMIT_RTPRIO: int
22
+ RLIMIT_RTTIME: int
23
+ RLIMIT_SIGPENDING: int
24
+ RUSAGE_THREAD: int
25
+
26
+ class _RUsage(NamedTuple):
27
+ ru_utime: float
28
+ ru_stime: float
29
+ ru_maxrss: int
30
+ ru_ixrss: int
31
+ ru_idrss: int
32
+ ru_isrss: int
33
+ ru_minflt: int
34
+ ru_majflt: int
35
+ ru_nswap: int
36
+ ru_inblock: int
37
+ ru_oublock: int
38
+ ru_msgsnd: int
39
+ ru_msgrcv: int
40
+ ru_nsignals: int
41
+ ru_nvcsw: int
42
+ ru_nivcsw: int
43
+
44
+ def getpagesize() -> int: ...
45
+ def getrlimit(__resource: int) -> Tuple[int, int]: ...
46
+ def getrusage(__who: int) -> _RUsage: ...
47
+ def setrlimit(__resource: int, __limits: Tuple[int, int]) -> None: ...
48
+
49
+ if sys.platform == "linux":
50
+ @overload
51
+ def prlimit(pid: int, resource: int, limits: Tuple[int, int]) -> Tuple[int, int]: ...
52
+ @overload
53
+ def prlimit(pid: int, resource: int) -> Tuple[int, int]: ...
54
+
55
+ error = OSError
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/3/runpy.pyi ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from types import ModuleType
2
+ from typing import Any, Dict, Optional, TypeVar
3
+
4
+ _T = TypeVar("_T")
5
+
6
+ class _TempModule:
7
+ mod_name: str = ...
8
+ module: ModuleType = ...
9
+ def __init__(self, mod_name: str) -> None: ...
10
+ def __enter__(self: _T) -> _T: ...
11
+ def __exit__(self, *args: Any) -> None: ...
12
+
13
+ class _ModifiedArgv0:
14
+ value: Any = ...
15
+ def __init__(self, value: Any) -> None: ...
16
+ def __enter__(self: _T) -> _T: ...
17
+ def __exit__(self, *args: Any) -> None: ...
18
+
19
+ def run_module(
20
+ mod_name: str, init_globals: Optional[Dict[str, Any]] = ..., run_name: Optional[str] = ..., alter_sys: bool = ...
21
+ ) -> None: ...
22
+ def run_path(path_name: str, init_globals: Optional[Dict[str, Any]] = ..., run_name: str = ...) -> None: ...
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/3/secrets.pyi ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from hmac import compare_digest as compare_digest
2
+ from random import SystemRandom as SystemRandom
3
+ from typing import Optional, Sequence, TypeVar
4
+
5
+ _T = TypeVar("_T")
6
+
7
+ def randbelow(exclusive_upper_bound: int) -> int: ...
8
+ def randbits(k: int) -> int: ...
9
+ def choice(seq: Sequence[_T]) -> _T: ...
10
+ def token_bytes(nbytes: Optional[int] = ...) -> bytes: ...
11
+ def token_hex(nbytes: Optional[int] = ...) -> str: ...
12
+ def token_urlsafe(nbytes: Optional[int] = ...) -> str: ...
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/3/signal.pyi ADDED
@@ -0,0 +1,194 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import sys
2
+ from enum import IntEnum
3
+ from types import FrameType
4
+ from typing import Any, Callable, Iterable, Optional, Set, Tuple, Union
5
+
6
+ if sys.platform != "win32":
7
+ class ItimerError(IOError): ...
8
+ ITIMER_PROF: int
9
+ ITIMER_REAL: int
10
+ ITIMER_VIRTUAL: int
11
+
12
+ NSIG: int
13
+
14
+ class Signals(IntEnum):
15
+ SIGABRT: int
16
+ if sys.platform != "win32":
17
+ SIGALRM: int
18
+ if sys.platform == "win32":
19
+ SIGBREAK: int
20
+ if sys.platform != "win32":
21
+ SIGBUS: int
22
+ SIGCHLD: int
23
+ if sys.platform != "darwin" and sys.platform != "win32":
24
+ SIGCLD: int
25
+ if sys.platform != "win32":
26
+ SIGCONT: int
27
+ SIGEMT: int
28
+ SIGFPE: int
29
+ if sys.platform != "win32":
30
+ SIGHUP: int
31
+ SIGILL: int
32
+ SIGINFO: int
33
+ SIGINT: int
34
+ if sys.platform != "win32":
35
+ SIGIO: int
36
+ SIGIOT: int
37
+ SIGKILL: int
38
+ SIGPIPE: int
39
+ if sys.platform != "darwin" and sys.platform != "win32":
40
+ SIGPOLL: int
41
+ SIGPWR: int
42
+ if sys.platform != "win32":
43
+ SIGPROF: int
44
+ SIGQUIT: int
45
+ if sys.platform != "darwin" and sys.platform != "win32":
46
+ SIGRTMAX: int
47
+ SIGRTMIN: int
48
+ SIGSEGV: int
49
+ if sys.platform != "win32":
50
+ SIGSTOP: int
51
+ SIGSYS: int
52
+ SIGTERM: int
53
+ if sys.platform != "win32":
54
+ SIGTRAP: int
55
+ SIGTSTP: int
56
+ SIGTTIN: int
57
+ SIGTTOU: int
58
+ SIGURG: int
59
+ SIGUSR1: int
60
+ SIGUSR2: int
61
+ SIGVTALRM: int
62
+ SIGWINCH: int
63
+ SIGXCPU: int
64
+ SIGXFSZ: int
65
+
66
+ class Handlers(IntEnum):
67
+ SIG_DFL: int
68
+ SIG_IGN: int
69
+
70
+ SIG_DFL = Handlers.SIG_DFL
71
+ SIG_IGN = Handlers.SIG_IGN
72
+
73
+ if sys.platform != "win32":
74
+ class Sigmasks(IntEnum):
75
+ SIG_BLOCK: int
76
+ SIG_UNBLOCK: int
77
+ SIG_SETMASK: int
78
+ SIG_BLOCK = Sigmasks.SIG_BLOCK
79
+ SIG_UNBLOCK = Sigmasks.SIG_UNBLOCK
80
+ SIG_SETMASK = Sigmasks.SIG_SETMASK
81
+
82
+ _SIGNUM = Union[int, Signals]
83
+ _HANDLER = Union[Callable[[Signals, FrameType], Any], int, Handlers, None]
84
+
85
+ SIGABRT: Signals
86
+ if sys.platform != "win32":
87
+ SIGALRM: Signals
88
+ if sys.platform == "win32":
89
+ SIGBREAK: Signals
90
+ if sys.platform != "win32":
91
+ SIGBUS: Signals
92
+ SIGCHLD: Signals
93
+ if sys.platform != "darwin" and sys.platform != "win32":
94
+ SIGCLD: Signals
95
+ if sys.platform != "win32":
96
+ SIGCONT: Signals
97
+ SIGEMT: Signals
98
+ SIGFPE: Signals
99
+ if sys.platform != "win32":
100
+ SIGHUP: Signals
101
+ SIGILL: Signals
102
+ SIGINFO: Signals
103
+ SIGINT: Signals
104
+ if sys.platform != "win32":
105
+ SIGIO: Signals
106
+ SIGIOT: Signals
107
+ SIGKILL: Signals
108
+ SIGPIPE: Signals
109
+ if sys.platform != "darwin" and sys.platform != "win32":
110
+ SIGPOLL: Signals
111
+ SIGPWR: Signals
112
+ if sys.platform != "win32":
113
+ SIGPROF: Signals
114
+ SIGQUIT: Signals
115
+ if sys.platform != "darwin" and sys.platform != "win32":
116
+ SIGRTMAX: Signals
117
+ SIGRTMIN: Signals
118
+ SIGSEGV: Signals
119
+ if sys.platform != "win32":
120
+ SIGSTOP: Signals
121
+ SIGSYS: Signals
122
+ SIGTERM: Signals
123
+ if sys.platform != "win32":
124
+ SIGTRAP: Signals
125
+ SIGTSTP: Signals
126
+ SIGTTIN: Signals
127
+ SIGTTOU: Signals
128
+ SIGURG: Signals
129
+ SIGUSR1: Signals
130
+ SIGUSR2: Signals
131
+ SIGVTALRM: Signals
132
+ SIGWINCH: Signals
133
+ SIGXCPU: Signals
134
+ SIGXFSZ: Signals
135
+
136
+ if sys.platform == "win32":
137
+ CTRL_C_EVENT: int
138
+ CTRL_BREAK_EVENT: int
139
+
140
+ if sys.platform != "win32":
141
+ class struct_siginfo(Tuple[int, int, int, int, int, int, int]):
142
+ def __init__(self, sequence: Iterable[int]) -> None: ...
143
+ @property
144
+ def si_signo(self) -> int: ...
145
+ @property
146
+ def si_code(self) -> int: ...
147
+ @property
148
+ def si_errno(self) -> int: ...
149
+ @property
150
+ def si_pid(self) -> int: ...
151
+ @property
152
+ def si_uid(self) -> int: ...
153
+ @property
154
+ def si_status(self) -> int: ...
155
+ @property
156
+ def si_band(self) -> int: ...
157
+
158
+ if sys.platform != "win32":
159
+ def alarm(__seconds: int) -> int: ...
160
+
161
+ def default_int_handler(signum: int, frame: FrameType) -> None: ...
162
+
163
+ if sys.platform != "win32":
164
+ def getitimer(__which: int) -> Tuple[float, float]: ...
165
+
166
+ def getsignal(__signalnum: _SIGNUM) -> _HANDLER: ...
167
+
168
+ if sys.version_info >= (3, 8):
169
+ def strsignal(__signalnum: _SIGNUM) -> Optional[str]: ...
170
+ def valid_signals() -> Set[Signals]: ...
171
+ def raise_signal(__signalnum: _SIGNUM) -> None: ...
172
+
173
+ if sys.platform != "win32":
174
+ def pause() -> None: ...
175
+ def pthread_kill(__thread_id: int, __signalnum: int) -> None: ...
176
+ def pthread_sigmask(__how: int, __mask: Iterable[int]) -> Set[_SIGNUM]: ...
177
+
178
+ if sys.version_info >= (3, 7):
179
+ def set_wakeup_fd(fd: int, *, warn_on_full_buffer: bool = ...) -> int: ...
180
+
181
+ else:
182
+ def set_wakeup_fd(fd: int) -> int: ...
183
+
184
+ if sys.platform != "win32":
185
+ def setitimer(__which: int, __seconds: float, __interval: float = ...) -> Tuple[float, float]: ...
186
+ def siginterrupt(__signalnum: int, __flag: bool) -> None: ...
187
+
188
+ def signal(__signalnum: _SIGNUM, __handler: _HANDLER) -> _HANDLER: ...
189
+
190
+ if sys.platform != "win32":
191
+ def sigpending() -> Any: ...
192
+ def sigtimedwait(sigset: Iterable[int], timeout: float) -> Optional[struct_siginfo]: ...
193
+ def sigwait(__sigset: Iterable[int]) -> _SIGNUM: ...
194
+ def sigwaitinfo(sigset: Iterable[int]) -> struct_siginfo: ...
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/3/smtplib.pyi ADDED
@@ -0,0 +1,159 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from email.message import Message as _Message
2
+ from socket import socket
3
+ from ssl import SSLContext
4
+ from types import TracebackType
5
+ from typing import Any, Dict, List, Optional, Pattern, Protocol, Sequence, Tuple, Type, Union, overload
6
+
7
+ _Reply = Tuple[int, bytes]
8
+ _SendErrs = Dict[str, _Reply]
9
+ # Should match source_address for socket.create_connection
10
+ _SourceAddress = Tuple[Union[bytearray, bytes, str], int]
11
+
12
+ SMTP_PORT: int
13
+ SMTP_SSL_PORT: int
14
+ CRLF: str
15
+ bCRLF: bytes
16
+
17
+ OLDSTYLE_AUTH: Pattern[str]
18
+
19
+ class SMTPException(OSError): ...
20
+ class SMTPNotSupportedError(SMTPException): ...
21
+ class SMTPServerDisconnected(SMTPException): ...
22
+
23
+ class SMTPResponseException(SMTPException):
24
+ smtp_code: int
25
+ smtp_error: Union[bytes, str]
26
+ args: Union[Tuple[int, Union[bytes, str]], Tuple[int, bytes, str]]
27
+ def __init__(self, code: int, msg: Union[bytes, str]) -> None: ...
28
+
29
+ class SMTPSenderRefused(SMTPResponseException):
30
+ smtp_code: int
31
+ smtp_error: bytes
32
+ sender: str
33
+ args: Tuple[int, bytes, str]
34
+ def __init__(self, code: int, msg: bytes, sender: str) -> None: ...
35
+
36
+ class SMTPRecipientsRefused(SMTPException):
37
+ recipients: _SendErrs
38
+ args: Tuple[_SendErrs]
39
+ def __init__(self, recipients: _SendErrs) -> None: ...
40
+
41
+ class SMTPDataError(SMTPResponseException): ...
42
+ class SMTPConnectError(SMTPResponseException): ...
43
+ class SMTPHeloError(SMTPResponseException): ...
44
+ class SMTPAuthenticationError(SMTPResponseException): ...
45
+
46
+ def quoteaddr(addrstring: str) -> str: ...
47
+ def quotedata(data: str) -> str: ...
48
+
49
+ class _AuthObject(Protocol):
50
+ @overload
51
+ def __call__(self, challenge: None = ...) -> Optional[str]: ...
52
+ @overload
53
+ def __call__(self, challenge: bytes) -> str: ...
54
+
55
+ class SMTP:
56
+ debuglevel: int = ...
57
+ sock: Optional[socket] = ...
58
+ # Type of file should match what socket.makefile() returns
59
+ file: Optional[Any] = ...
60
+ helo_resp: Optional[bytes] = ...
61
+ ehlo_msg: str = ...
62
+ ehlo_resp: Optional[bytes] = ...
63
+ does_esmtp: bool = ...
64
+ default_port: int = ...
65
+ timeout: float
66
+ esmtp_features: Dict[str, str]
67
+ command_encoding: str
68
+ source_address: Optional[_SourceAddress]
69
+ local_hostname: str
70
+ def __init__(
71
+ self,
72
+ host: str = ...,
73
+ port: int = ...,
74
+ local_hostname: Optional[str] = ...,
75
+ timeout: float = ...,
76
+ source_address: Optional[_SourceAddress] = ...,
77
+ ) -> None: ...
78
+ def __enter__(self) -> SMTP: ...
79
+ def __exit__(
80
+ self, exc_type: Optional[Type[BaseException]], exc_value: Optional[BaseException], tb: Optional[TracebackType]
81
+ ) -> None: ...
82
+ def set_debuglevel(self, debuglevel: int) -> None: ...
83
+ def connect(self, host: str = ..., port: int = ..., source_address: Optional[_SourceAddress] = ...) -> _Reply: ...
84
+ def send(self, s: Union[bytes, str]) -> None: ...
85
+ def putcmd(self, cmd: str, args: str = ...) -> None: ...
86
+ def getreply(self) -> _Reply: ...
87
+ def docmd(self, cmd: str, args: str = ...) -> _Reply: ...
88
+ def helo(self, name: str = ...) -> _Reply: ...
89
+ def ehlo(self, name: str = ...) -> _Reply: ...
90
+ def has_extn(self, opt: str) -> bool: ...
91
+ def help(self, args: str = ...) -> bytes: ...
92
+ def rset(self) -> _Reply: ...
93
+ def noop(self) -> _Reply: ...
94
+ def mail(self, sender: str, options: Sequence[str] = ...) -> _Reply: ...
95
+ def rcpt(self, recip: str, options: Sequence[str] = ...) -> _Reply: ...
96
+ def data(self, msg: Union[bytes, str]) -> _Reply: ...
97
+ def verify(self, address: str) -> _Reply: ...
98
+ vrfy = verify
99
+ def expn(self, address: str) -> _Reply: ...
100
+ def ehlo_or_helo_if_needed(self) -> None: ...
101
+ user: str
102
+ password: str
103
+ def auth(self, mechanism: str, authobject: _AuthObject, *, initial_response_ok: bool = ...) -> _Reply: ...
104
+ @overload
105
+ def auth_cram_md5(self, challenge: None = ...) -> None: ...
106
+ @overload
107
+ def auth_cram_md5(self, challenge: bytes) -> str: ...
108
+ def auth_plain(self, challenge: Optional[bytes] = ...) -> str: ...
109
+ def auth_login(self, challenge: Optional[bytes] = ...) -> str: ...
110
+ def login(self, user: str, password: str, *, initial_response_ok: bool = ...) -> _Reply: ...
111
+ def starttls(
112
+ self, keyfile: Optional[str] = ..., certfile: Optional[str] = ..., context: Optional[SSLContext] = ...
113
+ ) -> _Reply: ...
114
+ def sendmail(
115
+ self,
116
+ from_addr: str,
117
+ to_addrs: Union[str, Sequence[str]],
118
+ msg: Union[bytes, str],
119
+ mail_options: Sequence[str] = ...,
120
+ rcpt_options: List[str] = ...,
121
+ ) -> _SendErrs: ...
122
+ def send_message(
123
+ self,
124
+ msg: _Message,
125
+ from_addr: Optional[str] = ...,
126
+ to_addrs: Optional[Union[str, Sequence[str]]] = ...,
127
+ mail_options: List[str] = ...,
128
+ rcpt_options: Sequence[str] = ...,
129
+ ) -> _SendErrs: ...
130
+ def close(self) -> None: ...
131
+ def quit(self) -> _Reply: ...
132
+
133
+ class SMTP_SSL(SMTP):
134
+ default_port: int = ...
135
+ keyfile: Optional[str]
136
+ certfile: Optional[str]
137
+ context: SSLContext
138
+ def __init__(
139
+ self,
140
+ host: str = ...,
141
+ port: int = ...,
142
+ local_hostname: Optional[str] = ...,
143
+ keyfile: Optional[str] = ...,
144
+ certfile: Optional[str] = ...,
145
+ timeout: float = ...,
146
+ source_address: Optional[_SourceAddress] = ...,
147
+ context: Optional[SSLContext] = ...,
148
+ ) -> None: ...
149
+
150
+ LMTP_PORT: int
151
+
152
+ class LMTP(SMTP):
153
+ def __init__(
154
+ self,
155
+ host: str = ...,
156
+ port: int = ...,
157
+ local_hostname: Optional[str] = ...,
158
+ source_address: Optional[_SourceAddress] = ...,
159
+ ) -> None: ...
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/3/socketserver.pyi ADDED
@@ -0,0 +1,133 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import sys
2
+ import types
3
+ from socket import SocketType
4
+ from typing import Any, BinaryIO, Callable, ClassVar, List, Optional, Tuple, Type, Union
5
+
6
+ class BaseServer:
7
+ address_family: int
8
+ RequestHandlerClass: Callable[..., BaseRequestHandler]
9
+ server_address: Tuple[str, int]
10
+ socket: SocketType
11
+ allow_reuse_address: bool
12
+ request_queue_size: int
13
+ socket_type: int
14
+ timeout: Optional[float]
15
+ def __init__(self, server_address: Any, RequestHandlerClass: Callable[..., BaseRequestHandler]) -> None: ...
16
+ def fileno(self) -> int: ...
17
+ def handle_request(self) -> None: ...
18
+ def serve_forever(self, poll_interval: float = ...) -> None: ...
19
+ def shutdown(self) -> None: ...
20
+ def server_close(self) -> None: ...
21
+ def finish_request(self, request: bytes, client_address: Tuple[str, int]) -> None: ...
22
+ def get_request(self) -> Tuple[SocketType, Tuple[str, int]]: ...
23
+ def handle_error(self, request: bytes, client_address: Tuple[str, int]) -> None: ...
24
+ def handle_timeout(self) -> None: ...
25
+ def process_request(self, request: bytes, client_address: Tuple[str, int]) -> None: ...
26
+ def server_activate(self) -> None: ...
27
+ def server_bind(self) -> None: ...
28
+ def verify_request(self, request: bytes, client_address: Tuple[str, int]) -> bool: ...
29
+ if sys.version_info >= (3, 6):
30
+ def __enter__(self) -> BaseServer: ...
31
+ def __exit__(
32
+ self, exc_type: Optional[Type[BaseException]], exc_val: Optional[BaseException], exc_tb: Optional[types.TracebackType]
33
+ ) -> None: ...
34
+ def service_actions(self) -> None: ...
35
+
36
+ class TCPServer(BaseServer):
37
+ def __init__(
38
+ self,
39
+ server_address: Tuple[str, int],
40
+ RequestHandlerClass: Callable[..., BaseRequestHandler],
41
+ bind_and_activate: bool = ...,
42
+ ) -> None: ...
43
+
44
+ class UDPServer(BaseServer):
45
+ def __init__(
46
+ self,
47
+ server_address: Tuple[str, int],
48
+ RequestHandlerClass: Callable[..., BaseRequestHandler],
49
+ bind_and_activate: bool = ...,
50
+ ) -> None: ...
51
+
52
+ if sys.platform != "win32":
53
+ class UnixStreamServer(BaseServer):
54
+ def __init__(
55
+ self,
56
+ server_address: Union[str, bytes],
57
+ RequestHandlerClass: Callable[..., BaseRequestHandler],
58
+ bind_and_activate: bool = ...,
59
+ ) -> None: ...
60
+ class UnixDatagramServer(BaseServer):
61
+ def __init__(
62
+ self,
63
+ server_address: Union[str, bytes],
64
+ RequestHandlerClass: Callable[..., BaseRequestHandler],
65
+ bind_and_activate: bool = ...,
66
+ ) -> None: ...
67
+
68
+ if sys.platform != "win32":
69
+ class ForkingMixIn:
70
+ timeout: Optional[float] # undocumented
71
+ active_children: Optional[List[int]] # undocumented
72
+ max_children: int # undocumented
73
+ if sys.version_info >= (3, 7):
74
+ block_on_close: bool
75
+ if sys.version_info >= (3, 6):
76
+ def collect_children(self, *, blocking: bool = ...) -> None: ... # undocumented
77
+ else:
78
+ def collect_children(self) -> None: ... # undocumented
79
+ def handle_timeout(self) -> None: ... # undocumented
80
+ def service_actions(self) -> None: ... # undocumented
81
+ def process_request(self, request: bytes, client_address: Tuple[str, int]) -> None: ...
82
+ if sys.version_info >= (3, 6):
83
+ def server_close(self) -> None: ...
84
+
85
+ class ThreadingMixIn:
86
+ daemon_threads: bool
87
+ if sys.version_info >= (3, 7):
88
+ block_on_close: bool
89
+ def process_request_thread(self, request: bytes, client_address: Tuple[str, int]) -> None: ... # undocumented
90
+ def process_request(self, request: bytes, client_address: Tuple[str, int]) -> None: ...
91
+ if sys.version_info >= (3, 6):
92
+ def server_close(self) -> None: ...
93
+
94
+ if sys.platform != "win32":
95
+ class ForkingTCPServer(ForkingMixIn, TCPServer): ...
96
+ class ForkingUDPServer(ForkingMixIn, UDPServer): ...
97
+
98
+ class ThreadingTCPServer(ThreadingMixIn, TCPServer): ...
99
+ class ThreadingUDPServer(ThreadingMixIn, UDPServer): ...
100
+
101
+ if sys.platform != "win32":
102
+ class ThreadingUnixStreamServer(ThreadingMixIn, UnixStreamServer): ...
103
+ class ThreadingUnixDatagramServer(ThreadingMixIn, UnixDatagramServer): ...
104
+
105
+ class BaseRequestHandler:
106
+ # Those are technically of types, respectively:
107
+ # * Union[SocketType, Tuple[bytes, SocketType]]
108
+ # * Union[Tuple[str, int], str]
109
+ # But there are some concerns that having unions here would cause
110
+ # too much inconvenience to people using it (see
111
+ # https://github.com/python/typeshed/pull/384#issuecomment-234649696)
112
+ request: Any
113
+ client_address: Any
114
+ server: BaseServer
115
+ def __init__(self, request: Any, client_address: Any, server: BaseServer) -> None: ...
116
+ def setup(self) -> None: ...
117
+ def handle(self) -> None: ...
118
+ def finish(self) -> None: ...
119
+
120
+ class StreamRequestHandler(BaseRequestHandler):
121
+ rbufsize: ClassVar[int] # Undocumented
122
+ wbufsize: ClassVar[int] # Undocumented
123
+ timeout: ClassVar[Optional[float]] # Undocumented
124
+ disable_nagle_algorithm: ClassVar[bool] # Undocumented
125
+ connection: SocketType # Undocumented
126
+ rfile: BinaryIO
127
+ wfile: BinaryIO
128
+
129
+ class DatagramRequestHandler(BaseRequestHandler):
130
+ packet: SocketType # Undocumented
131
+ socket: SocketType # Undocumented
132
+ rfile: BinaryIO
133
+ wfile: BinaryIO
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/3/statistics.pyi ADDED
@@ -0,0 +1,72 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import sys
2
+ from _typeshed import SupportsLessThanT
3
+ from decimal import Decimal
4
+ from fractions import Fraction
5
+ from typing import Any, Hashable, Iterable, List, Optional, SupportsFloat, Type, TypeVar, Union
6
+
7
+ _T = TypeVar("_T")
8
+ # Most functions in this module accept homogeneous collections of one of these types
9
+ _Number = TypeVar("_Number", float, Decimal, Fraction)
10
+
11
+ # Used in mode, multimode
12
+ _HashableT = TypeVar("_HashableT", bound=Hashable)
13
+
14
+ class StatisticsError(ValueError): ...
15
+
16
+ if sys.version_info >= (3, 8):
17
+ def fmean(data: Iterable[SupportsFloat]) -> float: ...
18
+ def geometric_mean(data: Iterable[SupportsFloat]) -> float: ...
19
+
20
+ def mean(data: Iterable[_Number]) -> _Number: ...
21
+ def harmonic_mean(data: Iterable[_Number]) -> _Number: ...
22
+ def median(data: Iterable[_Number]) -> _Number: ...
23
+ def median_low(data: Iterable[SupportsLessThanT]) -> SupportsLessThanT: ...
24
+ def median_high(data: Iterable[SupportsLessThanT]) -> SupportsLessThanT: ...
25
+ def median_grouped(data: Iterable[_Number], interval: _Number = ...) -> _Number: ...
26
+ def mode(data: Iterable[_HashableT]) -> _HashableT: ...
27
+
28
+ if sys.version_info >= (3, 8):
29
+ def multimode(data: Iterable[_HashableT]) -> List[_HashableT]: ...
30
+
31
+ def pstdev(data: Iterable[_Number], mu: Optional[_Number] = ...) -> _Number: ...
32
+ def pvariance(data: Iterable[_Number], mu: Optional[_Number] = ...) -> _Number: ...
33
+
34
+ if sys.version_info >= (3, 8):
35
+ def quantiles(data: Iterable[_Number], *, n: int = ..., method: str = ...) -> List[_Number]: ...
36
+
37
+ def stdev(data: Iterable[_Number], xbar: Optional[_Number] = ...) -> _Number: ...
38
+ def variance(data: Iterable[_Number], xbar: Optional[_Number] = ...) -> _Number: ...
39
+
40
+ if sys.version_info >= (3, 8):
41
+ class NormalDist:
42
+ def __init__(self, mu: float = ..., sigma: float = ...) -> None: ...
43
+ @property
44
+ def mean(self) -> float: ...
45
+ @property
46
+ def median(self) -> float: ...
47
+ @property
48
+ def mode(self) -> float: ...
49
+ @property
50
+ def stdev(self) -> float: ...
51
+ @property
52
+ def variance(self) -> float: ...
53
+ @classmethod
54
+ def from_samples(cls: Type[_T], data: Iterable[SupportsFloat]) -> _T: ...
55
+ def samples(self, n: int, *, seed: Optional[Any] = ...) -> List[float]: ...
56
+ def pdf(self, x: float) -> float: ...
57
+ def cdf(self, x: float) -> float: ...
58
+ def inv_cdf(self, p: float) -> float: ...
59
+ def overlap(self, other: NormalDist) -> float: ...
60
+ def quantiles(self, n: int = ...) -> List[float]: ...
61
+ if sys.version_info >= (3, 9):
62
+ def zscore(self, x: float) -> float: ...
63
+ def __add__(self, x2: Union[float, NormalDist]) -> NormalDist: ...
64
+ def __sub__(self, x2: Union[float, NormalDist]) -> NormalDist: ...
65
+ def __mul__(self, x2: float) -> NormalDist: ...
66
+ def __truediv__(self, x2: float) -> NormalDist: ...
67
+ def __pos__(self) -> NormalDist: ...
68
+ def __neg__(self) -> NormalDist: ...
69
+ __radd__ = __add__
70
+ def __rsub__(self, x2: Union[float, NormalDist]) -> NormalDist: ...
71
+ __rmul__ = __mul__
72
+ def __hash__(self) -> int: ...
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/3/subprocess.pyi ADDED
@@ -0,0 +1,1054 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import sys
2
+ from _typeshed import AnyPath
3
+ from types import TracebackType
4
+ from typing import IO, Any, AnyStr, Callable, Generic, Mapping, Optional, Sequence, Tuple, Type, TypeVar, Union, overload
5
+ from typing_extensions import Literal
6
+
7
+ if sys.version_info >= (3, 9):
8
+ from types import GenericAlias
9
+
10
+ # We prefer to annotate inputs to methods (eg subprocess.check_call) with these
11
+ # union types.
12
+ # For outputs we use laborious literal based overloads to try to determine
13
+ # which specific return types to use, and prefer to fall back to Any when
14
+ # this does not work, so the caller does not have to use an assertion to confirm
15
+ # which type.
16
+ #
17
+ # For example:
18
+ #
19
+ # try:
20
+ # x = subprocess.check_output(["ls", "-l"])
21
+ # reveal_type(x) # bytes, based on the overloads
22
+ # except TimeoutError as e:
23
+ # reveal_type(e.cmd) # Any, but morally is _CMD
24
+ _FILE = Union[None, int, IO[Any]]
25
+ _TXT = Union[bytes, str]
26
+ # Python 3.6 does't support _CMD being a single PathLike.
27
+ # See: https://bugs.python.org/issue31961
28
+ _CMD = Union[_TXT, Sequence[AnyPath]]
29
+ _ENV = Union[Mapping[bytes, _TXT], Mapping[str, _TXT]]
30
+
31
+ _S = TypeVar("_S")
32
+ _T = TypeVar("_T")
33
+
34
+ class CompletedProcess(Generic[_T]):
35
+ # morally: _CMD
36
+ args: Any
37
+ returncode: int
38
+ # These are really both Optional, but requiring checks would be tedious
39
+ # and writing all the overloads would be horrific.
40
+ stdout: _T
41
+ stderr: _T
42
+ def __init__(self, args: _CMD, returncode: int, stdout: Optional[_T] = ..., stderr: Optional[_T] = ...) -> None: ...
43
+ def check_returncode(self) -> None: ...
44
+ if sys.version_info >= (3, 9):
45
+ def __class_getitem__(cls, item: Any) -> GenericAlias: ...
46
+
47
+ if sys.version_info >= (3, 7):
48
+ # Nearly the same args as for 3.6, except for capture_output and text
49
+ @overload
50
+ def run(
51
+ args: _CMD,
52
+ bufsize: int = ...,
53
+ executable: Optional[AnyPath] = ...,
54
+ stdin: _FILE = ...,
55
+ stdout: _FILE = ...,
56
+ stderr: _FILE = ...,
57
+ preexec_fn: Callable[[], Any] = ...,
58
+ close_fds: bool = ...,
59
+ shell: bool = ...,
60
+ cwd: Optional[AnyPath] = ...,
61
+ env: Optional[_ENV] = ...,
62
+ universal_newlines: bool = ...,
63
+ startupinfo: Any = ...,
64
+ creationflags: int = ...,
65
+ restore_signals: bool = ...,
66
+ start_new_session: bool = ...,
67
+ pass_fds: Any = ...,
68
+ *,
69
+ capture_output: bool = ...,
70
+ check: bool = ...,
71
+ encoding: Optional[str] = ...,
72
+ errors: Optional[str] = ...,
73
+ input: Optional[str] = ...,
74
+ text: Literal[True],
75
+ timeout: Optional[float] = ...,
76
+ ) -> CompletedProcess[str]: ...
77
+ @overload
78
+ def run(
79
+ args: _CMD,
80
+ bufsize: int = ...,
81
+ executable: Optional[AnyPath] = ...,
82
+ stdin: _FILE = ...,
83
+ stdout: _FILE = ...,
84
+ stderr: _FILE = ...,
85
+ preexec_fn: Callable[[], Any] = ...,
86
+ close_fds: bool = ...,
87
+ shell: bool = ...,
88
+ cwd: Optional[AnyPath] = ...,
89
+ env: Optional[_ENV] = ...,
90
+ universal_newlines: bool = ...,
91
+ startupinfo: Any = ...,
92
+ creationflags: int = ...,
93
+ restore_signals: bool = ...,
94
+ start_new_session: bool = ...,
95
+ pass_fds: Any = ...,
96
+ *,
97
+ capture_output: bool = ...,
98
+ check: bool = ...,
99
+ encoding: str,
100
+ errors: Optional[str] = ...,
101
+ input: Optional[str] = ...,
102
+ text: Optional[bool] = ...,
103
+ timeout: Optional[float] = ...,
104
+ ) -> CompletedProcess[str]: ...
105
+ @overload
106
+ def run(
107
+ args: _CMD,
108
+ bufsize: int = ...,
109
+ executable: Optional[AnyPath] = ...,
110
+ stdin: _FILE = ...,
111
+ stdout: _FILE = ...,
112
+ stderr: _FILE = ...,
113
+ preexec_fn: Callable[[], Any] = ...,
114
+ close_fds: bool = ...,
115
+ shell: bool = ...,
116
+ cwd: Optional[AnyPath] = ...,
117
+ env: Optional[_ENV] = ...,
118
+ universal_newlines: bool = ...,
119
+ startupinfo: Any = ...,
120
+ creationflags: int = ...,
121
+ restore_signals: bool = ...,
122
+ start_new_session: bool = ...,
123
+ pass_fds: Any = ...,
124
+ *,
125
+ capture_output: bool = ...,
126
+ check: bool = ...,
127
+ encoding: Optional[str] = ...,
128
+ errors: str,
129
+ input: Optional[str] = ...,
130
+ text: Optional[bool] = ...,
131
+ timeout: Optional[float] = ...,
132
+ ) -> CompletedProcess[str]: ...
133
+ @overload
134
+ def run(
135
+ args: _CMD,
136
+ bufsize: int = ...,
137
+ executable: Optional[AnyPath] = ...,
138
+ stdin: _FILE = ...,
139
+ stdout: _FILE = ...,
140
+ stderr: _FILE = ...,
141
+ preexec_fn: Callable[[], Any] = ...,
142
+ close_fds: bool = ...,
143
+ shell: bool = ...,
144
+ cwd: Optional[AnyPath] = ...,
145
+ env: Optional[_ENV] = ...,
146
+ *,
147
+ universal_newlines: Literal[True],
148
+ startupinfo: Any = ...,
149
+ creationflags: int = ...,
150
+ restore_signals: bool = ...,
151
+ start_new_session: bool = ...,
152
+ pass_fds: Any = ...,
153
+ # where the *real* keyword only args start
154
+ capture_output: bool = ...,
155
+ check: bool = ...,
156
+ encoding: Optional[str] = ...,
157
+ errors: Optional[str] = ...,
158
+ input: Optional[str] = ...,
159
+ text: Optional[bool] = ...,
160
+ timeout: Optional[float] = ...,
161
+ ) -> CompletedProcess[str]: ...
162
+ @overload
163
+ def run(
164
+ args: _CMD,
165
+ bufsize: int = ...,
166
+ executable: Optional[AnyPath] = ...,
167
+ stdin: _FILE = ...,
168
+ stdout: _FILE = ...,
169
+ stderr: _FILE = ...,
170
+ preexec_fn: Callable[[], Any] = ...,
171
+ close_fds: bool = ...,
172
+ shell: bool = ...,
173
+ cwd: Optional[AnyPath] = ...,
174
+ env: Optional[_ENV] = ...,
175
+ universal_newlines: Literal[False] = ...,
176
+ startupinfo: Any = ...,
177
+ creationflags: int = ...,
178
+ restore_signals: bool = ...,
179
+ start_new_session: bool = ...,
180
+ pass_fds: Any = ...,
181
+ *,
182
+ capture_output: bool = ...,
183
+ check: bool = ...,
184
+ encoding: None = ...,
185
+ errors: None = ...,
186
+ input: Optional[bytes] = ...,
187
+ text: Literal[None, False] = ...,
188
+ timeout: Optional[float] = ...,
189
+ ) -> CompletedProcess[bytes]: ...
190
+ @overload
191
+ def run(
192
+ args: _CMD,
193
+ bufsize: int = ...,
194
+ executable: Optional[AnyPath] = ...,
195
+ stdin: _FILE = ...,
196
+ stdout: _FILE = ...,
197
+ stderr: _FILE = ...,
198
+ preexec_fn: Callable[[], Any] = ...,
199
+ close_fds: bool = ...,
200
+ shell: bool = ...,
201
+ cwd: Optional[AnyPath] = ...,
202
+ env: Optional[_ENV] = ...,
203
+ universal_newlines: bool = ...,
204
+ startupinfo: Any = ...,
205
+ creationflags: int = ...,
206
+ restore_signals: bool = ...,
207
+ start_new_session: bool = ...,
208
+ pass_fds: Any = ...,
209
+ *,
210
+ capture_output: bool = ...,
211
+ check: bool = ...,
212
+ encoding: Optional[str] = ...,
213
+ errors: Optional[str] = ...,
214
+ input: Optional[_TXT] = ...,
215
+ text: Optional[bool] = ...,
216
+ timeout: Optional[float] = ...,
217
+ ) -> CompletedProcess[Any]: ...
218
+
219
+ else:
220
+ # Nearly same args as Popen.__init__ except for timeout, input, and check
221
+ @overload
222
+ def run(
223
+ args: _CMD,
224
+ bufsize: int = ...,
225
+ executable: Optional[AnyPath] = ...,
226
+ stdin: _FILE = ...,
227
+ stdout: _FILE = ...,
228
+ stderr: _FILE = ...,
229
+ preexec_fn: Callable[[], Any] = ...,
230
+ close_fds: bool = ...,
231
+ shell: bool = ...,
232
+ cwd: Optional[AnyPath] = ...,
233
+ env: Optional[_ENV] = ...,
234
+ universal_newlines: bool = ...,
235
+ startupinfo: Any = ...,
236
+ creationflags: int = ...,
237
+ restore_signals: bool = ...,
238
+ start_new_session: bool = ...,
239
+ pass_fds: Any = ...,
240
+ *,
241
+ check: bool = ...,
242
+ encoding: str,
243
+ errors: Optional[str] = ...,
244
+ input: Optional[str] = ...,
245
+ timeout: Optional[float] = ...,
246
+ ) -> CompletedProcess[str]: ...
247
+ @overload
248
+ def run(
249
+ args: _CMD,
250
+ bufsize: int = ...,
251
+ executable: Optional[AnyPath] = ...,
252
+ stdin: _FILE = ...,
253
+ stdout: _FILE = ...,
254
+ stderr: _FILE = ...,
255
+ preexec_fn: Callable[[], Any] = ...,
256
+ close_fds: bool = ...,
257
+ shell: bool = ...,
258
+ cwd: Optional[AnyPath] = ...,
259
+ env: Optional[_ENV] = ...,
260
+ universal_newlines: bool = ...,
261
+ startupinfo: Any = ...,
262
+ creationflags: int = ...,
263
+ restore_signals: bool = ...,
264
+ start_new_session: bool = ...,
265
+ pass_fds: Any = ...,
266
+ *,
267
+ check: bool = ...,
268
+ encoding: Optional[str] = ...,
269
+ errors: str,
270
+ input: Optional[str] = ...,
271
+ timeout: Optional[float] = ...,
272
+ ) -> CompletedProcess[str]: ...
273
+ @overload
274
+ def run(
275
+ args: _CMD,
276
+ bufsize: int = ...,
277
+ executable: Optional[AnyPath] = ...,
278
+ stdin: _FILE = ...,
279
+ stdout: _FILE = ...,
280
+ stderr: _FILE = ...,
281
+ preexec_fn: Callable[[], Any] = ...,
282
+ close_fds: bool = ...,
283
+ shell: bool = ...,
284
+ cwd: Optional[AnyPath] = ...,
285
+ env: Optional[_ENV] = ...,
286
+ *,
287
+ universal_newlines: Literal[True],
288
+ startupinfo: Any = ...,
289
+ creationflags: int = ...,
290
+ restore_signals: bool = ...,
291
+ start_new_session: bool = ...,
292
+ pass_fds: Any = ...,
293
+ # where the *real* keyword only args start
294
+ check: bool = ...,
295
+ encoding: Optional[str] = ...,
296
+ errors: Optional[str] = ...,
297
+ input: Optional[str] = ...,
298
+ timeout: Optional[float] = ...,
299
+ ) -> CompletedProcess[str]: ...
300
+ @overload
301
+ def run(
302
+ args: _CMD,
303
+ bufsize: int = ...,
304
+ executable: Optional[AnyPath] = ...,
305
+ stdin: _FILE = ...,
306
+ stdout: _FILE = ...,
307
+ stderr: _FILE = ...,
308
+ preexec_fn: Callable[[], Any] = ...,
309
+ close_fds: bool = ...,
310
+ shell: bool = ...,
311
+ cwd: Optional[AnyPath] = ...,
312
+ env: Optional[_ENV] = ...,
313
+ universal_newlines: Literal[False] = ...,
314
+ startupinfo: Any = ...,
315
+ creationflags: int = ...,
316
+ restore_signals: bool = ...,
317
+ start_new_session: bool = ...,
318
+ pass_fds: Any = ...,
319
+ *,
320
+ check: bool = ...,
321
+ encoding: None = ...,
322
+ errors: None = ...,
323
+ input: Optional[bytes] = ...,
324
+ timeout: Optional[float] = ...,
325
+ ) -> CompletedProcess[bytes]: ...
326
+ @overload
327
+ def run(
328
+ args: _CMD,
329
+ bufsize: int = ...,
330
+ executable: Optional[AnyPath] = ...,
331
+ stdin: _FILE = ...,
332
+ stdout: _FILE = ...,
333
+ stderr: _FILE = ...,
334
+ preexec_fn: Callable[[], Any] = ...,
335
+ close_fds: bool = ...,
336
+ shell: bool = ...,
337
+ cwd: Optional[AnyPath] = ...,
338
+ env: Optional[_ENV] = ...,
339
+ universal_newlines: bool = ...,
340
+ startupinfo: Any = ...,
341
+ creationflags: int = ...,
342
+ restore_signals: bool = ...,
343
+ start_new_session: bool = ...,
344
+ pass_fds: Any = ...,
345
+ *,
346
+ check: bool = ...,
347
+ encoding: Optional[str] = ...,
348
+ errors: Optional[str] = ...,
349
+ input: Optional[_TXT] = ...,
350
+ timeout: Optional[float] = ...,
351
+ ) -> CompletedProcess[Any]: ...
352
+
353
+ # Same args as Popen.__init__
354
+ def call(
355
+ args: _CMD,
356
+ bufsize: int = ...,
357
+ executable: Optional[AnyPath] = ...,
358
+ stdin: _FILE = ...,
359
+ stdout: _FILE = ...,
360
+ stderr: _FILE = ...,
361
+ preexec_fn: Callable[[], Any] = ...,
362
+ close_fds: bool = ...,
363
+ shell: bool = ...,
364
+ cwd: Optional[AnyPath] = ...,
365
+ env: Optional[_ENV] = ...,
366
+ universal_newlines: bool = ...,
367
+ startupinfo: Any = ...,
368
+ creationflags: int = ...,
369
+ restore_signals: bool = ...,
370
+ start_new_session: bool = ...,
371
+ pass_fds: Any = ...,
372
+ *,
373
+ timeout: Optional[float] = ...,
374
+ ) -> int: ...
375
+
376
+ # Same args as Popen.__init__
377
+ def check_call(
378
+ args: _CMD,
379
+ bufsize: int = ...,
380
+ executable: AnyPath = ...,
381
+ stdin: _FILE = ...,
382
+ stdout: _FILE = ...,
383
+ stderr: _FILE = ...,
384
+ preexec_fn: Callable[[], Any] = ...,
385
+ close_fds: bool = ...,
386
+ shell: bool = ...,
387
+ cwd: Optional[AnyPath] = ...,
388
+ env: Optional[_ENV] = ...,
389
+ universal_newlines: bool = ...,
390
+ startupinfo: Any = ...,
391
+ creationflags: int = ...,
392
+ restore_signals: bool = ...,
393
+ start_new_session: bool = ...,
394
+ pass_fds: Any = ...,
395
+ timeout: Optional[float] = ...,
396
+ ) -> int: ...
397
+
398
+ if sys.version_info >= (3, 7):
399
+ # 3.7 added text
400
+ @overload
401
+ def check_output(
402
+ args: _CMD,
403
+ bufsize: int = ...,
404
+ executable: Optional[AnyPath] = ...,
405
+ stdin: _FILE = ...,
406
+ stderr: _FILE = ...,
407
+ preexec_fn: Callable[[], Any] = ...,
408
+ close_fds: bool = ...,
409
+ shell: bool = ...,
410
+ cwd: Optional[AnyPath] = ...,
411
+ env: Optional[_ENV] = ...,
412
+ universal_newlines: bool = ...,
413
+ startupinfo: Any = ...,
414
+ creationflags: int = ...,
415
+ restore_signals: bool = ...,
416
+ start_new_session: bool = ...,
417
+ pass_fds: Any = ...,
418
+ *,
419
+ timeout: Optional[float] = ...,
420
+ input: _TXT = ...,
421
+ encoding: Optional[str] = ...,
422
+ errors: Optional[str] = ...,
423
+ text: Literal[True],
424
+ ) -> str: ...
425
+ @overload
426
+ def check_output(
427
+ args: _CMD,
428
+ bufsize: int = ...,
429
+ executable: Optional[AnyPath] = ...,
430
+ stdin: _FILE = ...,
431
+ stderr: _FILE = ...,
432
+ preexec_fn: Callable[[], Any] = ...,
433
+ close_fds: bool = ...,
434
+ shell: bool = ...,
435
+ cwd: Optional[AnyPath] = ...,
436
+ env: Optional[_ENV] = ...,
437
+ universal_newlines: bool = ...,
438
+ startupinfo: Any = ...,
439
+ creationflags: int = ...,
440
+ restore_signals: bool = ...,
441
+ start_new_session: bool = ...,
442
+ pass_fds: Any = ...,
443
+ *,
444
+ timeout: Optional[float] = ...,
445
+ input: _TXT = ...,
446
+ encoding: str,
447
+ errors: Optional[str] = ...,
448
+ text: Optional[bool] = ...,
449
+ ) -> str: ...
450
+ @overload
451
+ def check_output(
452
+ args: _CMD,
453
+ bufsize: int = ...,
454
+ executable: Optional[AnyPath] = ...,
455
+ stdin: _FILE = ...,
456
+ stderr: _FILE = ...,
457
+ preexec_fn: Callable[[], Any] = ...,
458
+ close_fds: bool = ...,
459
+ shell: bool = ...,
460
+ cwd: Optional[AnyPath] = ...,
461
+ env: Optional[_ENV] = ...,
462
+ universal_newlines: bool = ...,
463
+ startupinfo: Any = ...,
464
+ creationflags: int = ...,
465
+ restore_signals: bool = ...,
466
+ start_new_session: bool = ...,
467
+ pass_fds: Any = ...,
468
+ *,
469
+ timeout: Optional[float] = ...,
470
+ input: _TXT = ...,
471
+ encoding: Optional[str] = ...,
472
+ errors: str,
473
+ text: Optional[bool] = ...,
474
+ ) -> str: ...
475
+ @overload
476
+ def check_output(
477
+ args: _CMD,
478
+ bufsize: int = ...,
479
+ executable: Optional[AnyPath] = ...,
480
+ stdin: _FILE = ...,
481
+ stderr: _FILE = ...,
482
+ preexec_fn: Callable[[], Any] = ...,
483
+ close_fds: bool = ...,
484
+ shell: bool = ...,
485
+ cwd: Optional[AnyPath] = ...,
486
+ env: Optional[_ENV] = ...,
487
+ *,
488
+ universal_newlines: Literal[True],
489
+ startupinfo: Any = ...,
490
+ creationflags: int = ...,
491
+ restore_signals: bool = ...,
492
+ start_new_session: bool = ...,
493
+ pass_fds: Any = ...,
494
+ # where the real keyword only ones start
495
+ timeout: Optional[float] = ...,
496
+ input: _TXT = ...,
497
+ encoding: Optional[str] = ...,
498
+ errors: Optional[str] = ...,
499
+ text: Optional[bool] = ...,
500
+ ) -> str: ...
501
+ @overload
502
+ def check_output(
503
+ args: _CMD,
504
+ bufsize: int = ...,
505
+ executable: Optional[AnyPath] = ...,
506
+ stdin: _FILE = ...,
507
+ stderr: _FILE = ...,
508
+ preexec_fn: Callable[[], Any] = ...,
509
+ close_fds: bool = ...,
510
+ shell: bool = ...,
511
+ cwd: Optional[AnyPath] = ...,
512
+ env: Optional[_ENV] = ...,
513
+ universal_newlines: Literal[False] = ...,
514
+ startupinfo: Any = ...,
515
+ creationflags: int = ...,
516
+ restore_signals: bool = ...,
517
+ start_new_session: bool = ...,
518
+ pass_fds: Any = ...,
519
+ *,
520
+ timeout: Optional[float] = ...,
521
+ input: _TXT = ...,
522
+ encoding: None = ...,
523
+ errors: None = ...,
524
+ text: Literal[None, False] = ...,
525
+ ) -> bytes: ...
526
+ @overload
527
+ def check_output(
528
+ args: _CMD,
529
+ bufsize: int = ...,
530
+ executable: Optional[AnyPath] = ...,
531
+ stdin: _FILE = ...,
532
+ stderr: _FILE = ...,
533
+ preexec_fn: Callable[[], Any] = ...,
534
+ close_fds: bool = ...,
535
+ shell: bool = ...,
536
+ cwd: Optional[AnyPath] = ...,
537
+ env: Optional[_ENV] = ...,
538
+ universal_newlines: bool = ...,
539
+ startupinfo: Any = ...,
540
+ creationflags: int = ...,
541
+ restore_signals: bool = ...,
542
+ start_new_session: bool = ...,
543
+ pass_fds: Any = ...,
544
+ *,
545
+ timeout: Optional[float] = ...,
546
+ input: _TXT = ...,
547
+ encoding: Optional[str] = ...,
548
+ errors: Optional[str] = ...,
549
+ text: Optional[bool] = ...,
550
+ ) -> Any: ... # morally: -> _TXT
551
+
552
+ else:
553
+ @overload
554
+ def check_output(
555
+ args: _CMD,
556
+ bufsize: int = ...,
557
+ executable: Optional[AnyPath] = ...,
558
+ stdin: _FILE = ...,
559
+ stderr: _FILE = ...,
560
+ preexec_fn: Callable[[], Any] = ...,
561
+ close_fds: bool = ...,
562
+ shell: bool = ...,
563
+ cwd: Optional[AnyPath] = ...,
564
+ env: Optional[_ENV] = ...,
565
+ universal_newlines: bool = ...,
566
+ startupinfo: Any = ...,
567
+ creationflags: int = ...,
568
+ restore_signals: bool = ...,
569
+ start_new_session: bool = ...,
570
+ pass_fds: Any = ...,
571
+ *,
572
+ timeout: Optional[float] = ...,
573
+ input: _TXT = ...,
574
+ encoding: str,
575
+ errors: Optional[str] = ...,
576
+ ) -> str: ...
577
+ @overload
578
+ def check_output(
579
+ args: _CMD,
580
+ bufsize: int = ...,
581
+ executable: Optional[AnyPath] = ...,
582
+ stdin: _FILE = ...,
583
+ stderr: _FILE = ...,
584
+ preexec_fn: Callable[[], Any] = ...,
585
+ close_fds: bool = ...,
586
+ shell: bool = ...,
587
+ cwd: Optional[AnyPath] = ...,
588
+ env: Optional[_ENV] = ...,
589
+ universal_newlines: bool = ...,
590
+ startupinfo: Any = ...,
591
+ creationflags: int = ...,
592
+ restore_signals: bool = ...,
593
+ start_new_session: bool = ...,
594
+ pass_fds: Any = ...,
595
+ *,
596
+ timeout: Optional[float] = ...,
597
+ input: _TXT = ...,
598
+ encoding: Optional[str] = ...,
599
+ errors: str,
600
+ ) -> str: ...
601
+ @overload
602
+ def check_output(
603
+ args: _CMD,
604
+ bufsize: int = ...,
605
+ executable: Optional[AnyPath] = ...,
606
+ stdin: _FILE = ...,
607
+ stderr: _FILE = ...,
608
+ preexec_fn: Callable[[], Any] = ...,
609
+ close_fds: bool = ...,
610
+ shell: bool = ...,
611
+ cwd: Optional[AnyPath] = ...,
612
+ env: Optional[_ENV] = ...,
613
+ startupinfo: Any = ...,
614
+ creationflags: int = ...,
615
+ restore_signals: bool = ...,
616
+ start_new_session: bool = ...,
617
+ pass_fds: Any = ...,
618
+ *,
619
+ universal_newlines: Literal[True],
620
+ timeout: Optional[float] = ...,
621
+ input: _TXT = ...,
622
+ encoding: Optional[str] = ...,
623
+ errors: Optional[str] = ...,
624
+ ) -> str: ...
625
+ @overload
626
+ def check_output(
627
+ args: _CMD,
628
+ bufsize: int = ...,
629
+ executable: Optional[AnyPath] = ...,
630
+ stdin: _FILE = ...,
631
+ stderr: _FILE = ...,
632
+ preexec_fn: Callable[[], Any] = ...,
633
+ close_fds: bool = ...,
634
+ shell: bool = ...,
635
+ cwd: Optional[AnyPath] = ...,
636
+ env: Optional[_ENV] = ...,
637
+ universal_newlines: Literal[False] = ...,
638
+ startupinfo: Any = ...,
639
+ creationflags: int = ...,
640
+ restore_signals: bool = ...,
641
+ start_new_session: bool = ...,
642
+ pass_fds: Any = ...,
643
+ *,
644
+ timeout: Optional[float] = ...,
645
+ input: _TXT = ...,
646
+ encoding: None = ...,
647
+ errors: None = ...,
648
+ ) -> bytes: ...
649
+ @overload
650
+ def check_output(
651
+ args: _CMD,
652
+ bufsize: int = ...,
653
+ executable: Optional[AnyPath] = ...,
654
+ stdin: _FILE = ...,
655
+ stderr: _FILE = ...,
656
+ preexec_fn: Callable[[], Any] = ...,
657
+ close_fds: bool = ...,
658
+ shell: bool = ...,
659
+ cwd: Optional[AnyPath] = ...,
660
+ env: Optional[_ENV] = ...,
661
+ universal_newlines: bool = ...,
662
+ startupinfo: Any = ...,
663
+ creationflags: int = ...,
664
+ restore_signals: bool = ...,
665
+ start_new_session: bool = ...,
666
+ pass_fds: Any = ...,
667
+ *,
668
+ timeout: Optional[float] = ...,
669
+ input: _TXT = ...,
670
+ encoding: Optional[str] = ...,
671
+ errors: Optional[str] = ...,
672
+ ) -> Any: ... # morally: -> _TXT
673
+
674
+ PIPE: int
675
+ STDOUT: int
676
+ DEVNULL: int
677
+
678
+ class SubprocessError(Exception): ...
679
+
680
+ class TimeoutExpired(SubprocessError):
681
+ def __init__(self, cmd: _CMD, timeout: float, output: Optional[_TXT] = ..., stderr: Optional[_TXT] = ...) -> None: ...
682
+ # morally: _CMD
683
+ cmd: Any
684
+ timeout: float
685
+ # morally: Optional[_TXT]
686
+ output: Any
687
+ stdout: Any
688
+ stderr: Any
689
+
690
+ class CalledProcessError(SubprocessError):
691
+ returncode: int
692
+ # morally: _CMD
693
+ cmd: Any
694
+ # morally: Optional[_TXT]
695
+ output: Any
696
+
697
+ # morally: Optional[_TXT]
698
+ stdout: Any
699
+ stderr: Any
700
+ def __init__(self, returncode: int, cmd: _CMD, output: Optional[_TXT] = ..., stderr: Optional[_TXT] = ...) -> None: ...
701
+
702
+ class Popen(Generic[AnyStr]):
703
+ args: _CMD
704
+ stdin: Optional[IO[AnyStr]]
705
+ stdout: Optional[IO[AnyStr]]
706
+ stderr: Optional[IO[AnyStr]]
707
+ pid: int
708
+ returncode: int
709
+ universal_newlines: bool
710
+
711
+ # Technically it is wrong that Popen provides __new__ instead of __init__
712
+ # but this shouldn't come up hopefully?
713
+
714
+ if sys.version_info >= (3, 7):
715
+ # text is added in 3.7
716
+ @overload
717
+ def __new__(
718
+ cls,
719
+ args: _CMD,
720
+ bufsize: int = ...,
721
+ executable: Optional[AnyPath] = ...,
722
+ stdin: Optional[_FILE] = ...,
723
+ stdout: Optional[_FILE] = ...,
724
+ stderr: Optional[_FILE] = ...,
725
+ preexec_fn: Optional[Callable[[], Any]] = ...,
726
+ close_fds: bool = ...,
727
+ shell: bool = ...,
728
+ cwd: Optional[AnyPath] = ...,
729
+ env: Optional[_ENV] = ...,
730
+ universal_newlines: bool = ...,
731
+ startupinfo: Optional[Any] = ...,
732
+ creationflags: int = ...,
733
+ restore_signals: bool = ...,
734
+ start_new_session: bool = ...,
735
+ pass_fds: Any = ...,
736
+ *,
737
+ text: Optional[bool] = ...,
738
+ encoding: str,
739
+ errors: Optional[str] = ...,
740
+ ) -> Popen[str]: ...
741
+ @overload
742
+ def __new__(
743
+ cls,
744
+ args: _CMD,
745
+ bufsize: int = ...,
746
+ executable: Optional[AnyPath] = ...,
747
+ stdin: Optional[_FILE] = ...,
748
+ stdout: Optional[_FILE] = ...,
749
+ stderr: Optional[_FILE] = ...,
750
+ preexec_fn: Optional[Callable[[], Any]] = ...,
751
+ close_fds: bool = ...,
752
+ shell: bool = ...,
753
+ cwd: Optional[AnyPath] = ...,
754
+ env: Optional[_ENV] = ...,
755
+ universal_newlines: bool = ...,
756
+ startupinfo: Optional[Any] = ...,
757
+ creationflags: int = ...,
758
+ restore_signals: bool = ...,
759
+ start_new_session: bool = ...,
760
+ pass_fds: Any = ...,
761
+ *,
762
+ text: Optional[bool] = ...,
763
+ encoding: Optional[str] = ...,
764
+ errors: str,
765
+ ) -> Popen[str]: ...
766
+ @overload
767
+ def __new__(
768
+ cls,
769
+ args: _CMD,
770
+ bufsize: int = ...,
771
+ executable: Optional[AnyPath] = ...,
772
+ stdin: Optional[_FILE] = ...,
773
+ stdout: Optional[_FILE] = ...,
774
+ stderr: Optional[_FILE] = ...,
775
+ preexec_fn: Optional[Callable[[], Any]] = ...,
776
+ close_fds: bool = ...,
777
+ shell: bool = ...,
778
+ cwd: Optional[AnyPath] = ...,
779
+ env: Optional[_ENV] = ...,
780
+ *,
781
+ universal_newlines: Literal[True],
782
+ startupinfo: Optional[Any] = ...,
783
+ creationflags: int = ...,
784
+ restore_signals: bool = ...,
785
+ start_new_session: bool = ...,
786
+ pass_fds: Any = ...,
787
+ # where the *real* keyword only args start
788
+ text: Optional[bool] = ...,
789
+ encoding: Optional[str] = ...,
790
+ errors: Optional[str] = ...,
791
+ ) -> Popen[str]: ...
792
+ @overload
793
+ def __new__(
794
+ cls,
795
+ args: _CMD,
796
+ bufsize: int = ...,
797
+ executable: Optional[AnyPath] = ...,
798
+ stdin: Optional[_FILE] = ...,
799
+ stdout: Optional[_FILE] = ...,
800
+ stderr: Optional[_FILE] = ...,
801
+ preexec_fn: Optional[Callable[[], Any]] = ...,
802
+ close_fds: bool = ...,
803
+ shell: bool = ...,
804
+ cwd: Optional[AnyPath] = ...,
805
+ env: Optional[_ENV] = ...,
806
+ universal_newlines: bool = ...,
807
+ startupinfo: Optional[Any] = ...,
808
+ creationflags: int = ...,
809
+ restore_signals: bool = ...,
810
+ start_new_session: bool = ...,
811
+ pass_fds: Any = ...,
812
+ *,
813
+ text: Literal[True],
814
+ encoding: Optional[str] = ...,
815
+ errors: Optional[str] = ...,
816
+ ) -> Popen[str]: ...
817
+ @overload
818
+ def __new__(
819
+ cls,
820
+ args: _CMD,
821
+ bufsize: int = ...,
822
+ executable: Optional[AnyPath] = ...,
823
+ stdin: Optional[_FILE] = ...,
824
+ stdout: Optional[_FILE] = ...,
825
+ stderr: Optional[_FILE] = ...,
826
+ preexec_fn: Optional[Callable[[], Any]] = ...,
827
+ close_fds: bool = ...,
828
+ shell: bool = ...,
829
+ cwd: Optional[AnyPath] = ...,
830
+ env: Optional[_ENV] = ...,
831
+ universal_newlines: Literal[False] = ...,
832
+ startupinfo: Optional[Any] = ...,
833
+ creationflags: int = ...,
834
+ restore_signals: bool = ...,
835
+ start_new_session: bool = ...,
836
+ pass_fds: Any = ...,
837
+ *,
838
+ text: Literal[None, False] = ...,
839
+ encoding: None = ...,
840
+ errors: None = ...,
841
+ ) -> Popen[bytes]: ...
842
+ @overload
843
+ def __new__(
844
+ cls,
845
+ args: _CMD,
846
+ bufsize: int = ...,
847
+ executable: Optional[AnyPath] = ...,
848
+ stdin: Optional[_FILE] = ...,
849
+ stdout: Optional[_FILE] = ...,
850
+ stderr: Optional[_FILE] = ...,
851
+ preexec_fn: Optional[Callable[[], Any]] = ...,
852
+ close_fds: bool = ...,
853
+ shell: bool = ...,
854
+ cwd: Optional[AnyPath] = ...,
855
+ env: Optional[_ENV] = ...,
856
+ universal_newlines: bool = ...,
857
+ startupinfo: Optional[Any] = ...,
858
+ creationflags: int = ...,
859
+ restore_signals: bool = ...,
860
+ start_new_session: bool = ...,
861
+ pass_fds: Any = ...,
862
+ *,
863
+ text: Optional[bool] = ...,
864
+ encoding: Optional[str] = ...,
865
+ errors: Optional[str] = ...,
866
+ ) -> Popen[Any]: ...
867
+ else:
868
+ @overload
869
+ def __new__(
870
+ cls,
871
+ args: _CMD,
872
+ bufsize: int = ...,
873
+ executable: Optional[AnyPath] = ...,
874
+ stdin: Optional[_FILE] = ...,
875
+ stdout: Optional[_FILE] = ...,
876
+ stderr: Optional[_FILE] = ...,
877
+ preexec_fn: Optional[Callable[[], Any]] = ...,
878
+ close_fds: bool = ...,
879
+ shell: bool = ...,
880
+ cwd: Optional[AnyPath] = ...,
881
+ env: Optional[_ENV] = ...,
882
+ universal_newlines: bool = ...,
883
+ startupinfo: Optional[Any] = ...,
884
+ creationflags: int = ...,
885
+ restore_signals: bool = ...,
886
+ start_new_session: bool = ...,
887
+ pass_fds: Any = ...,
888
+ *,
889
+ encoding: str,
890
+ errors: Optional[str] = ...,
891
+ ) -> Popen[str]: ...
892
+ @overload
893
+ def __new__(
894
+ cls,
895
+ args: _CMD,
896
+ bufsize: int = ...,
897
+ executable: Optional[AnyPath] = ...,
898
+ stdin: Optional[_FILE] = ...,
899
+ stdout: Optional[_FILE] = ...,
900
+ stderr: Optional[_FILE] = ...,
901
+ preexec_fn: Optional[Callable[[], Any]] = ...,
902
+ close_fds: bool = ...,
903
+ shell: bool = ...,
904
+ cwd: Optional[AnyPath] = ...,
905
+ env: Optional[_ENV] = ...,
906
+ universal_newlines: bool = ...,
907
+ startupinfo: Optional[Any] = ...,
908
+ creationflags: int = ...,
909
+ restore_signals: bool = ...,
910
+ start_new_session: bool = ...,
911
+ pass_fds: Any = ...,
912
+ *,
913
+ encoding: Optional[str] = ...,
914
+ errors: str,
915
+ ) -> Popen[str]: ...
916
+ @overload
917
+ def __new__(
918
+ cls,
919
+ args: _CMD,
920
+ bufsize: int = ...,
921
+ executable: Optional[AnyPath] = ...,
922
+ stdin: Optional[_FILE] = ...,
923
+ stdout: Optional[_FILE] = ...,
924
+ stderr: Optional[_FILE] = ...,
925
+ preexec_fn: Optional[Callable[[], Any]] = ...,
926
+ close_fds: bool = ...,
927
+ shell: bool = ...,
928
+ cwd: Optional[AnyPath] = ...,
929
+ env: Optional[_ENV] = ...,
930
+ *,
931
+ universal_newlines: Literal[True],
932
+ startupinfo: Optional[Any] = ...,
933
+ creationflags: int = ...,
934
+ restore_signals: bool = ...,
935
+ start_new_session: bool = ...,
936
+ pass_fds: Any = ...,
937
+ # where the *real* keyword only args start
938
+ encoding: Optional[str] = ...,
939
+ errors: Optional[str] = ...,
940
+ ) -> Popen[str]: ...
941
+ @overload
942
+ def __new__(
943
+ cls,
944
+ args: _CMD,
945
+ bufsize: int = ...,
946
+ executable: Optional[AnyPath] = ...,
947
+ stdin: Optional[_FILE] = ...,
948
+ stdout: Optional[_FILE] = ...,
949
+ stderr: Optional[_FILE] = ...,
950
+ preexec_fn: Optional[Callable[[], Any]] = ...,
951
+ close_fds: bool = ...,
952
+ shell: bool = ...,
953
+ cwd: Optional[AnyPath] = ...,
954
+ env: Optional[_ENV] = ...,
955
+ universal_newlines: Literal[False] = ...,
956
+ startupinfo: Optional[Any] = ...,
957
+ creationflags: int = ...,
958
+ restore_signals: bool = ...,
959
+ start_new_session: bool = ...,
960
+ pass_fds: Any = ...,
961
+ *,
962
+ encoding: None = ...,
963
+ errors: None = ...,
964
+ ) -> Popen[bytes]: ...
965
+ @overload
966
+ def __new__(
967
+ cls,
968
+ args: _CMD,
969
+ bufsize: int = ...,
970
+ executable: Optional[AnyPath] = ...,
971
+ stdin: Optional[_FILE] = ...,
972
+ stdout: Optional[_FILE] = ...,
973
+ stderr: Optional[_FILE] = ...,
974
+ preexec_fn: Optional[Callable[[], Any]] = ...,
975
+ close_fds: bool = ...,
976
+ shell: bool = ...,
977
+ cwd: Optional[AnyPath] = ...,
978
+ env: Optional[_ENV] = ...,
979
+ universal_newlines: bool = ...,
980
+ startupinfo: Optional[Any] = ...,
981
+ creationflags: int = ...,
982
+ restore_signals: bool = ...,
983
+ start_new_session: bool = ...,
984
+ pass_fds: Any = ...,
985
+ *,
986
+ encoding: Optional[str] = ...,
987
+ errors: Optional[str] = ...,
988
+ ) -> Popen[Any]: ...
989
+ def poll(self) -> Optional[int]: ...
990
+ if sys.version_info >= (3, 7):
991
+ def wait(self, timeout: Optional[float] = ...) -> int: ...
992
+ else:
993
+ def wait(self, timeout: Optional[float] = ..., endtime: Optional[float] = ...) -> int: ...
994
+ # Return str/bytes
995
+ def communicate(
996
+ self,
997
+ input: Optional[AnyStr] = ...,
998
+ timeout: Optional[float] = ...,
999
+ # morally this should be optional
1000
+ ) -> Tuple[AnyStr, AnyStr]: ...
1001
+ def send_signal(self, sig: int) -> None: ...
1002
+ def terminate(self) -> None: ...
1003
+ def kill(self) -> None: ...
1004
+ def __enter__(self: _S) -> _S: ...
1005
+ def __exit__(
1006
+ self, type: Optional[Type[BaseException]], value: Optional[BaseException], traceback: Optional[TracebackType]
1007
+ ) -> None: ...
1008
+ if sys.version_info >= (3, 9):
1009
+ def __class_getitem__(cls, item: Any) -> GenericAlias: ...
1010
+
1011
+ # The result really is always a str.
1012
+ def getstatusoutput(cmd: _TXT) -> Tuple[int, str]: ...
1013
+ def getoutput(cmd: _TXT) -> str: ...
1014
+ def list2cmdline(seq: Sequence[str]) -> str: ... # undocumented
1015
+
1016
+ if sys.platform == "win32":
1017
+ class STARTUPINFO:
1018
+ if sys.version_info >= (3, 7):
1019
+ def __init__(
1020
+ self,
1021
+ *,
1022
+ dwFlags: int = ...,
1023
+ hStdInput: Optional[Any] = ...,
1024
+ hStdOutput: Optional[Any] = ...,
1025
+ hStdError: Optional[Any] = ...,
1026
+ wShowWindow: int = ...,
1027
+ lpAttributeList: Optional[Mapping[str, Any]] = ...,
1028
+ ) -> None: ...
1029
+ dwFlags: int
1030
+ hStdInput: Optional[Any]
1031
+ hStdOutput: Optional[Any]
1032
+ hStdError: Optional[Any]
1033
+ wShowWindow: int
1034
+ if sys.version_info >= (3, 7):
1035
+ lpAttributeList: Mapping[str, Any]
1036
+ STD_INPUT_HANDLE: Any
1037
+ STD_OUTPUT_HANDLE: Any
1038
+ STD_ERROR_HANDLE: Any
1039
+ SW_HIDE: int
1040
+ STARTF_USESTDHANDLES: int
1041
+ STARTF_USESHOWWINDOW: int
1042
+ CREATE_NEW_CONSOLE: int
1043
+ CREATE_NEW_PROCESS_GROUP: int
1044
+ if sys.version_info >= (3, 7):
1045
+ ABOVE_NORMAL_PRIORITY_CLASS: int
1046
+ BELOW_NORMAL_PRIORITY_CLASS: int
1047
+ HIGH_PRIORITY_CLASS: int
1048
+ IDLE_PRIORITY_CLASS: int
1049
+ NORMAL_PRIORITY_CLASS: int
1050
+ REALTIME_PRIORITY_CLASS: int
1051
+ CREATE_NO_WINDOW: int
1052
+ DETACHED_PROCESS: int
1053
+ CREATE_DEFAULT_ERROR_MODE: int
1054
+ CREATE_BREAKAWAY_FROM_JOB: int
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/3/symbol.pyi ADDED
@@ -0,0 +1,90 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from typing import Dict
2
+
3
+ single_input: int
4
+ file_input: int
5
+ eval_input: int
6
+ decorator: int
7
+ decorators: int
8
+ decorated: int
9
+ async_funcdef: int
10
+ funcdef: int
11
+ parameters: int
12
+ typedargslist: int
13
+ tfpdef: int
14
+ varargslist: int
15
+ vfpdef: int
16
+ stmt: int
17
+ simple_stmt: int
18
+ small_stmt: int
19
+ expr_stmt: int
20
+ annassign: int
21
+ testlist_star_expr: int
22
+ augassign: int
23
+ del_stmt: int
24
+ pass_stmt: int
25
+ flow_stmt: int
26
+ break_stmt: int
27
+ continue_stmt: int
28
+ return_stmt: int
29
+ yield_stmt: int
30
+ raise_stmt: int
31
+ import_stmt: int
32
+ import_name: int
33
+ import_from: int
34
+ import_as_name: int
35
+ dotted_as_name: int
36
+ import_as_names: int
37
+ dotted_as_names: int
38
+ dotted_name: int
39
+ global_stmt: int
40
+ nonlocal_stmt: int
41
+ assert_stmt: int
42
+ compound_stmt: int
43
+ async_stmt: int
44
+ if_stmt: int
45
+ while_stmt: int
46
+ for_stmt: int
47
+ try_stmt: int
48
+ with_stmt: int
49
+ with_item: int
50
+ except_clause: int
51
+ suite: int
52
+ test: int
53
+ test_nocond: int
54
+ lambdef: int
55
+ lambdef_nocond: int
56
+ or_test: int
57
+ and_test: int
58
+ not_test: int
59
+ comparison: int
60
+ comp_op: int
61
+ star_expr: int
62
+ expr: int
63
+ xor_expr: int
64
+ and_expr: int
65
+ shift_expr: int
66
+ arith_expr: int
67
+ term: int
68
+ factor: int
69
+ power: int
70
+ atom_expr: int
71
+ atom: int
72
+ testlist_comp: int
73
+ trailer: int
74
+ subscriptlist: int
75
+ subscript: int
76
+ sliceop: int
77
+ exprlist: int
78
+ testlist: int
79
+ dictorsetmaker: int
80
+ classdef: int
81
+ arglist: int
82
+ argument: int
83
+ comp_iter: int
84
+ comp_for: int
85
+ comp_if: int
86
+ encoding_decl: int
87
+ yield_expr: int
88
+ yield_arg: int
89
+
90
+ sym_name: Dict[int, str]
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/3/sys.pyi ADDED
@@ -0,0 +1,235 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import sys
2
+ from builtins import object as _object
3
+ from importlib.abc import MetaPathFinder, PathEntryFinder
4
+ from types import FrameType, ModuleType, TracebackType
5
+ from typing import (
6
+ Any,
7
+ AsyncGenerator,
8
+ Callable,
9
+ Dict,
10
+ List,
11
+ NoReturn,
12
+ Optional,
13
+ Sequence,
14
+ TextIO,
15
+ Tuple,
16
+ Type,
17
+ TypeVar,
18
+ Union,
19
+ overload,
20
+ )
21
+
22
+ _T = TypeVar("_T")
23
+
24
+ # The following type alias are stub-only and do not exist during runtime
25
+ _ExcInfo = Tuple[Type[BaseException], BaseException, TracebackType]
26
+ _OptExcInfo = Union[_ExcInfo, Tuple[None, None, None]]
27
+
28
+ # ----- sys variables -----
29
+ if sys.platform != "win32":
30
+ abiflags: str
31
+ argv: List[str]
32
+ base_exec_prefix: str
33
+ base_prefix: str
34
+ byteorder: str
35
+ builtin_module_names: Sequence[str] # actually a tuple of strings
36
+ copyright: str
37
+ if sys.platform == "win32":
38
+ dllhandle: int
39
+ dont_write_bytecode: bool
40
+ displayhook: Callable[[object], Any]
41
+ excepthook: Callable[[Type[BaseException], BaseException, TracebackType], Any]
42
+ exec_prefix: str
43
+ executable: str
44
+ float_repr_style: str
45
+ hexversion: int
46
+ last_type: Optional[Type[BaseException]]
47
+ last_value: Optional[BaseException]
48
+ last_traceback: Optional[TracebackType]
49
+ maxsize: int
50
+ maxunicode: int
51
+ meta_path: List[MetaPathFinder]
52
+ modules: Dict[str, ModuleType]
53
+ path: List[str]
54
+ path_hooks: List[Any] # TODO precise type; function, path to finder
55
+ path_importer_cache: Dict[str, Optional[PathEntryFinder]]
56
+ platform: str
57
+ if sys.version_info >= (3, 9):
58
+ platlibdir: str
59
+ prefix: str
60
+ if sys.version_info >= (3, 8):
61
+ pycache_prefix: Optional[str]
62
+ ps1: str
63
+ ps2: str
64
+ stdin: TextIO
65
+ stdout: TextIO
66
+ stderr: TextIO
67
+ __stdin__: TextIO
68
+ __stdout__: TextIO
69
+ __stderr__: TextIO
70
+ tracebacklimit: int
71
+ version: str
72
+ api_version: int
73
+ warnoptions: Any
74
+ # Each entry is a tuple of the form (action, message, category, module,
75
+ # lineno)
76
+ if sys.platform == "win32":
77
+ winver: str
78
+ _xoptions: Dict[Any, Any]
79
+
80
+ flags: _flags
81
+
82
+ class _flags:
83
+ debug: int
84
+ division_warning: int
85
+ inspect: int
86
+ interactive: int
87
+ optimize: int
88
+ dont_write_bytecode: int
89
+ no_user_site: int
90
+ no_site: int
91
+ ignore_environment: int
92
+ verbose: int
93
+ bytes_warning: int
94
+ quiet: int
95
+ hash_randomization: int
96
+ if sys.version_info >= (3, 7):
97
+ dev_mode: int
98
+ utf8_mode: int
99
+
100
+ float_info: _float_info
101
+
102
+ class _float_info:
103
+ epsilon: float # DBL_EPSILON
104
+ dig: int # DBL_DIG
105
+ mant_dig: int # DBL_MANT_DIG
106
+ max: float # DBL_MAX
107
+ max_exp: int # DBL_MAX_EXP
108
+ max_10_exp: int # DBL_MAX_10_EXP
109
+ min: float # DBL_MIN
110
+ min_exp: int # DBL_MIN_EXP
111
+ min_10_exp: int # DBL_MIN_10_EXP
112
+ radix: int # FLT_RADIX
113
+ rounds: int # FLT_ROUNDS
114
+
115
+ hash_info: _hash_info
116
+
117
+ class _hash_info:
118
+ width: int
119
+ modulus: int
120
+ inf: int
121
+ nan: int
122
+ imag: int
123
+
124
+ implementation: _implementation
125
+
126
+ class _implementation:
127
+ name: str
128
+ version: _version_info
129
+ hexversion: int
130
+ cache_tag: str
131
+
132
+ int_info: _int_info
133
+
134
+ class _int_info:
135
+ bits_per_digit: int
136
+ sizeof_digit: int
137
+
138
+ class _version_info(Tuple[int, int, int, str, int]):
139
+ major: int
140
+ minor: int
141
+ micro: int
142
+ releaselevel: str
143
+ serial: int
144
+
145
+ version_info: _version_info
146
+
147
+ def call_tracing(__func: Callable[..., _T], __args: Any) -> _T: ...
148
+ def _clear_type_cache() -> None: ...
149
+ def _current_frames() -> Dict[int, Any]: ...
150
+ def _debugmallocstats() -> None: ...
151
+ def __displayhook__(value: object) -> None: ...
152
+ def __excepthook__(type_: Type[BaseException], value: BaseException, traceback: TracebackType) -> None: ...
153
+ def exc_info() -> _OptExcInfo: ...
154
+
155
+ # sys.exit() accepts an optional argument of anything printable
156
+ def exit(__status: object = ...) -> NoReturn: ...
157
+ def getdefaultencoding() -> str: ...
158
+
159
+ if sys.platform != "win32":
160
+ def getdlopenflags() -> int: ...
161
+
162
+ def getfilesystemencoding() -> str: ...
163
+ def getfilesystemencodeerrors() -> str: ...
164
+ def getrefcount(__object: Any) -> int: ...
165
+ def getrecursionlimit() -> int: ...
166
+ @overload
167
+ def getsizeof(obj: object) -> int: ...
168
+ @overload
169
+ def getsizeof(obj: object, default: int) -> int: ...
170
+ def getswitchinterval() -> float: ...
171
+ def _getframe(__depth: int = ...) -> FrameType: ...
172
+
173
+ _ProfileFunc = Callable[[FrameType, str, Any], Any]
174
+
175
+ def getprofile() -> Optional[_ProfileFunc]: ...
176
+ def setprofile(profilefunc: Optional[_ProfileFunc]) -> None: ...
177
+
178
+ _TraceFunc = Callable[[FrameType, str, Any], Optional[Callable[[FrameType, str, Any], Any]]]
179
+
180
+ def gettrace() -> Optional[_TraceFunc]: ...
181
+ def settrace(tracefunc: Optional[_TraceFunc]) -> None: ...
182
+
183
+ class _WinVersion(Tuple[int, int, int, int, str, int, int, int, int, Tuple[int, int, int]]):
184
+ major: int
185
+ minor: int
186
+ build: int
187
+ platform: int
188
+ service_pack: str
189
+ service_pack_minor: int
190
+ service_pack_major: int
191
+ suite_mast: int
192
+ product_type: int
193
+ platform_version: Tuple[int, int, int]
194
+
195
+ if sys.platform == "win32":
196
+ def getwindowsversion() -> _WinVersion: ...
197
+
198
+ def intern(__string: str) -> str: ...
199
+ def is_finalizing() -> bool: ...
200
+
201
+ if sys.version_info >= (3, 7):
202
+ __breakpointhook__: Any # contains the original value of breakpointhook
203
+ def breakpointhook(*args: Any, **kwargs: Any) -> Any: ...
204
+
205
+ if sys.platform != "win32":
206
+ def setdlopenflags(__flags: int) -> None: ...
207
+
208
+ def setrecursionlimit(__limit: int) -> None: ...
209
+ def setswitchinterval(__interval: float) -> None: ...
210
+ def gettotalrefcount() -> int: ... # Debug builds only
211
+
212
+ if sys.version_info < (3, 9):
213
+ def getcheckinterval() -> int: ... # deprecated
214
+ def setcheckinterval(__n: int) -> None: ... # deprecated
215
+
216
+ if sys.version_info >= (3, 8):
217
+ # not exported by sys
218
+ class UnraisableHookArgs:
219
+ exc_type: Type[BaseException]
220
+ exc_value: Optional[BaseException]
221
+ exc_traceback: Optional[TracebackType]
222
+ err_msg: Optional[str]
223
+ object: Optional[_object]
224
+ unraisablehook: Callable[[UnraisableHookArgs], Any]
225
+ def addaudithook(hook: Callable[[str, Tuple[Any, ...]], Any]) -> None: ...
226
+ def audit(__event: str, *args: Any) -> None: ...
227
+
228
+ _AsyncgenHook = Optional[Callable[[AsyncGenerator[Any, Any]], None]]
229
+
230
+ class _asyncgen_hooks(Tuple[_AsyncgenHook, _AsyncgenHook]):
231
+ firstiter: _AsyncgenHook
232
+ finalizer: _AsyncgenHook
233
+
234
+ def get_asyncgen_hooks() -> _asyncgen_hooks: ...
235
+ def set_asyncgen_hooks(firstiter: _AsyncgenHook = ..., finalizer: _AsyncgenHook = ...) -> None: ...
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/3/tokenize.pyi ADDED
@@ -0,0 +1,116 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import sys
2
+ from builtins import open as _builtin_open
3
+ from os import PathLike
4
+ from token import * # noqa: F403
5
+ from typing import (
6
+ Any,
7
+ Callable,
8
+ Dict,
9
+ Generator,
10
+ Iterable,
11
+ List,
12
+ NamedTuple,
13
+ Optional,
14
+ Pattern,
15
+ Sequence,
16
+ Set,
17
+ TextIO,
18
+ Tuple,
19
+ Union,
20
+ )
21
+
22
+ if sys.version_info < (3, 7):
23
+ COMMENT: int
24
+ NL: int
25
+ ENCODING: int
26
+
27
+ cookie_re: Pattern[str]
28
+ blank_re: Pattern[bytes]
29
+
30
+ _Position = Tuple[int, int]
31
+
32
+ class _TokenInfo(NamedTuple):
33
+ type: int
34
+ string: str
35
+ start: _Position
36
+ end: _Position
37
+ line: str
38
+
39
+ class TokenInfo(_TokenInfo):
40
+ @property
41
+ def exact_type(self) -> int: ...
42
+
43
+ # Backwards compatible tokens can be sequences of a shorter length too
44
+ _Token = Union[TokenInfo, Sequence[Union[int, str, _Position]]]
45
+
46
+ class TokenError(Exception): ...
47
+ class StopTokenizing(Exception): ... # undocumented
48
+
49
+ class Untokenizer:
50
+ tokens: List[str]
51
+ prev_row: int
52
+ prev_col: int
53
+ encoding: Optional[str]
54
+ def __init__(self) -> None: ...
55
+ def add_whitespace(self, start: _Position) -> None: ...
56
+ def untokenize(self, iterable: Iterable[_Token]) -> str: ...
57
+ def compat(self, token: Sequence[Union[int, str]], iterable: Iterable[_Token]) -> None: ...
58
+
59
+ # the docstring says "returns bytes" but is incorrect --
60
+ # if the ENCODING token is missing, it skips the encode
61
+ def untokenize(iterable: Iterable[_Token]) -> Any: ...
62
+ def detect_encoding(readline: Callable[[], bytes]) -> Tuple[str, Sequence[bytes]]: ...
63
+ def tokenize(readline: Callable[[], bytes]) -> Generator[TokenInfo, None, None]: ...
64
+ def generate_tokens(readline: Callable[[], str]) -> Generator[TokenInfo, None, None]: ... # undocumented
65
+ def open(filename: Union[str, bytes, int, PathLike[Any]]) -> TextIO: ...
66
+ def group(*choices: str) -> str: ... # undocumented
67
+ def any(*choices: str) -> str: ... # undocumented
68
+ def maybe(*choices: str) -> str: ... # undocumented
69
+
70
+ Whitespace: str # undocumented
71
+ Comment: str # undocumented
72
+ Ignore: str # undocumented
73
+ Name: str # undocumented
74
+
75
+ Hexnumber: str # undocumented
76
+ Binnumber: str # undocumented
77
+ Octnumber: str # undocumented
78
+ Decnumber: str # undocumented
79
+ Intnumber: str # undocumented
80
+ Exponent: str # undocumented
81
+ Pointfloat: str # undocumented
82
+ Expfloat: str # undocumented
83
+ Floatnumber: str # undocumented
84
+ Imagnumber: str # undocumented
85
+ Number: str # undocumented
86
+
87
+ def _all_string_prefixes() -> Set[str]: ... # undocumented
88
+
89
+ StringPrefix: str # undocumented
90
+
91
+ Single: str # undocumented
92
+ Double: str # undocumented
93
+ Single3: str # undocumented
94
+ Double3: str # undocumented
95
+ Triple: str # undocumented
96
+ String: str # undocumented
97
+
98
+ if sys.version_info < (3, 7):
99
+ Operator: str # undocumented
100
+ Bracket: str # undocumented
101
+
102
+ Special: str # undocumented
103
+ Funny: str # undocumented
104
+
105
+ PlainToken: str # undocumented
106
+ Token: str # undocumented
107
+
108
+ ContStr: str # undocumented
109
+ PseudoExtras: str # undocumented
110
+ PseudoToken: str # undocumented
111
+
112
+ endpats: Dict[str, str] # undocumented
113
+ single_quoted: Set[str] # undocumented
114
+ triple_quoted: Set[str] # undocumented
115
+
116
+ tabsize: int # undocumented
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/3/types.pyi ADDED
@@ -0,0 +1,334 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import sys
2
+ from typing import (
3
+ Any,
4
+ Awaitable,
5
+ Callable,
6
+ Dict,
7
+ Generic,
8
+ Iterable,
9
+ Iterator,
10
+ Mapping,
11
+ Optional,
12
+ Tuple,
13
+ Type,
14
+ TypeVar,
15
+ Union,
16
+ overload,
17
+ )
18
+ from typing_extensions import Literal, final
19
+
20
+ # ModuleType is exported from this module, but for circular import
21
+ # reasons exists in its own stub file (with ModuleSpec and Loader).
22
+ from _importlib_modulespec import ModuleType as ModuleType # Exported
23
+
24
+ # Note, all classes "defined" here require special handling.
25
+
26
+ _T = TypeVar("_T")
27
+ _T_co = TypeVar("_T_co", covariant=True)
28
+ _T_contra = TypeVar("_T_contra", contravariant=True)
29
+ _KT = TypeVar("_KT")
30
+ _VT = TypeVar("_VT")
31
+
32
+ class _Cell:
33
+ cell_contents: Any
34
+
35
+ class FunctionType:
36
+ __closure__: Optional[Tuple[_Cell, ...]]
37
+ __code__: CodeType
38
+ __defaults__: Optional[Tuple[Any, ...]]
39
+ __dict__: Dict[str, Any]
40
+ __globals__: Dict[str, Any]
41
+ __name__: str
42
+ __qualname__: str
43
+ __annotations__: Dict[str, Any]
44
+ __kwdefaults__: Dict[str, Any]
45
+ def __init__(
46
+ self,
47
+ code: CodeType,
48
+ globals: Dict[str, Any],
49
+ name: Optional[str] = ...,
50
+ argdefs: Optional[Tuple[object, ...]] = ...,
51
+ closure: Optional[Tuple[_Cell, ...]] = ...,
52
+ ) -> None: ...
53
+ def __call__(self, *args: Any, **kwargs: Any) -> Any: ...
54
+ def __get__(self, obj: Optional[object], type: Optional[type]) -> MethodType: ...
55
+
56
+ LambdaType = FunctionType
57
+
58
+ class CodeType:
59
+ """Create a code object. Not for the faint of heart."""
60
+
61
+ co_argcount: int
62
+ if sys.version_info >= (3, 8):
63
+ co_posonlyargcount: int
64
+ co_kwonlyargcount: int
65
+ co_nlocals: int
66
+ co_stacksize: int
67
+ co_flags: int
68
+ co_code: bytes
69
+ co_consts: Tuple[Any, ...]
70
+ co_names: Tuple[str, ...]
71
+ co_varnames: Tuple[str, ...]
72
+ co_filename: str
73
+ co_name: str
74
+ co_firstlineno: int
75
+ co_lnotab: bytes
76
+ co_freevars: Tuple[str, ...]
77
+ co_cellvars: Tuple[str, ...]
78
+ if sys.version_info >= (3, 8):
79
+ def __init__(
80
+ self,
81
+ argcount: int,
82
+ posonlyargcount: int,
83
+ kwonlyargcount: int,
84
+ nlocals: int,
85
+ stacksize: int,
86
+ flags: int,
87
+ codestring: bytes,
88
+ constants: Tuple[Any, ...],
89
+ names: Tuple[str, ...],
90
+ varnames: Tuple[str, ...],
91
+ filename: str,
92
+ name: str,
93
+ firstlineno: int,
94
+ lnotab: bytes,
95
+ freevars: Tuple[str, ...] = ...,
96
+ cellvars: Tuple[str, ...] = ...,
97
+ ) -> None: ...
98
+ else:
99
+ def __init__(
100
+ self,
101
+ argcount: int,
102
+ kwonlyargcount: int,
103
+ nlocals: int,
104
+ stacksize: int,
105
+ flags: int,
106
+ codestring: bytes,
107
+ constants: Tuple[Any, ...],
108
+ names: Tuple[str, ...],
109
+ varnames: Tuple[str, ...],
110
+ filename: str,
111
+ name: str,
112
+ firstlineno: int,
113
+ lnotab: bytes,
114
+ freevars: Tuple[str, ...] = ...,
115
+ cellvars: Tuple[str, ...] = ...,
116
+ ) -> None: ...
117
+ if sys.version_info >= (3, 8):
118
+ def replace(
119
+ self,
120
+ *,
121
+ co_argcount: int = ...,
122
+ co_posonlyargcount: int = ...,
123
+ co_kwonlyargcount: int = ...,
124
+ co_nlocals: int = ...,
125
+ co_stacksize: int = ...,
126
+ co_flags: int = ...,
127
+ co_firstlineno: int = ...,
128
+ co_code: bytes = ...,
129
+ co_consts: Tuple[Any, ...] = ...,
130
+ co_names: Tuple[str, ...] = ...,
131
+ co_varnames: Tuple[str, ...] = ...,
132
+ co_freevars: Tuple[str, ...] = ...,
133
+ co_cellvars: Tuple[str, ...] = ...,
134
+ co_filename: str = ...,
135
+ co_name: str = ...,
136
+ co_lnotab: bytes = ...,
137
+ ) -> CodeType: ...
138
+
139
+ class MappingProxyType(Mapping[_KT, _VT], Generic[_KT, _VT]):
140
+ def __init__(self, mapping: Mapping[_KT, _VT]) -> None: ...
141
+ def __getitem__(self, k: _KT) -> _VT: ...
142
+ def __iter__(self) -> Iterator[_KT]: ...
143
+ def __len__(self) -> int: ...
144
+ def copy(self) -> Dict[_KT, _VT]: ...
145
+
146
+ class SimpleNamespace:
147
+ def __init__(self, **kwargs: Any) -> None: ...
148
+ def __getattribute__(self, name: str) -> Any: ...
149
+ def __setattr__(self, name: str, value: Any) -> None: ...
150
+ def __delattr__(self, name: str) -> None: ...
151
+
152
+ class GeneratorType:
153
+ gi_code: CodeType
154
+ gi_frame: FrameType
155
+ gi_running: bool
156
+ gi_yieldfrom: Optional[GeneratorType]
157
+ def __iter__(self) -> GeneratorType: ...
158
+ def __next__(self) -> Any: ...
159
+ def close(self) -> None: ...
160
+ def send(self, __arg: Any) -> Any: ...
161
+ @overload
162
+ def throw(
163
+ self, __typ: Type[BaseException], __val: Union[BaseException, object] = ..., __tb: Optional[TracebackType] = ...
164
+ ) -> Any: ...
165
+ @overload
166
+ def throw(self, __typ: BaseException, __val: None = ..., __tb: Optional[TracebackType] = ...) -> Any: ...
167
+
168
+ class AsyncGeneratorType(Generic[_T_co, _T_contra]):
169
+ ag_await: Optional[Awaitable[Any]]
170
+ ag_frame: FrameType
171
+ ag_running: bool
172
+ ag_code: CodeType
173
+ def __aiter__(self) -> Awaitable[AsyncGeneratorType[_T_co, _T_contra]]: ...
174
+ def __anext__(self) -> Awaitable[_T_co]: ...
175
+ def asend(self, __val: _T_contra) -> Awaitable[_T_co]: ...
176
+ @overload
177
+ def athrow(
178
+ self, __typ: Type[BaseException], __val: Union[BaseException, object] = ..., __tb: Optional[TracebackType] = ...
179
+ ) -> Awaitable[_T_co]: ...
180
+ @overload
181
+ def athrow(self, __typ: BaseException, __val: None = ..., __tb: Optional[TracebackType] = ...) -> Awaitable[_T_co]: ...
182
+ def aclose(self) -> Awaitable[None]: ...
183
+
184
+ class CoroutineType:
185
+ cr_await: Optional[Any]
186
+ cr_code: CodeType
187
+ cr_frame: FrameType
188
+ cr_running: bool
189
+ def close(self) -> None: ...
190
+ def send(self, __arg: Any) -> Any: ...
191
+ @overload
192
+ def throw(
193
+ self, __typ: Type[BaseException], __val: Union[BaseException, object] = ..., __tb: Optional[TracebackType] = ...
194
+ ) -> Any: ...
195
+ @overload
196
+ def throw(self, __typ: BaseException, __val: None = ..., __tb: Optional[TracebackType] = ...) -> Any: ...
197
+
198
+ class _StaticFunctionType:
199
+ """Fictional type to correct the type of MethodType.__func__.
200
+
201
+ FunctionType is a descriptor, so mypy follows the descriptor protocol and
202
+ converts MethodType.__func__ back to MethodType (the return type of
203
+ FunctionType.__get__). But this is actually a special case; MethodType is
204
+ implemented in C and its attribute access doesn't go through
205
+ __getattribute__.
206
+
207
+ By wrapping FunctionType in _StaticFunctionType, we get the right result;
208
+ similar to wrapping a function in staticmethod() at runtime to prevent it
209
+ being bound as a method.
210
+ """
211
+
212
+ def __get__(self, obj: Optional[object], type: Optional[type]) -> FunctionType: ...
213
+
214
+ class MethodType:
215
+ __func__: _StaticFunctionType
216
+ __self__: object
217
+ __name__: str
218
+ __qualname__: str
219
+ def __init__(self, func: Callable[..., Any], obj: object) -> None: ...
220
+ def __call__(self, *args: Any, **kwargs: Any) -> Any: ...
221
+
222
+ class BuiltinFunctionType:
223
+ __self__: Union[object, ModuleType]
224
+ __name__: str
225
+ __qualname__: str
226
+ def __call__(self, *args: Any, **kwargs: Any) -> Any: ...
227
+
228
+ BuiltinMethodType = BuiltinFunctionType
229
+
230
+ if sys.version_info >= (3, 7):
231
+ class WrapperDescriptorType:
232
+ __name__: str
233
+ __qualname__: str
234
+ __objclass__: type
235
+ def __call__(self, *args: Any, **kwargs: Any) -> Any: ...
236
+ def __get__(self, obj: Any, type: type = ...) -> Any: ...
237
+ class MethodWrapperType:
238
+ __self__: object
239
+ __name__: str
240
+ __qualname__: str
241
+ __objclass__: type
242
+ def __call__(self, *args: Any, **kwargs: Any) -> Any: ...
243
+ def __eq__(self, other: Any) -> bool: ...
244
+ def __ne__(self, other: Any) -> bool: ...
245
+ class MethodDescriptorType:
246
+ __name__: str
247
+ __qualname__: str
248
+ __objclass__: type
249
+ def __call__(self, *args: Any, **kwargs: Any) -> Any: ...
250
+ def __get__(self, obj: Any, type: type = ...) -> Any: ...
251
+ class ClassMethodDescriptorType:
252
+ __name__: str
253
+ __qualname__: str
254
+ __objclass__: type
255
+ def __call__(self, *args: Any, **kwargs: Any) -> Any: ...
256
+ def __get__(self, obj: Any, type: type = ...) -> Any: ...
257
+
258
+ class TracebackType:
259
+ if sys.version_info >= (3, 7):
260
+ def __init__(self, tb_next: Optional[TracebackType], tb_frame: FrameType, tb_lasti: int, tb_lineno: int) -> None: ...
261
+ tb_next: Optional[TracebackType]
262
+ else:
263
+ @property
264
+ def tb_next(self) -> Optional[TracebackType]: ...
265
+ # the rest are read-only even in 3.7
266
+ @property
267
+ def tb_frame(self) -> FrameType: ...
268
+ @property
269
+ def tb_lasti(self) -> int: ...
270
+ @property
271
+ def tb_lineno(self) -> int: ...
272
+
273
+ class FrameType:
274
+ f_back: Optional[FrameType]
275
+ f_builtins: Dict[str, Any]
276
+ f_code: CodeType
277
+ f_globals: Dict[str, Any]
278
+ f_lasti: int
279
+ f_lineno: int
280
+ f_locals: Dict[str, Any]
281
+ f_trace: Optional[Callable[[FrameType, str, Any], Any]]
282
+ if sys.version_info >= (3, 7):
283
+ f_trace_lines: bool
284
+ f_trace_opcodes: bool
285
+ def clear(self) -> None: ...
286
+
287
+ class GetSetDescriptorType:
288
+ __name__: str
289
+ __objclass__: type
290
+ def __get__(self, obj: Any, type: type = ...) -> Any: ...
291
+ def __set__(self, obj: Any) -> None: ...
292
+ def __delete__(self, obj: Any) -> None: ...
293
+
294
+ class MemberDescriptorType:
295
+ __name__: str
296
+ __objclass__: type
297
+ def __get__(self, obj: Any, type: type = ...) -> Any: ...
298
+ def __set__(self, obj: Any) -> None: ...
299
+ def __delete__(self, obj: Any) -> None: ...
300
+
301
+ if sys.version_info >= (3, 7):
302
+ def new_class(
303
+ name: str, bases: Iterable[object] = ..., kwds: Dict[str, Any] = ..., exec_body: Callable[[Dict[str, Any]], None] = ...
304
+ ) -> type: ...
305
+ def resolve_bases(bases: Iterable[object]) -> Tuple[Any, ...]: ...
306
+
307
+ else:
308
+ def new_class(
309
+ name: str, bases: Tuple[type, ...] = ..., kwds: Dict[str, Any] = ..., exec_body: Callable[[Dict[str, Any]], None] = ...
310
+ ) -> type: ...
311
+
312
+ def prepare_class(
313
+ name: str, bases: Tuple[type, ...] = ..., kwds: Dict[str, Any] = ...
314
+ ) -> Tuple[type, Dict[str, Any], Dict[str, Any]]: ...
315
+
316
+ # Actually a different type, but `property` is special and we want that too.
317
+ DynamicClassAttribute = property
318
+
319
+ def coroutine(f: Callable[..., Any]) -> CoroutineType: ...
320
+
321
+ if sys.version_info >= (3, 9):
322
+ class GenericAlias:
323
+ __origin__: type
324
+ __args__: Tuple[Any, ...]
325
+ __parameters__: Tuple[Any, ...]
326
+ def __init__(self, origin: type, args: Any) -> None: ...
327
+ def __getattr__(self, name: str) -> Any: ... # incomplete
328
+
329
+ if sys.version_info >= (3, 10):
330
+ @final
331
+ class NoneType:
332
+ def __bool__(self) -> Literal[False]: ...
333
+ EllipsisType = ellipsis # noqa F811 from builtins
334
+ NotImplementedType = _NotImplementedType # noqa F811 from builtins
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/3/typing.pyi ADDED
@@ -0,0 +1,687 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import collections # Needed by aliases like DefaultDict, see mypy issue 2986
2
+ import sys
3
+ from abc import ABCMeta, abstractmethod
4
+ from types import BuiltinFunctionType, CodeType, FrameType, FunctionType, MethodType, ModuleType, TracebackType
5
+
6
+ if sys.version_info >= (3, 7):
7
+ from types import MethodDescriptorType, MethodWrapperType, WrapperDescriptorType
8
+
9
+ if sys.version_info >= (3, 9):
10
+ from types import GenericAlias
11
+
12
+ # Definitions of special type checking related constructs. Their definitions
13
+ # are not used, so their value does not matter.
14
+
15
+ overload = object()
16
+ Any = object()
17
+
18
+ class TypeVar:
19
+ __name__: str
20
+ __bound__: Optional[Type[Any]]
21
+ __constraints__: Tuple[Type[Any], ...]
22
+ __covariant__: bool
23
+ __contravariant__: bool
24
+ def __init__(
25
+ self,
26
+ name: str,
27
+ *constraints: Type[Any],
28
+ bound: Union[None, Type[Any], str] = ...,
29
+ covariant: bool = ...,
30
+ contravariant: bool = ...,
31
+ ) -> None: ...
32
+
33
+ _promote = object()
34
+
35
+ class _SpecialForm:
36
+ def __getitem__(self, typeargs: Any) -> object: ...
37
+
38
+ Union: _SpecialForm = ...
39
+ Optional: _SpecialForm = ...
40
+ Tuple: _SpecialForm = ...
41
+ Generic: _SpecialForm = ...
42
+ # Protocol is only present in 3.8 and later, but mypy needs it unconditionally
43
+ Protocol: _SpecialForm = ...
44
+ Callable: _SpecialForm = ...
45
+ Type: _SpecialForm = ...
46
+ ClassVar: _SpecialForm = ...
47
+ if sys.version_info >= (3, 8):
48
+ Final: _SpecialForm = ...
49
+ _F = TypeVar("_F", bound=Callable[..., Any])
50
+ def final(f: _F) -> _F: ...
51
+ Literal: _SpecialForm = ...
52
+ # TypedDict is a (non-subscriptable) special form.
53
+ TypedDict: object
54
+
55
+ if sys.version_info < (3, 7):
56
+ class GenericMeta(type): ...
57
+
58
+ if sys.version_info >= (3, 10):
59
+ class ParamSpec:
60
+ __name__: str
61
+ def __init__(self, name: str) -> None: ...
62
+ Concatenate: _SpecialForm = ...
63
+ TypeAlias: _SpecialForm = ...
64
+
65
+ # Return type that indicates a function does not return.
66
+ # This type is equivalent to the None type, but the no-op Union is necessary to
67
+ # distinguish the None type from the None value.
68
+ NoReturn = Union[None]
69
+
70
+ # These type variables are used by the container types.
71
+ _T = TypeVar("_T")
72
+ _S = TypeVar("_S")
73
+ _KT = TypeVar("_KT") # Key type.
74
+ _VT = TypeVar("_VT") # Value type.
75
+ _T_co = TypeVar("_T_co", covariant=True) # Any type covariant containers.
76
+ _V_co = TypeVar("_V_co", covariant=True) # Any type covariant containers.
77
+ _KT_co = TypeVar("_KT_co", covariant=True) # Key type covariant containers.
78
+ _VT_co = TypeVar("_VT_co", covariant=True) # Value type covariant containers.
79
+ _T_contra = TypeVar("_T_contra", contravariant=True) # Ditto contravariant.
80
+ _TC = TypeVar("_TC", bound=Type[object])
81
+ _C = TypeVar("_C", bound=Callable[..., Any])
82
+
83
+ no_type_check = object()
84
+
85
+ def no_type_check_decorator(decorator: _C) -> _C: ...
86
+
87
+ # Type aliases and type constructors
88
+
89
+ class _Alias:
90
+ # Class for defining generic aliases for library types.
91
+ def __getitem__(self, typeargs: Any) -> Any: ...
92
+
93
+ List = _Alias()
94
+ Dict = _Alias()
95
+ DefaultDict = _Alias()
96
+ Set = _Alias()
97
+ FrozenSet = _Alias()
98
+ Counter = _Alias()
99
+ Deque = _Alias()
100
+ ChainMap = _Alias()
101
+
102
+ if sys.version_info >= (3, 7):
103
+ OrderedDict = _Alias()
104
+
105
+ if sys.version_info >= (3, 9):
106
+ Annotated: _SpecialForm = ...
107
+
108
+ # Predefined type variables.
109
+ AnyStr = TypeVar("AnyStr", str, bytes)
110
+
111
+ # Abstract base classes.
112
+
113
+ def runtime_checkable(cls: _TC) -> _TC: ...
114
+ @runtime_checkable
115
+ class SupportsInt(Protocol, metaclass=ABCMeta):
116
+ @abstractmethod
117
+ def __int__(self) -> int: ...
118
+
119
+ @runtime_checkable
120
+ class SupportsFloat(Protocol, metaclass=ABCMeta):
121
+ @abstractmethod
122
+ def __float__(self) -> float: ...
123
+
124
+ @runtime_checkable
125
+ class SupportsComplex(Protocol, metaclass=ABCMeta):
126
+ @abstractmethod
127
+ def __complex__(self) -> complex: ...
128
+
129
+ @runtime_checkable
130
+ class SupportsBytes(Protocol, metaclass=ABCMeta):
131
+ @abstractmethod
132
+ def __bytes__(self) -> bytes: ...
133
+
134
+ if sys.version_info >= (3, 8):
135
+ @runtime_checkable
136
+ class SupportsIndex(Protocol, metaclass=ABCMeta):
137
+ @abstractmethod
138
+ def __index__(self) -> int: ...
139
+
140
+ @runtime_checkable
141
+ class SupportsAbs(Protocol[_T_co]):
142
+ @abstractmethod
143
+ def __abs__(self) -> _T_co: ...
144
+
145
+ @runtime_checkable
146
+ class SupportsRound(Protocol[_T_co]):
147
+ @overload
148
+ @abstractmethod
149
+ def __round__(self) -> int: ...
150
+ @overload
151
+ @abstractmethod
152
+ def __round__(self, ndigits: int) -> _T_co: ...
153
+
154
+ @runtime_checkable
155
+ class Sized(Protocol, metaclass=ABCMeta):
156
+ @abstractmethod
157
+ def __len__(self) -> int: ...
158
+
159
+ @runtime_checkable
160
+ class Hashable(Protocol, metaclass=ABCMeta):
161
+ # TODO: This is special, in that a subclass of a hashable class may not be hashable
162
+ # (for example, list vs. object). It's not obvious how to represent this. This class
163
+ # is currently mostly useless for static checking.
164
+ @abstractmethod
165
+ def __hash__(self) -> int: ...
166
+
167
+ @runtime_checkable
168
+ class Iterable(Protocol[_T_co]):
169
+ @abstractmethod
170
+ def __iter__(self) -> Iterator[_T_co]: ...
171
+
172
+ @runtime_checkable
173
+ class Iterator(Iterable[_T_co], Protocol[_T_co]):
174
+ @abstractmethod
175
+ def __next__(self) -> _T_co: ...
176
+ def __iter__(self) -> Iterator[_T_co]: ...
177
+
178
+ @runtime_checkable
179
+ class Reversible(Iterable[_T_co], Protocol[_T_co]):
180
+ @abstractmethod
181
+ def __reversed__(self) -> Iterator[_T_co]: ...
182
+
183
+ class Generator(Iterator[_T_co], Generic[_T_co, _T_contra, _V_co]):
184
+ def __next__(self) -> _T_co: ...
185
+ @abstractmethod
186
+ def send(self, __value: _T_contra) -> _T_co: ...
187
+ @overload
188
+ @abstractmethod
189
+ def throw(
190
+ self, __typ: Type[BaseException], __val: Union[BaseException, object] = ..., __tb: Optional[TracebackType] = ...
191
+ ) -> _T_co: ...
192
+ @overload
193
+ @abstractmethod
194
+ def throw(self, __typ: BaseException, __val: None = ..., __tb: Optional[TracebackType] = ...) -> _T_co: ...
195
+ def close(self) -> None: ...
196
+ def __iter__(self) -> Generator[_T_co, _T_contra, _V_co]: ...
197
+ @property
198
+ def gi_code(self) -> CodeType: ...
199
+ @property
200
+ def gi_frame(self) -> FrameType: ...
201
+ @property
202
+ def gi_running(self) -> bool: ...
203
+ @property
204
+ def gi_yieldfrom(self) -> Optional[Generator[Any, Any, Any]]: ...
205
+
206
+ @runtime_checkable
207
+ class Awaitable(Protocol[_T_co]):
208
+ @abstractmethod
209
+ def __await__(self) -> Generator[Any, None, _T_co]: ...
210
+
211
+ class Coroutine(Awaitable[_V_co], Generic[_T_co, _T_contra, _V_co]):
212
+ __name__: str
213
+ __qualname__: str
214
+ @property
215
+ def cr_await(self) -> Optional[Any]: ...
216
+ @property
217
+ def cr_code(self) -> CodeType: ...
218
+ @property
219
+ def cr_frame(self) -> FrameType: ...
220
+ @property
221
+ def cr_running(self) -> bool: ...
222
+ @abstractmethod
223
+ def send(self, __value: _T_contra) -> _T_co: ...
224
+ @overload
225
+ @abstractmethod
226
+ def throw(
227
+ self, __typ: Type[BaseException], __val: Union[BaseException, object] = ..., __tb: Optional[TracebackType] = ...
228
+ ) -> _T_co: ...
229
+ @overload
230
+ @abstractmethod
231
+ def throw(self, __typ: BaseException, __val: None = ..., __tb: Optional[TracebackType] = ...) -> _T_co: ...
232
+ @abstractmethod
233
+ def close(self) -> None: ...
234
+
235
+ # NOTE: This type does not exist in typing.py or PEP 484.
236
+ # The parameters correspond to Generator, but the 4th is the original type.
237
+ class AwaitableGenerator(
238
+ Awaitable[_V_co], Generator[_T_co, _T_contra, _V_co], Generic[_T_co, _T_contra, _V_co, _S], metaclass=ABCMeta
239
+ ): ...
240
+
241
+ @runtime_checkable
242
+ class AsyncIterable(Protocol[_T_co]):
243
+ @abstractmethod
244
+ def __aiter__(self) -> AsyncIterator[_T_co]: ...
245
+
246
+ @runtime_checkable
247
+ class AsyncIterator(AsyncIterable[_T_co], Protocol[_T_co]):
248
+ @abstractmethod
249
+ def __anext__(self) -> Awaitable[_T_co]: ...
250
+ def __aiter__(self) -> AsyncIterator[_T_co]: ...
251
+
252
+ class AsyncGenerator(AsyncIterator[_T_co], Generic[_T_co, _T_contra]):
253
+ @abstractmethod
254
+ def __anext__(self) -> Awaitable[_T_co]: ...
255
+ @abstractmethod
256
+ def asend(self, __value: _T_contra) -> Awaitable[_T_co]: ...
257
+ @overload
258
+ @abstractmethod
259
+ def athrow(
260
+ self, __typ: Type[BaseException], __val: Union[BaseException, object] = ..., __tb: Optional[TracebackType] = ...
261
+ ) -> Awaitable[_T_co]: ...
262
+ @overload
263
+ @abstractmethod
264
+ def athrow(self, __typ: BaseException, __val: None = ..., __tb: Optional[TracebackType] = ...) -> Awaitable[_T_co]: ...
265
+ @abstractmethod
266
+ def aclose(self) -> Awaitable[None]: ...
267
+ @abstractmethod
268
+ def __aiter__(self) -> AsyncGenerator[_T_co, _T_contra]: ...
269
+ @property
270
+ def ag_await(self) -> Any: ...
271
+ @property
272
+ def ag_code(self) -> CodeType: ...
273
+ @property
274
+ def ag_frame(self) -> FrameType: ...
275
+ @property
276
+ def ag_running(self) -> bool: ...
277
+
278
+ @runtime_checkable
279
+ class Container(Protocol[_T_co]):
280
+ @abstractmethod
281
+ def __contains__(self, __x: object) -> bool: ...
282
+
283
+ @runtime_checkable
284
+ class Collection(Iterable[_T_co], Container[_T_co], Protocol[_T_co]):
285
+ # Implement Sized (but don't have it as a base class).
286
+ @abstractmethod
287
+ def __len__(self) -> int: ...
288
+
289
+ _Collection = Collection[_T_co]
290
+
291
+ class Sequence(_Collection[_T_co], Reversible[_T_co], Generic[_T_co]):
292
+ @overload
293
+ @abstractmethod
294
+ def __getitem__(self, i: int) -> _T_co: ...
295
+ @overload
296
+ @abstractmethod
297
+ def __getitem__(self, s: slice) -> Sequence[_T_co]: ...
298
+ # Mixin methods
299
+ def index(self, value: Any, start: int = ..., stop: int = ...) -> int: ...
300
+ def count(self, value: Any) -> int: ...
301
+ def __contains__(self, x: object) -> bool: ...
302
+ def __iter__(self) -> Iterator[_T_co]: ...
303
+ def __reversed__(self) -> Iterator[_T_co]: ...
304
+
305
+ class MutableSequence(Sequence[_T], Generic[_T]):
306
+ @abstractmethod
307
+ def insert(self, index: int, value: _T) -> None: ...
308
+ @overload
309
+ @abstractmethod
310
+ def __getitem__(self, i: int) -> _T: ...
311
+ @overload
312
+ @abstractmethod
313
+ def __getitem__(self, s: slice) -> MutableSequence[_T]: ...
314
+ @overload
315
+ @abstractmethod
316
+ def __setitem__(self, i: int, o: _T) -> None: ...
317
+ @overload
318
+ @abstractmethod
319
+ def __setitem__(self, s: slice, o: Iterable[_T]) -> None: ...
320
+ @overload
321
+ @abstractmethod
322
+ def __delitem__(self, i: int) -> None: ...
323
+ @overload
324
+ @abstractmethod
325
+ def __delitem__(self, i: slice) -> None: ...
326
+ # Mixin methods
327
+ def append(self, value: _T) -> None: ...
328
+ def clear(self) -> None: ...
329
+ def extend(self, values: Iterable[_T]) -> None: ...
330
+ def reverse(self) -> None: ...
331
+ def pop(self, index: int = ...) -> _T: ...
332
+ def remove(self, value: _T) -> None: ...
333
+ def __iadd__(self, x: Iterable[_T]) -> MutableSequence[_T]: ...
334
+
335
+ class AbstractSet(_Collection[_T_co], Generic[_T_co]):
336
+ @abstractmethod
337
+ def __contains__(self, x: object) -> bool: ...
338
+ # Mixin methods
339
+ def __le__(self, s: AbstractSet[Any]) -> bool: ...
340
+ def __lt__(self, s: AbstractSet[Any]) -> bool: ...
341
+ def __gt__(self, s: AbstractSet[Any]) -> bool: ...
342
+ def __ge__(self, s: AbstractSet[Any]) -> bool: ...
343
+ def __and__(self, s: AbstractSet[Any]) -> AbstractSet[_T_co]: ...
344
+ def __or__(self, s: AbstractSet[_T]) -> AbstractSet[Union[_T_co, _T]]: ...
345
+ def __sub__(self, s: AbstractSet[Any]) -> AbstractSet[_T_co]: ...
346
+ def __xor__(self, s: AbstractSet[_T]) -> AbstractSet[Union[_T_co, _T]]: ...
347
+ def isdisjoint(self, other: Iterable[Any]) -> bool: ...
348
+
349
+ class MutableSet(AbstractSet[_T], Generic[_T]):
350
+ @abstractmethod
351
+ def add(self, value: _T) -> None: ...
352
+ @abstractmethod
353
+ def discard(self, value: _T) -> None: ...
354
+ # Mixin methods
355
+ def clear(self) -> None: ...
356
+ def pop(self) -> _T: ...
357
+ def remove(self, value: _T) -> None: ...
358
+ def __ior__(self, s: AbstractSet[_S]) -> MutableSet[Union[_T, _S]]: ...
359
+ def __iand__(self, s: AbstractSet[Any]) -> MutableSet[_T]: ...
360
+ def __ixor__(self, s: AbstractSet[_S]) -> MutableSet[Union[_T, _S]]: ...
361
+ def __isub__(self, s: AbstractSet[Any]) -> MutableSet[_T]: ...
362
+
363
+ class MappingView(Sized):
364
+ def __init__(self, mapping: Mapping[_KT_co, _VT_co]) -> None: ... # undocumented
365
+ def __len__(self) -> int: ...
366
+
367
+ class ItemsView(MappingView, AbstractSet[Tuple[_KT_co, _VT_co]], Generic[_KT_co, _VT_co]):
368
+ def __init__(self, mapping: Mapping[_KT_co, _VT_co]) -> None: ... # undocumented
369
+ def __and__(self, o: Iterable[Any]) -> Set[Tuple[_KT_co, _VT_co]]: ...
370
+ def __rand__(self, o: Iterable[_T]) -> Set[_T]: ...
371
+ def __contains__(self, o: object) -> bool: ...
372
+ def __iter__(self) -> Iterator[Tuple[_KT_co, _VT_co]]: ...
373
+ if sys.version_info >= (3, 8):
374
+ def __reversed__(self) -> Iterator[Tuple[_KT_co, _VT_co]]: ...
375
+ def __or__(self, o: Iterable[_T]) -> Set[Union[Tuple[_KT_co, _VT_co], _T]]: ...
376
+ def __ror__(self, o: Iterable[_T]) -> Set[Union[Tuple[_KT_co, _VT_co], _T]]: ...
377
+ def __sub__(self, o: Iterable[Any]) -> Set[Tuple[_KT_co, _VT_co]]: ...
378
+ def __rsub__(self, o: Iterable[_T]) -> Set[_T]: ...
379
+ def __xor__(self, o: Iterable[_T]) -> Set[Union[Tuple[_KT_co, _VT_co], _T]]: ...
380
+ def __rxor__(self, o: Iterable[_T]) -> Set[Union[Tuple[_KT_co, _VT_co], _T]]: ...
381
+
382
+ class KeysView(MappingView, AbstractSet[_KT_co], Generic[_KT_co]):
383
+ def __init__(self, mapping: Mapping[_KT_co, _VT_co]) -> None: ... # undocumented
384
+ def __and__(self, o: Iterable[Any]) -> Set[_KT_co]: ...
385
+ def __rand__(self, o: Iterable[_T]) -> Set[_T]: ...
386
+ def __contains__(self, o: object) -> bool: ...
387
+ def __iter__(self) -> Iterator[_KT_co]: ...
388
+ if sys.version_info >= (3, 8):
389
+ def __reversed__(self) -> Iterator[_KT_co]: ...
390
+ def __or__(self, o: Iterable[_T]) -> Set[Union[_KT_co, _T]]: ...
391
+ def __ror__(self, o: Iterable[_T]) -> Set[Union[_KT_co, _T]]: ...
392
+ def __sub__(self, o: Iterable[Any]) -> Set[_KT_co]: ...
393
+ def __rsub__(self, o: Iterable[_T]) -> Set[_T]: ...
394
+ def __xor__(self, o: Iterable[_T]) -> Set[Union[_KT_co, _T]]: ...
395
+ def __rxor__(self, o: Iterable[_T]) -> Set[Union[_KT_co, _T]]: ...
396
+
397
+ class ValuesView(MappingView, Iterable[_VT_co], Generic[_VT_co]):
398
+ def __init__(self, mapping: Mapping[_KT_co, _VT_co]) -> None: ... # undocumented
399
+ def __contains__(self, o: object) -> bool: ...
400
+ def __iter__(self) -> Iterator[_VT_co]: ...
401
+ if sys.version_info >= (3, 8):
402
+ def __reversed__(self) -> Iterator[_VT_co]: ...
403
+
404
+ @runtime_checkable
405
+ class ContextManager(Protocol[_T_co]):
406
+ def __enter__(self) -> _T_co: ...
407
+ def __exit__(
408
+ self,
409
+ __exc_type: Optional[Type[BaseException]],
410
+ __exc_value: Optional[BaseException],
411
+ __traceback: Optional[TracebackType],
412
+ ) -> Optional[bool]: ...
413
+
414
+ @runtime_checkable
415
+ class AsyncContextManager(Protocol[_T_co]):
416
+ def __aenter__(self) -> Awaitable[_T_co]: ...
417
+ def __aexit__(
418
+ self, exc_type: Optional[Type[BaseException]], exc_value: Optional[BaseException], traceback: Optional[TracebackType]
419
+ ) -> Awaitable[Optional[bool]]: ...
420
+
421
+ class Mapping(_Collection[_KT], Generic[_KT, _VT_co]):
422
+ # TODO: We wish the key type could also be covariant, but that doesn't work,
423
+ # see discussion in https: //github.com/python/typing/pull/273.
424
+ @abstractmethod
425
+ def __getitem__(self, k: _KT) -> _VT_co: ...
426
+ # Mixin methods
427
+ @overload
428
+ def get(self, key: _KT) -> Optional[_VT_co]: ...
429
+ @overload
430
+ def get(self, key: _KT, default: Union[_VT_co, _T]) -> Union[_VT_co, _T]: ...
431
+ def items(self) -> AbstractSet[Tuple[_KT, _VT_co]]: ...
432
+ def keys(self) -> AbstractSet[_KT]: ...
433
+ def values(self) -> ValuesView[_VT_co]: ...
434
+ def __contains__(self, o: object) -> bool: ...
435
+
436
+ class MutableMapping(Mapping[_KT, _VT], Generic[_KT, _VT]):
437
+ @abstractmethod
438
+ def __setitem__(self, k: _KT, v: _VT) -> None: ...
439
+ @abstractmethod
440
+ def __delitem__(self, v: _KT) -> None: ...
441
+ def clear(self) -> None: ...
442
+ @overload
443
+ def pop(self, key: _KT) -> _VT: ...
444
+ @overload
445
+ def pop(self, key: _KT, default: Union[_VT, _T] = ...) -> Union[_VT, _T]: ...
446
+ def popitem(self) -> Tuple[_KT, _VT]: ...
447
+ def setdefault(self, key: _KT, default: _VT = ...) -> _VT: ...
448
+ # 'update' used to take a Union, but using overloading is better.
449
+ # The second overloaded type here is a bit too general, because
450
+ # Mapping[Tuple[_KT, _VT], W] is a subclass of Iterable[Tuple[_KT, _VT]],
451
+ # but will always have the behavior of the first overloaded type
452
+ # at runtime, leading to keys of a mix of types _KT and Tuple[_KT, _VT].
453
+ # We don't currently have any way of forcing all Mappings to use
454
+ # the first overload, but by using overloading rather than a Union,
455
+ # mypy will commit to using the first overload when the argument is
456
+ # known to be a Mapping with unknown type parameters, which is closer
457
+ # to the behavior we want. See mypy issue #1430.
458
+ @overload
459
+ def update(self, __m: Mapping[_KT, _VT], **kwargs: _VT) -> None: ...
460
+ @overload
461
+ def update(self, __m: Iterable[Tuple[_KT, _VT]], **kwargs: _VT) -> None: ...
462
+ @overload
463
+ def update(self, **kwargs: _VT) -> None: ...
464
+
465
+ Text = str
466
+
467
+ TYPE_CHECKING = True
468
+
469
+ class IO(Iterator[AnyStr], Generic[AnyStr]):
470
+ # TODO use abstract properties
471
+ @property
472
+ def mode(self) -> str: ...
473
+ @property
474
+ def name(self) -> str: ...
475
+ @abstractmethod
476
+ def close(self) -> None: ...
477
+ @property
478
+ def closed(self) -> bool: ...
479
+ @abstractmethod
480
+ def fileno(self) -> int: ...
481
+ @abstractmethod
482
+ def flush(self) -> None: ...
483
+ @abstractmethod
484
+ def isatty(self) -> bool: ...
485
+ @abstractmethod
486
+ def read(self, n: int = ...) -> AnyStr: ...
487
+ @abstractmethod
488
+ def readable(self) -> bool: ...
489
+ @abstractmethod
490
+ def readline(self, limit: int = ...) -> AnyStr: ...
491
+ @abstractmethod
492
+ def readlines(self, hint: int = ...) -> list[AnyStr]: ...
493
+ @abstractmethod
494
+ def seek(self, offset: int, whence: int = ...) -> int: ...
495
+ @abstractmethod
496
+ def seekable(self) -> bool: ...
497
+ @abstractmethod
498
+ def tell(self) -> int: ...
499
+ @abstractmethod
500
+ def truncate(self, size: Optional[int] = ...) -> int: ...
501
+ @abstractmethod
502
+ def writable(self) -> bool: ...
503
+ @abstractmethod
504
+ def write(self, s: AnyStr) -> int: ...
505
+ @abstractmethod
506
+ def writelines(self, lines: Iterable[AnyStr]) -> None: ...
507
+ @abstractmethod
508
+ def __next__(self) -> AnyStr: ...
509
+ @abstractmethod
510
+ def __iter__(self) -> Iterator[AnyStr]: ...
511
+ @abstractmethod
512
+ def __enter__(self) -> IO[AnyStr]: ...
513
+ @abstractmethod
514
+ def __exit__(
515
+ self, t: Optional[Type[BaseException]], value: Optional[BaseException], traceback: Optional[TracebackType]
516
+ ) -> Optional[bool]: ...
517
+
518
+ class BinaryIO(IO[bytes]):
519
+ @abstractmethod
520
+ def __enter__(self) -> BinaryIO: ...
521
+
522
+ class TextIO(IO[str]):
523
+ # TODO use abstractproperty
524
+ @property
525
+ def buffer(self) -> BinaryIO: ...
526
+ @property
527
+ def encoding(self) -> str: ...
528
+ @property
529
+ def errors(self) -> Optional[str]: ...
530
+ @property
531
+ def line_buffering(self) -> int: ... # int on PyPy, bool on CPython
532
+ @property
533
+ def newlines(self) -> Any: ... # None, str or tuple
534
+ @abstractmethod
535
+ def __enter__(self) -> TextIO: ...
536
+
537
+ class ByteString(Sequence[int], metaclass=ABCMeta): ...
538
+
539
+ class Match(Generic[AnyStr]):
540
+ pos: int
541
+ endpos: int
542
+ lastindex: Optional[int]
543
+ lastgroup: Optional[AnyStr]
544
+ string: AnyStr
545
+
546
+ # The regular expression object whose match() or search() method produced
547
+ # this match instance.
548
+ re: Pattern[AnyStr]
549
+ def expand(self, template: AnyStr) -> AnyStr: ...
550
+ # TODO: The return for a group may be None, except if __group is 0 or not given.
551
+ @overload
552
+ def group(self, __group: Union[str, int] = ...) -> AnyStr: ...
553
+ @overload
554
+ def group(self, __group1: Union[str, int], __group2: Union[str, int], *groups: Union[str, int]) -> Tuple[AnyStr, ...]: ...
555
+ def groups(self, default: AnyStr = ...) -> Sequence[AnyStr]: ...
556
+ def groupdict(self, default: AnyStr = ...) -> dict[str, AnyStr]: ...
557
+ def start(self, __group: Union[int, str] = ...) -> int: ...
558
+ def end(self, __group: Union[int, str] = ...) -> int: ...
559
+ def span(self, __group: Union[int, str] = ...) -> Tuple[int, int]: ...
560
+ @property
561
+ def regs(self) -> Tuple[Tuple[int, int], ...]: ... # undocumented
562
+ def __getitem__(self, g: Union[int, str]) -> AnyStr: ...
563
+ if sys.version_info >= (3, 9):
564
+ def __class_getitem__(cls, item: Any) -> GenericAlias: ...
565
+
566
+ class Pattern(Generic[AnyStr]):
567
+ flags: int
568
+ groupindex: Mapping[str, int]
569
+ groups: int
570
+ pattern: AnyStr
571
+ def search(self, string: AnyStr, pos: int = ..., endpos: int = ...) -> Optional[Match[AnyStr]]: ...
572
+ def match(self, string: AnyStr, pos: int = ..., endpos: int = ...) -> Optional[Match[AnyStr]]: ...
573
+ # New in Python 3.4
574
+ def fullmatch(self, string: AnyStr, pos: int = ..., endpos: int = ...) -> Optional[Match[AnyStr]]: ...
575
+ def split(self, string: AnyStr, maxsplit: int = ...) -> list[AnyStr]: ...
576
+ def findall(self, string: AnyStr, pos: int = ..., endpos: int = ...) -> list[Any]: ...
577
+ def finditer(self, string: AnyStr, pos: int = ..., endpos: int = ...) -> Iterator[Match[AnyStr]]: ...
578
+ @overload
579
+ def sub(self, repl: AnyStr, string: AnyStr, count: int = ...) -> AnyStr: ...
580
+ @overload
581
+ def sub(self, repl: Callable[[Match[AnyStr]], AnyStr], string: AnyStr, count: int = ...) -> AnyStr: ...
582
+ @overload
583
+ def subn(self, repl: AnyStr, string: AnyStr, count: int = ...) -> Tuple[AnyStr, int]: ...
584
+ @overload
585
+ def subn(self, repl: Callable[[Match[AnyStr]], AnyStr], string: AnyStr, count: int = ...) -> Tuple[AnyStr, int]: ...
586
+ if sys.version_info >= (3, 9):
587
+ def __class_getitem__(cls, item: Any) -> GenericAlias: ...
588
+
589
+ # Functions
590
+
591
+ if sys.version_info >= (3, 7):
592
+ _get_type_hints_obj_allowed_types = Union[
593
+ object,
594
+ Callable[..., Any],
595
+ FunctionType,
596
+ BuiltinFunctionType,
597
+ MethodType,
598
+ ModuleType,
599
+ WrapperDescriptorType,
600
+ MethodWrapperType,
601
+ MethodDescriptorType,
602
+ ]
603
+ else:
604
+ _get_type_hints_obj_allowed_types = Union[
605
+ object,
606
+ Callable[..., Any],
607
+ FunctionType,
608
+ BuiltinFunctionType,
609
+ MethodType,
610
+ ModuleType,
611
+ ]
612
+
613
+ if sys.version_info >= (3, 9):
614
+ def get_type_hints(
615
+ obj: _get_type_hints_obj_allowed_types,
616
+ globalns: Optional[Dict[str, Any]] = ...,
617
+ localns: Optional[Dict[str, Any]] = ...,
618
+ include_extras: bool = ...,
619
+ ) -> Dict[str, Any]: ...
620
+
621
+ else:
622
+ def get_type_hints(
623
+ obj: _get_type_hints_obj_allowed_types,
624
+ globalns: Optional[Dict[str, Any]] = ...,
625
+ localns: Optional[Dict[str, Any]] = ...,
626
+ ) -> Dict[str, Any]: ...
627
+
628
+ if sys.version_info >= (3, 8):
629
+ def get_origin(tp: Any) -> Optional[Any]: ...
630
+ def get_args(tp: Any) -> Tuple[Any, ...]: ...
631
+
632
+ @overload
633
+ def cast(typ: Type[_T], val: Any) -> _T: ...
634
+ @overload
635
+ def cast(typ: str, val: Any) -> Any: ...
636
+ @overload
637
+ def cast(typ: object, val: Any) -> Any: ...
638
+
639
+ # Type constructors
640
+
641
+ # NamedTuple is special-cased in the type checker
642
+ class NamedTuple(Tuple[Any, ...]):
643
+ _field_types: collections.OrderedDict[str, Type[Any]]
644
+ _field_defaults: Dict[str, Any] = ...
645
+ _fields: Tuple[str, ...]
646
+ _source: str
647
+ def __init__(self, typename: str, fields: Iterable[Tuple[str, Any]] = ..., **kwargs: Any) -> None: ...
648
+ @classmethod
649
+ def _make(cls: Type[_T], iterable: Iterable[Any]) -> _T: ...
650
+ if sys.version_info >= (3, 8):
651
+ def _asdict(self) -> Dict[str, Any]: ...
652
+ else:
653
+ def _asdict(self) -> collections.OrderedDict[str, Any]: ...
654
+ def _replace(self: _T, **kwargs: Any) -> _T: ...
655
+
656
+ # Internal mypy fallback type for all typed dicts (does not exist at runtime)
657
+ class _TypedDict(Mapping[str, object], metaclass=ABCMeta):
658
+ def copy(self: _T) -> _T: ...
659
+ # Using NoReturn so that only calls using mypy plugin hook that specialize the signature
660
+ # can go through.
661
+ def setdefault(self, k: NoReturn, default: object) -> object: ...
662
+ # Mypy plugin hook for 'pop' expects that 'default' has a type variable type.
663
+ def pop(self, k: NoReturn, default: _T = ...) -> object: ...
664
+ def update(self: _T, __m: _T) -> None: ...
665
+ def __delitem__(self, k: NoReturn) -> None: ...
666
+ def items(self) -> ItemsView[str, object]: ...
667
+ def keys(self) -> KeysView[str]: ...
668
+ def values(self) -> ValuesView[object]: ...
669
+
670
+ def NewType(name: str, tp: Type[_T]) -> Type[_T]: ...
671
+
672
+ # This itself is only available during type checking
673
+ def type_check_only(func_or_cls: _C) -> _C: ...
674
+
675
+ if sys.version_info >= (3, 7):
676
+ from types import CodeType
677
+ class ForwardRef:
678
+ __forward_arg__: str
679
+ __forward_code__: CodeType
680
+ __forward_evaluated__: bool
681
+ __forward_value__: Optional[Any]
682
+ __forward_is_argument__: bool
683
+ def __init__(self, arg: str, is_argument: bool = ...) -> None: ...
684
+ def _evaluate(self, globalns: Optional[Dict[str, Any]], localns: Optional[Dict[str, Any]]) -> Optional[Any]: ...
685
+ def __eq__(self, other: Any) -> bool: ...
686
+ def __hash__(self) -> int: ...
687
+ def __repr__(self) -> str: ...
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/3/winreg.pyi ADDED
@@ -0,0 +1,100 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import sys
2
+ from types import TracebackType
3
+ from typing import Any, Optional, Tuple, Type, Union
4
+
5
+ _KeyType = Union[HKEYType, int]
6
+
7
+ def CloseKey(__hkey: _KeyType) -> None: ...
8
+ def ConnectRegistry(__computer_name: Optional[str], __key: _KeyType) -> HKEYType: ...
9
+ def CreateKey(__key: _KeyType, __sub_key: Optional[str]) -> HKEYType: ...
10
+ def CreateKeyEx(key: _KeyType, sub_key: Optional[str], reserved: int = ..., access: int = ...) -> HKEYType: ...
11
+ def DeleteKey(__key: _KeyType, __sub_key: str) -> None: ...
12
+ def DeleteKeyEx(key: _KeyType, sub_key: str, access: int = ..., reserved: int = ...) -> None: ...
13
+ def DeleteValue(__key: _KeyType, __value: str) -> None: ...
14
+ def EnumKey(__key: _KeyType, __index: int) -> str: ...
15
+ def EnumValue(__key: _KeyType, __index: int) -> Tuple[str, Any, int]: ...
16
+ def ExpandEnvironmentStrings(__str: str) -> str: ...
17
+ def FlushKey(__key: _KeyType) -> None: ...
18
+ def LoadKey(__key: _KeyType, __sub_key: str, __file_name: str) -> None: ...
19
+ def OpenKey(key: _KeyType, sub_key: str, reserved: int = ..., access: int = ...) -> HKEYType: ...
20
+ def OpenKeyEx(key: _KeyType, sub_key: str, reserved: int = ..., access: int = ...) -> HKEYType: ...
21
+ def QueryInfoKey(__key: _KeyType) -> Tuple[int, int, int]: ...
22
+ def QueryValue(__key: _KeyType, __sub_key: Optional[str]) -> str: ...
23
+ def QueryValueEx(__key: _KeyType, __name: str) -> Tuple[Any, int]: ...
24
+ def SaveKey(__key: _KeyType, __file_name: str) -> None: ...
25
+ def SetValue(__key: _KeyType, __sub_key: str, __type: int, __value: str) -> None: ...
26
+ def SetValueEx(
27
+ __key: _KeyType, __value_name: Optional[str], __reserved: Any, __type: int, __value: Union[str, int]
28
+ ) -> None: ... # reserved is ignored
29
+ def DisableReflectionKey(__key: _KeyType) -> None: ...
30
+ def EnableReflectionKey(__key: _KeyType) -> None: ...
31
+ def QueryReflectionKey(__key: _KeyType) -> bool: ...
32
+
33
+ HKEY_CLASSES_ROOT: int
34
+ HKEY_CURRENT_USER: int
35
+ HKEY_LOCAL_MACHINE: int
36
+ HKEY_USERS: int
37
+ HKEY_PERFORMANCE_DATA: int
38
+ HKEY_CURRENT_CONFIG: int
39
+ HKEY_DYN_DATA: int
40
+
41
+ KEY_ALL_ACCESS: int
42
+ KEY_WRITE: int
43
+ KEY_READ: int
44
+ KEY_EXECUTE: int
45
+ KEY_QUERY_VALUE: int
46
+ KEY_SET_VALUE: int
47
+ KEY_CREATE_SUB_KEY: int
48
+ KEY_ENUMERATE_SUB_KEYS: int
49
+ KEY_NOTIFY: int
50
+ KEY_CREATE_LINK: int
51
+
52
+ KEY_WOW64_64KEY: int
53
+ KEY_WOW64_32KEY: int
54
+
55
+ REG_BINARY: int
56
+ REG_DWORD: int
57
+ REG_DWORD_LITTLE_ENDIAN: int
58
+ REG_DWORD_BIG_ENDIAN: int
59
+ REG_EXPAND_SZ: int
60
+ REG_LINK: int
61
+ REG_MULTI_SZ: int
62
+ REG_NONE: int
63
+ if sys.version_info >= (3, 6):
64
+ REG_QWORD: int
65
+ REG_QWORD_LITTLE_ENDIAN: int
66
+ REG_RESOURCE_LIST: int
67
+ REG_FULL_RESOURCE_DESCRIPTOR: int
68
+ REG_RESOURCE_REQUIREMENTS_LIST: int
69
+ REG_SZ: int
70
+
71
+ REG_CREATED_NEW_KEY: int # undocumented
72
+ REG_LEGAL_CHANGE_FILTER: int # undocumented
73
+ REG_LEGAL_OPTION: int # undocumented
74
+ REG_NOTIFY_CHANGE_ATTRIBUTES: int # undocumented
75
+ REG_NOTIFY_CHANGE_LAST_SET: int # undocumented
76
+ REG_NOTIFY_CHANGE_NAME: int # undocumented
77
+ REG_NOTIFY_CHANGE_SECURITY: int # undocumented
78
+ REG_NO_LAZY_FLUSH: int # undocumented
79
+ REG_OPENED_EXISTING_KEY: int # undocumented
80
+ REG_OPTION_BACKUP_RESTORE: int # undocumented
81
+ REG_OPTION_CREATE_LINK: int # undocumented
82
+ REG_OPTION_NON_VOLATILE: int # undocumented
83
+ REG_OPTION_OPEN_LINK: int # undocumented
84
+ REG_OPTION_RESERVED: int # undocumented
85
+ REG_OPTION_VOLATILE: int # undocumented
86
+ REG_REFRESH_HIVE: int # undocumented
87
+ REG_WHOLE_HIVE_VOLATILE: int # undocumented
88
+
89
+ error = OSError
90
+
91
+ # Though this class has a __name__ of PyHKEY, it's exposed as HKEYType for some reason
92
+ class HKEYType:
93
+ def __bool__(self) -> bool: ...
94
+ def __int__(self) -> int: ...
95
+ def __enter__(self) -> HKEYType: ...
96
+ def __exit__(
97
+ self, exc_type: Optional[Type[BaseException]], exc_val: Optional[BaseException], exc_tb: Optional[TracebackType]
98
+ ) -> Optional[bool]: ...
99
+ def Close(self) -> None: ...
100
+ def Detach(self) -> int: ...
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/3/xxlimited.pyi ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from typing import Any
2
+
3
+ class Null: ...
4
+ class Str: ...
5
+
6
+ class Xxo:
7
+ def demo(self) -> None: ...
8
+
9
+ class error: ...
10
+
11
+ def foo(__i: int, __j: int) -> Any: ...
12
+ def new() -> Xxo: ...
13
+ def roj(__b: Any) -> None: ...
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/3/zipapp.pyi ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import sys
2
+ from pathlib import Path
3
+ from typing import BinaryIO, Callable, Optional, Union
4
+
5
+ _Path = Union[str, Path, BinaryIO]
6
+
7
+ class ZipAppError(ValueError): ...
8
+
9
+ if sys.version_info >= (3, 7):
10
+ def create_archive(
11
+ source: _Path,
12
+ target: Optional[_Path] = ...,
13
+ interpreter: Optional[str] = ...,
14
+ main: Optional[str] = ...,
15
+ filter: Optional[Callable[[Path], bool]] = ...,
16
+ compressed: bool = ...,
17
+ ) -> None: ...
18
+
19
+ else:
20
+ def create_archive(
21
+ source: _Path, target: Optional[_Path] = ..., interpreter: Optional[str] = ..., main: Optional[str] = ...
22
+ ) -> None: ...
23
+
24
+ def get_interpreter(archive: _Path) -> str: ...
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/third_party/2and3/atomicwrites/__init__.pyi ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from _typeshed import AnyPath
2
+ from typing import IO, Any, AnyStr, Callable, ContextManager, Optional, Text, Type
3
+
4
+ def replace_atomic(src: AnyStr, dst: AnyStr) -> None: ...
5
+ def move_atomic(src: AnyStr, dst: AnyStr) -> None: ...
6
+
7
+ class AtomicWriter(object):
8
+ def __init__(self, path: AnyPath, mode: Text = ..., overwrite: bool = ...) -> None: ...
9
+ def open(self) -> ContextManager[IO[Any]]: ...
10
+ def _open(self, get_fileobject: Callable[..., IO[AnyStr]]) -> ContextManager[IO[AnyStr]]: ...
11
+ def get_fileobject(self, dir: Optional[AnyPath] = ..., **kwargs: Any) -> IO[Any]: ...
12
+ def sync(self, f: IO[Any]) -> None: ...
13
+ def commit(self, f: IO[Any]) -> None: ...
14
+ def rollback(self, f: IO[Any]) -> None: ...
15
+
16
+ def atomic_write(path: AnyPath, writer_cls: Type[AtomicWriter] = ..., **cls_kwargs: object) -> ContextManager[IO[Any]]: ...
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/third_party/2and3/boto/connection.pyi ADDED
@@ -0,0 +1,174 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from typing import Any, Optional
2
+
3
+ from six.moves import http_client
4
+
5
+ HAVE_HTTPS_CONNECTION: bool
6
+ ON_APP_ENGINE: Any
7
+ PORTS_BY_SECURITY: Any
8
+ DEFAULT_CA_CERTS_FILE: Any
9
+
10
+ class HostConnectionPool:
11
+ queue: Any
12
+ def __init__(self) -> None: ...
13
+ def size(self): ...
14
+ def put(self, conn): ...
15
+ def get(self): ...
16
+ def clean(self): ...
17
+
18
+ class ConnectionPool:
19
+ CLEAN_INTERVAL: float
20
+ STALE_DURATION: float
21
+ host_to_pool: Any
22
+ last_clean_time: float
23
+ mutex: Any
24
+ def __init__(self) -> None: ...
25
+ def size(self): ...
26
+ def get_http_connection(self, host, port, is_secure): ...
27
+ def put_http_connection(self, host, port, is_secure, conn): ...
28
+ def clean(self): ...
29
+
30
+ class HTTPRequest:
31
+ method: Any
32
+ protocol: Any
33
+ host: Any
34
+ port: Any
35
+ path: Any
36
+ auth_path: Any
37
+ params: Any
38
+ headers: Any
39
+ body: Any
40
+ def __init__(self, method, protocol, host, port, path, auth_path, params, headers, body) -> None: ...
41
+ def authorize(self, connection, **kwargs): ...
42
+
43
+ class HTTPResponse(http_client.HTTPResponse):
44
+ def __init__(self, *args, **kwargs) -> None: ...
45
+ def read(self, amt: Optional[Any] = ...): ...
46
+
47
+ class AWSAuthConnection:
48
+ suppress_consec_slashes: Any
49
+ num_retries: int
50
+ is_secure: Any
51
+ https_validate_certificates: Any
52
+ ca_certificates_file: Any
53
+ port: Any
54
+ http_exceptions: Any
55
+ http_unretryable_exceptions: Any
56
+ socket_exception_values: Any
57
+ https_connection_factory: Any
58
+ protocol: str
59
+ host: Any
60
+ path: Any
61
+ debug: Any
62
+ host_header: Any
63
+ http_connection_kwargs: Any
64
+ provider: Any
65
+ auth_service_name: Any
66
+ request_hook: Any
67
+ def __init__(
68
+ self,
69
+ host,
70
+ aws_access_key_id: Optional[Any] = ...,
71
+ aws_secret_access_key: Optional[Any] = ...,
72
+ is_secure: bool = ...,
73
+ port: Optional[Any] = ...,
74
+ proxy: Optional[Any] = ...,
75
+ proxy_port: Optional[Any] = ...,
76
+ proxy_user: Optional[Any] = ...,
77
+ proxy_pass: Optional[Any] = ...,
78
+ debug: int = ...,
79
+ https_connection_factory: Optional[Any] = ...,
80
+ path: str = ...,
81
+ provider: str = ...,
82
+ security_token: Optional[Any] = ...,
83
+ suppress_consec_slashes: bool = ...,
84
+ validate_certs: bool = ...,
85
+ profile_name: Optional[Any] = ...,
86
+ ) -> None: ...
87
+ auth_region_name: Any
88
+ @property
89
+ def connection(self): ...
90
+ @property
91
+ def aws_access_key_id(self): ...
92
+ @property
93
+ def gs_access_key_id(self) -> Any: ...
94
+ access_key: Any
95
+ @property
96
+ def aws_secret_access_key(self): ...
97
+ @property
98
+ def gs_secret_access_key(self): ...
99
+ secret_key: Any
100
+ @property
101
+ def profile_name(self): ...
102
+ def get_path(self, path: str = ...): ...
103
+ def server_name(self, port: Optional[Any] = ...): ...
104
+ proxy: Any
105
+ proxy_port: Any
106
+ proxy_user: Any
107
+ proxy_pass: Any
108
+ no_proxy: Any
109
+ use_proxy: Any
110
+ def handle_proxy(self, proxy, proxy_port, proxy_user, proxy_pass): ...
111
+ def get_http_connection(self, host, port, is_secure): ...
112
+ def skip_proxy(self, host): ...
113
+ def new_http_connection(self, host, port, is_secure): ...
114
+ def put_http_connection(self, host, port, is_secure, connection): ...
115
+ def proxy_ssl(self, host: Optional[Any] = ..., port: Optional[Any] = ...): ...
116
+ def prefix_proxy_to_path(self, path, host: Optional[Any] = ...): ...
117
+ def get_proxy_auth_header(self): ...
118
+ def get_proxy_url_with_auth(self): ...
119
+ def set_host_header(self, request): ...
120
+ def set_request_hook(self, hook): ...
121
+ def build_base_http_request(
122
+ self,
123
+ method,
124
+ path,
125
+ auth_path,
126
+ params: Optional[Any] = ...,
127
+ headers: Optional[Any] = ...,
128
+ data: str = ...,
129
+ host: Optional[Any] = ...,
130
+ ): ...
131
+ def make_request(
132
+ self,
133
+ method,
134
+ path,
135
+ headers: Optional[Any] = ...,
136
+ data: str = ...,
137
+ host: Optional[Any] = ...,
138
+ auth_path: Optional[Any] = ...,
139
+ sender: Optional[Any] = ...,
140
+ override_num_retries: Optional[Any] = ...,
141
+ params: Optional[Any] = ...,
142
+ retry_handler: Optional[Any] = ...,
143
+ ): ...
144
+ def close(self): ...
145
+
146
+ class AWSQueryConnection(AWSAuthConnection):
147
+ APIVersion: str
148
+ ResponseError: Any
149
+ def __init__(
150
+ self,
151
+ aws_access_key_id: Optional[Any] = ...,
152
+ aws_secret_access_key: Optional[Any] = ...,
153
+ is_secure: bool = ...,
154
+ port: Optional[Any] = ...,
155
+ proxy: Optional[Any] = ...,
156
+ proxy_port: Optional[Any] = ...,
157
+ proxy_user: Optional[Any] = ...,
158
+ proxy_pass: Optional[Any] = ...,
159
+ host: Optional[Any] = ...,
160
+ debug: int = ...,
161
+ https_connection_factory: Optional[Any] = ...,
162
+ path: str = ...,
163
+ security_token: Optional[Any] = ...,
164
+ validate_certs: bool = ...,
165
+ profile_name: Optional[Any] = ...,
166
+ provider: str = ...,
167
+ ) -> None: ...
168
+ def get_utf8_value(self, value): ...
169
+ def make_request(self, action, params: Optional[Any] = ..., path: str = ..., verb: str = ..., *args, **kwargs): ... # type: ignore # https://github.com/python/mypy/issues/1237
170
+ def build_list_params(self, params, items, label): ...
171
+ def build_complex_list_params(self, params, items, label, names): ...
172
+ def get_list(self, action, params, markers, path: str = ..., parent: Optional[Any] = ..., verb: str = ...): ...
173
+ def get_object(self, action, params, cls, path: str = ..., parent: Optional[Any] = ..., verb: str = ...): ...
174
+ def get_status(self, action, params, path: str = ..., parent: Optional[Any] = ..., verb: str = ...): ...
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/third_party/2and3/click/__init__.pyi ADDED
@@ -0,0 +1,84 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from .core import (
2
+ Argument as Argument,
3
+ BaseCommand as BaseCommand,
4
+ Command as Command,
5
+ CommandCollection as CommandCollection,
6
+ Context as Context,
7
+ Group as Group,
8
+ MultiCommand as MultiCommand,
9
+ Option as Option,
10
+ Parameter as Parameter,
11
+ )
12
+ from .decorators import (
13
+ argument as argument,
14
+ command as command,
15
+ confirmation_option as confirmation_option,
16
+ group as group,
17
+ help_option as help_option,
18
+ make_pass_decorator as make_pass_decorator,
19
+ option as option,
20
+ pass_context as pass_context,
21
+ pass_obj as pass_obj,
22
+ password_option as password_option,
23
+ version_option as version_option,
24
+ )
25
+ from .exceptions import (
26
+ Abort as Abort,
27
+ BadArgumentUsage as BadArgumentUsage,
28
+ BadOptionUsage as BadOptionUsage,
29
+ BadParameter as BadParameter,
30
+ ClickException as ClickException,
31
+ FileError as FileError,
32
+ MissingParameter as MissingParameter,
33
+ NoSuchOption as NoSuchOption,
34
+ UsageError as UsageError,
35
+ )
36
+ from .formatting import HelpFormatter as HelpFormatter, wrap_text as wrap_text
37
+ from .globals import get_current_context as get_current_context
38
+ from .parser import OptionParser as OptionParser
39
+ from .termui import (
40
+ clear as clear,
41
+ confirm as confirm,
42
+ echo_via_pager as echo_via_pager,
43
+ edit as edit,
44
+ get_terminal_size as get_terminal_size,
45
+ getchar as getchar,
46
+ launch as launch,
47
+ pause as pause,
48
+ progressbar as progressbar,
49
+ prompt as prompt,
50
+ secho as secho,
51
+ style as style,
52
+ unstyle as unstyle,
53
+ )
54
+ from .types import (
55
+ BOOL as BOOL,
56
+ FLOAT as FLOAT,
57
+ INT as INT,
58
+ STRING as STRING,
59
+ UNPROCESSED as UNPROCESSED,
60
+ UUID as UUID,
61
+ Choice as Choice,
62
+ DateTime as DateTime,
63
+ File as File,
64
+ FloatRange as FloatRange,
65
+ IntRange as IntRange,
66
+ ParamType as ParamType,
67
+ Path as Path,
68
+ Tuple as Tuple,
69
+ )
70
+ from .utils import (
71
+ echo as echo,
72
+ format_filename as format_filename,
73
+ get_app_dir as get_app_dir,
74
+ get_binary_stream as get_binary_stream,
75
+ get_os_args as get_os_args,
76
+ get_text_stream as get_text_stream,
77
+ open_file as open_file,
78
+ )
79
+
80
+ # Controls if click should emit the warning about the use of unicode
81
+ # literals.
82
+ disable_unicode_literals_warning: bool
83
+
84
+ __version__: str
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/third_party/2and3/click/_termui_impl.pyi ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from typing import Generic, Optional, TypeVar
2
+
3
+ _T = TypeVar("_T")
4
+
5
+ class ProgressBar(Generic[_T]):
6
+ def update(self, n_steps: int) -> None: ...
7
+ def finish(self) -> None: ...
8
+ def __enter__(self) -> ProgressBar[_T]: ...
9
+ def __exit__(self, exc_type, exc_value, tb) -> None: ...
10
+ def __iter__(self) -> ProgressBar[_T]: ...
11
+ def next(self) -> _T: ...
12
+ def __next__(self) -> _T: ...
13
+ length: Optional[int]
14
+ label: str
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/third_party/2and3/click/globals.pyi ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ from typing import Optional
2
+
3
+ from click.core import Context
4
+
5
+ def get_current_context(silent: bool = ...) -> Context: ...
6
+ def push_context(ctx: Context) -> None: ...
7
+ def pop_context() -> None: ...
8
+ def resolve_color_default(color: Optional[bool] = ...) -> Optional[bool]: ...
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/third_party/2and3/click/parser.pyi ADDED
@@ -0,0 +1,65 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from typing import Any, Dict, Iterable, List, Optional, Set, Tuple
2
+
3
+ from click.core import Context
4
+
5
+ def _unpack_args(args: Iterable[str], nargs_spec: Iterable[int]) -> Tuple[Tuple[Optional[Tuple[str, ...]], ...], List[str]]: ...
6
+ def split_opt(opt: str) -> Tuple[str, str]: ...
7
+ def normalize_opt(opt: str, ctx: Context) -> str: ...
8
+ def split_arg_string(string: str) -> List[str]: ...
9
+
10
+ class Option:
11
+ dest: str
12
+ action: str
13
+ nargs: int
14
+ const: Any
15
+ obj: Any
16
+ prefixes: Set[str]
17
+ _short_opts: List[str]
18
+ _long_opts: List[str]
19
+ def __init__(
20
+ self,
21
+ opts: Iterable[str],
22
+ dest: str,
23
+ action: Optional[str] = ...,
24
+ nargs: int = ...,
25
+ const: Optional[Any] = ...,
26
+ obj: Optional[Any] = ...,
27
+ ) -> None: ...
28
+ @property
29
+ def takes_value(self) -> bool: ...
30
+ def process(self, value: Any, state: ParsingState) -> None: ...
31
+
32
+ class Argument:
33
+ dest: str
34
+ nargs: int
35
+ obj: Any
36
+ def __init__(self, dest: str, nargs: int = ..., obj: Optional[Any] = ...) -> None: ...
37
+ def process(self, value: Any, state: ParsingState) -> None: ...
38
+
39
+ class ParsingState:
40
+ opts: Dict[str, Any]
41
+ largs: List[str]
42
+ rargs: List[str]
43
+ order: List[Any]
44
+ def __init__(self, rargs: List[str]) -> None: ...
45
+
46
+ class OptionParser:
47
+ ctx: Optional[Context]
48
+ allow_interspersed_args: bool
49
+ ignore_unknown_options: bool
50
+ _short_opt: Dict[str, Option]
51
+ _long_opt: Dict[str, Option]
52
+ _opt_prefixes: Set[str]
53
+ _args: List[Argument]
54
+ def __init__(self, ctx: Optional[Context] = ...) -> None: ...
55
+ def add_option(
56
+ self,
57
+ opts: Iterable[str],
58
+ dest: str,
59
+ action: Optional[str] = ...,
60
+ nargs: int = ...,
61
+ const: Optional[Any] = ...,
62
+ obj: Optional[Any] = ...,
63
+ ) -> None: ...
64
+ def add_argument(self, dest: str, nargs: int = ..., obj: Optional[Any] = ...) -> None: ...
65
+ def parse_args(self, args: List[str]) -> Tuple[Dict[str, Any], List[str], List[Any]]: ...
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/third_party/2and3/click/termui.pyi ADDED
@@ -0,0 +1,103 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from typing import IO, Any, Callable, Generator, Iterable, Optional, Text, Tuple, TypeVar, Union, overload
2
+
3
+ from click._termui_impl import ProgressBar as _ProgressBar
4
+ from click.core import _ConvertibleType
5
+
6
+ def hidden_prompt_func(prompt: str) -> str: ...
7
+ def _build_prompt(text: str, suffix: str, show_default: bool = ..., default: Optional[str] = ...) -> str: ...
8
+ def prompt(
9
+ text: str,
10
+ default: Optional[str] = ...,
11
+ hide_input: bool = ...,
12
+ confirmation_prompt: bool = ...,
13
+ type: Optional[_ConvertibleType] = ...,
14
+ value_proc: Optional[Callable[[Optional[str]], Any]] = ...,
15
+ prompt_suffix: str = ...,
16
+ show_default: bool = ...,
17
+ err: bool = ...,
18
+ show_choices: bool = ...,
19
+ ) -> Any: ...
20
+ def confirm(
21
+ text: str, default: bool = ..., abort: bool = ..., prompt_suffix: str = ..., show_default: bool = ..., err: bool = ...
22
+ ) -> bool: ...
23
+ def get_terminal_size() -> Tuple[int, int]: ...
24
+ def echo_via_pager(
25
+ text_or_generator: Union[str, Iterable[str], Callable[[], Generator[str, None, None]]], color: Optional[bool] = ...
26
+ ) -> None: ...
27
+
28
+ _T = TypeVar("_T")
29
+ @overload
30
+ def progressbar(
31
+ iterable: Iterable[_T],
32
+ length: Optional[int] = ...,
33
+ label: Optional[str] = ...,
34
+ show_eta: bool = ...,
35
+ show_percent: Optional[bool] = ...,
36
+ show_pos: bool = ...,
37
+ item_show_func: Optional[Callable[[_T], str]] = ...,
38
+ fill_char: str = ...,
39
+ empty_char: str = ...,
40
+ bar_template: str = ...,
41
+ info_sep: str = ...,
42
+ width: int = ...,
43
+ file: Optional[IO[Any]] = ...,
44
+ color: Optional[bool] = ...,
45
+ ) -> _ProgressBar[_T]: ...
46
+ @overload
47
+ def progressbar(
48
+ iterable: None = ...,
49
+ length: Optional[int] = ...,
50
+ label: Optional[str] = ...,
51
+ show_eta: bool = ...,
52
+ show_percent: Optional[bool] = ...,
53
+ show_pos: bool = ...,
54
+ item_show_func: Optional[Callable[[_T], str]] = ...,
55
+ fill_char: str = ...,
56
+ empty_char: str = ...,
57
+ bar_template: str = ...,
58
+ info_sep: str = ...,
59
+ width: int = ...,
60
+ file: Optional[IO[Any]] = ...,
61
+ color: Optional[bool] = ...,
62
+ ) -> _ProgressBar[int]: ...
63
+ def clear() -> None: ...
64
+ def style(
65
+ text: Text,
66
+ fg: Optional[Text] = ...,
67
+ bg: Optional[Text] = ...,
68
+ bold: Optional[bool] = ...,
69
+ dim: Optional[bool] = ...,
70
+ underline: Optional[bool] = ...,
71
+ blink: Optional[bool] = ...,
72
+ reverse: Optional[bool] = ...,
73
+ reset: bool = ...,
74
+ ) -> str: ...
75
+ def unstyle(text: Text) -> str: ...
76
+
77
+ # Styling options copied from style() for nicer type checking.
78
+ def secho(
79
+ message: Optional[str] = ...,
80
+ file: Optional[IO[Any]] = ...,
81
+ nl: bool = ...,
82
+ err: bool = ...,
83
+ color: Optional[bool] = ...,
84
+ fg: Optional[str] = ...,
85
+ bg: Optional[str] = ...,
86
+ bold: Optional[bool] = ...,
87
+ dim: Optional[bool] = ...,
88
+ underline: Optional[bool] = ...,
89
+ blink: Optional[bool] = ...,
90
+ reverse: Optional[bool] = ...,
91
+ reset: bool = ...,
92
+ ): ...
93
+ def edit(
94
+ text: Optional[str] = ...,
95
+ editor: Optional[str] = ...,
96
+ env: Optional[str] = ...,
97
+ require_save: bool = ...,
98
+ extension: str = ...,
99
+ filename: Optional[str] = ...,
100
+ ) -> str: ...
101
+ def launch(url: str, wait: bool = ..., locate: bool = ...) -> int: ...
102
+ def getchar(echo: bool = ...) -> Text: ...
103
+ def pause(info: str = ..., err: bool = ...) -> None: ...