Datasets:
Add files using upload-large-folder tool
Browse filesThis view is limited to 50 files because it contains too many changes. See raw diff
- .gitattributes +1 -0
- material/dataset/Datasets/Electron Microscopy Image Masks/TiO2_Masks_Manual_4connected/1908298_m.tif +3 -0
- material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/3/_ast.pyi +376 -0
- material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/3/_bootlocale.pyi +1 -0
- material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/3/_decimal.pyi +1 -0
- material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/3/_importlib_modulespec.pyi +50 -0
- material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/3/_markupbase.pyi +8 -0
- material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/3/_osx_support.pyi +33 -0
- material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/3/_tracemalloc.pyi +17 -0
- material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/3/asyncio/__init__.pyi +116 -0
- material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/3/asyncio/base_subprocess.pyi +72 -0
- material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/3/asyncio/base_tasks.pyi +9 -0
- material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/3/asyncio/compat.pyi +8 -0
- material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/3/asyncio/constants.pyi +14 -0
- material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/3/asyncio/futures.pyi +65 -0
- material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/3/asyncio/locks.pyi +68 -0
- material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/3/asyncio/runners.pyi +10 -0
- material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/3/asyncio/selector_events.pyi +7 -0
- material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/3/asyncio/sslproto.pyi +133 -0
- material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/3/asyncio/tasks.pyi +204 -0
- material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/3/asyncio/threads.pyi +7 -0
- material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/3/asyncio/transports.pyi +46 -0
- material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/3/asyncio/windows_events.pyi +76 -0
- material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/3/asyncio/windows_utils.pyi +26 -0
- material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/3/builtins.pyi +1387 -0
- material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/3/concurrent/__init__.pyi +0 -0
- material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/3/concurrent/futures/__init__.pyi +20 -0
- material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/3/concurrent/futures/_base.pyi +133 -0
- material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/3/concurrent/futures/process.pyi +28 -0
- material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/3/concurrent/futures/thread.pyi +42 -0
- material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/3/configparser.pyi +252 -0
- material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/3/faulthandler.pyi +13 -0
- material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/3/fnmatch.pyi +6 -0
- material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/3/functools.pyi +123 -0
- material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/3/gc.pyi +40 -0
- material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/3/getopt.pyi +10 -0
- material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/3/gzip.pyi +94 -0
- material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/3/heapq.pyi +14 -0
- material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/3/inspect.pyi +309 -0
- material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/3/ipaddress.pyi +152 -0
- material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/3/itertools.pyi +109 -0
- material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/3/nntplib.pyi +113 -0
- material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/3/pathlib.pyi +178 -0
- material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/3/pipes.pyi +15 -0
- material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/3/platform.pyi +66 -0
- material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/3/posixpath.pyi +144 -0
- material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/3/random.pyi +87 -0
- material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/3/re.pyi +123 -0
- material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/3/selectors.pyi +69 -0
- material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/3/shelve.pyi +34 -0
.gitattributes
CHANGED
|
@@ -473,3 +473,4 @@ material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/matplotlib/_
|
|
| 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
|
|
|
|
|
|
| 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
|
| 476 |
+
material/dataset/Datasets/Electron[[:space:]]Microscopy[[:space:]]Image[[:space:]]Masks/TiO2_Masks_Manual_4connected/1908298_m.tif filter=lfs diff=lfs merge=lfs -text
|
material/dataset/Datasets/Electron Microscopy Image Masks/TiO2_Masks_Manual_4connected/1908298_m.tif
ADDED
|
|
Git LFS Details
|
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/3/_ast.pyi
ADDED
|
@@ -0,0 +1,376 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import sys
|
| 2 |
+
import typing
|
| 3 |
+
from typing import Any, ClassVar, Optional
|
| 4 |
+
|
| 5 |
+
PyCF_ONLY_AST: int
|
| 6 |
+
if sys.version_info >= (3, 8):
|
| 7 |
+
PyCF_TYPE_COMMENTS: int
|
| 8 |
+
PyCF_ALLOW_TOP_LEVEL_AWAIT: int
|
| 9 |
+
|
| 10 |
+
_identifier = str
|
| 11 |
+
|
| 12 |
+
class AST:
|
| 13 |
+
_attributes: ClassVar[typing.Tuple[str, ...]]
|
| 14 |
+
_fields: ClassVar[typing.Tuple[str, ...]]
|
| 15 |
+
def __init__(self, *args: Any, **kwargs: Any) -> None: ...
|
| 16 |
+
# TODO: Not all nodes have all of the following attributes
|
| 17 |
+
lineno: int
|
| 18 |
+
col_offset: int
|
| 19 |
+
if sys.version_info >= (3, 8):
|
| 20 |
+
end_lineno: Optional[int]
|
| 21 |
+
end_col_offset: Optional[int]
|
| 22 |
+
type_comment: Optional[str]
|
| 23 |
+
|
| 24 |
+
class mod(AST): ...
|
| 25 |
+
|
| 26 |
+
if sys.version_info >= (3, 8):
|
| 27 |
+
class type_ignore(AST): ...
|
| 28 |
+
class TypeIgnore(type_ignore): ...
|
| 29 |
+
class FunctionType(mod):
|
| 30 |
+
argtypes: typing.List[expr]
|
| 31 |
+
returns: expr
|
| 32 |
+
|
| 33 |
+
class Module(mod):
|
| 34 |
+
body: typing.List[stmt]
|
| 35 |
+
if sys.version_info >= (3, 8):
|
| 36 |
+
type_ignores: typing.List[TypeIgnore]
|
| 37 |
+
|
| 38 |
+
class Interactive(mod):
|
| 39 |
+
body: typing.List[stmt]
|
| 40 |
+
|
| 41 |
+
class Expression(mod):
|
| 42 |
+
body: expr
|
| 43 |
+
|
| 44 |
+
class stmt(AST): ...
|
| 45 |
+
|
| 46 |
+
class FunctionDef(stmt):
|
| 47 |
+
name: _identifier
|
| 48 |
+
args: arguments
|
| 49 |
+
body: typing.List[stmt]
|
| 50 |
+
decorator_list: typing.List[expr]
|
| 51 |
+
returns: Optional[expr]
|
| 52 |
+
|
| 53 |
+
class AsyncFunctionDef(stmt):
|
| 54 |
+
name: _identifier
|
| 55 |
+
args: arguments
|
| 56 |
+
body: typing.List[stmt]
|
| 57 |
+
decorator_list: typing.List[expr]
|
| 58 |
+
returns: Optional[expr]
|
| 59 |
+
|
| 60 |
+
class ClassDef(stmt):
|
| 61 |
+
name: _identifier
|
| 62 |
+
bases: typing.List[expr]
|
| 63 |
+
keywords: typing.List[keyword]
|
| 64 |
+
body: typing.List[stmt]
|
| 65 |
+
decorator_list: typing.List[expr]
|
| 66 |
+
|
| 67 |
+
class Return(stmt):
|
| 68 |
+
value: Optional[expr]
|
| 69 |
+
|
| 70 |
+
class Delete(stmt):
|
| 71 |
+
targets: typing.List[expr]
|
| 72 |
+
|
| 73 |
+
class Assign(stmt):
|
| 74 |
+
targets: typing.List[expr]
|
| 75 |
+
value: expr
|
| 76 |
+
|
| 77 |
+
class AugAssign(stmt):
|
| 78 |
+
target: expr
|
| 79 |
+
op: operator
|
| 80 |
+
value: expr
|
| 81 |
+
|
| 82 |
+
class AnnAssign(stmt):
|
| 83 |
+
target: expr
|
| 84 |
+
annotation: expr
|
| 85 |
+
value: Optional[expr]
|
| 86 |
+
simple: int
|
| 87 |
+
|
| 88 |
+
class For(stmt):
|
| 89 |
+
target: expr
|
| 90 |
+
iter: expr
|
| 91 |
+
body: typing.List[stmt]
|
| 92 |
+
orelse: typing.List[stmt]
|
| 93 |
+
|
| 94 |
+
class AsyncFor(stmt):
|
| 95 |
+
target: expr
|
| 96 |
+
iter: expr
|
| 97 |
+
body: typing.List[stmt]
|
| 98 |
+
orelse: typing.List[stmt]
|
| 99 |
+
|
| 100 |
+
class While(stmt):
|
| 101 |
+
test: expr
|
| 102 |
+
body: typing.List[stmt]
|
| 103 |
+
orelse: typing.List[stmt]
|
| 104 |
+
|
| 105 |
+
class If(stmt):
|
| 106 |
+
test: expr
|
| 107 |
+
body: typing.List[stmt]
|
| 108 |
+
orelse: typing.List[stmt]
|
| 109 |
+
|
| 110 |
+
class With(stmt):
|
| 111 |
+
items: typing.List[withitem]
|
| 112 |
+
body: typing.List[stmt]
|
| 113 |
+
|
| 114 |
+
class AsyncWith(stmt):
|
| 115 |
+
items: typing.List[withitem]
|
| 116 |
+
body: typing.List[stmt]
|
| 117 |
+
|
| 118 |
+
class Raise(stmt):
|
| 119 |
+
exc: Optional[expr]
|
| 120 |
+
cause: Optional[expr]
|
| 121 |
+
|
| 122 |
+
class Try(stmt):
|
| 123 |
+
body: typing.List[stmt]
|
| 124 |
+
handlers: typing.List[ExceptHandler]
|
| 125 |
+
orelse: typing.List[stmt]
|
| 126 |
+
finalbody: typing.List[stmt]
|
| 127 |
+
|
| 128 |
+
class Assert(stmt):
|
| 129 |
+
test: expr
|
| 130 |
+
msg: Optional[expr]
|
| 131 |
+
|
| 132 |
+
class Import(stmt):
|
| 133 |
+
names: typing.List[alias]
|
| 134 |
+
|
| 135 |
+
class ImportFrom(stmt):
|
| 136 |
+
module: Optional[_identifier]
|
| 137 |
+
names: typing.List[alias]
|
| 138 |
+
level: int
|
| 139 |
+
|
| 140 |
+
class Global(stmt):
|
| 141 |
+
names: typing.List[_identifier]
|
| 142 |
+
|
| 143 |
+
class Nonlocal(stmt):
|
| 144 |
+
names: typing.List[_identifier]
|
| 145 |
+
|
| 146 |
+
class Expr(stmt):
|
| 147 |
+
value: expr
|
| 148 |
+
|
| 149 |
+
class Pass(stmt): ...
|
| 150 |
+
class Break(stmt): ...
|
| 151 |
+
class Continue(stmt): ...
|
| 152 |
+
class expr(AST): ...
|
| 153 |
+
|
| 154 |
+
class BoolOp(expr):
|
| 155 |
+
op: boolop
|
| 156 |
+
values: typing.List[expr]
|
| 157 |
+
|
| 158 |
+
class BinOp(expr):
|
| 159 |
+
left: expr
|
| 160 |
+
op: operator
|
| 161 |
+
right: expr
|
| 162 |
+
|
| 163 |
+
class UnaryOp(expr):
|
| 164 |
+
op: unaryop
|
| 165 |
+
operand: expr
|
| 166 |
+
|
| 167 |
+
class Lambda(expr):
|
| 168 |
+
args: arguments
|
| 169 |
+
body: expr
|
| 170 |
+
|
| 171 |
+
class IfExp(expr):
|
| 172 |
+
test: expr
|
| 173 |
+
body: expr
|
| 174 |
+
orelse: expr
|
| 175 |
+
|
| 176 |
+
class Dict(expr):
|
| 177 |
+
keys: typing.List[Optional[expr]]
|
| 178 |
+
values: typing.List[expr]
|
| 179 |
+
|
| 180 |
+
class Set(expr):
|
| 181 |
+
elts: typing.List[expr]
|
| 182 |
+
|
| 183 |
+
class ListComp(expr):
|
| 184 |
+
elt: expr
|
| 185 |
+
generators: typing.List[comprehension]
|
| 186 |
+
|
| 187 |
+
class SetComp(expr):
|
| 188 |
+
elt: expr
|
| 189 |
+
generators: typing.List[comprehension]
|
| 190 |
+
|
| 191 |
+
class DictComp(expr):
|
| 192 |
+
key: expr
|
| 193 |
+
value: expr
|
| 194 |
+
generators: typing.List[comprehension]
|
| 195 |
+
|
| 196 |
+
class GeneratorExp(expr):
|
| 197 |
+
elt: expr
|
| 198 |
+
generators: typing.List[comprehension]
|
| 199 |
+
|
| 200 |
+
class Await(expr):
|
| 201 |
+
value: expr
|
| 202 |
+
|
| 203 |
+
class Yield(expr):
|
| 204 |
+
value: Optional[expr]
|
| 205 |
+
|
| 206 |
+
class YieldFrom(expr):
|
| 207 |
+
value: expr
|
| 208 |
+
|
| 209 |
+
class Compare(expr):
|
| 210 |
+
left: expr
|
| 211 |
+
ops: typing.List[cmpop]
|
| 212 |
+
comparators: typing.List[expr]
|
| 213 |
+
|
| 214 |
+
class Call(expr):
|
| 215 |
+
func: expr
|
| 216 |
+
args: typing.List[expr]
|
| 217 |
+
keywords: typing.List[keyword]
|
| 218 |
+
|
| 219 |
+
class FormattedValue(expr):
|
| 220 |
+
value: expr
|
| 221 |
+
conversion: Optional[int]
|
| 222 |
+
format_spec: Optional[expr]
|
| 223 |
+
|
| 224 |
+
class JoinedStr(expr):
|
| 225 |
+
values: typing.List[expr]
|
| 226 |
+
|
| 227 |
+
if sys.version_info < (3, 8):
|
| 228 |
+
class Num(expr): # Deprecated in 3.8; use Constant
|
| 229 |
+
n: complex
|
| 230 |
+
class Str(expr): # Deprecated in 3.8; use Constant
|
| 231 |
+
s: str
|
| 232 |
+
class Bytes(expr): # Deprecated in 3.8; use Constant
|
| 233 |
+
s: bytes
|
| 234 |
+
class NameConstant(expr): # Deprecated in 3.8; use Constant
|
| 235 |
+
value: Any
|
| 236 |
+
class Ellipsis(expr): ... # Deprecated in 3.8; use Constant
|
| 237 |
+
|
| 238 |
+
class Constant(expr):
|
| 239 |
+
value: Any # None, str, bytes, bool, int, float, complex, Ellipsis
|
| 240 |
+
kind: Optional[str]
|
| 241 |
+
# Aliases for value, for backwards compatibility
|
| 242 |
+
s: Any
|
| 243 |
+
n: complex
|
| 244 |
+
|
| 245 |
+
if sys.version_info >= (3, 8):
|
| 246 |
+
class NamedExpr(expr):
|
| 247 |
+
target: expr
|
| 248 |
+
value: expr
|
| 249 |
+
|
| 250 |
+
class Attribute(expr):
|
| 251 |
+
value: expr
|
| 252 |
+
attr: _identifier
|
| 253 |
+
ctx: expr_context
|
| 254 |
+
|
| 255 |
+
if sys.version_info >= (3, 9):
|
| 256 |
+
_SliceT = expr
|
| 257 |
+
else:
|
| 258 |
+
class slice(AST): ...
|
| 259 |
+
_SliceT = slice
|
| 260 |
+
|
| 261 |
+
class Slice(_SliceT):
|
| 262 |
+
lower: Optional[expr]
|
| 263 |
+
upper: Optional[expr]
|
| 264 |
+
step: Optional[expr]
|
| 265 |
+
|
| 266 |
+
if sys.version_info < (3, 9):
|
| 267 |
+
class ExtSlice(slice):
|
| 268 |
+
dims: typing.List[slice]
|
| 269 |
+
class Index(slice):
|
| 270 |
+
value: expr
|
| 271 |
+
|
| 272 |
+
class Subscript(expr):
|
| 273 |
+
value: expr
|
| 274 |
+
slice: _SliceT
|
| 275 |
+
ctx: expr_context
|
| 276 |
+
|
| 277 |
+
class Starred(expr):
|
| 278 |
+
value: expr
|
| 279 |
+
ctx: expr_context
|
| 280 |
+
|
| 281 |
+
class Name(expr):
|
| 282 |
+
id: _identifier
|
| 283 |
+
ctx: expr_context
|
| 284 |
+
|
| 285 |
+
class List(expr):
|
| 286 |
+
elts: typing.List[expr]
|
| 287 |
+
ctx: expr_context
|
| 288 |
+
|
| 289 |
+
class Tuple(expr):
|
| 290 |
+
elts: typing.List[expr]
|
| 291 |
+
ctx: expr_context
|
| 292 |
+
|
| 293 |
+
class expr_context(AST): ...
|
| 294 |
+
|
| 295 |
+
if sys.version_info < (3, 9):
|
| 296 |
+
class AugLoad(expr_context): ...
|
| 297 |
+
class AugStore(expr_context): ...
|
| 298 |
+
class Param(expr_context): ...
|
| 299 |
+
class Suite(mod):
|
| 300 |
+
body: typing.List[stmt]
|
| 301 |
+
|
| 302 |
+
class Del(expr_context): ...
|
| 303 |
+
class Load(expr_context): ...
|
| 304 |
+
class Store(expr_context): ...
|
| 305 |
+
class boolop(AST): ...
|
| 306 |
+
class And(boolop): ...
|
| 307 |
+
class Or(boolop): ...
|
| 308 |
+
class operator(AST): ...
|
| 309 |
+
class Add(operator): ...
|
| 310 |
+
class BitAnd(operator): ...
|
| 311 |
+
class BitOr(operator): ...
|
| 312 |
+
class BitXor(operator): ...
|
| 313 |
+
class Div(operator): ...
|
| 314 |
+
class FloorDiv(operator): ...
|
| 315 |
+
class LShift(operator): ...
|
| 316 |
+
class Mod(operator): ...
|
| 317 |
+
class Mult(operator): ...
|
| 318 |
+
class MatMult(operator): ...
|
| 319 |
+
class Pow(operator): ...
|
| 320 |
+
class RShift(operator): ...
|
| 321 |
+
class Sub(operator): ...
|
| 322 |
+
class unaryop(AST): ...
|
| 323 |
+
class Invert(unaryop): ...
|
| 324 |
+
class Not(unaryop): ...
|
| 325 |
+
class UAdd(unaryop): ...
|
| 326 |
+
class USub(unaryop): ...
|
| 327 |
+
class cmpop(AST): ...
|
| 328 |
+
class Eq(cmpop): ...
|
| 329 |
+
class Gt(cmpop): ...
|
| 330 |
+
class GtE(cmpop): ...
|
| 331 |
+
class In(cmpop): ...
|
| 332 |
+
class Is(cmpop): ...
|
| 333 |
+
class IsNot(cmpop): ...
|
| 334 |
+
class Lt(cmpop): ...
|
| 335 |
+
class LtE(cmpop): ...
|
| 336 |
+
class NotEq(cmpop): ...
|
| 337 |
+
class NotIn(cmpop): ...
|
| 338 |
+
|
| 339 |
+
class comprehension(AST):
|
| 340 |
+
target: expr
|
| 341 |
+
iter: expr
|
| 342 |
+
ifs: typing.List[expr]
|
| 343 |
+
is_async: int
|
| 344 |
+
|
| 345 |
+
class excepthandler(AST): ...
|
| 346 |
+
|
| 347 |
+
class ExceptHandler(excepthandler):
|
| 348 |
+
type: Optional[expr]
|
| 349 |
+
name: Optional[_identifier]
|
| 350 |
+
body: typing.List[stmt]
|
| 351 |
+
|
| 352 |
+
class arguments(AST):
|
| 353 |
+
if sys.version_info >= (3, 8):
|
| 354 |
+
posonlyargs: typing.List[arg]
|
| 355 |
+
args: typing.List[arg]
|
| 356 |
+
vararg: Optional[arg]
|
| 357 |
+
kwonlyargs: typing.List[arg]
|
| 358 |
+
kw_defaults: typing.List[Optional[expr]]
|
| 359 |
+
kwarg: Optional[arg]
|
| 360 |
+
defaults: typing.List[expr]
|
| 361 |
+
|
| 362 |
+
class arg(AST):
|
| 363 |
+
arg: _identifier
|
| 364 |
+
annotation: Optional[expr]
|
| 365 |
+
|
| 366 |
+
class keyword(AST):
|
| 367 |
+
arg: Optional[_identifier]
|
| 368 |
+
value: expr
|
| 369 |
+
|
| 370 |
+
class alias(AST):
|
| 371 |
+
name: _identifier
|
| 372 |
+
asname: Optional[_identifier]
|
| 373 |
+
|
| 374 |
+
class withitem(AST):
|
| 375 |
+
context_expr: expr
|
| 376 |
+
optional_vars: Optional[expr]
|
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/3/_bootlocale.pyi
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
def getpreferredencoding(do_setlocale: bool = ...) -> str: ...
|
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/3/_decimal.pyi
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
from decimal import *
|
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/3/_importlib_modulespec.pyi
ADDED
|
@@ -0,0 +1,50 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# ModuleSpec, ModuleType, Loader are part of a dependency cycle.
|
| 2 |
+
# They are officially defined/exported in other places:
|
| 3 |
+
#
|
| 4 |
+
# - ModuleType in types
|
| 5 |
+
# - Loader in importlib.abc
|
| 6 |
+
# - ModuleSpec in importlib.machinery (3.4 and later only)
|
| 7 |
+
#
|
| 8 |
+
# _Loader is the PEP-451-defined interface for a loader type/object.
|
| 9 |
+
|
| 10 |
+
from abc import ABCMeta
|
| 11 |
+
from typing import Any, Dict, List, Optional, Protocol
|
| 12 |
+
|
| 13 |
+
class _Loader(Protocol):
|
| 14 |
+
def load_module(self, fullname: str) -> ModuleType: ...
|
| 15 |
+
|
| 16 |
+
class ModuleSpec:
|
| 17 |
+
def __init__(
|
| 18 |
+
self,
|
| 19 |
+
name: str,
|
| 20 |
+
loader: Optional[Loader],
|
| 21 |
+
*,
|
| 22 |
+
origin: Optional[str] = ...,
|
| 23 |
+
loader_state: Any = ...,
|
| 24 |
+
is_package: Optional[bool] = ...,
|
| 25 |
+
) -> None: ...
|
| 26 |
+
name: str
|
| 27 |
+
loader: Optional[_Loader]
|
| 28 |
+
origin: Optional[str]
|
| 29 |
+
submodule_search_locations: Optional[List[str]]
|
| 30 |
+
loader_state: Any
|
| 31 |
+
cached: Optional[str]
|
| 32 |
+
parent: Optional[str]
|
| 33 |
+
has_location: bool
|
| 34 |
+
|
| 35 |
+
class ModuleType:
|
| 36 |
+
__name__: str
|
| 37 |
+
__file__: str
|
| 38 |
+
__dict__: Dict[str, Any]
|
| 39 |
+
__loader__: Optional[_Loader]
|
| 40 |
+
__package__: Optional[str]
|
| 41 |
+
__spec__: Optional[ModuleSpec]
|
| 42 |
+
def __init__(self, name: str, doc: Optional[str] = ...) -> None: ...
|
| 43 |
+
|
| 44 |
+
class Loader(metaclass=ABCMeta):
|
| 45 |
+
def load_module(self, fullname: str) -> ModuleType: ...
|
| 46 |
+
def module_repr(self, module: ModuleType) -> str: ...
|
| 47 |
+
def create_module(self, spec: ModuleSpec) -> Optional[ModuleType]: ...
|
| 48 |
+
# Not defined on the actual class for backwards-compatibility reasons,
|
| 49 |
+
# but expected in new code.
|
| 50 |
+
def exec_module(self, module: ModuleType) -> None: ...
|
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/3/_markupbase.pyi
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from typing import Tuple
|
| 2 |
+
|
| 3 |
+
class ParserBase:
|
| 4 |
+
def __init__(self) -> None: ...
|
| 5 |
+
def error(self, message: str) -> None: ...
|
| 6 |
+
def reset(self) -> None: ...
|
| 7 |
+
def getpos(self) -> Tuple[int, int]: ...
|
| 8 |
+
def unknown_decl(self, data: str) -> None: ...
|
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/3/_osx_support.pyi
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from typing import Dict, Iterable, List, Optional, Sequence, Tuple, TypeVar, Union
|
| 2 |
+
|
| 3 |
+
_T = TypeVar("_T")
|
| 4 |
+
_K = TypeVar("_K")
|
| 5 |
+
_V = TypeVar("_V")
|
| 6 |
+
|
| 7 |
+
__all__: List[str]
|
| 8 |
+
|
| 9 |
+
_UNIVERSAL_CONFIG_VARS: Tuple[str, ...] # undocumented
|
| 10 |
+
_COMPILER_CONFIG_VARS: Tuple[str, ...] # undocumented
|
| 11 |
+
_INITPRE: str # undocumented
|
| 12 |
+
|
| 13 |
+
def _find_executable(executable: str, path: Optional[str] = ...) -> Optional[str]: ... # undocumented
|
| 14 |
+
def _read_output(commandstring: str) -> Optional[str]: ... # undocumented
|
| 15 |
+
def _find_build_tool(toolname: str) -> str: ... # undocumented
|
| 16 |
+
|
| 17 |
+
_SYSTEM_VERSION: Optional[str] # undocumented
|
| 18 |
+
|
| 19 |
+
def _get_system_version() -> str: ... # undocumented
|
| 20 |
+
def _remove_original_values(_config_vars: Dict[str, str]) -> None: ... # undocumented
|
| 21 |
+
def _save_modified_value(_config_vars: Dict[str, str], cv: str, newvalue: str) -> None: ... # undocumented
|
| 22 |
+
def _supports_universal_builds() -> bool: ... # undocumented
|
| 23 |
+
def _find_appropriate_compiler(_config_vars: Dict[str, str]) -> Dict[str, str]: ... # undocumented
|
| 24 |
+
def _remove_universal_flags(_config_vars: Dict[str, str]) -> Dict[str, str]: ... # undocumented
|
| 25 |
+
def _remove_unsupported_archs(_config_vars: Dict[str, str]) -> Dict[str, str]: ... # undocumented
|
| 26 |
+
def _override_all_archs(_config_vars: Dict[str, str]) -> Dict[str, str]: ... # undocumented
|
| 27 |
+
def _check_for_unavailable_sdk(_config_vars: Dict[str, str]) -> Dict[str, str]: ... # undocumented
|
| 28 |
+
def compiler_fixup(compiler_so: Iterable[str], cc_args: Sequence[str]) -> List[str]: ...
|
| 29 |
+
def customize_config_vars(_config_vars: Dict[str, str]) -> Dict[str, str]: ...
|
| 30 |
+
def customize_compiler(_config_vars: Dict[str, str]) -> Dict[str, str]: ...
|
| 31 |
+
def get_platform_osx(
|
| 32 |
+
_config_vars: Dict[str, str], osname: _T, release: _K, machine: _V
|
| 33 |
+
) -> Tuple[Union[str, _T], Union[str, _K], Union[str, _V]]: ...
|
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/3/_tracemalloc.pyi
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import sys
|
| 2 |
+
from tracemalloc import _FrameTupleT, _TraceTupleT
|
| 3 |
+
from typing import Optional, Sequence, Tuple
|
| 4 |
+
|
| 5 |
+
def _get_object_traceback(__obj: object) -> Optional[Sequence[_FrameTupleT]]: ...
|
| 6 |
+
def _get_traces() -> Sequence[_TraceTupleT]: ...
|
| 7 |
+
def clear_traces() -> None: ...
|
| 8 |
+
def get_traceback_limit() -> int: ...
|
| 9 |
+
def get_traced_memory() -> Tuple[int, int]: ...
|
| 10 |
+
def get_tracemalloc_memory() -> int: ...
|
| 11 |
+
def is_tracing() -> bool: ...
|
| 12 |
+
|
| 13 |
+
if sys.version_info >= (3, 9):
|
| 14 |
+
def reset_peak() -> None: ...
|
| 15 |
+
|
| 16 |
+
def start(__nframe: int = ...) -> None: ...
|
| 17 |
+
def stop() -> None: ...
|
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/3/asyncio/__init__.pyi
ADDED
|
@@ -0,0 +1,116 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import sys
|
| 2 |
+
from typing import Type
|
| 3 |
+
|
| 4 |
+
from .base_events import BaseEventLoop as BaseEventLoop
|
| 5 |
+
from .coroutines import coroutine as coroutine, iscoroutine as iscoroutine, iscoroutinefunction as iscoroutinefunction
|
| 6 |
+
from .events import (
|
| 7 |
+
AbstractEventLoop as AbstractEventLoop,
|
| 8 |
+
AbstractEventLoopPolicy as AbstractEventLoopPolicy,
|
| 9 |
+
AbstractServer as AbstractServer,
|
| 10 |
+
Handle as Handle,
|
| 11 |
+
TimerHandle as TimerHandle,
|
| 12 |
+
_get_running_loop as _get_running_loop,
|
| 13 |
+
_set_running_loop as _set_running_loop,
|
| 14 |
+
get_child_watcher as get_child_watcher,
|
| 15 |
+
get_event_loop as get_event_loop,
|
| 16 |
+
get_event_loop_policy as get_event_loop_policy,
|
| 17 |
+
new_event_loop as new_event_loop,
|
| 18 |
+
set_child_watcher as set_child_watcher,
|
| 19 |
+
set_event_loop as set_event_loop,
|
| 20 |
+
set_event_loop_policy as set_event_loop_policy,
|
| 21 |
+
)
|
| 22 |
+
from .futures import Future as Future, isfuture as isfuture, wrap_future as wrap_future
|
| 23 |
+
from .locks import (
|
| 24 |
+
BoundedSemaphore as BoundedSemaphore,
|
| 25 |
+
Condition as Condition,
|
| 26 |
+
Event as Event,
|
| 27 |
+
Lock as Lock,
|
| 28 |
+
Semaphore as Semaphore,
|
| 29 |
+
)
|
| 30 |
+
from .protocols import (
|
| 31 |
+
BaseProtocol as BaseProtocol,
|
| 32 |
+
DatagramProtocol as DatagramProtocol,
|
| 33 |
+
Protocol as Protocol,
|
| 34 |
+
SubprocessProtocol as SubprocessProtocol,
|
| 35 |
+
)
|
| 36 |
+
from .queues import (
|
| 37 |
+
LifoQueue as LifoQueue,
|
| 38 |
+
PriorityQueue as PriorityQueue,
|
| 39 |
+
Queue as Queue,
|
| 40 |
+
QueueEmpty as QueueEmpty,
|
| 41 |
+
QueueFull as QueueFull,
|
| 42 |
+
)
|
| 43 |
+
from .streams import (
|
| 44 |
+
StreamReader as StreamReader,
|
| 45 |
+
StreamReaderProtocol as StreamReaderProtocol,
|
| 46 |
+
StreamWriter as StreamWriter,
|
| 47 |
+
open_connection as open_connection,
|
| 48 |
+
start_server as start_server,
|
| 49 |
+
)
|
| 50 |
+
from .subprocess import create_subprocess_exec as create_subprocess_exec, create_subprocess_shell as create_subprocess_shell
|
| 51 |
+
from .tasks import (
|
| 52 |
+
ALL_COMPLETED as ALL_COMPLETED,
|
| 53 |
+
FIRST_COMPLETED as FIRST_COMPLETED,
|
| 54 |
+
FIRST_EXCEPTION as FIRST_EXCEPTION,
|
| 55 |
+
Task as Task,
|
| 56 |
+
as_completed as as_completed,
|
| 57 |
+
ensure_future as ensure_future,
|
| 58 |
+
gather as gather,
|
| 59 |
+
run_coroutine_threadsafe as run_coroutine_threadsafe,
|
| 60 |
+
shield as shield,
|
| 61 |
+
sleep as sleep,
|
| 62 |
+
wait as wait,
|
| 63 |
+
wait_for as wait_for,
|
| 64 |
+
)
|
| 65 |
+
from .transports import (
|
| 66 |
+
BaseTransport as BaseTransport,
|
| 67 |
+
DatagramTransport as DatagramTransport,
|
| 68 |
+
ReadTransport as ReadTransport,
|
| 69 |
+
SubprocessTransport as SubprocessTransport,
|
| 70 |
+
Transport as Transport,
|
| 71 |
+
WriteTransport as WriteTransport,
|
| 72 |
+
)
|
| 73 |
+
|
| 74 |
+
if sys.version_info >= (3, 7):
|
| 75 |
+
from .events import get_running_loop as get_running_loop
|
| 76 |
+
if sys.version_info >= (3, 8):
|
| 77 |
+
from .exceptions import (
|
| 78 |
+
CancelledError as CancelledError,
|
| 79 |
+
IncompleteReadError as IncompleteReadError,
|
| 80 |
+
InvalidStateError as InvalidStateError,
|
| 81 |
+
LimitOverrunError as LimitOverrunError,
|
| 82 |
+
SendfileNotAvailableError as SendfileNotAvailableError,
|
| 83 |
+
TimeoutError as TimeoutError,
|
| 84 |
+
)
|
| 85 |
+
else:
|
| 86 |
+
if sys.version_info >= (3, 7):
|
| 87 |
+
from .events import SendfileNotAvailableError as SendfileNotAvailableError
|
| 88 |
+
from .futures import CancelledError as CancelledError, InvalidStateError as InvalidStateError, TimeoutError as TimeoutError
|
| 89 |
+
from .streams import IncompleteReadError as IncompleteReadError, LimitOverrunError as LimitOverrunError
|
| 90 |
+
|
| 91 |
+
if sys.version_info >= (3, 7):
|
| 92 |
+
from .protocols import BufferedProtocol as BufferedProtocol
|
| 93 |
+
|
| 94 |
+
if sys.version_info >= (3, 7):
|
| 95 |
+
from .runners import run as run
|
| 96 |
+
|
| 97 |
+
if sys.version_info >= (3, 7):
|
| 98 |
+
from .tasks import all_tasks as all_tasks, create_task as create_task, current_task as current_task
|
| 99 |
+
if sys.version_info >= (3, 9):
|
| 100 |
+
from .threads import to_thread as to_thread
|
| 101 |
+
|
| 102 |
+
DefaultEventLoopPolicy: Type[AbstractEventLoopPolicy]
|
| 103 |
+
if sys.platform == "win32":
|
| 104 |
+
from .windows_events import *
|
| 105 |
+
|
| 106 |
+
if sys.platform != "win32":
|
| 107 |
+
from .streams import open_unix_connection as open_unix_connection, start_unix_server as start_unix_server
|
| 108 |
+
from .unix_events import (
|
| 109 |
+
AbstractChildWatcher as AbstractChildWatcher,
|
| 110 |
+
FastChildWatcher as FastChildWatcher,
|
| 111 |
+
SafeChildWatcher as SafeChildWatcher,
|
| 112 |
+
SelectorEventLoop as SelectorEventLoop,
|
| 113 |
+
)
|
| 114 |
+
|
| 115 |
+
if sys.version_info >= (3, 8):
|
| 116 |
+
from .unix_events import MultiLoopChildWatcher as MultiLoopChildWatcher, ThreadedChildWatcher as ThreadedChildWatcher
|
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/3/asyncio/base_subprocess.pyi
ADDED
|
@@ -0,0 +1,72 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import subprocess
|
| 2 |
+
from typing import IO, Any, Callable, Deque, Dict, List, Optional, Sequence, Tuple, Union
|
| 3 |
+
|
| 4 |
+
from . import events, futures, protocols, transports
|
| 5 |
+
|
| 6 |
+
_File = Optional[Union[int, IO[Any]]]
|
| 7 |
+
|
| 8 |
+
class BaseSubprocessTransport(transports.SubprocessTransport):
|
| 9 |
+
|
| 10 |
+
_closed: bool # undocumented
|
| 11 |
+
_protocol: protocols.SubprocessProtocol # undocumented
|
| 12 |
+
_loop: events.AbstractEventLoop # undocumented
|
| 13 |
+
_proc: Optional[subprocess.Popen[Any]] # undocumented
|
| 14 |
+
_pid: Optional[int] # undocumented
|
| 15 |
+
_returncode: Optional[int] # undocumented
|
| 16 |
+
_exit_waiters: List[futures.Future[Any]] # undocumented
|
| 17 |
+
_pending_calls: Deque[Tuple[Callable[..., Any], Tuple[Any, ...]]] # undocumented
|
| 18 |
+
_pipes: Dict[int, _File] # undocumented
|
| 19 |
+
_finished: bool # undocumented
|
| 20 |
+
def __init__(
|
| 21 |
+
self,
|
| 22 |
+
loop: events.AbstractEventLoop,
|
| 23 |
+
protocol: protocols.SubprocessProtocol,
|
| 24 |
+
args: Union[str, bytes, Sequence[Union[str, bytes]]],
|
| 25 |
+
shell: bool,
|
| 26 |
+
stdin: _File,
|
| 27 |
+
stdout: _File,
|
| 28 |
+
stderr: _File,
|
| 29 |
+
bufsize: int,
|
| 30 |
+
waiter: Optional[futures.Future[Any]] = ...,
|
| 31 |
+
extra: Optional[Any] = ...,
|
| 32 |
+
**kwargs: Any,
|
| 33 |
+
) -> None: ...
|
| 34 |
+
def _start(
|
| 35 |
+
self,
|
| 36 |
+
args: Union[str, bytes, Sequence[Union[str, bytes]]],
|
| 37 |
+
shell: bool,
|
| 38 |
+
stdin: _File,
|
| 39 |
+
stdout: _File,
|
| 40 |
+
stderr: _File,
|
| 41 |
+
bufsize: int,
|
| 42 |
+
**kwargs: Any,
|
| 43 |
+
) -> None: ... # undocumented
|
| 44 |
+
def set_protocol(self, protocol: protocols.BaseProtocol) -> None: ...
|
| 45 |
+
def get_protocol(self) -> protocols.BaseProtocol: ...
|
| 46 |
+
def is_closing(self) -> bool: ...
|
| 47 |
+
def close(self) -> None: ...
|
| 48 |
+
def get_pid(self) -> Optional[int]: ... # type: ignore
|
| 49 |
+
def get_returncode(self) -> Optional[int]: ...
|
| 50 |
+
def get_pipe_transport(self, fd: int) -> _File: ... # type: ignore
|
| 51 |
+
def _check_proc(self) -> None: ... # undocumented
|
| 52 |
+
def send_signal(self, signal: int) -> None: ... # type: ignore
|
| 53 |
+
def terminate(self) -> None: ...
|
| 54 |
+
def kill(self) -> None: ...
|
| 55 |
+
async def _connect_pipes(self, waiter: Optional[futures.Future[Any]]) -> None: ... # undocumented
|
| 56 |
+
def _call(self, cb: Callable[..., Any], *data: Any) -> None: ... # undocumented
|
| 57 |
+
def _pipe_connection_lost(self, fd: int, exc: Optional[BaseException]) -> None: ... # undocumented
|
| 58 |
+
def _pipe_data_received(self, fd: int, data: bytes) -> None: ... # undocumented
|
| 59 |
+
def _process_exited(self, returncode: int) -> None: ... # undocumented
|
| 60 |
+
async def _wait(self) -> int: ... # undocumented
|
| 61 |
+
def _try_finish(self) -> None: ... # undocumented
|
| 62 |
+
def _call_connection_lost(self, exc: Optional[BaseException]) -> None: ... # undocumented
|
| 63 |
+
|
| 64 |
+
class WriteSubprocessPipeProto(protocols.BaseProtocol): # undocumented
|
| 65 |
+
def __init__(self, proc: BaseSubprocessTransport, fd: int) -> None: ...
|
| 66 |
+
def connection_made(self, transport: transports.BaseTransport) -> None: ...
|
| 67 |
+
def connection_lost(self, exc: Optional[BaseException]) -> None: ...
|
| 68 |
+
def pause_writing(self) -> None: ...
|
| 69 |
+
def resume_writing(self) -> None: ...
|
| 70 |
+
|
| 71 |
+
class ReadSubprocessPipeProto(WriteSubprocessPipeProto, protocols.Protocol): # undocumented
|
| 72 |
+
def data_received(self, data: bytes) -> None: ...
|
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/3/asyncio/base_tasks.pyi
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from _typeshed import AnyPath
|
| 2 |
+
from types import FrameType
|
| 3 |
+
from typing import Any, List, Optional
|
| 4 |
+
|
| 5 |
+
from . import tasks
|
| 6 |
+
|
| 7 |
+
def _task_repr_info(task: tasks.Task[Any]) -> List[str]: ... # undocumented
|
| 8 |
+
def _task_get_stack(task: tasks.Task[Any], limit: Optional[int]) -> List[FrameType]: ... # undocumented
|
| 9 |
+
def _task_print_stack(task: tasks.Task[Any], limit: Optional[int], file: AnyPath) -> None: ... # undocumented
|
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/3/asyncio/compat.pyi
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import sys
|
| 2 |
+
from typing import List
|
| 3 |
+
|
| 4 |
+
if sys.version_info < (3, 7):
|
| 5 |
+
PY34: bool
|
| 6 |
+
PY35: bool
|
| 7 |
+
PY352: bool
|
| 8 |
+
def flatten_list_bytes(list_of_data: List[bytes]) -> bytes: ...
|
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/3/asyncio/constants.pyi
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import enum
|
| 2 |
+
import sys
|
| 3 |
+
|
| 4 |
+
LOG_THRESHOLD_FOR_CONNLOST_WRITES: int
|
| 5 |
+
ACCEPT_RETRY_DELAY: int
|
| 6 |
+
DEBUG_STACK_DEPTH: int
|
| 7 |
+
if sys.version_info >= (3, 7):
|
| 8 |
+
SSL_HANDSHAKE_TIMEOUT: float
|
| 9 |
+
SENDFILE_FALLBACK_READBUFFER_SIZE: int
|
| 10 |
+
|
| 11 |
+
class _SendfileMode(enum.Enum):
|
| 12 |
+
UNSUPPORTED: int = ...
|
| 13 |
+
TRY_NATIVE: int = ...
|
| 14 |
+
FALLBACK: int = ...
|
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/3/asyncio/futures.pyi
ADDED
|
@@ -0,0 +1,65 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import sys
|
| 2 |
+
from concurrent.futures._base import Error, Future as _ConcurrentFuture
|
| 3 |
+
from typing import Any, Awaitable, Callable, Generator, Iterable, List, Optional, Tuple, TypeVar, Union
|
| 4 |
+
|
| 5 |
+
from .events import AbstractEventLoop
|
| 6 |
+
|
| 7 |
+
if sys.version_info < (3, 8):
|
| 8 |
+
from concurrent.futures import CancelledError as CancelledError, TimeoutError as TimeoutError
|
| 9 |
+
class InvalidStateError(Error): ...
|
| 10 |
+
|
| 11 |
+
if sys.version_info >= (3, 7):
|
| 12 |
+
from contextvars import Context
|
| 13 |
+
|
| 14 |
+
if sys.version_info >= (3, 9):
|
| 15 |
+
from types import GenericAlias
|
| 16 |
+
|
| 17 |
+
_T = TypeVar("_T")
|
| 18 |
+
_S = TypeVar("_S")
|
| 19 |
+
|
| 20 |
+
if sys.version_info < (3, 7):
|
| 21 |
+
class _TracebackLogger:
|
| 22 |
+
exc: BaseException
|
| 23 |
+
tb: List[str]
|
| 24 |
+
def __init__(self, exc: Any, loop: AbstractEventLoop) -> None: ...
|
| 25 |
+
def activate(self) -> None: ...
|
| 26 |
+
def clear(self) -> None: ...
|
| 27 |
+
def __del__(self) -> None: ...
|
| 28 |
+
|
| 29 |
+
def isfuture(obj: object) -> bool: ...
|
| 30 |
+
|
| 31 |
+
class Future(Awaitable[_T], Iterable[_T]):
|
| 32 |
+
_state: str
|
| 33 |
+
_exception: BaseException
|
| 34 |
+
_blocking = False
|
| 35 |
+
_log_traceback = False
|
| 36 |
+
def __init__(self, *, loop: Optional[AbstractEventLoop] = ...) -> None: ...
|
| 37 |
+
def __repr__(self) -> str: ...
|
| 38 |
+
def __del__(self) -> None: ...
|
| 39 |
+
if sys.version_info >= (3, 7):
|
| 40 |
+
def get_loop(self) -> AbstractEventLoop: ...
|
| 41 |
+
def _callbacks(self: _S) -> List[Tuple[Callable[[_S], Any], Context]]: ...
|
| 42 |
+
def add_done_callback(self: _S, __fn: Callable[[_S], Any], *, context: Optional[Context] = ...) -> None: ...
|
| 43 |
+
else:
|
| 44 |
+
@property
|
| 45 |
+
def _callbacks(self: _S) -> List[Callable[[_S], Any]]: ...
|
| 46 |
+
def add_done_callback(self: _S, __fn: Callable[[_S], Any]) -> None: ...
|
| 47 |
+
if sys.version_info >= (3, 9):
|
| 48 |
+
def cancel(self, msg: Optional[str] = ...) -> bool: ...
|
| 49 |
+
else:
|
| 50 |
+
def cancel(self) -> bool: ...
|
| 51 |
+
def cancelled(self) -> bool: ...
|
| 52 |
+
def done(self) -> bool: ...
|
| 53 |
+
def result(self) -> _T: ...
|
| 54 |
+
def exception(self) -> Optional[BaseException]: ...
|
| 55 |
+
def remove_done_callback(self: _S, __fn: Callable[[_S], Any]) -> int: ...
|
| 56 |
+
def set_result(self, __result: _T) -> None: ...
|
| 57 |
+
def set_exception(self, __exception: Union[type, BaseException]) -> None: ...
|
| 58 |
+
def __iter__(self) -> Generator[Any, None, _T]: ...
|
| 59 |
+
def __await__(self) -> Generator[Any, None, _T]: ...
|
| 60 |
+
@property
|
| 61 |
+
def _loop(self) -> AbstractEventLoop: ...
|
| 62 |
+
if sys.version_info >= (3, 9):
|
| 63 |
+
def __class_getitem__(cls, item: Any) -> GenericAlias: ...
|
| 64 |
+
|
| 65 |
+
def wrap_future(future: Union[_ConcurrentFuture[_T], Future[_T]], *, loop: Optional[AbstractEventLoop] = ...) -> Future[_T]: ...
|
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/3/asyncio/locks.pyi
ADDED
|
@@ -0,0 +1,68 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import sys
|
| 2 |
+
from types import TracebackType
|
| 3 |
+
from typing import Any, Awaitable, Callable, Deque, Generator, Optional, Type, TypeVar, Union
|
| 4 |
+
|
| 5 |
+
from .events import AbstractEventLoop
|
| 6 |
+
from .futures import Future
|
| 7 |
+
|
| 8 |
+
_T = TypeVar("_T")
|
| 9 |
+
|
| 10 |
+
if sys.version_info >= (3, 9):
|
| 11 |
+
class _ContextManagerMixin:
|
| 12 |
+
def __init__(self, lock: Union[Lock, Semaphore]) -> None: ...
|
| 13 |
+
def __aenter__(self) -> Awaitable[None]: ...
|
| 14 |
+
def __aexit__(
|
| 15 |
+
self, exc_type: Optional[Type[BaseException]], exc: Optional[BaseException], tb: Optional[TracebackType]
|
| 16 |
+
) -> Awaitable[None]: ...
|
| 17 |
+
|
| 18 |
+
else:
|
| 19 |
+
class _ContextManager:
|
| 20 |
+
def __init__(self, lock: Union[Lock, Semaphore]) -> None: ...
|
| 21 |
+
def __enter__(self) -> object: ...
|
| 22 |
+
def __exit__(self, *args: Any) -> None: ...
|
| 23 |
+
class _ContextManagerMixin:
|
| 24 |
+
def __init__(self, lock: Union[Lock, Semaphore]) -> None: ...
|
| 25 |
+
# Apparently this exists to *prohibit* use as a context manager.
|
| 26 |
+
def __enter__(self) -> object: ...
|
| 27 |
+
def __exit__(self, *args: Any) -> None: ...
|
| 28 |
+
def __iter__(self) -> Generator[Any, None, _ContextManager]: ...
|
| 29 |
+
def __await__(self) -> Generator[Any, None, _ContextManager]: ...
|
| 30 |
+
def __aenter__(self) -> Awaitable[None]: ...
|
| 31 |
+
def __aexit__(
|
| 32 |
+
self, exc_type: Optional[Type[BaseException]], exc: Optional[BaseException], tb: Optional[TracebackType]
|
| 33 |
+
) -> Awaitable[None]: ...
|
| 34 |
+
|
| 35 |
+
class Lock(_ContextManagerMixin):
|
| 36 |
+
def __init__(self, *, loop: Optional[AbstractEventLoop] = ...) -> None: ...
|
| 37 |
+
def locked(self) -> bool: ...
|
| 38 |
+
async def acquire(self) -> bool: ...
|
| 39 |
+
def release(self) -> None: ...
|
| 40 |
+
|
| 41 |
+
class Event:
|
| 42 |
+
def __init__(self, *, loop: Optional[AbstractEventLoop] = ...) -> None: ...
|
| 43 |
+
def is_set(self) -> bool: ...
|
| 44 |
+
def set(self) -> None: ...
|
| 45 |
+
def clear(self) -> None: ...
|
| 46 |
+
async def wait(self) -> bool: ...
|
| 47 |
+
|
| 48 |
+
class Condition(_ContextManagerMixin):
|
| 49 |
+
def __init__(self, lock: Optional[Lock] = ..., *, loop: Optional[AbstractEventLoop] = ...) -> None: ...
|
| 50 |
+
def locked(self) -> bool: ...
|
| 51 |
+
async def acquire(self) -> bool: ...
|
| 52 |
+
def release(self) -> None: ...
|
| 53 |
+
async def wait(self) -> bool: ...
|
| 54 |
+
async def wait_for(self, predicate: Callable[[], _T]) -> _T: ...
|
| 55 |
+
def notify(self, n: int = ...) -> None: ...
|
| 56 |
+
def notify_all(self) -> None: ...
|
| 57 |
+
|
| 58 |
+
class Semaphore(_ContextManagerMixin):
|
| 59 |
+
_value: int
|
| 60 |
+
_waiters: Deque[Future[Any]]
|
| 61 |
+
def __init__(self, value: int = ..., *, loop: Optional[AbstractEventLoop] = ...) -> None: ...
|
| 62 |
+
def locked(self) -> bool: ...
|
| 63 |
+
async def acquire(self) -> bool: ...
|
| 64 |
+
def release(self) -> None: ...
|
| 65 |
+
def _wake_up_next(self) -> None: ...
|
| 66 |
+
|
| 67 |
+
class BoundedSemaphore(Semaphore):
|
| 68 |
+
def __init__(self, value: int = ..., *, loop: Optional[AbstractEventLoop] = ...) -> None: ...
|
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/3/asyncio/runners.pyi
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import sys
|
| 2 |
+
|
| 3 |
+
if sys.version_info >= (3, 7):
|
| 4 |
+
from typing import Awaitable, Optional, TypeVar
|
| 5 |
+
|
| 6 |
+
_T = TypeVar("_T")
|
| 7 |
+
if sys.version_info >= (3, 8):
|
| 8 |
+
def run(main: Awaitable[_T], *, debug: Optional[bool] = ...) -> _T: ...
|
| 9 |
+
else:
|
| 10 |
+
def run(main: Awaitable[_T], *, debug: bool = ...) -> _T: ...
|
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/3/asyncio/selector_events.pyi
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import selectors
|
| 2 |
+
from typing import Optional
|
| 3 |
+
|
| 4 |
+
from . import base_events
|
| 5 |
+
|
| 6 |
+
class BaseSelectorEventLoop(base_events.BaseEventLoop):
|
| 7 |
+
def __init__(self, selector: Optional[selectors.BaseSelector] = ...) -> None: ...
|
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/3/asyncio/sslproto.pyi
ADDED
|
@@ -0,0 +1,133 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import ssl
|
| 2 |
+
import sys
|
| 3 |
+
from typing import Any, Callable, ClassVar, Deque, Dict, List, Optional, Tuple
|
| 4 |
+
from typing_extensions import Literal
|
| 5 |
+
|
| 6 |
+
from . import constants, events, futures, protocols, transports
|
| 7 |
+
|
| 8 |
+
def _create_transport_context(server_side: bool, server_hostname: Optional[str]) -> ssl.SSLContext: ...
|
| 9 |
+
|
| 10 |
+
_UNWRAPPED: Literal["UNWRAPPED"]
|
| 11 |
+
_DO_HANDSHAKE: Literal["DO_HANDSHAKE"]
|
| 12 |
+
_WRAPPED: Literal["WRAPPED"]
|
| 13 |
+
_SHUTDOWN: Literal["SHUTDOWN"]
|
| 14 |
+
|
| 15 |
+
class _SSLPipe:
|
| 16 |
+
|
| 17 |
+
max_size: ClassVar[int]
|
| 18 |
+
|
| 19 |
+
_context: ssl.SSLContext
|
| 20 |
+
_server_side: bool
|
| 21 |
+
_server_hostname: Optional[str]
|
| 22 |
+
_state: str
|
| 23 |
+
_incoming: ssl.MemoryBIO
|
| 24 |
+
_outgoing: ssl.MemoryBIO
|
| 25 |
+
_sslobj: Optional[ssl.SSLObject]
|
| 26 |
+
_need_ssldata: bool
|
| 27 |
+
_handshake_cb: Optional[Callable[[Optional[BaseException]], None]]
|
| 28 |
+
_shutdown_cb: Optional[Callable[[], None]]
|
| 29 |
+
def __init__(self, context: ssl.SSLContext, server_side: bool, server_hostname: Optional[str] = ...) -> None: ...
|
| 30 |
+
@property
|
| 31 |
+
def context(self) -> ssl.SSLContext: ...
|
| 32 |
+
@property
|
| 33 |
+
def ssl_object(self) -> Optional[ssl.SSLObject]: ...
|
| 34 |
+
@property
|
| 35 |
+
def need_ssldata(self) -> bool: ...
|
| 36 |
+
@property
|
| 37 |
+
def wrapped(self) -> bool: ...
|
| 38 |
+
def do_handshake(self, callback: Optional[Callable[[Optional[BaseException]], None]] = ...) -> List[bytes]: ...
|
| 39 |
+
def shutdown(self, callback: Optional[Callable[[], None]] = ...) -> List[bytes]: ...
|
| 40 |
+
def feed_eof(self) -> None: ...
|
| 41 |
+
def feed_ssldata(self, data: bytes, only_handshake: bool = ...) -> Tuple[List[bytes], List[bytes]]: ...
|
| 42 |
+
def feed_appdata(self, data: bytes, offset: int = ...) -> Tuple[List[bytes], int]: ...
|
| 43 |
+
|
| 44 |
+
class _SSLProtocolTransport(transports._FlowControlMixin, transports.Transport):
|
| 45 |
+
|
| 46 |
+
_sendfile_compatible: ClassVar[constants._SendfileMode]
|
| 47 |
+
|
| 48 |
+
_loop: events.AbstractEventLoop
|
| 49 |
+
_ssl_protocol: SSLProtocol
|
| 50 |
+
_closed: bool
|
| 51 |
+
def __init__(self, loop: events.AbstractEventLoop, ssl_protocol: SSLProtocol) -> None: ...
|
| 52 |
+
def get_extra_info(self, name: str, default: Optional[Any] = ...) -> Dict[str, Any]: ...
|
| 53 |
+
def set_protocol(self, protocol: protocols.BaseProtocol) -> None: ...
|
| 54 |
+
def get_protocol(self) -> protocols.BaseProtocol: ...
|
| 55 |
+
def is_closing(self) -> bool: ...
|
| 56 |
+
def close(self) -> None: ...
|
| 57 |
+
if sys.version_info >= (3, 7):
|
| 58 |
+
def is_reading(self) -> bool: ...
|
| 59 |
+
def pause_reading(self) -> None: ...
|
| 60 |
+
def resume_reading(self) -> None: ...
|
| 61 |
+
def set_write_buffer_limits(self, high: Optional[int] = ..., low: Optional[int] = ...) -> None: ...
|
| 62 |
+
def get_write_buffer_size(self) -> int: ...
|
| 63 |
+
if sys.version_info >= (3, 7):
|
| 64 |
+
@property
|
| 65 |
+
def _protocol_paused(self) -> bool: ...
|
| 66 |
+
def write(self, data: bytes) -> None: ...
|
| 67 |
+
def can_write_eof(self) -> Literal[False]: ...
|
| 68 |
+
def abort(self) -> None: ...
|
| 69 |
+
|
| 70 |
+
class SSLProtocol(protocols.Protocol):
|
| 71 |
+
|
| 72 |
+
_server_side: bool
|
| 73 |
+
_server_hostname: Optional[str]
|
| 74 |
+
_sslcontext: ssl.SSLContext
|
| 75 |
+
_extra: Dict[str, Any]
|
| 76 |
+
_write_backlog: Deque[Tuple[bytes, int]]
|
| 77 |
+
_write_buffer_size: int
|
| 78 |
+
_waiter: futures.Future[Any]
|
| 79 |
+
_loop: events.AbstractEventLoop
|
| 80 |
+
_app_transport: _SSLProtocolTransport
|
| 81 |
+
_sslpipe: Optional[_SSLPipe]
|
| 82 |
+
_session_established: bool
|
| 83 |
+
_in_handshake: bool
|
| 84 |
+
_in_shutdown: bool
|
| 85 |
+
_transport: Optional[transports.BaseTransport]
|
| 86 |
+
_call_connection_made: bool
|
| 87 |
+
_ssl_handshake_timeout: Optional[int]
|
| 88 |
+
_app_protocol: protocols.BaseProtocol
|
| 89 |
+
_app_protocol_is_buffer: bool
|
| 90 |
+
|
| 91 |
+
if sys.version_info >= (3, 7):
|
| 92 |
+
def __init__(
|
| 93 |
+
self,
|
| 94 |
+
loop: events.AbstractEventLoop,
|
| 95 |
+
app_protocol: protocols.BaseProtocol,
|
| 96 |
+
sslcontext: ssl.SSLContext,
|
| 97 |
+
waiter: futures.Future[Any],
|
| 98 |
+
server_side: bool = ...,
|
| 99 |
+
server_hostname: Optional[str] = ...,
|
| 100 |
+
call_connection_made: bool = ...,
|
| 101 |
+
ssl_handshake_timeout: Optional[int] = ...,
|
| 102 |
+
) -> None: ...
|
| 103 |
+
else:
|
| 104 |
+
def __init__(
|
| 105 |
+
self,
|
| 106 |
+
loop: events.AbstractEventLoop,
|
| 107 |
+
app_protocol: protocols.BaseProtocol,
|
| 108 |
+
sslcontext: ssl.SSLContext,
|
| 109 |
+
waiter: futures.Future,
|
| 110 |
+
server_side: bool = ...,
|
| 111 |
+
server_hostname: Optional[str] = ...,
|
| 112 |
+
call_connection_made: bool = ...,
|
| 113 |
+
) -> None: ...
|
| 114 |
+
if sys.version_info >= (3, 7):
|
| 115 |
+
def _set_app_protocol(self, app_protocol: protocols.BaseProtocol) -> None: ...
|
| 116 |
+
def _wakeup_waiter(self, exc: Optional[BaseException] = ...) -> None: ...
|
| 117 |
+
def connection_made(self, transport: transports.BaseTransport) -> None: ...
|
| 118 |
+
def connection_lost(self, exc: Optional[BaseException]) -> None: ...
|
| 119 |
+
def pause_writing(self) -> None: ...
|
| 120 |
+
def resume_writing(self) -> None: ...
|
| 121 |
+
def data_received(self, data: bytes) -> None: ...
|
| 122 |
+
def eof_received(self) -> None: ...
|
| 123 |
+
def _get_extra_info(self, name: str, default: Optional[Any] = ...) -> Any: ...
|
| 124 |
+
def _start_shutdown(self) -> None: ...
|
| 125 |
+
def _write_appdata(self, data: bytes) -> None: ...
|
| 126 |
+
def _start_handshake(self) -> None: ...
|
| 127 |
+
if sys.version_info >= (3, 7):
|
| 128 |
+
def _check_handshake_timeout(self) -> None: ...
|
| 129 |
+
def _on_handshake_complete(self, handshake_exc: Optional[BaseException]) -> None: ...
|
| 130 |
+
def _process_write_backlog(self) -> None: ...
|
| 131 |
+
def _fatal_error(self, exc: BaseException, message: str = ...) -> None: ...
|
| 132 |
+
def _finalize(self) -> None: ...
|
| 133 |
+
def _abort(self) -> None: ...
|
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/3/asyncio/tasks.pyi
ADDED
|
@@ -0,0 +1,204 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import concurrent.futures
|
| 2 |
+
import sys
|
| 3 |
+
from types import FrameType
|
| 4 |
+
from typing import (
|
| 5 |
+
Any,
|
| 6 |
+
Awaitable,
|
| 7 |
+
Generator,
|
| 8 |
+
Generic,
|
| 9 |
+
Iterable,
|
| 10 |
+
Iterator,
|
| 11 |
+
List,
|
| 12 |
+
Optional,
|
| 13 |
+
Set,
|
| 14 |
+
TextIO,
|
| 15 |
+
Tuple,
|
| 16 |
+
TypeVar,
|
| 17 |
+
Union,
|
| 18 |
+
overload,
|
| 19 |
+
)
|
| 20 |
+
from typing_extensions import Literal
|
| 21 |
+
|
| 22 |
+
from .events import AbstractEventLoop
|
| 23 |
+
from .futures import Future
|
| 24 |
+
|
| 25 |
+
if sys.version_info >= (3, 9):
|
| 26 |
+
from types import GenericAlias
|
| 27 |
+
|
| 28 |
+
_T = TypeVar("_T")
|
| 29 |
+
_T1 = TypeVar("_T1")
|
| 30 |
+
_T2 = TypeVar("_T2")
|
| 31 |
+
_T3 = TypeVar("_T3")
|
| 32 |
+
_T4 = TypeVar("_T4")
|
| 33 |
+
_T5 = TypeVar("_T5")
|
| 34 |
+
_FutureT = Union[Future[_T], Generator[Any, None, _T], Awaitable[_T]]
|
| 35 |
+
|
| 36 |
+
FIRST_EXCEPTION: str
|
| 37 |
+
FIRST_COMPLETED: str
|
| 38 |
+
ALL_COMPLETED: str
|
| 39 |
+
|
| 40 |
+
def as_completed(
|
| 41 |
+
fs: Iterable[_FutureT[_T]], *, loop: Optional[AbstractEventLoop] = ..., timeout: Optional[float] = ...
|
| 42 |
+
) -> Iterator[Future[_T]]: ...
|
| 43 |
+
def ensure_future(coro_or_future: _FutureT[_T], *, loop: Optional[AbstractEventLoop] = ...) -> Future[_T]: ...
|
| 44 |
+
|
| 45 |
+
# Prior to Python 3.7 'async' was an alias for 'ensure_future'.
|
| 46 |
+
# It became a keyword in 3.7.
|
| 47 |
+
|
| 48 |
+
# `gather()` actually returns a list with length equal to the number
|
| 49 |
+
# of tasks passed; however, Tuple is used similar to the annotation for
|
| 50 |
+
# zip() because typing does not support variadic type variables. See
|
| 51 |
+
# typing PR #1550 for discussion.
|
| 52 |
+
@overload
|
| 53 |
+
def gather(
|
| 54 |
+
coro_or_future1: _FutureT[_T1], *, loop: Optional[AbstractEventLoop] = ..., return_exceptions: Literal[False] = ...
|
| 55 |
+
) -> Future[Tuple[_T1]]: ...
|
| 56 |
+
@overload
|
| 57 |
+
def gather(
|
| 58 |
+
coro_or_future1: _FutureT[_T1],
|
| 59 |
+
coro_or_future2: _FutureT[_T2],
|
| 60 |
+
*,
|
| 61 |
+
loop: Optional[AbstractEventLoop] = ...,
|
| 62 |
+
return_exceptions: Literal[False] = ...,
|
| 63 |
+
) -> Future[Tuple[_T1, _T2]]: ...
|
| 64 |
+
@overload
|
| 65 |
+
def gather(
|
| 66 |
+
coro_or_future1: _FutureT[_T1],
|
| 67 |
+
coro_or_future2: _FutureT[_T2],
|
| 68 |
+
coro_or_future3: _FutureT[_T3],
|
| 69 |
+
*,
|
| 70 |
+
loop: Optional[AbstractEventLoop] = ...,
|
| 71 |
+
return_exceptions: Literal[False] = ...,
|
| 72 |
+
) -> Future[Tuple[_T1, _T2, _T3]]: ...
|
| 73 |
+
@overload
|
| 74 |
+
def gather(
|
| 75 |
+
coro_or_future1: _FutureT[_T1],
|
| 76 |
+
coro_or_future2: _FutureT[_T2],
|
| 77 |
+
coro_or_future3: _FutureT[_T3],
|
| 78 |
+
coro_or_future4: _FutureT[_T4],
|
| 79 |
+
*,
|
| 80 |
+
loop: Optional[AbstractEventLoop] = ...,
|
| 81 |
+
return_exceptions: Literal[False] = ...,
|
| 82 |
+
) -> Future[Tuple[_T1, _T2, _T3, _T4]]: ...
|
| 83 |
+
@overload
|
| 84 |
+
def gather(
|
| 85 |
+
coro_or_future1: _FutureT[_T1],
|
| 86 |
+
coro_or_future2: _FutureT[_T2],
|
| 87 |
+
coro_or_future3: _FutureT[_T3],
|
| 88 |
+
coro_or_future4: _FutureT[_T4],
|
| 89 |
+
coro_or_future5: _FutureT[_T5],
|
| 90 |
+
*,
|
| 91 |
+
loop: Optional[AbstractEventLoop] = ...,
|
| 92 |
+
return_exceptions: Literal[False] = ...,
|
| 93 |
+
) -> Future[Tuple[_T1, _T2, _T3, _T4, _T5]]: ...
|
| 94 |
+
@overload
|
| 95 |
+
def gather(
|
| 96 |
+
coro_or_future1: _FutureT[Any],
|
| 97 |
+
coro_or_future2: _FutureT[Any],
|
| 98 |
+
coro_or_future3: _FutureT[Any],
|
| 99 |
+
coro_or_future4: _FutureT[Any],
|
| 100 |
+
coro_or_future5: _FutureT[Any],
|
| 101 |
+
coro_or_future6: _FutureT[Any],
|
| 102 |
+
*coros_or_futures: _FutureT[Any],
|
| 103 |
+
loop: Optional[AbstractEventLoop] = ...,
|
| 104 |
+
return_exceptions: bool = ...,
|
| 105 |
+
) -> Future[List[Any]]: ...
|
| 106 |
+
@overload
|
| 107 |
+
def gather(
|
| 108 |
+
coro_or_future1: _FutureT[_T1], *, loop: Optional[AbstractEventLoop] = ..., return_exceptions: bool = ...
|
| 109 |
+
) -> Future[Tuple[Union[_T1, BaseException]]]: ...
|
| 110 |
+
@overload
|
| 111 |
+
def gather(
|
| 112 |
+
coro_or_future1: _FutureT[_T1],
|
| 113 |
+
coro_or_future2: _FutureT[_T2],
|
| 114 |
+
*,
|
| 115 |
+
loop: Optional[AbstractEventLoop] = ...,
|
| 116 |
+
return_exceptions: bool = ...,
|
| 117 |
+
) -> Future[Tuple[Union[_T1, BaseException], Union[_T2, BaseException]]]: ...
|
| 118 |
+
@overload
|
| 119 |
+
def gather(
|
| 120 |
+
coro_or_future1: _FutureT[_T1],
|
| 121 |
+
coro_or_future2: _FutureT[_T2],
|
| 122 |
+
coro_or_future3: _FutureT[_T3],
|
| 123 |
+
*,
|
| 124 |
+
loop: Optional[AbstractEventLoop] = ...,
|
| 125 |
+
return_exceptions: bool = ...,
|
| 126 |
+
) -> Future[Tuple[Union[_T1, BaseException], Union[_T2, BaseException], Union[_T3, BaseException]]]: ...
|
| 127 |
+
@overload
|
| 128 |
+
def gather(
|
| 129 |
+
coro_or_future1: _FutureT[_T1],
|
| 130 |
+
coro_or_future2: _FutureT[_T2],
|
| 131 |
+
coro_or_future3: _FutureT[_T3],
|
| 132 |
+
coro_or_future4: _FutureT[_T4],
|
| 133 |
+
*,
|
| 134 |
+
loop: Optional[AbstractEventLoop] = ...,
|
| 135 |
+
return_exceptions: bool = ...,
|
| 136 |
+
) -> Future[
|
| 137 |
+
Tuple[Union[_T1, BaseException], Union[_T2, BaseException], Union[_T3, BaseException], Union[_T4, BaseException]]
|
| 138 |
+
]: ...
|
| 139 |
+
@overload
|
| 140 |
+
def gather(
|
| 141 |
+
coro_or_future1: _FutureT[_T1],
|
| 142 |
+
coro_or_future2: _FutureT[_T2],
|
| 143 |
+
coro_or_future3: _FutureT[_T3],
|
| 144 |
+
coro_or_future4: _FutureT[_T4],
|
| 145 |
+
coro_or_future5: _FutureT[_T5],
|
| 146 |
+
*,
|
| 147 |
+
loop: Optional[AbstractEventLoop] = ...,
|
| 148 |
+
return_exceptions: bool = ...,
|
| 149 |
+
) -> Future[
|
| 150 |
+
Tuple[
|
| 151 |
+
Union[_T1, BaseException],
|
| 152 |
+
Union[_T2, BaseException],
|
| 153 |
+
Union[_T3, BaseException],
|
| 154 |
+
Union[_T4, BaseException],
|
| 155 |
+
Union[_T5, BaseException],
|
| 156 |
+
]
|
| 157 |
+
]: ...
|
| 158 |
+
def run_coroutine_threadsafe(coro: _FutureT[_T], loop: AbstractEventLoop) -> concurrent.futures.Future[_T]: ...
|
| 159 |
+
def shield(arg: _FutureT[_T], *, loop: Optional[AbstractEventLoop] = ...) -> Future[_T]: ...
|
| 160 |
+
def sleep(delay: float, result: _T = ..., *, loop: Optional[AbstractEventLoop] = ...) -> Future[_T]: ...
|
| 161 |
+
def wait(
|
| 162 |
+
fs: Iterable[_FutureT[_T]], *, loop: Optional[AbstractEventLoop] = ..., timeout: Optional[float] = ..., return_when: str = ...
|
| 163 |
+
) -> Future[Tuple[Set[Future[_T]], Set[Future[_T]]]]: ...
|
| 164 |
+
def wait_for(fut: _FutureT[_T], timeout: Optional[float], *, loop: Optional[AbstractEventLoop] = ...) -> Future[_T]: ...
|
| 165 |
+
|
| 166 |
+
class Task(Future[_T], Generic[_T]):
|
| 167 |
+
if sys.version_info >= (3, 8):
|
| 168 |
+
def __init__(
|
| 169 |
+
self,
|
| 170 |
+
coro: Union[Generator[Any, None, _T], Awaitable[_T]],
|
| 171 |
+
*,
|
| 172 |
+
loop: AbstractEventLoop = ...,
|
| 173 |
+
name: Optional[str] = ...,
|
| 174 |
+
) -> None: ...
|
| 175 |
+
else:
|
| 176 |
+
def __init__(self, coro: Union[Generator[Any, None, _T], Awaitable[_T]], *, loop: AbstractEventLoop = ...) -> None: ...
|
| 177 |
+
def __repr__(self) -> str: ...
|
| 178 |
+
if sys.version_info >= (3, 8):
|
| 179 |
+
def get_coro(self) -> Any: ...
|
| 180 |
+
def get_name(self) -> str: ...
|
| 181 |
+
def set_name(self, __value: object) -> None: ...
|
| 182 |
+
def get_stack(self, *, limit: int = ...) -> List[FrameType]: ...
|
| 183 |
+
def print_stack(self, *, limit: int = ..., file: TextIO = ...) -> None: ...
|
| 184 |
+
if sys.version_info >= (3, 9):
|
| 185 |
+
def cancel(self, msg: Optional[str] = ...) -> bool: ...
|
| 186 |
+
else:
|
| 187 |
+
def cancel(self) -> bool: ...
|
| 188 |
+
if sys.version_info < (3, 9):
|
| 189 |
+
@classmethod
|
| 190 |
+
def current_task(cls, loop: Optional[AbstractEventLoop] = ...) -> Optional[Task[Any]]: ...
|
| 191 |
+
@classmethod
|
| 192 |
+
def all_tasks(cls, loop: Optional[AbstractEventLoop] = ...) -> Set[Task[Any]]: ...
|
| 193 |
+
if sys.version_info < (3, 7):
|
| 194 |
+
def _wakeup(self, fut: Future[Any]) -> None: ...
|
| 195 |
+
if sys.version_info >= (3, 9):
|
| 196 |
+
def __class_getitem__(cls, item: Any) -> GenericAlias: ...
|
| 197 |
+
|
| 198 |
+
if sys.version_info >= (3, 7):
|
| 199 |
+
def all_tasks(loop: Optional[AbstractEventLoop] = ...) -> Set[Task[Any]]: ...
|
| 200 |
+
if sys.version_info >= (3, 8):
|
| 201 |
+
def create_task(coro: Union[Generator[Any, None, _T], Awaitable[_T]], *, name: Optional[str] = ...) -> Task[_T]: ...
|
| 202 |
+
else:
|
| 203 |
+
def create_task(coro: Union[Generator[Any, None, _T], Awaitable[_T]]) -> Task[_T]: ...
|
| 204 |
+
def current_task(loop: Optional[AbstractEventLoop] = ...) -> Optional[Task[Any]]: ...
|
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/3/asyncio/threads.pyi
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import sys
|
| 2 |
+
from typing import Any, Callable, TypeVar
|
| 3 |
+
|
| 4 |
+
_T = TypeVar("_T")
|
| 5 |
+
|
| 6 |
+
if sys.version_info >= (3, 9):
|
| 7 |
+
async def to_thread(__func: Callable[..., _T], *args: Any, **kwargs: Any) -> _T: ...
|
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/3/asyncio/transports.pyi
ADDED
|
@@ -0,0 +1,46 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import sys
|
| 2 |
+
from asyncio.events import AbstractEventLoop
|
| 3 |
+
from asyncio.protocols import BaseProtocol
|
| 4 |
+
from socket import _Address
|
| 5 |
+
from typing import Any, List, Mapping, Optional, Tuple
|
| 6 |
+
|
| 7 |
+
class BaseTransport:
|
| 8 |
+
def __init__(self, extra: Optional[Mapping[Any, Any]] = ...) -> None: ...
|
| 9 |
+
def get_extra_info(self, name: Any, default: Any = ...) -> Any: ...
|
| 10 |
+
def is_closing(self) -> bool: ...
|
| 11 |
+
def close(self) -> None: ...
|
| 12 |
+
def set_protocol(self, protocol: BaseProtocol) -> None: ...
|
| 13 |
+
def get_protocol(self) -> BaseProtocol: ...
|
| 14 |
+
|
| 15 |
+
class ReadTransport(BaseTransport):
|
| 16 |
+
if sys.version_info >= (3, 7):
|
| 17 |
+
def is_reading(self) -> bool: ...
|
| 18 |
+
def pause_reading(self) -> None: ...
|
| 19 |
+
def resume_reading(self) -> None: ...
|
| 20 |
+
|
| 21 |
+
class WriteTransport(BaseTransport):
|
| 22 |
+
def set_write_buffer_limits(self, high: Optional[int] = ..., low: Optional[int] = ...) -> None: ...
|
| 23 |
+
def get_write_buffer_size(self) -> int: ...
|
| 24 |
+
def write(self, data: Any) -> None: ...
|
| 25 |
+
def writelines(self, list_of_data: List[Any]) -> None: ...
|
| 26 |
+
def write_eof(self) -> None: ...
|
| 27 |
+
def can_write_eof(self) -> bool: ...
|
| 28 |
+
def abort(self) -> None: ...
|
| 29 |
+
|
| 30 |
+
class Transport(ReadTransport, WriteTransport): ...
|
| 31 |
+
|
| 32 |
+
class DatagramTransport(BaseTransport):
|
| 33 |
+
def sendto(self, data: Any, addr: Optional[_Address] = ...) -> None: ...
|
| 34 |
+
def abort(self) -> None: ...
|
| 35 |
+
|
| 36 |
+
class SubprocessTransport(BaseTransport):
|
| 37 |
+
def get_pid(self) -> int: ...
|
| 38 |
+
def get_returncode(self) -> Optional[int]: ...
|
| 39 |
+
def get_pipe_transport(self, fd: int) -> Optional[BaseTransport]: ...
|
| 40 |
+
def send_signal(self, signal: int) -> int: ...
|
| 41 |
+
def terminate(self) -> None: ...
|
| 42 |
+
def kill(self) -> None: ...
|
| 43 |
+
|
| 44 |
+
class _FlowControlMixin(Transport):
|
| 45 |
+
def __init__(self, extra: Optional[Mapping[Any, Any]] = ..., loop: Optional[AbstractEventLoop] = ...) -> None: ...
|
| 46 |
+
def get_write_buffer_limits(self) -> Tuple[int, int]: ...
|
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/3/asyncio/windows_events.pyi
ADDED
|
@@ -0,0 +1,76 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import socket
|
| 2 |
+
import sys
|
| 3 |
+
from typing import IO, Any, Callable, ClassVar, List, NoReturn, Optional, Tuple, Type
|
| 4 |
+
|
| 5 |
+
from . import events, futures, proactor_events, selector_events, streams, windows_utils
|
| 6 |
+
|
| 7 |
+
__all__ = [
|
| 8 |
+
"SelectorEventLoop",
|
| 9 |
+
"ProactorEventLoop",
|
| 10 |
+
"IocpProactor",
|
| 11 |
+
"DefaultEventLoopPolicy",
|
| 12 |
+
"WindowsSelectorEventLoopPolicy",
|
| 13 |
+
"WindowsProactorEventLoopPolicy",
|
| 14 |
+
]
|
| 15 |
+
|
| 16 |
+
NULL: int
|
| 17 |
+
INFINITE: int
|
| 18 |
+
ERROR_CONNECTION_REFUSED: int
|
| 19 |
+
ERROR_CONNECTION_ABORTED: int
|
| 20 |
+
CONNECT_PIPE_INIT_DELAY: float
|
| 21 |
+
CONNECT_PIPE_MAX_DELAY: float
|
| 22 |
+
|
| 23 |
+
class PipeServer:
|
| 24 |
+
def __init__(self, address: str) -> None: ...
|
| 25 |
+
def __del__(self) -> None: ...
|
| 26 |
+
def closed(self) -> bool: ...
|
| 27 |
+
def close(self) -> None: ...
|
| 28 |
+
|
| 29 |
+
class _WindowsSelectorEventLoop(selector_events.BaseSelectorEventLoop): ...
|
| 30 |
+
|
| 31 |
+
class ProactorEventLoop(proactor_events.BaseProactorEventLoop):
|
| 32 |
+
def __init__(self, proactor: Optional[IocpProactor] = ...) -> None: ...
|
| 33 |
+
async def create_pipe_connection(
|
| 34 |
+
self, protocol_factory: Callable[[], streams.StreamReaderProtocol], address: str
|
| 35 |
+
) -> Tuple[proactor_events._ProactorDuplexPipeTransport, streams.StreamReaderProtocol]: ...
|
| 36 |
+
async def start_serving_pipe(
|
| 37 |
+
self, protocol_factory: Callable[[], streams.StreamReaderProtocol], address: str
|
| 38 |
+
) -> List[PipeServer]: ...
|
| 39 |
+
|
| 40 |
+
class IocpProactor:
|
| 41 |
+
def __init__(self, concurrency: int = ...) -> None: ...
|
| 42 |
+
def __repr__(self) -> str: ...
|
| 43 |
+
def __del__(self) -> None: ...
|
| 44 |
+
def set_loop(self, loop: events.AbstractEventLoop) -> None: ...
|
| 45 |
+
def select(self, timeout: Optional[int] = ...) -> List[futures.Future[Any]]: ...
|
| 46 |
+
def recv(self, conn: socket.socket, nbytes: int, flags: int = ...) -> futures.Future[bytes]: ...
|
| 47 |
+
if sys.version_info >= (3, 7):
|
| 48 |
+
def recv_into(self, conn: socket.socket, buf: socket._WriteBuffer, flags: int = ...) -> futures.Future[Any]: ...
|
| 49 |
+
def send(self, conn: socket.socket, buf: socket._WriteBuffer, flags: int = ...) -> futures.Future[Any]: ...
|
| 50 |
+
def accept(self, listener: socket.socket) -> futures.Future[Any]: ...
|
| 51 |
+
def connect(self, conn: socket.socket, address: bytes) -> futures.Future[Any]: ...
|
| 52 |
+
if sys.version_info >= (3, 7):
|
| 53 |
+
def sendfile(self, sock: socket.socket, file: IO[bytes], offset: int, count: int) -> futures.Future[Any]: ...
|
| 54 |
+
def accept_pipe(self, pipe: socket.socket) -> futures.Future[Any]: ...
|
| 55 |
+
async def connect_pipe(self, address: bytes) -> windows_utils.PipeHandle: ...
|
| 56 |
+
def wait_for_handle(self, handle: windows_utils.PipeHandle, timeout: Optional[int] = ...) -> bool: ...
|
| 57 |
+
def close(self) -> None: ...
|
| 58 |
+
|
| 59 |
+
SelectorEventLoop = _WindowsSelectorEventLoop
|
| 60 |
+
|
| 61 |
+
if sys.version_info >= (3, 7):
|
| 62 |
+
class WindowsSelectorEventLoopPolicy(events.BaseDefaultEventLoopPolicy):
|
| 63 |
+
_loop_factory: ClassVar[Type[SelectorEventLoop]]
|
| 64 |
+
def get_child_watcher(self) -> NoReturn: ...
|
| 65 |
+
def set_child_watcher(self, watcher: Any) -> NoReturn: ...
|
| 66 |
+
class WindowsProactorEventLoopPolicy(events.BaseDefaultEventLoopPolicy):
|
| 67 |
+
_loop_factory: ClassVar[Type[ProactorEventLoop]]
|
| 68 |
+
def get_child_watcher(self) -> NoReturn: ...
|
| 69 |
+
def set_child_watcher(self, watcher: Any) -> NoReturn: ...
|
| 70 |
+
DefaultEventLoopPolicy = WindowsSelectorEventLoopPolicy
|
| 71 |
+
else:
|
| 72 |
+
class _WindowsDefaultEventLoopPolicy(events.BaseDefaultEventLoopPolicy):
|
| 73 |
+
_loop_factory: ClassVar[Type[SelectorEventLoop]]
|
| 74 |
+
def get_child_watcher(self) -> NoReturn: ...
|
| 75 |
+
def set_child_watcher(self, watcher: Any) -> NoReturn: ...
|
| 76 |
+
DefaultEventLoopPolicy = _WindowsDefaultEventLoopPolicy
|
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/3/asyncio/windows_utils.pyi
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import sys
|
| 2 |
+
from types import TracebackType
|
| 3 |
+
from typing import Callable, Optional, Protocol, Tuple, Type
|
| 4 |
+
|
| 5 |
+
class _WarnFunction(Protocol):
|
| 6 |
+
def __call__(self, message: str, category: Type[Warning] = ..., stacklevel: int = ..., source: PipeHandle = ...) -> None: ...
|
| 7 |
+
|
| 8 |
+
BUFSIZE: int
|
| 9 |
+
PIPE: int
|
| 10 |
+
STDOUT: int
|
| 11 |
+
|
| 12 |
+
def pipe(*, duplex: bool = ..., overlapped: Tuple[bool, bool] = ..., bufsize: int = ...) -> Tuple[int, int]: ...
|
| 13 |
+
|
| 14 |
+
class PipeHandle:
|
| 15 |
+
def __init__(self, handle: int) -> None: ...
|
| 16 |
+
def __repr__(self) -> str: ...
|
| 17 |
+
if sys.version_info >= (3, 8):
|
| 18 |
+
def __del__(self, _warn: _WarnFunction = ...) -> None: ...
|
| 19 |
+
else:
|
| 20 |
+
def __del__(self) -> None: ...
|
| 21 |
+
def __enter__(self) -> PipeHandle: ...
|
| 22 |
+
def __exit__(self, t: Optional[type], v: Optional[BaseException], tb: Optional[TracebackType]) -> None: ...
|
| 23 |
+
@property
|
| 24 |
+
def handle(self) -> int: ...
|
| 25 |
+
def fileno(self) -> int: ...
|
| 26 |
+
def close(self, *, CloseHandle: Callable[[int], None] = ...) -> None: ...
|
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/3/builtins.pyi
ADDED
|
@@ -0,0 +1,1387 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import sys
|
| 2 |
+
from _typeshed import (
|
| 3 |
+
AnyPath,
|
| 4 |
+
OpenBinaryMode,
|
| 5 |
+
OpenBinaryModeReading,
|
| 6 |
+
OpenBinaryModeUpdating,
|
| 7 |
+
OpenBinaryModeWriting,
|
| 8 |
+
OpenTextMode,
|
| 9 |
+
ReadableBuffer,
|
| 10 |
+
SupportsKeysAndGetItem,
|
| 11 |
+
SupportsLessThan,
|
| 12 |
+
SupportsLessThanT,
|
| 13 |
+
SupportsWrite,
|
| 14 |
+
)
|
| 15 |
+
from ast import AST, mod
|
| 16 |
+
from io import BufferedRandom, BufferedReader, BufferedWriter, FileIO, TextIOWrapper
|
| 17 |
+
from types import CodeType, TracebackType
|
| 18 |
+
from typing import (
|
| 19 |
+
IO,
|
| 20 |
+
AbstractSet,
|
| 21 |
+
Any,
|
| 22 |
+
BinaryIO,
|
| 23 |
+
ByteString,
|
| 24 |
+
Callable,
|
| 25 |
+
Container,
|
| 26 |
+
Dict,
|
| 27 |
+
FrozenSet,
|
| 28 |
+
Generic,
|
| 29 |
+
ItemsView,
|
| 30 |
+
Iterable,
|
| 31 |
+
Iterator,
|
| 32 |
+
KeysView,
|
| 33 |
+
List,
|
| 34 |
+
Mapping,
|
| 35 |
+
MutableMapping,
|
| 36 |
+
MutableSequence,
|
| 37 |
+
MutableSet,
|
| 38 |
+
NoReturn,
|
| 39 |
+
Optional,
|
| 40 |
+
Protocol,
|
| 41 |
+
Reversible,
|
| 42 |
+
Sequence,
|
| 43 |
+
Set,
|
| 44 |
+
Sized,
|
| 45 |
+
SupportsAbs,
|
| 46 |
+
SupportsBytes,
|
| 47 |
+
SupportsComplex,
|
| 48 |
+
SupportsFloat,
|
| 49 |
+
SupportsInt,
|
| 50 |
+
SupportsRound,
|
| 51 |
+
Tuple,
|
| 52 |
+
Type,
|
| 53 |
+
TypeVar,
|
| 54 |
+
Union,
|
| 55 |
+
ValuesView,
|
| 56 |
+
overload,
|
| 57 |
+
runtime_checkable,
|
| 58 |
+
)
|
| 59 |
+
from typing_extensions import Literal
|
| 60 |
+
|
| 61 |
+
if sys.version_info >= (3, 9):
|
| 62 |
+
from types import GenericAlias
|
| 63 |
+
|
| 64 |
+
class _SupportsIndex(Protocol):
|
| 65 |
+
def __index__(self) -> int: ...
|
| 66 |
+
|
| 67 |
+
class _SupportsTrunc(Protocol):
|
| 68 |
+
def __trunc__(self) -> int: ...
|
| 69 |
+
|
| 70 |
+
_T = TypeVar("_T")
|
| 71 |
+
_T_co = TypeVar("_T_co", covariant=True)
|
| 72 |
+
_KT = TypeVar("_KT")
|
| 73 |
+
_VT = TypeVar("_VT")
|
| 74 |
+
_S = TypeVar("_S")
|
| 75 |
+
_T1 = TypeVar("_T1")
|
| 76 |
+
_T2 = TypeVar("_T2")
|
| 77 |
+
_T3 = TypeVar("_T3")
|
| 78 |
+
_T4 = TypeVar("_T4")
|
| 79 |
+
_T5 = TypeVar("_T5")
|
| 80 |
+
_TT = TypeVar("_TT", bound="type")
|
| 81 |
+
_TBE = TypeVar("_TBE", bound="BaseException")
|
| 82 |
+
|
| 83 |
+
class object:
|
| 84 |
+
__doc__: Optional[str]
|
| 85 |
+
__dict__: Dict[str, Any]
|
| 86 |
+
__slots__: Union[str, Iterable[str]]
|
| 87 |
+
__module__: str
|
| 88 |
+
__annotations__: Dict[str, Any]
|
| 89 |
+
@property
|
| 90 |
+
def __class__(self: _T) -> Type[_T]: ...
|
| 91 |
+
@__class__.setter
|
| 92 |
+
def __class__(self, __type: Type[object]) -> None: ... # noqa: F811
|
| 93 |
+
def __init__(self) -> None: ...
|
| 94 |
+
def __new__(cls) -> Any: ...
|
| 95 |
+
def __setattr__(self, name: str, value: Any) -> None: ...
|
| 96 |
+
def __eq__(self, o: object) -> bool: ...
|
| 97 |
+
def __ne__(self, o: object) -> bool: ...
|
| 98 |
+
def __str__(self) -> str: ...
|
| 99 |
+
def __repr__(self) -> str: ...
|
| 100 |
+
def __hash__(self) -> int: ...
|
| 101 |
+
def __format__(self, format_spec: str) -> str: ...
|
| 102 |
+
def __getattribute__(self, name: str) -> Any: ...
|
| 103 |
+
def __delattr__(self, name: str) -> None: ...
|
| 104 |
+
def __sizeof__(self) -> int: ...
|
| 105 |
+
def __reduce__(self) -> Union[str, Tuple[Any, ...]]: ...
|
| 106 |
+
def __reduce_ex__(self, protocol: int) -> Union[str, Tuple[Any, ...]]: ...
|
| 107 |
+
def __dir__(self) -> Iterable[str]: ...
|
| 108 |
+
def __init_subclass__(cls) -> None: ...
|
| 109 |
+
|
| 110 |
+
class staticmethod(object): # Special, only valid as a decorator.
|
| 111 |
+
__func__: Callable[..., Any]
|
| 112 |
+
__isabstractmethod__: bool
|
| 113 |
+
def __init__(self, f: Callable[..., Any]) -> None: ...
|
| 114 |
+
def __new__(cls: Type[_T], *args: Any, **kwargs: Any) -> _T: ...
|
| 115 |
+
def __get__(self, obj: _T, type: Optional[Type[_T]] = ...) -> Callable[..., Any]: ...
|
| 116 |
+
|
| 117 |
+
class classmethod(object): # Special, only valid as a decorator.
|
| 118 |
+
__func__: Callable[..., Any]
|
| 119 |
+
__isabstractmethod__: bool
|
| 120 |
+
def __init__(self, f: Callable[..., Any]) -> None: ...
|
| 121 |
+
def __new__(cls: Type[_T], *args: Any, **kwargs: Any) -> _T: ...
|
| 122 |
+
def __get__(self, obj: _T, type: Optional[Type[_T]] = ...) -> Callable[..., Any]: ...
|
| 123 |
+
|
| 124 |
+
class type(object):
|
| 125 |
+
__base__: type
|
| 126 |
+
__bases__: Tuple[type, ...]
|
| 127 |
+
__basicsize__: int
|
| 128 |
+
__dict__: Dict[str, Any]
|
| 129 |
+
__dictoffset__: int
|
| 130 |
+
__flags__: int
|
| 131 |
+
__itemsize__: int
|
| 132 |
+
__module__: str
|
| 133 |
+
__mro__: Tuple[type, ...]
|
| 134 |
+
__name__: str
|
| 135 |
+
__qualname__: str
|
| 136 |
+
__text_signature__: Optional[str]
|
| 137 |
+
__weakrefoffset__: int
|
| 138 |
+
@overload
|
| 139 |
+
def __init__(self, o: object) -> None: ...
|
| 140 |
+
@overload
|
| 141 |
+
def __init__(self, name: str, bases: Tuple[type, ...], dict: Dict[str, Any]) -> None: ...
|
| 142 |
+
@overload
|
| 143 |
+
def __new__(cls, o: object) -> type: ...
|
| 144 |
+
@overload
|
| 145 |
+
def __new__(cls, name: str, bases: Tuple[type, ...], namespace: Dict[str, Any]) -> type: ...
|
| 146 |
+
def __call__(self, *args: Any, **kwds: Any) -> Any: ...
|
| 147 |
+
def __subclasses__(self: _TT) -> List[_TT]: ...
|
| 148 |
+
# Note: the documentation doesnt specify what the return type is, the standard
|
| 149 |
+
# implementation seems to be returning a list.
|
| 150 |
+
def mro(self) -> List[type]: ...
|
| 151 |
+
def __instancecheck__(self, instance: Any) -> bool: ...
|
| 152 |
+
def __subclasscheck__(self, subclass: type) -> bool: ...
|
| 153 |
+
@classmethod
|
| 154 |
+
def __prepare__(metacls, __name: str, __bases: Tuple[type, ...], **kwds: Any) -> Mapping[str, Any]: ...
|
| 155 |
+
|
| 156 |
+
class super(object):
|
| 157 |
+
@overload
|
| 158 |
+
def __init__(self, t: Any, obj: Any) -> None: ...
|
| 159 |
+
@overload
|
| 160 |
+
def __init__(self, t: Any) -> None: ...
|
| 161 |
+
@overload
|
| 162 |
+
def __init__(self) -> None: ...
|
| 163 |
+
|
| 164 |
+
class int:
|
| 165 |
+
@overload
|
| 166 |
+
def __new__(cls: Type[_T], x: Union[str, bytes, SupportsInt, _SupportsIndex, _SupportsTrunc] = ...) -> _T: ...
|
| 167 |
+
@overload
|
| 168 |
+
def __new__(cls: Type[_T], x: Union[str, bytes, bytearray], base: int) -> _T: ...
|
| 169 |
+
@overload
|
| 170 |
+
def __init__(self, x: Union[str, bytes, SupportsInt, _SupportsIndex, _SupportsTrunc] = ...) -> _T: ...
|
| 171 |
+
@overload
|
| 172 |
+
def __init__(self, x: Union[str, bytes, bytearray], base: int) -> _T: ...
|
| 173 |
+
if sys.version_info >= (3, 8):
|
| 174 |
+
def as_integer_ratio(self) -> Tuple[int, Literal[1]]: ...
|
| 175 |
+
@property
|
| 176 |
+
def real(self) -> int: ...
|
| 177 |
+
@property
|
| 178 |
+
def imag(self) -> int: ...
|
| 179 |
+
@property
|
| 180 |
+
def numerator(self) -> int: ...
|
| 181 |
+
@property
|
| 182 |
+
def denominator(self) -> int: ...
|
| 183 |
+
def conjugate(self) -> int: ...
|
| 184 |
+
def bit_length(self) -> int: ...
|
| 185 |
+
def to_bytes(self, length: int, byteorder: str, *, signed: bool = ...) -> bytes: ...
|
| 186 |
+
@classmethod
|
| 187 |
+
def from_bytes(
|
| 188 |
+
cls, bytes: Union[Iterable[int], SupportsBytes], byteorder: str, *, signed: bool = ...
|
| 189 |
+
) -> int: ... # TODO buffer object argument
|
| 190 |
+
def __add__(self, x: int) -> int: ...
|
| 191 |
+
def __sub__(self, x: int) -> int: ...
|
| 192 |
+
def __mul__(self, x: int) -> int: ...
|
| 193 |
+
def __floordiv__(self, x: int) -> int: ...
|
| 194 |
+
def __truediv__(self, x: int) -> float: ...
|
| 195 |
+
def __mod__(self, x: int) -> int: ...
|
| 196 |
+
def __divmod__(self, x: int) -> Tuple[int, int]: ...
|
| 197 |
+
def __radd__(self, x: int) -> int: ...
|
| 198 |
+
def __rsub__(self, x: int) -> int: ...
|
| 199 |
+
def __rmul__(self, x: int) -> int: ...
|
| 200 |
+
def __rfloordiv__(self, x: int) -> int: ...
|
| 201 |
+
def __rtruediv__(self, x: int) -> float: ...
|
| 202 |
+
def __rmod__(self, x: int) -> int: ...
|
| 203 |
+
def __rdivmod__(self, x: int) -> Tuple[int, int]: ...
|
| 204 |
+
@overload
|
| 205 |
+
def __pow__(self, __x: Literal[2], __modulo: Optional[int] = ...) -> int: ...
|
| 206 |
+
@overload
|
| 207 |
+
def __pow__(self, __x: int, __modulo: Optional[int] = ...) -> Any: ... # Return type can be int or float, depending on x.
|
| 208 |
+
def __rpow__(self, x: int, mod: Optional[int] = ...) -> Any: ...
|
| 209 |
+
def __and__(self, n: int) -> int: ...
|
| 210 |
+
def __or__(self, n: int) -> int: ...
|
| 211 |
+
def __xor__(self, n: int) -> int: ...
|
| 212 |
+
def __lshift__(self, n: int) -> int: ...
|
| 213 |
+
def __rshift__(self, n: int) -> int: ...
|
| 214 |
+
def __rand__(self, n: int) -> int: ...
|
| 215 |
+
def __ror__(self, n: int) -> int: ...
|
| 216 |
+
def __rxor__(self, n: int) -> int: ...
|
| 217 |
+
def __rlshift__(self, n: int) -> int: ...
|
| 218 |
+
def __rrshift__(self, n: int) -> int: ...
|
| 219 |
+
def __neg__(self) -> int: ...
|
| 220 |
+
def __pos__(self) -> int: ...
|
| 221 |
+
def __invert__(self) -> int: ...
|
| 222 |
+
def __trunc__(self) -> int: ...
|
| 223 |
+
def __ceil__(self) -> int: ...
|
| 224 |
+
def __floor__(self) -> int: ...
|
| 225 |
+
def __round__(self, ndigits: Optional[int] = ...) -> int: ...
|
| 226 |
+
def __getnewargs__(self) -> Tuple[int]: ...
|
| 227 |
+
def __eq__(self, x: object) -> bool: ...
|
| 228 |
+
def __ne__(self, x: object) -> bool: ...
|
| 229 |
+
def __lt__(self, x: int) -> bool: ...
|
| 230 |
+
def __le__(self, x: int) -> bool: ...
|
| 231 |
+
def __gt__(self, x: int) -> bool: ...
|
| 232 |
+
def __ge__(self, x: int) -> bool: ...
|
| 233 |
+
def __str__(self) -> str: ...
|
| 234 |
+
def __float__(self) -> float: ...
|
| 235 |
+
def __int__(self) -> int: ...
|
| 236 |
+
def __abs__(self) -> int: ...
|
| 237 |
+
def __hash__(self) -> int: ...
|
| 238 |
+
def __bool__(self) -> bool: ...
|
| 239 |
+
def __index__(self) -> int: ...
|
| 240 |
+
|
| 241 |
+
class float:
|
| 242 |
+
def __new__(cls: Type[_T], x: Union[SupportsFloat, _SupportsIndex, str, bytes, bytearray] = ...) -> _T: ...
|
| 243 |
+
def as_integer_ratio(self) -> Tuple[int, int]: ...
|
| 244 |
+
def hex(self) -> str: ...
|
| 245 |
+
def is_integer(self) -> bool: ...
|
| 246 |
+
@classmethod
|
| 247 |
+
def fromhex(cls, __s: str) -> float: ...
|
| 248 |
+
@property
|
| 249 |
+
def real(self) -> float: ...
|
| 250 |
+
@property
|
| 251 |
+
def imag(self) -> float: ...
|
| 252 |
+
def conjugate(self) -> float: ...
|
| 253 |
+
def __add__(self, x: float) -> float: ...
|
| 254 |
+
def __sub__(self, x: float) -> float: ...
|
| 255 |
+
def __mul__(self, x: float) -> float: ...
|
| 256 |
+
def __floordiv__(self, x: float) -> float: ...
|
| 257 |
+
def __truediv__(self, x: float) -> float: ...
|
| 258 |
+
def __mod__(self, x: float) -> float: ...
|
| 259 |
+
def __divmod__(self, x: float) -> Tuple[float, float]: ...
|
| 260 |
+
def __pow__(
|
| 261 |
+
self, x: float, mod: None = ...
|
| 262 |
+
) -> float: ... # In Python 3, returns complex if self is negative and x is not whole
|
| 263 |
+
def __radd__(self, x: float) -> float: ...
|
| 264 |
+
def __rsub__(self, x: float) -> float: ...
|
| 265 |
+
def __rmul__(self, x: float) -> float: ...
|
| 266 |
+
def __rfloordiv__(self, x: float) -> float: ...
|
| 267 |
+
def __rtruediv__(self, x: float) -> float: ...
|
| 268 |
+
def __rmod__(self, x: float) -> float: ...
|
| 269 |
+
def __rdivmod__(self, x: float) -> Tuple[float, float]: ...
|
| 270 |
+
def __rpow__(self, x: float, mod: None = ...) -> float: ...
|
| 271 |
+
def __getnewargs__(self) -> Tuple[float]: ...
|
| 272 |
+
def __trunc__(self) -> int: ...
|
| 273 |
+
if sys.version_info >= (3, 9):
|
| 274 |
+
def __ceil__(self) -> int: ...
|
| 275 |
+
def __floor__(self) -> int: ...
|
| 276 |
+
@overload
|
| 277 |
+
def __round__(self, ndigits: None = ...) -> int: ...
|
| 278 |
+
@overload
|
| 279 |
+
def __round__(self, ndigits: int) -> float: ...
|
| 280 |
+
def __eq__(self, x: object) -> bool: ...
|
| 281 |
+
def __ne__(self, x: object) -> bool: ...
|
| 282 |
+
def __lt__(self, x: float) -> bool: ...
|
| 283 |
+
def __le__(self, x: float) -> bool: ...
|
| 284 |
+
def __gt__(self, x: float) -> bool: ...
|
| 285 |
+
def __ge__(self, x: float) -> bool: ...
|
| 286 |
+
def __neg__(self) -> float: ...
|
| 287 |
+
def __pos__(self) -> float: ...
|
| 288 |
+
def __str__(self) -> str: ...
|
| 289 |
+
def __int__(self) -> int: ...
|
| 290 |
+
def __float__(self) -> float: ...
|
| 291 |
+
def __abs__(self) -> float: ...
|
| 292 |
+
def __hash__(self) -> int: ...
|
| 293 |
+
def __bool__(self) -> bool: ...
|
| 294 |
+
|
| 295 |
+
class complex:
|
| 296 |
+
@overload
|
| 297 |
+
def __new__(cls: Type[_T], real: float = ..., imag: float = ...) -> _T: ...
|
| 298 |
+
@overload
|
| 299 |
+
def __new__(cls: Type[_T], real: Union[str, SupportsComplex, _SupportsIndex]) -> _T: ...
|
| 300 |
+
@property
|
| 301 |
+
def real(self) -> float: ...
|
| 302 |
+
@property
|
| 303 |
+
def imag(self) -> float: ...
|
| 304 |
+
def conjugate(self) -> complex: ...
|
| 305 |
+
def __add__(self, x: complex) -> complex: ...
|
| 306 |
+
def __sub__(self, x: complex) -> complex: ...
|
| 307 |
+
def __mul__(self, x: complex) -> complex: ...
|
| 308 |
+
def __pow__(self, x: complex, mod: None = ...) -> complex: ...
|
| 309 |
+
def __truediv__(self, x: complex) -> complex: ...
|
| 310 |
+
def __radd__(self, x: complex) -> complex: ...
|
| 311 |
+
def __rsub__(self, x: complex) -> complex: ...
|
| 312 |
+
def __rmul__(self, x: complex) -> complex: ...
|
| 313 |
+
def __rpow__(self, x: complex, mod: None = ...) -> complex: ...
|
| 314 |
+
def __rtruediv__(self, x: complex) -> complex: ...
|
| 315 |
+
def __eq__(self, x: object) -> bool: ...
|
| 316 |
+
def __ne__(self, x: object) -> bool: ...
|
| 317 |
+
def __neg__(self) -> complex: ...
|
| 318 |
+
def __pos__(self) -> complex: ...
|
| 319 |
+
def __str__(self) -> str: ...
|
| 320 |
+
def __complex__(self) -> complex: ...
|
| 321 |
+
def __abs__(self) -> float: ...
|
| 322 |
+
def __hash__(self) -> int: ...
|
| 323 |
+
def __bool__(self) -> bool: ...
|
| 324 |
+
|
| 325 |
+
class _FormatMapMapping(Protocol):
|
| 326 |
+
def __getitem__(self, __key: str) -> Any: ...
|
| 327 |
+
|
| 328 |
+
class str(Sequence[str]):
|
| 329 |
+
@overload
|
| 330 |
+
def __new__(cls: Type[_T], o: object = ...) -> _T: ...
|
| 331 |
+
@overload
|
| 332 |
+
def __new__(cls: Type[_T], o: bytes, encoding: str = ..., errors: str = ...) -> _T: ...
|
| 333 |
+
@overload
|
| 334 |
+
def __init__(self, o: object = ...) -> _T: ...
|
| 335 |
+
@overload
|
| 336 |
+
def __init__(self, o: bytes, encoding: str = ..., errors: str = ...) -> _T: ...
|
| 337 |
+
def capitalize(self) -> str: ...
|
| 338 |
+
def casefold(self) -> str: ...
|
| 339 |
+
def center(self, __width: int, __fillchar: str = ...) -> str: ...
|
| 340 |
+
def count(self, x: str, __start: Optional[int] = ..., __end: Optional[int] = ...) -> int: ...
|
| 341 |
+
def encode(self, encoding: str = ..., errors: str = ...) -> bytes: ...
|
| 342 |
+
def endswith(self, suffix: Union[str, Tuple[str, ...]], start: Optional[int] = ..., end: Optional[int] = ...) -> bool: ...
|
| 343 |
+
def expandtabs(self, tabsize: int = ...) -> str: ...
|
| 344 |
+
def find(self, sub: str, __start: Optional[int] = ..., __end: Optional[int] = ...) -> int: ...
|
| 345 |
+
def format(self, *args: object, **kwargs: object) -> str: ...
|
| 346 |
+
def format_map(self, map: _FormatMapMapping) -> str: ...
|
| 347 |
+
def index(self, sub: str, __start: Optional[int] = ..., __end: Optional[int] = ...) -> int: ...
|
| 348 |
+
def isalnum(self) -> bool: ...
|
| 349 |
+
def isalpha(self) -> bool: ...
|
| 350 |
+
if sys.version_info >= (3, 7):
|
| 351 |
+
def isascii(self) -> bool: ...
|
| 352 |
+
def isdecimal(self) -> bool: ...
|
| 353 |
+
def isdigit(self) -> bool: ...
|
| 354 |
+
def isidentifier(self) -> bool: ...
|
| 355 |
+
def islower(self) -> bool: ...
|
| 356 |
+
def isnumeric(self) -> bool: ...
|
| 357 |
+
def isprintable(self) -> bool: ...
|
| 358 |
+
def isspace(self) -> bool: ...
|
| 359 |
+
def istitle(self) -> bool: ...
|
| 360 |
+
def isupper(self) -> bool: ...
|
| 361 |
+
def join(self, __iterable: Iterable[str]) -> str: ...
|
| 362 |
+
def ljust(self, __width: int, __fillchar: str = ...) -> str: ...
|
| 363 |
+
def lower(self) -> str: ...
|
| 364 |
+
def lstrip(self, __chars: Optional[str] = ...) -> str: ...
|
| 365 |
+
def partition(self, __sep: str) -> Tuple[str, str, str]: ...
|
| 366 |
+
def replace(self, __old: str, __new: str, __count: int = ...) -> str: ...
|
| 367 |
+
if sys.version_info >= (3, 9):
|
| 368 |
+
def removeprefix(self, __prefix: str) -> str: ...
|
| 369 |
+
def removesuffix(self, __suffix: str) -> str: ...
|
| 370 |
+
def rfind(self, sub: str, __start: Optional[int] = ..., __end: Optional[int] = ...) -> int: ...
|
| 371 |
+
def rindex(self, sub: str, __start: Optional[int] = ..., __end: Optional[int] = ...) -> int: ...
|
| 372 |
+
def rjust(self, __width: int, __fillchar: str = ...) -> str: ...
|
| 373 |
+
def rpartition(self, __sep: str) -> Tuple[str, str, str]: ...
|
| 374 |
+
def rsplit(self, sep: Optional[str] = ..., maxsplit: int = ...) -> List[str]: ...
|
| 375 |
+
def rstrip(self, __chars: Optional[str] = ...) -> str: ...
|
| 376 |
+
def split(self, sep: Optional[str] = ..., maxsplit: int = ...) -> List[str]: ...
|
| 377 |
+
def splitlines(self, keepends: bool = ...) -> List[str]: ...
|
| 378 |
+
def startswith(self, prefix: Union[str, Tuple[str, ...]], start: Optional[int] = ..., end: Optional[int] = ...) -> bool: ...
|
| 379 |
+
def strip(self, __chars: Optional[str] = ...) -> str: ...
|
| 380 |
+
def swapcase(self) -> str: ...
|
| 381 |
+
def title(self) -> str: ...
|
| 382 |
+
def translate(self, __table: Union[Mapping[int, Union[int, str, None]], Sequence[Union[int, str, None]]]) -> str: ...
|
| 383 |
+
def upper(self) -> str: ...
|
| 384 |
+
def zfill(self, __width: int) -> str: ...
|
| 385 |
+
@staticmethod
|
| 386 |
+
@overload
|
| 387 |
+
def maketrans(__x: Union[Dict[int, _T], Dict[str, _T], Dict[Union[str, int], _T]]) -> Dict[int, _T]: ...
|
| 388 |
+
@staticmethod
|
| 389 |
+
@overload
|
| 390 |
+
def maketrans(__x: str, __y: str, __z: Optional[str] = ...) -> Dict[int, Union[int, None]]: ...
|
| 391 |
+
def __add__(self, s: str) -> str: ...
|
| 392 |
+
# Incompatible with Sequence.__contains__
|
| 393 |
+
def __contains__(self, o: str) -> bool: ... # type: ignore
|
| 394 |
+
def __eq__(self, x: object) -> bool: ...
|
| 395 |
+
def __ge__(self, x: str) -> bool: ...
|
| 396 |
+
def __getitem__(self, i: Union[int, slice]) -> str: ...
|
| 397 |
+
def __gt__(self, x: str) -> bool: ...
|
| 398 |
+
def __hash__(self) -> int: ...
|
| 399 |
+
def __iter__(self) -> Iterator[str]: ...
|
| 400 |
+
def __le__(self, x: str) -> bool: ...
|
| 401 |
+
def __len__(self) -> int: ...
|
| 402 |
+
def __lt__(self, x: str) -> bool: ...
|
| 403 |
+
def __mod__(self, x: Any) -> str: ...
|
| 404 |
+
def __mul__(self, n: int) -> str: ...
|
| 405 |
+
def __ne__(self, x: object) -> bool: ...
|
| 406 |
+
def __repr__(self) -> str: ...
|
| 407 |
+
def __rmul__(self, n: int) -> str: ...
|
| 408 |
+
def __str__(self) -> str: ...
|
| 409 |
+
def __getnewargs__(self) -> Tuple[str]: ...
|
| 410 |
+
|
| 411 |
+
class bytes(ByteString):
|
| 412 |
+
@overload
|
| 413 |
+
def __new__(cls: Type[_T], ints: Iterable[int]) -> _T: ...
|
| 414 |
+
@overload
|
| 415 |
+
def __new__(cls: Type[_T], string: str, encoding: str, errors: str = ...) -> _T: ...
|
| 416 |
+
@overload
|
| 417 |
+
def __new__(cls: Type[_T], length: int) -> _T: ...
|
| 418 |
+
@overload
|
| 419 |
+
def __new__(cls: Type[_T]) -> _T: ...
|
| 420 |
+
@overload
|
| 421 |
+
def __new__(cls: Type[_T], o: SupportsBytes) -> _T: ...
|
| 422 |
+
def capitalize(self) -> bytes: ...
|
| 423 |
+
def center(self, __width: int, __fillchar: bytes = ...) -> bytes: ...
|
| 424 |
+
def count(self, sub: Union[bytes, int], start: Optional[int] = ..., end: Optional[int] = ...) -> int: ...
|
| 425 |
+
def decode(self, encoding: str = ..., errors: str = ...) -> str: ...
|
| 426 |
+
def endswith(self, suffix: Union[bytes, Tuple[bytes, ...]]) -> bool: ...
|
| 427 |
+
def expandtabs(self, tabsize: int = ...) -> bytes: ...
|
| 428 |
+
def find(self, sub: Union[bytes, int], start: Optional[int] = ..., end: Optional[int] = ...) -> int: ...
|
| 429 |
+
if sys.version_info >= (3, 8):
|
| 430 |
+
def hex(self, sep: Union[str, bytes] = ..., bytes_per_sep: int = ...) -> str: ...
|
| 431 |
+
else:
|
| 432 |
+
def hex(self) -> str: ...
|
| 433 |
+
def index(self, sub: Union[bytes, int], start: Optional[int] = ..., end: Optional[int] = ...) -> int: ...
|
| 434 |
+
def isalnum(self) -> bool: ...
|
| 435 |
+
def isalpha(self) -> bool: ...
|
| 436 |
+
if sys.version_info >= (3, 7):
|
| 437 |
+
def isascii(self) -> bool: ...
|
| 438 |
+
def isdigit(self) -> bool: ...
|
| 439 |
+
def islower(self) -> bool: ...
|
| 440 |
+
def isspace(self) -> bool: ...
|
| 441 |
+
def istitle(self) -> bool: ...
|
| 442 |
+
def isupper(self) -> bool: ...
|
| 443 |
+
def join(self, __iterable_of_bytes: Iterable[Union[ByteString, memoryview]]) -> bytes: ...
|
| 444 |
+
def ljust(self, __width: int, __fillchar: bytes = ...) -> bytes: ...
|
| 445 |
+
def lower(self) -> bytes: ...
|
| 446 |
+
def lstrip(self, __bytes: Optional[bytes] = ...) -> bytes: ...
|
| 447 |
+
def partition(self, __sep: bytes) -> Tuple[bytes, bytes, bytes]: ...
|
| 448 |
+
def replace(self, __old: bytes, __new: bytes, __count: int = ...) -> bytes: ...
|
| 449 |
+
if sys.version_info >= (3, 9):
|
| 450 |
+
def removeprefix(self, __prefix: bytes) -> bytes: ...
|
| 451 |
+
def removesuffix(self, __suffix: bytes) -> bytes: ...
|
| 452 |
+
def rfind(self, sub: Union[bytes, int], start: Optional[int] = ..., end: Optional[int] = ...) -> int: ...
|
| 453 |
+
def rindex(self, sub: Union[bytes, int], start: Optional[int] = ..., end: Optional[int] = ...) -> int: ...
|
| 454 |
+
def rjust(self, __width: int, __fillchar: bytes = ...) -> bytes: ...
|
| 455 |
+
def rpartition(self, __sep: bytes) -> Tuple[bytes, bytes, bytes]: ...
|
| 456 |
+
def rsplit(self, sep: Optional[bytes] = ..., maxsplit: int = ...) -> List[bytes]: ...
|
| 457 |
+
def rstrip(self, __bytes: Optional[bytes] = ...) -> bytes: ...
|
| 458 |
+
def split(self, sep: Optional[bytes] = ..., maxsplit: int = ...) -> List[bytes]: ...
|
| 459 |
+
def splitlines(self, keepends: bool = ...) -> List[bytes]: ...
|
| 460 |
+
def startswith(
|
| 461 |
+
self, prefix: Union[bytes, Tuple[bytes, ...]], start: Optional[int] = ..., end: Optional[int] = ...
|
| 462 |
+
) -> bool: ...
|
| 463 |
+
def strip(self, __bytes: Optional[bytes] = ...) -> bytes: ...
|
| 464 |
+
def swapcase(self) -> bytes: ...
|
| 465 |
+
def title(self) -> bytes: ...
|
| 466 |
+
def translate(self, __table: Optional[bytes], delete: bytes = ...) -> bytes: ...
|
| 467 |
+
def upper(self) -> bytes: ...
|
| 468 |
+
def zfill(self, __width: int) -> bytes: ...
|
| 469 |
+
@classmethod
|
| 470 |
+
def fromhex(cls, __s: str) -> bytes: ...
|
| 471 |
+
@classmethod
|
| 472 |
+
def maketrans(cls, frm: bytes, to: bytes) -> bytes: ...
|
| 473 |
+
def __len__(self) -> int: ...
|
| 474 |
+
def __iter__(self) -> Iterator[int]: ...
|
| 475 |
+
def __str__(self) -> str: ...
|
| 476 |
+
def __repr__(self) -> str: ...
|
| 477 |
+
def __int__(self) -> int: ...
|
| 478 |
+
def __float__(self) -> float: ...
|
| 479 |
+
def __hash__(self) -> int: ...
|
| 480 |
+
@overload
|
| 481 |
+
def __getitem__(self, i: int) -> int: ...
|
| 482 |
+
@overload
|
| 483 |
+
def __getitem__(self, s: slice) -> bytes: ...
|
| 484 |
+
def __add__(self, s: bytes) -> bytes: ...
|
| 485 |
+
def __mul__(self, n: int) -> bytes: ...
|
| 486 |
+
def __rmul__(self, n: int) -> bytes: ...
|
| 487 |
+
def __mod__(self, value: Any) -> bytes: ...
|
| 488 |
+
# Incompatible with Sequence.__contains__
|
| 489 |
+
def __contains__(self, o: Union[int, bytes]) -> bool: ... # type: ignore
|
| 490 |
+
def __eq__(self, x: object) -> bool: ...
|
| 491 |
+
def __ne__(self, x: object) -> bool: ...
|
| 492 |
+
def __lt__(self, x: bytes) -> bool: ...
|
| 493 |
+
def __le__(self, x: bytes) -> bool: ...
|
| 494 |
+
def __gt__(self, x: bytes) -> bool: ...
|
| 495 |
+
def __ge__(self, x: bytes) -> bool: ...
|
| 496 |
+
def __getnewargs__(self) -> Tuple[bytes]: ...
|
| 497 |
+
|
| 498 |
+
class bytearray(MutableSequence[int], ByteString):
|
| 499 |
+
@overload
|
| 500 |
+
def __init__(self) -> None: ...
|
| 501 |
+
@overload
|
| 502 |
+
def __init__(self, ints: Iterable[int]) -> None: ...
|
| 503 |
+
@overload
|
| 504 |
+
def __init__(self, string: str, encoding: str, errors: str = ...) -> None: ...
|
| 505 |
+
@overload
|
| 506 |
+
def __init__(self, length: int) -> None: ...
|
| 507 |
+
def capitalize(self) -> bytearray: ...
|
| 508 |
+
def center(self, __width: int, __fillchar: bytes = ...) -> bytearray: ...
|
| 509 |
+
def count(self, __sub: Union[bytes, int], __start: Optional[int] = ..., __end: Optional[int] = ...) -> int: ...
|
| 510 |
+
def copy(self) -> bytearray: ...
|
| 511 |
+
def decode(self, encoding: str = ..., errors: str = ...) -> str: ...
|
| 512 |
+
def endswith(self, __suffix: Union[bytes, Tuple[bytes, ...]]) -> bool: ...
|
| 513 |
+
def expandtabs(self, tabsize: int = ...) -> bytearray: ...
|
| 514 |
+
def find(self, __sub: Union[bytes, int], __start: Optional[int] = ..., __end: Optional[int] = ...) -> int: ...
|
| 515 |
+
def hex(self) -> str: ...
|
| 516 |
+
def index(self, __sub: Union[bytes, int], __start: Optional[int] = ..., __end: Optional[int] = ...) -> int: ...
|
| 517 |
+
def insert(self, __index: int, __item: int) -> None: ...
|
| 518 |
+
def isalnum(self) -> bool: ...
|
| 519 |
+
def isalpha(self) -> bool: ...
|
| 520 |
+
if sys.version_info >= (3, 7):
|
| 521 |
+
def isascii(self) -> bool: ...
|
| 522 |
+
def isdigit(self) -> bool: ...
|
| 523 |
+
def islower(self) -> bool: ...
|
| 524 |
+
def isspace(self) -> bool: ...
|
| 525 |
+
def istitle(self) -> bool: ...
|
| 526 |
+
def isupper(self) -> bool: ...
|
| 527 |
+
def join(self, __iterable_of_bytes: Iterable[Union[ByteString, memoryview]]) -> bytearray: ...
|
| 528 |
+
def ljust(self, __width: int, __fillchar: bytes = ...) -> bytearray: ...
|
| 529 |
+
def lower(self) -> bytearray: ...
|
| 530 |
+
def lstrip(self, __bytes: Optional[bytes] = ...) -> bytearray: ...
|
| 531 |
+
def partition(self, __sep: bytes) -> Tuple[bytearray, bytearray, bytearray]: ...
|
| 532 |
+
if sys.version_info >= (3, 9):
|
| 533 |
+
def removeprefix(self, __prefix: bytes) -> bytearray: ...
|
| 534 |
+
def removesuffix(self, __suffix: bytes) -> bytearray: ...
|
| 535 |
+
def replace(self, __old: bytes, __new: bytes, __count: int = ...) -> bytearray: ...
|
| 536 |
+
def rfind(self, __sub: Union[bytes, int], __start: Optional[int] = ..., __end: Optional[int] = ...) -> int: ...
|
| 537 |
+
def rindex(self, __sub: Union[bytes, int], __start: Optional[int] = ..., __end: Optional[int] = ...) -> int: ...
|
| 538 |
+
def rjust(self, __width: int, __fillchar: bytes = ...) -> bytearray: ...
|
| 539 |
+
def rpartition(self, __sep: bytes) -> Tuple[bytearray, bytearray, bytearray]: ...
|
| 540 |
+
def rsplit(self, sep: Optional[bytes] = ..., maxsplit: int = ...) -> List[bytearray]: ...
|
| 541 |
+
def rstrip(self, __bytes: Optional[bytes] = ...) -> bytearray: ...
|
| 542 |
+
def split(self, sep: Optional[bytes] = ..., maxsplit: int = ...) -> List[bytearray]: ...
|
| 543 |
+
def splitlines(self, keepends: bool = ...) -> List[bytearray]: ...
|
| 544 |
+
def startswith(
|
| 545 |
+
self, __prefix: Union[bytes, Tuple[bytes, ...]], __start: Optional[int] = ..., __end: Optional[int] = ...
|
| 546 |
+
) -> bool: ...
|
| 547 |
+
def strip(self, __bytes: Optional[bytes] = ...) -> bytearray: ...
|
| 548 |
+
def swapcase(self) -> bytearray: ...
|
| 549 |
+
def title(self) -> bytearray: ...
|
| 550 |
+
def translate(self, __table: Optional[bytes], delete: bytes = ...) -> bytearray: ...
|
| 551 |
+
def upper(self) -> bytearray: ...
|
| 552 |
+
def zfill(self, __width: int) -> bytearray: ...
|
| 553 |
+
@classmethod
|
| 554 |
+
def fromhex(cls, __string: str) -> bytearray: ...
|
| 555 |
+
@classmethod
|
| 556 |
+
def maketrans(cls, __frm: bytes, __to: bytes) -> bytes: ...
|
| 557 |
+
def __len__(self) -> int: ...
|
| 558 |
+
def __iter__(self) -> Iterator[int]: ...
|
| 559 |
+
def __str__(self) -> str: ...
|
| 560 |
+
def __repr__(self) -> str: ...
|
| 561 |
+
def __int__(self) -> int: ...
|
| 562 |
+
def __float__(self) -> float: ...
|
| 563 |
+
__hash__: None # type: ignore
|
| 564 |
+
@overload
|
| 565 |
+
def __getitem__(self, i: int) -> int: ...
|
| 566 |
+
@overload
|
| 567 |
+
def __getitem__(self, s: slice) -> bytearray: ...
|
| 568 |
+
@overload
|
| 569 |
+
def __setitem__(self, i: int, x: int) -> None: ...
|
| 570 |
+
@overload
|
| 571 |
+
def __setitem__(self, s: slice, x: Union[Iterable[int], bytes]) -> None: ...
|
| 572 |
+
def __delitem__(self, i: Union[int, slice]) -> None: ...
|
| 573 |
+
def __add__(self, s: bytes) -> bytearray: ...
|
| 574 |
+
def __iadd__(self, s: Iterable[int]) -> bytearray: ...
|
| 575 |
+
def __mul__(self, n: int) -> bytearray: ...
|
| 576 |
+
def __rmul__(self, n: int) -> bytearray: ...
|
| 577 |
+
def __imul__(self, n: int) -> bytearray: ...
|
| 578 |
+
def __mod__(self, value: Any) -> bytes: ...
|
| 579 |
+
# Incompatible with Sequence.__contains__
|
| 580 |
+
def __contains__(self, o: Union[int, bytes]) -> bool: ... # type: ignore
|
| 581 |
+
def __eq__(self, x: object) -> bool: ...
|
| 582 |
+
def __ne__(self, x: object) -> bool: ...
|
| 583 |
+
def __lt__(self, x: bytes) -> bool: ...
|
| 584 |
+
def __le__(self, x: bytes) -> bool: ...
|
| 585 |
+
def __gt__(self, x: bytes) -> bool: ...
|
| 586 |
+
def __ge__(self, x: bytes) -> bool: ...
|
| 587 |
+
|
| 588 |
+
class memoryview(Sized, Container[int]):
|
| 589 |
+
format: str
|
| 590 |
+
itemsize: int
|
| 591 |
+
shape: Optional[Tuple[int, ...]]
|
| 592 |
+
strides: Optional[Tuple[int, ...]]
|
| 593 |
+
suboffsets: Optional[Tuple[int, ...]]
|
| 594 |
+
readonly: bool
|
| 595 |
+
ndim: int
|
| 596 |
+
|
| 597 |
+
obj: Union[bytes, bytearray]
|
| 598 |
+
c_contiguous: bool
|
| 599 |
+
f_contiguous: bool
|
| 600 |
+
contiguous: bool
|
| 601 |
+
nbytes: int
|
| 602 |
+
def __init__(self, obj: ReadableBuffer) -> None: ...
|
| 603 |
+
def __enter__(self) -> memoryview: ...
|
| 604 |
+
def __exit__(
|
| 605 |
+
self, exc_type: Optional[Type[BaseException]], exc_val: Optional[BaseException], exc_tb: Optional[TracebackType]
|
| 606 |
+
) -> None: ...
|
| 607 |
+
def cast(self, format: str, shape: Union[List[int], Tuple[int]] = ...) -> memoryview: ...
|
| 608 |
+
@overload
|
| 609 |
+
def __getitem__(self, i: int) -> int: ...
|
| 610 |
+
@overload
|
| 611 |
+
def __getitem__(self, s: slice) -> memoryview: ...
|
| 612 |
+
def __contains__(self, x: object) -> bool: ...
|
| 613 |
+
def __iter__(self) -> Iterator[int]: ...
|
| 614 |
+
def __len__(self) -> int: ...
|
| 615 |
+
@overload
|
| 616 |
+
def __setitem__(self, s: slice, o: memoryview) -> None: ...
|
| 617 |
+
@overload
|
| 618 |
+
def __setitem__(self, i: int, o: bytes) -> None: ...
|
| 619 |
+
@overload
|
| 620 |
+
def __setitem__(self, s: slice, o: Sequence[bytes]) -> None: ...
|
| 621 |
+
if sys.version_info >= (3, 8):
|
| 622 |
+
def tobytes(self, order: Optional[Literal["C", "F", "A"]] = ...) -> bytes: ...
|
| 623 |
+
else:
|
| 624 |
+
def tobytes(self) -> bytes: ...
|
| 625 |
+
def tolist(self) -> List[int]: ...
|
| 626 |
+
if sys.version_info >= (3, 8):
|
| 627 |
+
def toreadonly(self) -> memoryview: ...
|
| 628 |
+
def release(self) -> None: ...
|
| 629 |
+
def hex(self) -> str: ...
|
| 630 |
+
|
| 631 |
+
class bool(int):
|
| 632 |
+
def __new__(cls: Type[_T], __o: object = ...) -> _T: ...
|
| 633 |
+
def __init__(self, o: object = ...): ...
|
| 634 |
+
@overload
|
| 635 |
+
def __and__(self, x: bool) -> bool: ...
|
| 636 |
+
@overload
|
| 637 |
+
def __and__(self, x: int) -> int: ...
|
| 638 |
+
@overload
|
| 639 |
+
def __or__(self, x: bool) -> bool: ...
|
| 640 |
+
@overload
|
| 641 |
+
def __or__(self, x: int) -> int: ...
|
| 642 |
+
@overload
|
| 643 |
+
def __xor__(self, x: bool) -> bool: ...
|
| 644 |
+
@overload
|
| 645 |
+
def __xor__(self, x: int) -> int: ...
|
| 646 |
+
@overload
|
| 647 |
+
def __rand__(self, x: bool) -> bool: ...
|
| 648 |
+
@overload
|
| 649 |
+
def __rand__(self, x: int) -> int: ...
|
| 650 |
+
@overload
|
| 651 |
+
def __ror__(self, x: bool) -> bool: ...
|
| 652 |
+
@overload
|
| 653 |
+
def __ror__(self, x: int) -> int: ...
|
| 654 |
+
@overload
|
| 655 |
+
def __rxor__(self, x: bool) -> bool: ...
|
| 656 |
+
@overload
|
| 657 |
+
def __rxor__(self, x: int) -> int: ...
|
| 658 |
+
def __getnewargs__(self) -> Tuple[int]: ...
|
| 659 |
+
|
| 660 |
+
class slice(object):
|
| 661 |
+
start: Any
|
| 662 |
+
step: Any
|
| 663 |
+
stop: Any
|
| 664 |
+
@overload
|
| 665 |
+
def __init__(self, stop: Any) -> None: ...
|
| 666 |
+
@overload
|
| 667 |
+
def __init__(self, start: Any, stop: Any, step: Any = ...) -> None: ...
|
| 668 |
+
__hash__: None # type: ignore
|
| 669 |
+
def indices(self, len: int) -> Tuple[int, int, int]: ...
|
| 670 |
+
|
| 671 |
+
class tuple(Sequence[_T_co], Generic[_T_co]):
|
| 672 |
+
def __new__(cls: Type[_T], iterable: Iterable[_T_co] = ...) -> _T: ...
|
| 673 |
+
def __init__(self, iterable: Iterable[_T_co] = ...): ...
|
| 674 |
+
def __len__(self) -> int: ...
|
| 675 |
+
def __contains__(self, x: object) -> bool: ...
|
| 676 |
+
@overload
|
| 677 |
+
def __getitem__(self, x: int) -> _T_co: ...
|
| 678 |
+
@overload
|
| 679 |
+
def __getitem__(self, x: slice) -> Tuple[_T_co, ...]: ...
|
| 680 |
+
def __iter__(self) -> Iterator[_T_co]: ...
|
| 681 |
+
def __lt__(self, x: Tuple[_T_co, ...]) -> bool: ...
|
| 682 |
+
def __le__(self, x: Tuple[_T_co, ...]) -> bool: ...
|
| 683 |
+
def __gt__(self, x: Tuple[_T_co, ...]) -> bool: ...
|
| 684 |
+
def __ge__(self, x: Tuple[_T_co, ...]) -> bool: ...
|
| 685 |
+
@overload
|
| 686 |
+
def __add__(self, x: Tuple[_T_co, ...]) -> Tuple[_T_co, ...]: ...
|
| 687 |
+
@overload
|
| 688 |
+
def __add__(self, x: Tuple[Any, ...]) -> Tuple[Any, ...]: ...
|
| 689 |
+
def __mul__(self, n: int) -> Tuple[_T_co, ...]: ...
|
| 690 |
+
def __rmul__(self, n: int) -> Tuple[_T_co, ...]: ...
|
| 691 |
+
def count(self, __value: Any) -> int: ...
|
| 692 |
+
def index(self, __value: Any, __start: int = ..., __stop: int = ...) -> int: ...
|
| 693 |
+
if sys.version_info >= (3, 9):
|
| 694 |
+
def __class_getitem__(cls, item: Any) -> GenericAlias: ...
|
| 695 |
+
|
| 696 |
+
class list(MutableSequence[_T], Generic[_T]):
|
| 697 |
+
@overload
|
| 698 |
+
def __init__(self) -> None: ...
|
| 699 |
+
@overload
|
| 700 |
+
def __init__(self, iterable: Iterable[_T]) -> None: ...
|
| 701 |
+
def clear(self) -> None: ...
|
| 702 |
+
def copy(self) -> List[_T]: ...
|
| 703 |
+
def append(self, __object: _T) -> None: ...
|
| 704 |
+
def extend(self, __iterable: Iterable[_T]) -> None: ...
|
| 705 |
+
def pop(self, __index: int = ...) -> _T: ...
|
| 706 |
+
def index(self, __value: _T, __start: int = ..., __stop: int = ...) -> int: ...
|
| 707 |
+
def count(self, __value: _T) -> int: ...
|
| 708 |
+
def insert(self, __index: int, __object: _T) -> None: ...
|
| 709 |
+
def remove(self, __value: _T) -> None: ...
|
| 710 |
+
def reverse(self) -> None: ...
|
| 711 |
+
@overload
|
| 712 |
+
def sort(self: List[SupportsLessThanT], *, key: None = ..., reverse: bool = ...) -> None: ...
|
| 713 |
+
@overload
|
| 714 |
+
def sort(self, *, key: Callable[[_T], SupportsLessThan], reverse: bool = ...) -> None: ...
|
| 715 |
+
def __len__(self) -> int: ...
|
| 716 |
+
def __iter__(self) -> Iterator[_T]: ...
|
| 717 |
+
def __str__(self) -> str: ...
|
| 718 |
+
__hash__: None # type: ignore
|
| 719 |
+
@overload
|
| 720 |
+
def __getitem__(self, i: int) -> _T: ...
|
| 721 |
+
@overload
|
| 722 |
+
def __getitem__(self, s: slice) -> List[_T]: ...
|
| 723 |
+
@overload
|
| 724 |
+
def __setitem__(self, i: int, o: _T) -> None: ...
|
| 725 |
+
@overload
|
| 726 |
+
def __setitem__(self, s: slice, o: Iterable[_T]) -> None: ...
|
| 727 |
+
def __delitem__(self, i: Union[int, slice]) -> None: ...
|
| 728 |
+
def __add__(self, x: List[_T]) -> List[_T]: ...
|
| 729 |
+
def __iadd__(self: _S, x: Iterable[_T]) -> _S: ...
|
| 730 |
+
def __mul__(self, n: int) -> List[_T]: ...
|
| 731 |
+
def __rmul__(self, n: int) -> List[_T]: ...
|
| 732 |
+
def __imul__(self: _S, n: int) -> _S: ...
|
| 733 |
+
def __contains__(self, o: object) -> bool: ...
|
| 734 |
+
def __reversed__(self) -> Iterator[_T]: ...
|
| 735 |
+
def __gt__(self, x: List[_T]) -> bool: ...
|
| 736 |
+
def __ge__(self, x: List[_T]) -> bool: ...
|
| 737 |
+
def __lt__(self, x: List[_T]) -> bool: ...
|
| 738 |
+
def __le__(self, x: List[_T]) -> bool: ...
|
| 739 |
+
if sys.version_info >= (3, 9):
|
| 740 |
+
def __class_getitem__(cls, item: Any) -> GenericAlias: ...
|
| 741 |
+
|
| 742 |
+
class dict(MutableMapping[_KT, _VT], Generic[_KT, _VT]):
|
| 743 |
+
# NOTE: Keyword arguments are special. If they are used, _KT must include
|
| 744 |
+
# str, but we have no way of enforcing it here.
|
| 745 |
+
@overload
|
| 746 |
+
def __init__(self, **kwargs: _VT) -> None: ...
|
| 747 |
+
@overload
|
| 748 |
+
def __init__(self, map: Mapping[_KT, _VT], **kwargs: _VT) -> None: ...
|
| 749 |
+
@overload
|
| 750 |
+
def __init__(self, iterable: Iterable[Tuple[_KT, _VT]], **kwargs: _VT) -> None: ...
|
| 751 |
+
def __new__(cls: Type[_T1], *args: Any, **kwargs: Any) -> _T1: ...
|
| 752 |
+
def clear(self) -> None: ...
|
| 753 |
+
def copy(self) -> Dict[_KT, _VT]: ...
|
| 754 |
+
def popitem(self) -> Tuple[_KT, _VT]: ...
|
| 755 |
+
def setdefault(self, __key: _KT, __default: _VT = ...) -> _VT: ...
|
| 756 |
+
@overload
|
| 757 |
+
def update(self, __m: Mapping[_KT, _VT], **kwargs: _VT) -> None: ...
|
| 758 |
+
@overload
|
| 759 |
+
def update(self, __m: Iterable[Tuple[_KT, _VT]], **kwargs: _VT) -> None: ...
|
| 760 |
+
@overload
|
| 761 |
+
def update(self, **kwargs: _VT) -> None: ...
|
| 762 |
+
def keys(self) -> KeysView[_KT]: ...
|
| 763 |
+
def values(self) -> ValuesView[_VT]: ...
|
| 764 |
+
def items(self) -> ItemsView[_KT, _VT]: ...
|
| 765 |
+
@classmethod
|
| 766 |
+
@overload
|
| 767 |
+
def fromkeys(cls, __iterable: Iterable[_T]) -> Dict[_T, Any]: ...
|
| 768 |
+
@classmethod
|
| 769 |
+
@overload
|
| 770 |
+
def fromkeys(cls, __iterable: Iterable[_T], __value: _S) -> Dict[_T, _S]: ...
|
| 771 |
+
def __len__(self) -> int: ...
|
| 772 |
+
def __getitem__(self, k: _KT) -> _VT: ...
|
| 773 |
+
def __setitem__(self, k: _KT, v: _VT) -> None: ...
|
| 774 |
+
def __delitem__(self, v: _KT) -> None: ...
|
| 775 |
+
def __iter__(self) -> Iterator[_KT]: ...
|
| 776 |
+
if sys.version_info >= (3, 8):
|
| 777 |
+
def __reversed__(self) -> Iterator[_KT]: ...
|
| 778 |
+
def __str__(self) -> str: ...
|
| 779 |
+
__hash__: None # type: ignore
|
| 780 |
+
if sys.version_info >= (3, 9):
|
| 781 |
+
def __class_getitem__(cls, item: Any) -> GenericAlias: ...
|
| 782 |
+
def __or__(self, __value: Mapping[_KT, _VT]) -> Dict[_KT, _VT]: ...
|
| 783 |
+
def __ior__(self, __value: Mapping[_KT, _VT]) -> Dict[_KT, _VT]: ...
|
| 784 |
+
|
| 785 |
+
class set(MutableSet[_T], Generic[_T]):
|
| 786 |
+
def __init__(self, iterable: Iterable[_T] = ...) -> None: ...
|
| 787 |
+
def add(self, element: _T) -> None: ...
|
| 788 |
+
def clear(self) -> None: ...
|
| 789 |
+
def copy(self) -> Set[_T]: ...
|
| 790 |
+
def difference(self, *s: Iterable[Any]) -> Set[_T]: ...
|
| 791 |
+
def difference_update(self, *s: Iterable[Any]) -> None: ...
|
| 792 |
+
def discard(self, element: _T) -> None: ...
|
| 793 |
+
def intersection(self, *s: Iterable[Any]) -> Set[_T]: ...
|
| 794 |
+
def intersection_update(self, *s: Iterable[Any]) -> None: ...
|
| 795 |
+
def isdisjoint(self, s: Iterable[Any]) -> bool: ...
|
| 796 |
+
def issubset(self, s: Iterable[Any]) -> bool: ...
|
| 797 |
+
def issuperset(self, s: Iterable[Any]) -> bool: ...
|
| 798 |
+
def pop(self) -> _T: ...
|
| 799 |
+
def remove(self, element: _T) -> None: ...
|
| 800 |
+
def symmetric_difference(self, s: Iterable[_T]) -> Set[_T]: ...
|
| 801 |
+
def symmetric_difference_update(self, s: Iterable[_T]) -> None: ...
|
| 802 |
+
def union(self, *s: Iterable[_T]) -> Set[_T]: ...
|
| 803 |
+
def update(self, *s: Iterable[_T]) -> None: ...
|
| 804 |
+
def __len__(self) -> int: ...
|
| 805 |
+
def __contains__(self, o: object) -> bool: ...
|
| 806 |
+
def __iter__(self) -> Iterator[_T]: ...
|
| 807 |
+
def __str__(self) -> str: ...
|
| 808 |
+
def __and__(self, s: AbstractSet[object]) -> Set[_T]: ...
|
| 809 |
+
def __iand__(self, s: AbstractSet[object]) -> Set[_T]: ...
|
| 810 |
+
def __or__(self, s: AbstractSet[_S]) -> Set[Union[_T, _S]]: ...
|
| 811 |
+
def __ior__(self, s: AbstractSet[_S]) -> Set[Union[_T, _S]]: ...
|
| 812 |
+
def __sub__(self, s: AbstractSet[Optional[_T]]) -> Set[_T]: ...
|
| 813 |
+
def __isub__(self, s: AbstractSet[Optional[_T]]) -> Set[_T]: ...
|
| 814 |
+
def __xor__(self, s: AbstractSet[_S]) -> Set[Union[_T, _S]]: ...
|
| 815 |
+
def __ixor__(self, s: AbstractSet[_S]) -> Set[Union[_T, _S]]: ...
|
| 816 |
+
def __le__(self, s: AbstractSet[object]) -> bool: ...
|
| 817 |
+
def __lt__(self, s: AbstractSet[object]) -> bool: ...
|
| 818 |
+
def __ge__(self, s: AbstractSet[object]) -> bool: ...
|
| 819 |
+
def __gt__(self, s: AbstractSet[object]) -> bool: ...
|
| 820 |
+
__hash__: None # type: ignore
|
| 821 |
+
if sys.version_info >= (3, 9):
|
| 822 |
+
def __class_getitem__(cls, item: Any) -> GenericAlias: ...
|
| 823 |
+
|
| 824 |
+
class frozenset(AbstractSet[_T_co], Generic[_T_co]):
|
| 825 |
+
def __init__(self, iterable: Iterable[_T_co] = ...) -> None: ...
|
| 826 |
+
def copy(self) -> FrozenSet[_T_co]: ...
|
| 827 |
+
def difference(self, *s: Iterable[object]) -> FrozenSet[_T_co]: ...
|
| 828 |
+
def intersection(self, *s: Iterable[object]) -> FrozenSet[_T_co]: ...
|
| 829 |
+
def isdisjoint(self, s: Iterable[_T_co]) -> bool: ...
|
| 830 |
+
def issubset(self, s: Iterable[object]) -> bool: ...
|
| 831 |
+
def issuperset(self, s: Iterable[object]) -> bool: ...
|
| 832 |
+
def symmetric_difference(self, s: Iterable[_T_co]) -> FrozenSet[_T_co]: ...
|
| 833 |
+
def union(self, *s: Iterable[_T_co]) -> FrozenSet[_T_co]: ...
|
| 834 |
+
def __len__(self) -> int: ...
|
| 835 |
+
def __contains__(self, o: object) -> bool: ...
|
| 836 |
+
def __iter__(self) -> Iterator[_T_co]: ...
|
| 837 |
+
def __str__(self) -> str: ...
|
| 838 |
+
def __and__(self, s: AbstractSet[_T_co]) -> FrozenSet[_T_co]: ...
|
| 839 |
+
def __or__(self, s: AbstractSet[_S]) -> FrozenSet[Union[_T_co, _S]]: ...
|
| 840 |
+
def __sub__(self, s: AbstractSet[_T_co]) -> FrozenSet[_T_co]: ...
|
| 841 |
+
def __xor__(self, s: AbstractSet[_S]) -> FrozenSet[Union[_T_co, _S]]: ...
|
| 842 |
+
def __le__(self, s: AbstractSet[object]) -> bool: ...
|
| 843 |
+
def __lt__(self, s: AbstractSet[object]) -> bool: ...
|
| 844 |
+
def __ge__(self, s: AbstractSet[object]) -> bool: ...
|
| 845 |
+
def __gt__(self, s: AbstractSet[object]) -> bool: ...
|
| 846 |
+
if sys.version_info >= (3, 9):
|
| 847 |
+
def __class_getitem__(cls, item: Any) -> GenericAlias: ...
|
| 848 |
+
|
| 849 |
+
class enumerate(Iterator[Tuple[int, _T]], Generic[_T]):
|
| 850 |
+
def __init__(self, iterable: Iterable[_T], start: int = ...) -> None: ...
|
| 851 |
+
def __iter__(self) -> Iterator[Tuple[int, _T]]: ...
|
| 852 |
+
def __next__(self) -> Tuple[int, _T]: ...
|
| 853 |
+
if sys.version_info >= (3, 9):
|
| 854 |
+
def __class_getitem__(cls, item: Any) -> GenericAlias: ...
|
| 855 |
+
|
| 856 |
+
class range(Sequence[int]):
|
| 857 |
+
start: int
|
| 858 |
+
stop: int
|
| 859 |
+
step: int
|
| 860 |
+
@overload
|
| 861 |
+
def __init__(self, stop: int) -> None: ...
|
| 862 |
+
@overload
|
| 863 |
+
def __init__(self, start: int, stop: int, step: int = ...) -> None: ...
|
| 864 |
+
def count(self, value: int) -> int: ...
|
| 865 |
+
def index(self, value: int) -> int: ... # type: ignore
|
| 866 |
+
def __len__(self) -> int: ...
|
| 867 |
+
def __contains__(self, o: object) -> bool: ...
|
| 868 |
+
def __iter__(self) -> Iterator[int]: ...
|
| 869 |
+
@overload
|
| 870 |
+
def __getitem__(self, i: int) -> int: ...
|
| 871 |
+
@overload
|
| 872 |
+
def __getitem__(self, s: slice) -> range: ...
|
| 873 |
+
def __repr__(self) -> str: ...
|
| 874 |
+
def __reversed__(self) -> Iterator[int]: ...
|
| 875 |
+
|
| 876 |
+
class property(object):
|
| 877 |
+
def __init__(
|
| 878 |
+
self,
|
| 879 |
+
fget: Optional[Callable[[Any], Any]] = ...,
|
| 880 |
+
fset: Optional[Callable[[Any, Any], None]] = ...,
|
| 881 |
+
fdel: Optional[Callable[[Any], None]] = ...,
|
| 882 |
+
doc: Optional[str] = ...,
|
| 883 |
+
) -> None: ...
|
| 884 |
+
def getter(self, fget: Callable[[Any], Any]) -> property: ...
|
| 885 |
+
def setter(self, fset: Callable[[Any, Any], None]) -> property: ...
|
| 886 |
+
def deleter(self, fdel: Callable[[Any], None]) -> property: ...
|
| 887 |
+
def __get__(self, obj: Any, type: Optional[type] = ...) -> Any: ...
|
| 888 |
+
def __set__(self, obj: Any, value: Any) -> None: ...
|
| 889 |
+
def __delete__(self, obj: Any) -> None: ...
|
| 890 |
+
def fget(self) -> Any: ...
|
| 891 |
+
def fset(self, value: Any) -> None: ...
|
| 892 |
+
def fdel(self) -> None: ...
|
| 893 |
+
|
| 894 |
+
class _NotImplementedType(Any): # type: ignore
|
| 895 |
+
# A little weird, but typing the __call__ as NotImplemented makes the error message
|
| 896 |
+
# for NotImplemented() much better
|
| 897 |
+
pass
|
| 898 |
+
|
| 899 |
+
NotImplemented: _NotImplementedType
|
| 900 |
+
|
| 901 |
+
def abs(__x: SupportsAbs[_T]) -> _T: ...
|
| 902 |
+
def all(__iterable: Iterable[object]) -> bool: ...
|
| 903 |
+
def any(__iterable: Iterable[object]) -> bool: ...
|
| 904 |
+
def ascii(__obj: object) -> str: ...
|
| 905 |
+
def bin(__number: Union[int, _SupportsIndex]) -> str: ...
|
| 906 |
+
|
| 907 |
+
if sys.version_info >= (3, 7):
|
| 908 |
+
def breakpoint(*args: Any, **kws: Any) -> None: ...
|
| 909 |
+
|
| 910 |
+
def callable(__obj: object) -> bool: ...
|
| 911 |
+
def chr(__i: int) -> str: ...
|
| 912 |
+
|
| 913 |
+
# This class is to be exported as PathLike from os,
|
| 914 |
+
# but we define it here as _PathLike to avoid import cycle issues.
|
| 915 |
+
# See https://github.com/python/typeshed/pull/991#issuecomment-288160993
|
| 916 |
+
_AnyStr_co = TypeVar("_AnyStr_co", str, bytes, covariant=True)
|
| 917 |
+
@runtime_checkable
|
| 918 |
+
class _PathLike(Protocol[_AnyStr_co]):
|
| 919 |
+
def __fspath__(self) -> _AnyStr_co: ...
|
| 920 |
+
|
| 921 |
+
if sys.version_info >= (3, 8):
|
| 922 |
+
def compile(
|
| 923 |
+
source: Union[str, bytes, mod, AST],
|
| 924 |
+
filename: Union[str, bytes, _PathLike[Any]],
|
| 925 |
+
mode: str,
|
| 926 |
+
flags: int = ...,
|
| 927 |
+
dont_inherit: int = ...,
|
| 928 |
+
optimize: int = ...,
|
| 929 |
+
*,
|
| 930 |
+
_feature_version: int = ...,
|
| 931 |
+
) -> Any: ...
|
| 932 |
+
|
| 933 |
+
else:
|
| 934 |
+
def compile(
|
| 935 |
+
source: Union[str, bytes, mod, AST],
|
| 936 |
+
filename: Union[str, bytes, _PathLike[Any]],
|
| 937 |
+
mode: str,
|
| 938 |
+
flags: int = ...,
|
| 939 |
+
dont_inherit: int = ...,
|
| 940 |
+
optimize: int = ...,
|
| 941 |
+
) -> Any: ...
|
| 942 |
+
|
| 943 |
+
def copyright() -> None: ...
|
| 944 |
+
def credits() -> None: ...
|
| 945 |
+
def delattr(__obj: Any, __name: str) -> None: ...
|
| 946 |
+
def dir(__o: object = ...) -> List[str]: ...
|
| 947 |
+
|
| 948 |
+
_N2 = TypeVar("_N2", int, float)
|
| 949 |
+
|
| 950 |
+
def divmod(__x: _N2, __y: _N2) -> Tuple[_N2, _N2]: ...
|
| 951 |
+
def eval(
|
| 952 |
+
__source: Union[str, bytes, CodeType], __globals: Optional[Dict[str, Any]] = ..., __locals: Optional[Mapping[str, Any]] = ...
|
| 953 |
+
) -> Any: ...
|
| 954 |
+
def exec(
|
| 955 |
+
__source: Union[str, bytes, CodeType],
|
| 956 |
+
__globals: Optional[Dict[str, Any]] = ...,
|
| 957 |
+
__locals: Optional[Mapping[str, Any]] = ...,
|
| 958 |
+
) -> Any: ...
|
| 959 |
+
def exit(code: object = ...) -> NoReturn: ...
|
| 960 |
+
@overload
|
| 961 |
+
def filter(__function: None, __iterable: Iterable[Optional[_T]]) -> Iterator[_T]: ...
|
| 962 |
+
@overload
|
| 963 |
+
def filter(__function: Callable[[_T], Any], __iterable: Iterable[_T]) -> Iterator[_T]: ...
|
| 964 |
+
def format(__value: object, __format_spec: str = ...) -> str: ... # TODO unicode
|
| 965 |
+
def getattr(__o: Any, name: str, __default: Any = ...) -> Any: ...
|
| 966 |
+
def globals() -> Dict[str, Any]: ...
|
| 967 |
+
def hasattr(__obj: Any, __name: str) -> bool: ...
|
| 968 |
+
def hash(__obj: object) -> int: ...
|
| 969 |
+
def help(*args: Any, **kwds: Any) -> None: ...
|
| 970 |
+
def hex(__number: Union[int, _SupportsIndex]) -> str: ...
|
| 971 |
+
def id(__obj: object) -> int: ...
|
| 972 |
+
def input(__prompt: Any = ...) -> str: ...
|
| 973 |
+
@overload
|
| 974 |
+
def iter(__iterable: Iterable[_T]) -> Iterator[_T]: ...
|
| 975 |
+
@overload
|
| 976 |
+
def iter(__function: Callable[[], Optional[_T]], __sentinel: None) -> Iterator[_T]: ...
|
| 977 |
+
@overload
|
| 978 |
+
def iter(__function: Callable[[], _T], __sentinel: Any) -> Iterator[_T]: ...
|
| 979 |
+
def isinstance(__obj: object, __class_or_tuple: Union[type, Tuple[Union[type, Tuple[Any, ...]], ...]]) -> bool: ...
|
| 980 |
+
def issubclass(__cls: type, __class_or_tuple: Union[type, Tuple[Union[type, Tuple[Any, ...]], ...]]) -> bool: ...
|
| 981 |
+
def len(__obj: Sized) -> int: ...
|
| 982 |
+
def license() -> None: ...
|
| 983 |
+
def locals() -> Dict[str, Any]: ...
|
| 984 |
+
@overload
|
| 985 |
+
def map(__func: Callable[[_T1], _S], __iter1: Iterable[_T1]) -> Iterator[_S]: ...
|
| 986 |
+
@overload
|
| 987 |
+
def map(__func: Callable[[_T1, _T2], _S], __iter1: Iterable[_T1], __iter2: Iterable[_T2]) -> Iterator[_S]: ...
|
| 988 |
+
@overload
|
| 989 |
+
def map(
|
| 990 |
+
__func: Callable[[_T1, _T2, _T3], _S], __iter1: Iterable[_T1], __iter2: Iterable[_T2], __iter3: Iterable[_T3]
|
| 991 |
+
) -> Iterator[_S]: ...
|
| 992 |
+
@overload
|
| 993 |
+
def map(
|
| 994 |
+
__func: Callable[[_T1, _T2, _T3, _T4], _S],
|
| 995 |
+
__iter1: Iterable[_T1],
|
| 996 |
+
__iter2: Iterable[_T2],
|
| 997 |
+
__iter3: Iterable[_T3],
|
| 998 |
+
__iter4: Iterable[_T4],
|
| 999 |
+
) -> Iterator[_S]: ...
|
| 1000 |
+
@overload
|
| 1001 |
+
def map(
|
| 1002 |
+
__func: Callable[[_T1, _T2, _T3, _T4, _T5], _S],
|
| 1003 |
+
__iter1: Iterable[_T1],
|
| 1004 |
+
__iter2: Iterable[_T2],
|
| 1005 |
+
__iter3: Iterable[_T3],
|
| 1006 |
+
__iter4: Iterable[_T4],
|
| 1007 |
+
__iter5: Iterable[_T5],
|
| 1008 |
+
) -> Iterator[_S]: ...
|
| 1009 |
+
@overload
|
| 1010 |
+
def map(
|
| 1011 |
+
__func: Callable[..., _S],
|
| 1012 |
+
__iter1: Iterable[Any],
|
| 1013 |
+
__iter2: Iterable[Any],
|
| 1014 |
+
__iter3: Iterable[Any],
|
| 1015 |
+
__iter4: Iterable[Any],
|
| 1016 |
+
__iter5: Iterable[Any],
|
| 1017 |
+
__iter6: Iterable[Any],
|
| 1018 |
+
*iterables: Iterable[Any],
|
| 1019 |
+
) -> Iterator[_S]: ...
|
| 1020 |
+
@overload
|
| 1021 |
+
def max(
|
| 1022 |
+
__arg1: SupportsLessThanT, __arg2: SupportsLessThanT, *_args: SupportsLessThanT, key: None = ...
|
| 1023 |
+
) -> SupportsLessThanT: ...
|
| 1024 |
+
@overload
|
| 1025 |
+
def max(__arg1: _T, __arg2: _T, *_args: _T, key: Callable[[_T], SupportsLessThanT]) -> _T: ...
|
| 1026 |
+
@overload
|
| 1027 |
+
def max(__iterable: Iterable[SupportsLessThanT], *, key: None = ...) -> SupportsLessThanT: ...
|
| 1028 |
+
@overload
|
| 1029 |
+
def max(__iterable: Iterable[_T], *, key: Callable[[_T], SupportsLessThanT]) -> _T: ...
|
| 1030 |
+
@overload
|
| 1031 |
+
def max(__iterable: Iterable[SupportsLessThanT], *, key: None = ..., default: _T) -> Union[SupportsLessThanT, _T]: ...
|
| 1032 |
+
@overload
|
| 1033 |
+
def max(__iterable: Iterable[_T1], *, key: Callable[[_T1], SupportsLessThanT], default: _T2) -> Union[_T1, _T2]: ...
|
| 1034 |
+
@overload
|
| 1035 |
+
def min(
|
| 1036 |
+
__arg1: SupportsLessThanT, __arg2: SupportsLessThanT, *_args: SupportsLessThanT, key: None = ...
|
| 1037 |
+
) -> SupportsLessThanT: ...
|
| 1038 |
+
@overload
|
| 1039 |
+
def min(__arg1: _T, __arg2: _T, *_args: _T, key: Callable[[_T], SupportsLessThanT]) -> _T: ...
|
| 1040 |
+
@overload
|
| 1041 |
+
def min(__iterable: Iterable[SupportsLessThanT], *, key: None = ...) -> SupportsLessThanT: ...
|
| 1042 |
+
@overload
|
| 1043 |
+
def min(__iterable: Iterable[_T], *, key: Callable[[_T], SupportsLessThanT]) -> _T: ...
|
| 1044 |
+
@overload
|
| 1045 |
+
def min(__iterable: Iterable[SupportsLessThanT], *, key: None = ..., default: _T) -> Union[SupportsLessThanT, _T]: ...
|
| 1046 |
+
@overload
|
| 1047 |
+
def min(__iterable: Iterable[_T1], *, key: Callable[[_T1], SupportsLessThanT], default: _T2) -> Union[_T1, _T2]: ...
|
| 1048 |
+
@overload
|
| 1049 |
+
def next(__i: Iterator[_T]) -> _T: ...
|
| 1050 |
+
@overload
|
| 1051 |
+
def next(__i: Iterator[_T], default: _VT) -> Union[_T, _VT]: ...
|
| 1052 |
+
def oct(__number: Union[int, _SupportsIndex]) -> str: ...
|
| 1053 |
+
|
| 1054 |
+
_OpenFile = Union[AnyPath, int]
|
| 1055 |
+
_Opener = Callable[[str, int], int]
|
| 1056 |
+
|
| 1057 |
+
# Text mode: always returns a TextIOWrapper
|
| 1058 |
+
@overload
|
| 1059 |
+
def open(
|
| 1060 |
+
file: _OpenFile,
|
| 1061 |
+
mode: OpenTextMode = ...,
|
| 1062 |
+
buffering: int = ...,
|
| 1063 |
+
encoding: Optional[str] = ...,
|
| 1064 |
+
errors: Optional[str] = ...,
|
| 1065 |
+
newline: Optional[str] = ...,
|
| 1066 |
+
closefd: bool = ...,
|
| 1067 |
+
opener: Optional[_Opener] = ...,
|
| 1068 |
+
) -> TextIOWrapper: ...
|
| 1069 |
+
|
| 1070 |
+
# Unbuffered binary mode: returns a FileIO
|
| 1071 |
+
@overload
|
| 1072 |
+
def open(
|
| 1073 |
+
file: _OpenFile,
|
| 1074 |
+
mode: OpenBinaryMode,
|
| 1075 |
+
buffering: Literal[0],
|
| 1076 |
+
encoding: None = ...,
|
| 1077 |
+
errors: None = ...,
|
| 1078 |
+
newline: None = ...,
|
| 1079 |
+
closefd: bool = ...,
|
| 1080 |
+
opener: Optional[_Opener] = ...,
|
| 1081 |
+
) -> FileIO: ...
|
| 1082 |
+
|
| 1083 |
+
# Buffering is on: return BufferedRandom, BufferedReader, or BufferedWriter
|
| 1084 |
+
@overload
|
| 1085 |
+
def open(
|
| 1086 |
+
file: _OpenFile,
|
| 1087 |
+
mode: OpenBinaryModeUpdating,
|
| 1088 |
+
buffering: Literal[-1, 1] = ...,
|
| 1089 |
+
encoding: None = ...,
|
| 1090 |
+
errors: None = ...,
|
| 1091 |
+
newline: None = ...,
|
| 1092 |
+
closefd: bool = ...,
|
| 1093 |
+
opener: Optional[_Opener] = ...,
|
| 1094 |
+
) -> BufferedRandom: ...
|
| 1095 |
+
@overload
|
| 1096 |
+
def open(
|
| 1097 |
+
file: _OpenFile,
|
| 1098 |
+
mode: OpenBinaryModeWriting,
|
| 1099 |
+
buffering: Literal[-1, 1] = ...,
|
| 1100 |
+
encoding: None = ...,
|
| 1101 |
+
errors: None = ...,
|
| 1102 |
+
newline: None = ...,
|
| 1103 |
+
closefd: bool = ...,
|
| 1104 |
+
opener: Optional[_Opener] = ...,
|
| 1105 |
+
) -> BufferedWriter: ...
|
| 1106 |
+
@overload
|
| 1107 |
+
def open(
|
| 1108 |
+
file: _OpenFile,
|
| 1109 |
+
mode: OpenBinaryModeReading,
|
| 1110 |
+
buffering: Literal[-1, 1] = ...,
|
| 1111 |
+
encoding: None = ...,
|
| 1112 |
+
errors: None = ...,
|
| 1113 |
+
newline: None = ...,
|
| 1114 |
+
closefd: bool = ...,
|
| 1115 |
+
opener: Optional[_Opener] = ...,
|
| 1116 |
+
) -> BufferedReader: ...
|
| 1117 |
+
|
| 1118 |
+
# Buffering cannot be determined: fall back to BinaryIO
|
| 1119 |
+
@overload
|
| 1120 |
+
def open(
|
| 1121 |
+
file: _OpenFile,
|
| 1122 |
+
mode: OpenBinaryMode,
|
| 1123 |
+
buffering: int,
|
| 1124 |
+
encoding: None = ...,
|
| 1125 |
+
errors: None = ...,
|
| 1126 |
+
newline: None = ...,
|
| 1127 |
+
closefd: bool = ...,
|
| 1128 |
+
opener: Optional[_Opener] = ...,
|
| 1129 |
+
) -> BinaryIO: ...
|
| 1130 |
+
|
| 1131 |
+
# Fallback if mode is not specified
|
| 1132 |
+
@overload
|
| 1133 |
+
def open(
|
| 1134 |
+
file: _OpenFile,
|
| 1135 |
+
mode: str,
|
| 1136 |
+
buffering: int = ...,
|
| 1137 |
+
encoding: Optional[str] = ...,
|
| 1138 |
+
errors: Optional[str] = ...,
|
| 1139 |
+
newline: Optional[str] = ...,
|
| 1140 |
+
closefd: bool = ...,
|
| 1141 |
+
opener: Optional[_Opener] = ...,
|
| 1142 |
+
) -> IO[Any]: ...
|
| 1143 |
+
def ord(__c: Union[str, bytes]) -> int: ...
|
| 1144 |
+
def print(
|
| 1145 |
+
*values: object,
|
| 1146 |
+
sep: Optional[str] = ...,
|
| 1147 |
+
end: Optional[str] = ...,
|
| 1148 |
+
file: Optional[SupportsWrite[str]] = ...,
|
| 1149 |
+
flush: bool = ...,
|
| 1150 |
+
) -> None: ...
|
| 1151 |
+
|
| 1152 |
+
_E = TypeVar("_E", contravariant=True)
|
| 1153 |
+
_M = TypeVar("_M", contravariant=True)
|
| 1154 |
+
|
| 1155 |
+
class _SupportsPow2(Protocol[_E, _T_co]):
|
| 1156 |
+
def __pow__(self, __other: _E) -> _T_co: ...
|
| 1157 |
+
|
| 1158 |
+
class _SupportsPow3(Protocol[_E, _M, _T_co]):
|
| 1159 |
+
def __pow__(self, __other: _E, __modulo: _M) -> _T_co: ...
|
| 1160 |
+
|
| 1161 |
+
if sys.version_info >= (3, 8):
|
| 1162 |
+
@overload
|
| 1163 |
+
def pow(base: int, exp: int, mod: None = ...) -> Any: ... # returns int or float depending on whether exp is non-negative
|
| 1164 |
+
@overload
|
| 1165 |
+
def pow(base: int, exp: int, mod: int) -> int: ...
|
| 1166 |
+
@overload
|
| 1167 |
+
def pow(base: float, exp: float, mod: None = ...) -> float: ...
|
| 1168 |
+
@overload
|
| 1169 |
+
def pow(base: _SupportsPow2[_E, _T_co], exp: _E) -> _T_co: ...
|
| 1170 |
+
@overload
|
| 1171 |
+
def pow(base: _SupportsPow3[_E, _M, _T_co], exp: _E, mod: _M) -> _T_co: ...
|
| 1172 |
+
|
| 1173 |
+
else:
|
| 1174 |
+
@overload
|
| 1175 |
+
def pow(
|
| 1176 |
+
__base: int, __exp: int, __mod: None = ...
|
| 1177 |
+
) -> Any: ... # returns int or float depending on whether exp is non-negative
|
| 1178 |
+
@overload
|
| 1179 |
+
def pow(__base: int, __exp: int, __mod: int) -> int: ...
|
| 1180 |
+
@overload
|
| 1181 |
+
def pow(__base: float, __exp: float, __mod: None = ...) -> float: ...
|
| 1182 |
+
@overload
|
| 1183 |
+
def pow(__base: _SupportsPow2[_E, _T_co], __exp: _E) -> _T_co: ...
|
| 1184 |
+
@overload
|
| 1185 |
+
def pow(__base: _SupportsPow3[_E, _M, _T_co], __exp: _E, __mod: _M) -> _T_co: ...
|
| 1186 |
+
|
| 1187 |
+
def quit(code: object = ...) -> NoReturn: ...
|
| 1188 |
+
@overload
|
| 1189 |
+
def reversed(__sequence: Sequence[_T]) -> Iterator[_T]: ...
|
| 1190 |
+
@overload
|
| 1191 |
+
def reversed(__sequence: Reversible[_T]) -> Iterator[_T]: ...
|
| 1192 |
+
def repr(__obj: object) -> str: ...
|
| 1193 |
+
@overload
|
| 1194 |
+
def round(number: float) -> int: ...
|
| 1195 |
+
@overload
|
| 1196 |
+
def round(number: float, ndigits: None) -> int: ...
|
| 1197 |
+
@overload
|
| 1198 |
+
def round(number: float, ndigits: int) -> float: ...
|
| 1199 |
+
@overload
|
| 1200 |
+
def round(number: SupportsRound[_T]) -> int: ...
|
| 1201 |
+
@overload
|
| 1202 |
+
def round(number: SupportsRound[_T], ndigits: None) -> int: ...
|
| 1203 |
+
@overload
|
| 1204 |
+
def round(number: SupportsRound[_T], ndigits: int) -> _T: ...
|
| 1205 |
+
def setattr(__obj: Any, __name: str, __value: Any) -> None: ...
|
| 1206 |
+
@overload
|
| 1207 |
+
def sorted(__iterable: Iterable[SupportsLessThanT], *, key: None = ..., reverse: bool = ...) -> List[SupportsLessThanT]: ...
|
| 1208 |
+
@overload
|
| 1209 |
+
def sorted(__iterable: Iterable[_T], *, key: Callable[[_T], SupportsLessThan], reverse: bool = ...) -> List[_T]: ...
|
| 1210 |
+
|
| 1211 |
+
if sys.version_info >= (3, 8):
|
| 1212 |
+
@overload
|
| 1213 |
+
def sum(__iterable: Iterable[_T]) -> Union[_T, int]: ...
|
| 1214 |
+
@overload
|
| 1215 |
+
def sum(__iterable: Iterable[_T], start: _S) -> Union[_T, _S]: ...
|
| 1216 |
+
|
| 1217 |
+
else:
|
| 1218 |
+
@overload
|
| 1219 |
+
def sum(__iterable: Iterable[_T]) -> Union[_T, int]: ...
|
| 1220 |
+
@overload
|
| 1221 |
+
def sum(__iterable: Iterable[_T], __start: _S) -> Union[_T, _S]: ...
|
| 1222 |
+
|
| 1223 |
+
def vars(__object: Any = ...) -> Dict[str, Any]: ...
|
| 1224 |
+
@overload
|
| 1225 |
+
def zip(__iter1: Iterable[_T1]) -> Iterator[Tuple[_T1]]: ...
|
| 1226 |
+
@overload
|
| 1227 |
+
def zip(__iter1: Iterable[_T1], __iter2: Iterable[_T2]) -> Iterator[Tuple[_T1, _T2]]: ...
|
| 1228 |
+
@overload
|
| 1229 |
+
def zip(__iter1: Iterable[_T1], __iter2: Iterable[_T2], __iter3: Iterable[_T3]) -> Iterator[Tuple[_T1, _T2, _T3]]: ...
|
| 1230 |
+
@overload
|
| 1231 |
+
def zip(
|
| 1232 |
+
__iter1: Iterable[_T1], __iter2: Iterable[_T2], __iter3: Iterable[_T3], __iter4: Iterable[_T4]
|
| 1233 |
+
) -> Iterator[Tuple[_T1, _T2, _T3, _T4]]: ...
|
| 1234 |
+
@overload
|
| 1235 |
+
def zip(
|
| 1236 |
+
__iter1: Iterable[_T1], __iter2: Iterable[_T2], __iter3: Iterable[_T3], __iter4: Iterable[_T4], __iter5: Iterable[_T5]
|
| 1237 |
+
) -> Iterator[Tuple[_T1, _T2, _T3, _T4, _T5]]: ...
|
| 1238 |
+
@overload
|
| 1239 |
+
def zip(
|
| 1240 |
+
__iter1: Iterable[Any],
|
| 1241 |
+
__iter2: Iterable[Any],
|
| 1242 |
+
__iter3: Iterable[Any],
|
| 1243 |
+
__iter4: Iterable[Any],
|
| 1244 |
+
__iter5: Iterable[Any],
|
| 1245 |
+
__iter6: Iterable[Any],
|
| 1246 |
+
*iterables: Iterable[Any],
|
| 1247 |
+
) -> Iterator[Tuple[Any, ...]]: ...
|
| 1248 |
+
def __import__(
|
| 1249 |
+
name: str,
|
| 1250 |
+
globals: Optional[Mapping[str, Any]] = ...,
|
| 1251 |
+
locals: Optional[Mapping[str, Any]] = ...,
|
| 1252 |
+
fromlist: Sequence[str] = ...,
|
| 1253 |
+
level: int = ...,
|
| 1254 |
+
) -> Any: ...
|
| 1255 |
+
|
| 1256 |
+
# Actually the type of Ellipsis is <type 'ellipsis'>, but since it's
|
| 1257 |
+
# not exposed anywhere under that name, we make it private here.
|
| 1258 |
+
class ellipsis: ...
|
| 1259 |
+
|
| 1260 |
+
Ellipsis: ellipsis
|
| 1261 |
+
|
| 1262 |
+
class BaseException(object):
|
| 1263 |
+
args: Tuple[Any, ...]
|
| 1264 |
+
__cause__: Optional[BaseException]
|
| 1265 |
+
__context__: Optional[BaseException]
|
| 1266 |
+
__suppress_context__: bool
|
| 1267 |
+
__traceback__: Optional[TracebackType]
|
| 1268 |
+
def __init__(self, *args: object) -> None: ...
|
| 1269 |
+
def __str__(self) -> str: ...
|
| 1270 |
+
def __repr__(self) -> str: ...
|
| 1271 |
+
def with_traceback(self: _TBE, tb: Optional[TracebackType]) -> _TBE: ...
|
| 1272 |
+
|
| 1273 |
+
class GeneratorExit(BaseException): ...
|
| 1274 |
+
class KeyboardInterrupt(BaseException): ...
|
| 1275 |
+
|
| 1276 |
+
class SystemExit(BaseException):
|
| 1277 |
+
code: int
|
| 1278 |
+
|
| 1279 |
+
class Exception(BaseException): ...
|
| 1280 |
+
|
| 1281 |
+
class StopIteration(Exception):
|
| 1282 |
+
value: Any
|
| 1283 |
+
|
| 1284 |
+
_StandardError = Exception
|
| 1285 |
+
|
| 1286 |
+
class OSError(Exception):
|
| 1287 |
+
errno: int
|
| 1288 |
+
strerror: str
|
| 1289 |
+
# filename, filename2 are actually Union[str, bytes, None]
|
| 1290 |
+
filename: Any
|
| 1291 |
+
filename2: Any
|
| 1292 |
+
|
| 1293 |
+
EnvironmentError = OSError
|
| 1294 |
+
IOError = OSError
|
| 1295 |
+
|
| 1296 |
+
class ArithmeticError(_StandardError): ...
|
| 1297 |
+
class AssertionError(_StandardError): ...
|
| 1298 |
+
class AttributeError(_StandardError): ...
|
| 1299 |
+
class BufferError(_StandardError): ...
|
| 1300 |
+
class EOFError(_StandardError): ...
|
| 1301 |
+
|
| 1302 |
+
class ImportError(_StandardError):
|
| 1303 |
+
def __init__(self, *args: object, name: Optional[str] = ..., path: Optional[str] = ...) -> None: ...
|
| 1304 |
+
name: Optional[str]
|
| 1305 |
+
path: Optional[str]
|
| 1306 |
+
|
| 1307 |
+
class LookupError(_StandardError): ...
|
| 1308 |
+
class MemoryError(_StandardError): ...
|
| 1309 |
+
class NameError(_StandardError): ...
|
| 1310 |
+
class ReferenceError(_StandardError): ...
|
| 1311 |
+
class RuntimeError(_StandardError): ...
|
| 1312 |
+
|
| 1313 |
+
class StopAsyncIteration(Exception):
|
| 1314 |
+
value: Any
|
| 1315 |
+
|
| 1316 |
+
class SyntaxError(_StandardError):
|
| 1317 |
+
msg: str
|
| 1318 |
+
lineno: Optional[int]
|
| 1319 |
+
offset: Optional[int]
|
| 1320 |
+
text: Optional[str]
|
| 1321 |
+
filename: Optional[str]
|
| 1322 |
+
|
| 1323 |
+
class SystemError(_StandardError): ...
|
| 1324 |
+
class TypeError(_StandardError): ...
|
| 1325 |
+
class ValueError(_StandardError): ...
|
| 1326 |
+
class FloatingPointError(ArithmeticError): ...
|
| 1327 |
+
class OverflowError(ArithmeticError): ...
|
| 1328 |
+
class ZeroDivisionError(ArithmeticError): ...
|
| 1329 |
+
class ModuleNotFoundError(ImportError): ...
|
| 1330 |
+
class IndexError(LookupError): ...
|
| 1331 |
+
class KeyError(LookupError): ...
|
| 1332 |
+
class UnboundLocalError(NameError): ...
|
| 1333 |
+
|
| 1334 |
+
class WindowsError(OSError):
|
| 1335 |
+
winerror: int
|
| 1336 |
+
|
| 1337 |
+
class BlockingIOError(OSError):
|
| 1338 |
+
characters_written: int
|
| 1339 |
+
|
| 1340 |
+
class ChildProcessError(OSError): ...
|
| 1341 |
+
class ConnectionError(OSError): ...
|
| 1342 |
+
class BrokenPipeError(ConnectionError): ...
|
| 1343 |
+
class ConnectionAbortedError(ConnectionError): ...
|
| 1344 |
+
class ConnectionRefusedError(ConnectionError): ...
|
| 1345 |
+
class ConnectionResetError(ConnectionError): ...
|
| 1346 |
+
class FileExistsError(OSError): ...
|
| 1347 |
+
class FileNotFoundError(OSError): ...
|
| 1348 |
+
class InterruptedError(OSError): ...
|
| 1349 |
+
class IsADirectoryError(OSError): ...
|
| 1350 |
+
class NotADirectoryError(OSError): ...
|
| 1351 |
+
class PermissionError(OSError): ...
|
| 1352 |
+
class ProcessLookupError(OSError): ...
|
| 1353 |
+
class TimeoutError(OSError): ...
|
| 1354 |
+
class NotImplementedError(RuntimeError): ...
|
| 1355 |
+
class RecursionError(RuntimeError): ...
|
| 1356 |
+
class IndentationError(SyntaxError): ...
|
| 1357 |
+
class TabError(IndentationError): ...
|
| 1358 |
+
class UnicodeError(ValueError): ...
|
| 1359 |
+
|
| 1360 |
+
class UnicodeDecodeError(UnicodeError):
|
| 1361 |
+
encoding: str
|
| 1362 |
+
object: bytes
|
| 1363 |
+
start: int
|
| 1364 |
+
end: int
|
| 1365 |
+
reason: str
|
| 1366 |
+
def __init__(self, __encoding: str, __object: bytes, __start: int, __end: int, __reason: str) -> None: ...
|
| 1367 |
+
|
| 1368 |
+
class UnicodeEncodeError(UnicodeError):
|
| 1369 |
+
encoding: str
|
| 1370 |
+
object: str
|
| 1371 |
+
start: int
|
| 1372 |
+
end: int
|
| 1373 |
+
reason: str
|
| 1374 |
+
def __init__(self, __encoding: str, __object: str, __start: int, __end: int, __reason: str) -> None: ...
|
| 1375 |
+
|
| 1376 |
+
class UnicodeTranslateError(UnicodeError): ...
|
| 1377 |
+
class Warning(Exception): ...
|
| 1378 |
+
class UserWarning(Warning): ...
|
| 1379 |
+
class DeprecationWarning(Warning): ...
|
| 1380 |
+
class SyntaxWarning(Warning): ...
|
| 1381 |
+
class RuntimeWarning(Warning): ...
|
| 1382 |
+
class FutureWarning(Warning): ...
|
| 1383 |
+
class PendingDeprecationWarning(Warning): ...
|
| 1384 |
+
class ImportWarning(Warning): ...
|
| 1385 |
+
class UnicodeWarning(Warning): ...
|
| 1386 |
+
class BytesWarning(Warning): ...
|
| 1387 |
+
class ResourceWarning(Warning): ...
|
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/3/concurrent/__init__.pyi
ADDED
|
File without changes
|
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/3/concurrent/futures/__init__.pyi
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import sys
|
| 2 |
+
|
| 3 |
+
from ._base import (
|
| 4 |
+
ALL_COMPLETED as ALL_COMPLETED,
|
| 5 |
+
FIRST_COMPLETED as FIRST_COMPLETED,
|
| 6 |
+
FIRST_EXCEPTION as FIRST_EXCEPTION,
|
| 7 |
+
CancelledError as CancelledError,
|
| 8 |
+
Executor as Executor,
|
| 9 |
+
Future as Future,
|
| 10 |
+
TimeoutError as TimeoutError,
|
| 11 |
+
as_completed as as_completed,
|
| 12 |
+
wait as wait,
|
| 13 |
+
)
|
| 14 |
+
from .process import ProcessPoolExecutor as ProcessPoolExecutor
|
| 15 |
+
from .thread import ThreadPoolExecutor as ThreadPoolExecutor
|
| 16 |
+
|
| 17 |
+
if sys.version_info >= (3, 8):
|
| 18 |
+
from ._base import InvalidStateError as InvalidStateError
|
| 19 |
+
if sys.version_info >= (3, 7):
|
| 20 |
+
from ._base import BrokenExecutor as BrokenExecutor
|
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/3/concurrent/futures/_base.pyi
ADDED
|
@@ -0,0 +1,133 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import sys
|
| 2 |
+
import threading
|
| 3 |
+
from abc import abstractmethod
|
| 4 |
+
from logging import Logger
|
| 5 |
+
from typing import (
|
| 6 |
+
Any,
|
| 7 |
+
Callable,
|
| 8 |
+
Container,
|
| 9 |
+
Generic,
|
| 10 |
+
Iterable,
|
| 11 |
+
Iterator,
|
| 12 |
+
List,
|
| 13 |
+
Optional,
|
| 14 |
+
Protocol,
|
| 15 |
+
Sequence,
|
| 16 |
+
Set,
|
| 17 |
+
TypeVar,
|
| 18 |
+
overload,
|
| 19 |
+
)
|
| 20 |
+
|
| 21 |
+
if sys.version_info >= (3, 9):
|
| 22 |
+
from types import GenericAlias
|
| 23 |
+
|
| 24 |
+
FIRST_COMPLETED: str
|
| 25 |
+
FIRST_EXCEPTION: str
|
| 26 |
+
ALL_COMPLETED: str
|
| 27 |
+
PENDING: str
|
| 28 |
+
RUNNING: str
|
| 29 |
+
CANCELLED: str
|
| 30 |
+
CANCELLED_AND_NOTIFIED: str
|
| 31 |
+
FINISHED: str
|
| 32 |
+
LOGGER: Logger
|
| 33 |
+
|
| 34 |
+
class Error(Exception): ...
|
| 35 |
+
class CancelledError(Error): ...
|
| 36 |
+
class TimeoutError(Error): ...
|
| 37 |
+
|
| 38 |
+
if sys.version_info >= (3, 8):
|
| 39 |
+
class InvalidStateError(Error): ...
|
| 40 |
+
|
| 41 |
+
if sys.version_info >= (3, 7):
|
| 42 |
+
class BrokenExecutor(RuntimeError): ...
|
| 43 |
+
|
| 44 |
+
_T = TypeVar("_T")
|
| 45 |
+
|
| 46 |
+
_T_co = TypeVar("_T_co", covariant=True)
|
| 47 |
+
|
| 48 |
+
# Copied over Collection implementation as it does not exist in Python 2 and <3.6.
|
| 49 |
+
# Also to solve pytype issues with _Collection.
|
| 50 |
+
class _Collection(Iterable[_T_co], Container[_T_co], Protocol[_T_co]):
|
| 51 |
+
# Implement Sized (but don't have it as a base class).
|
| 52 |
+
@abstractmethod
|
| 53 |
+
def __len__(self) -> int: ...
|
| 54 |
+
|
| 55 |
+
class Future(Generic[_T]):
|
| 56 |
+
def __init__(self) -> None: ...
|
| 57 |
+
def cancel(self) -> bool: ...
|
| 58 |
+
def cancelled(self) -> bool: ...
|
| 59 |
+
def running(self) -> bool: ...
|
| 60 |
+
def done(self) -> bool: ...
|
| 61 |
+
def add_done_callback(self, fn: Callable[[Future[_T]], Any]) -> None: ...
|
| 62 |
+
def result(self, timeout: Optional[float] = ...) -> _T: ...
|
| 63 |
+
def set_running_or_notify_cancel(self) -> bool: ...
|
| 64 |
+
def set_result(self, result: _T) -> None: ...
|
| 65 |
+
def exception(self, timeout: Optional[float] = ...) -> Optional[BaseException]: ...
|
| 66 |
+
def set_exception(self, exception: Optional[BaseException]) -> None: ...
|
| 67 |
+
if sys.version_info >= (3, 9):
|
| 68 |
+
def __class_getitem__(cls, item: Any) -> GenericAlias: ...
|
| 69 |
+
|
| 70 |
+
class Executor:
|
| 71 |
+
if sys.version_info >= (3, 9):
|
| 72 |
+
def submit(self, __fn: Callable[..., _T], *args: Any, **kwargs: Any) -> Future[_T]: ...
|
| 73 |
+
else:
|
| 74 |
+
def submit(self, fn: Callable[..., _T], *args: Any, **kwargs: Any) -> Future[_T]: ...
|
| 75 |
+
def map(
|
| 76 |
+
self, fn: Callable[..., _T], *iterables: Iterable[Any], timeout: Optional[float] = ..., chunksize: int = ...
|
| 77 |
+
) -> Iterator[_T]: ...
|
| 78 |
+
if sys.version_info >= (3, 9):
|
| 79 |
+
def shutdown(self, wait: bool = ..., *, cancel_futures: bool = ...) -> None: ...
|
| 80 |
+
else:
|
| 81 |
+
def shutdown(self, wait: bool = ...) -> None: ...
|
| 82 |
+
def __enter__(self: _T) -> _T: ...
|
| 83 |
+
def __exit__(self, exc_type: Any, exc_val: Any, exc_tb: Any) -> Optional[bool]: ...
|
| 84 |
+
|
| 85 |
+
def as_completed(fs: Iterable[Future[_T]], timeout: Optional[float] = ...) -> Iterator[Future[_T]]: ...
|
| 86 |
+
|
| 87 |
+
# Ideally this would be a namedtuple, but mypy doesn't support generic tuple types. See #1976
|
| 88 |
+
class DoneAndNotDoneFutures(Sequence[_T]):
|
| 89 |
+
done: Set[Future[_T]]
|
| 90 |
+
not_done: Set[Future[_T]]
|
| 91 |
+
def __new__(_cls, done: Set[Future[_T]], not_done: Set[Future[_T]]) -> DoneAndNotDoneFutures[_T]: ...
|
| 92 |
+
def __len__(self) -> int: ...
|
| 93 |
+
@overload
|
| 94 |
+
def __getitem__(self, i: int) -> _T: ...
|
| 95 |
+
@overload
|
| 96 |
+
def __getitem__(self, s: slice) -> DoneAndNotDoneFutures[_T]: ...
|
| 97 |
+
|
| 98 |
+
def wait(fs: Iterable[Future[_T]], timeout: Optional[float] = ..., return_when: str = ...) -> DoneAndNotDoneFutures[_T]: ...
|
| 99 |
+
|
| 100 |
+
class _Waiter:
|
| 101 |
+
event: threading.Event
|
| 102 |
+
finished_futures: List[Future[Any]]
|
| 103 |
+
def __init__(self) -> None: ...
|
| 104 |
+
def add_result(self, future: Future[Any]) -> None: ...
|
| 105 |
+
def add_exception(self, future: Future[Any]) -> None: ...
|
| 106 |
+
def add_cancelled(self, future: Future[Any]) -> None: ...
|
| 107 |
+
|
| 108 |
+
class _AsCompletedWaiter(_Waiter):
|
| 109 |
+
lock: threading.Lock
|
| 110 |
+
def __init__(self) -> None: ...
|
| 111 |
+
def add_result(self, future: Future[Any]) -> None: ...
|
| 112 |
+
def add_exception(self, future: Future[Any]) -> None: ...
|
| 113 |
+
def add_cancelled(self, future: Future[Any]) -> None: ...
|
| 114 |
+
|
| 115 |
+
class _FirstCompletedWaiter(_Waiter):
|
| 116 |
+
def add_result(self, future: Future[Any]) -> None: ...
|
| 117 |
+
def add_exception(self, future: Future[Any]) -> None: ...
|
| 118 |
+
def add_cancelled(self, future: Future[Any]) -> None: ...
|
| 119 |
+
|
| 120 |
+
class _AllCompletedWaiter(_Waiter):
|
| 121 |
+
num_pending_calls: int
|
| 122 |
+
stop_on_exception: bool
|
| 123 |
+
lock: threading.Lock
|
| 124 |
+
def __init__(self, num_pending_calls: int, stop_on_exception: bool) -> None: ...
|
| 125 |
+
def add_result(self, future: Future[Any]) -> None: ...
|
| 126 |
+
def add_exception(self, future: Future[Any]) -> None: ...
|
| 127 |
+
def add_cancelled(self, future: Future[Any]) -> None: ...
|
| 128 |
+
|
| 129 |
+
class _AcquireFutures:
|
| 130 |
+
futures: Iterable[Future[Any]]
|
| 131 |
+
def __init__(self, futures: Iterable[Future[Any]]) -> None: ...
|
| 132 |
+
def __enter__(self) -> None: ...
|
| 133 |
+
def __exit__(self, *args: Any) -> None: ...
|
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/3/concurrent/futures/process.pyi
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import sys
|
| 2 |
+
from typing import Any, Callable, Optional, Tuple
|
| 3 |
+
|
| 4 |
+
from ._base import Executor
|
| 5 |
+
|
| 6 |
+
EXTRA_QUEUED_CALLS: Any
|
| 7 |
+
|
| 8 |
+
if sys.version_info >= (3, 7):
|
| 9 |
+
from ._base import BrokenExecutor
|
| 10 |
+
class BrokenProcessPool(BrokenExecutor): ...
|
| 11 |
+
|
| 12 |
+
else:
|
| 13 |
+
class BrokenProcessPool(RuntimeError): ...
|
| 14 |
+
|
| 15 |
+
if sys.version_info >= (3, 7):
|
| 16 |
+
from multiprocessing.context import BaseContext
|
| 17 |
+
class ProcessPoolExecutor(Executor):
|
| 18 |
+
def __init__(
|
| 19 |
+
self,
|
| 20 |
+
max_workers: Optional[int] = ...,
|
| 21 |
+
mp_context: Optional[BaseContext] = ...,
|
| 22 |
+
initializer: Optional[Callable[..., None]] = ...,
|
| 23 |
+
initargs: Tuple[Any, ...] = ...,
|
| 24 |
+
) -> None: ...
|
| 25 |
+
|
| 26 |
+
else:
|
| 27 |
+
class ProcessPoolExecutor(Executor):
|
| 28 |
+
def __init__(self, max_workers: Optional[int] = ...) -> None: ...
|
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/3/concurrent/futures/thread.pyi
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import queue
|
| 2 |
+
import sys
|
| 3 |
+
from typing import Any, Callable, Generic, Iterable, Mapping, Optional, Tuple, TypeVar
|
| 4 |
+
|
| 5 |
+
from ._base import Executor, Future
|
| 6 |
+
|
| 7 |
+
if sys.version_info >= (3, 7):
|
| 8 |
+
from ._base import BrokenExecutor
|
| 9 |
+
class BrokenThreadPool(BrokenExecutor): ...
|
| 10 |
+
|
| 11 |
+
if sys.version_info >= (3, 9):
|
| 12 |
+
from types import GenericAlias
|
| 13 |
+
|
| 14 |
+
_S = TypeVar("_S")
|
| 15 |
+
|
| 16 |
+
class ThreadPoolExecutor(Executor):
|
| 17 |
+
if sys.version_info >= (3, 7):
|
| 18 |
+
_work_queue: queue.SimpleQueue
|
| 19 |
+
else:
|
| 20 |
+
_work_queue: queue.Queue
|
| 21 |
+
if sys.version_info >= (3, 7):
|
| 22 |
+
def __init__(
|
| 23 |
+
self,
|
| 24 |
+
max_workers: Optional[int] = ...,
|
| 25 |
+
thread_name_prefix: str = ...,
|
| 26 |
+
initializer: Optional[Callable[..., None]] = ...,
|
| 27 |
+
initargs: Tuple[Any, ...] = ...,
|
| 28 |
+
) -> None: ...
|
| 29 |
+
elif sys.version_info >= (3, 6):
|
| 30 |
+
def __init__(self, max_workers: Optional[int] = ..., thread_name_prefix: str = ...) -> None: ...
|
| 31 |
+
else:
|
| 32 |
+
def __init__(self, max_workers: Optional[int] = ...) -> None: ...
|
| 33 |
+
|
| 34 |
+
class _WorkItem(Generic[_S]):
|
| 35 |
+
future: Future[_S]
|
| 36 |
+
fn: Callable[..., _S]
|
| 37 |
+
args: Iterable[Any]
|
| 38 |
+
kwargs: Mapping[str, Any]
|
| 39 |
+
def __init__(self, future: Future[_S], fn: Callable[..., _S], args: Iterable[Any], kwargs: Mapping[str, Any]) -> None: ...
|
| 40 |
+
def run(self) -> None: ...
|
| 41 |
+
if sys.version_info >= (3, 9):
|
| 42 |
+
def __class_getitem__(cls, item: Any) -> GenericAlias: ...
|
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/3/configparser.pyi
ADDED
|
@@ -0,0 +1,252 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import sys
|
| 2 |
+
from _typeshed import AnyPath, StrPath, SupportsWrite
|
| 3 |
+
from typing import (
|
| 4 |
+
AbstractSet,
|
| 5 |
+
Any,
|
| 6 |
+
Callable,
|
| 7 |
+
ClassVar,
|
| 8 |
+
Dict,
|
| 9 |
+
Iterable,
|
| 10 |
+
Iterator,
|
| 11 |
+
List,
|
| 12 |
+
Mapping,
|
| 13 |
+
MutableMapping,
|
| 14 |
+
Optional,
|
| 15 |
+
Pattern,
|
| 16 |
+
Sequence,
|
| 17 |
+
Tuple,
|
| 18 |
+
Type,
|
| 19 |
+
TypeVar,
|
| 20 |
+
Union,
|
| 21 |
+
overload,
|
| 22 |
+
)
|
| 23 |
+
from typing_extensions import Literal
|
| 24 |
+
|
| 25 |
+
# Internal type aliases
|
| 26 |
+
_section = Mapping[str, str]
|
| 27 |
+
_parser = MutableMapping[str, _section]
|
| 28 |
+
_converter = Callable[[str], Any]
|
| 29 |
+
_converters = Dict[str, _converter]
|
| 30 |
+
_T = TypeVar("_T")
|
| 31 |
+
|
| 32 |
+
if sys.version_info >= (3, 7):
|
| 33 |
+
_Path = AnyPath
|
| 34 |
+
else:
|
| 35 |
+
_Path = StrPath
|
| 36 |
+
|
| 37 |
+
DEFAULTSECT: str
|
| 38 |
+
MAX_INTERPOLATION_DEPTH: int
|
| 39 |
+
|
| 40 |
+
class Interpolation:
|
| 41 |
+
def before_get(self, parser: _parser, section: str, option: str, value: str, defaults: _section) -> str: ...
|
| 42 |
+
def before_set(self, parser: _parser, section: str, option: str, value: str) -> str: ...
|
| 43 |
+
def before_read(self, parser: _parser, section: str, option: str, value: str) -> str: ...
|
| 44 |
+
def before_write(self, parser: _parser, section: str, option: str, value: str) -> str: ...
|
| 45 |
+
|
| 46 |
+
class BasicInterpolation(Interpolation): ...
|
| 47 |
+
class ExtendedInterpolation(Interpolation): ...
|
| 48 |
+
class LegacyInterpolation(Interpolation): ...
|
| 49 |
+
|
| 50 |
+
class RawConfigParser(_parser):
|
| 51 |
+
_SECT_TMPL: ClassVar[str] = ... # Undocumented
|
| 52 |
+
_OPT_TMPL: ClassVar[str] = ... # Undocumented
|
| 53 |
+
_OPT_NV_TMPL: ClassVar[str] = ... # Undocumented
|
| 54 |
+
|
| 55 |
+
SECTCRE: Pattern[str] = ...
|
| 56 |
+
OPTCRE: ClassVar[Pattern[str]] = ...
|
| 57 |
+
OPTCRE_NV: ClassVar[Pattern[str]] = ... # Undocumented
|
| 58 |
+
NONSPACECRE: ClassVar[Pattern[str]] = ... # Undocumented
|
| 59 |
+
|
| 60 |
+
BOOLEAN_STATES: ClassVar[Mapping[str, bool]] = ... # Undocumented
|
| 61 |
+
default_section: str
|
| 62 |
+
@overload
|
| 63 |
+
def __init__(
|
| 64 |
+
self,
|
| 65 |
+
defaults: Optional[Mapping[str, Optional[str]]] = ...,
|
| 66 |
+
dict_type: Type[Mapping[str, str]] = ...,
|
| 67 |
+
allow_no_value: Literal[True] = ...,
|
| 68 |
+
*,
|
| 69 |
+
delimiters: Sequence[str] = ...,
|
| 70 |
+
comment_prefixes: Sequence[str] = ...,
|
| 71 |
+
inline_comment_prefixes: Optional[Sequence[str]] = ...,
|
| 72 |
+
strict: bool = ...,
|
| 73 |
+
empty_lines_in_values: bool = ...,
|
| 74 |
+
default_section: str = ...,
|
| 75 |
+
interpolation: Optional[Interpolation] = ...,
|
| 76 |
+
converters: _converters = ...,
|
| 77 |
+
) -> None: ...
|
| 78 |
+
@overload
|
| 79 |
+
def __init__(
|
| 80 |
+
self,
|
| 81 |
+
defaults: Optional[_section] = ...,
|
| 82 |
+
dict_type: Type[Mapping[str, str]] = ...,
|
| 83 |
+
allow_no_value: bool = ...,
|
| 84 |
+
*,
|
| 85 |
+
delimiters: Sequence[str] = ...,
|
| 86 |
+
comment_prefixes: Sequence[str] = ...,
|
| 87 |
+
inline_comment_prefixes: Optional[Sequence[str]] = ...,
|
| 88 |
+
strict: bool = ...,
|
| 89 |
+
empty_lines_in_values: bool = ...,
|
| 90 |
+
default_section: str = ...,
|
| 91 |
+
interpolation: Optional[Interpolation] = ...,
|
| 92 |
+
converters: _converters = ...,
|
| 93 |
+
) -> None: ...
|
| 94 |
+
def __len__(self) -> int: ...
|
| 95 |
+
def __getitem__(self, section: str) -> SectionProxy: ...
|
| 96 |
+
def __setitem__(self, section: str, options: _section) -> None: ...
|
| 97 |
+
def __delitem__(self, section: str) -> None: ...
|
| 98 |
+
def __iter__(self) -> Iterator[str]: ...
|
| 99 |
+
def defaults(self) -> _section: ...
|
| 100 |
+
def sections(self) -> List[str]: ...
|
| 101 |
+
def add_section(self, section: str) -> None: ...
|
| 102 |
+
def has_section(self, section: str) -> bool: ...
|
| 103 |
+
def options(self, section: str) -> List[str]: ...
|
| 104 |
+
def has_option(self, section: str, option: str) -> bool: ...
|
| 105 |
+
def read(self, filenames: Union[_Path, Iterable[_Path]], encoding: Optional[str] = ...) -> List[str]: ...
|
| 106 |
+
def read_file(self, f: Iterable[str], source: Optional[str] = ...) -> None: ...
|
| 107 |
+
def read_string(self, string: str, source: str = ...) -> None: ...
|
| 108 |
+
def read_dict(self, dictionary: Mapping[str, Mapping[str, Any]], source: str = ...) -> None: ...
|
| 109 |
+
def readfp(self, fp: Iterable[str], filename: Optional[str] = ...) -> None: ...
|
| 110 |
+
# These get* methods are partially applied (with the same names) in
|
| 111 |
+
# SectionProxy; the stubs should be kept updated together
|
| 112 |
+
@overload
|
| 113 |
+
def getint(self, section: str, option: str, *, raw: bool = ..., vars: Optional[_section] = ...) -> int: ...
|
| 114 |
+
@overload
|
| 115 |
+
def getint(
|
| 116 |
+
self, section: str, option: str, *, raw: bool = ..., vars: Optional[_section] = ..., fallback: _T = ...
|
| 117 |
+
) -> Union[int, _T]: ...
|
| 118 |
+
@overload
|
| 119 |
+
def getfloat(self, section: str, option: str, *, raw: bool = ..., vars: Optional[_section] = ...) -> float: ...
|
| 120 |
+
@overload
|
| 121 |
+
def getfloat(
|
| 122 |
+
self, section: str, option: str, *, raw: bool = ..., vars: Optional[_section] = ..., fallback: _T = ...
|
| 123 |
+
) -> Union[float, _T]: ...
|
| 124 |
+
@overload
|
| 125 |
+
def getboolean(self, section: str, option: str, *, raw: bool = ..., vars: Optional[_section] = ...) -> bool: ...
|
| 126 |
+
@overload
|
| 127 |
+
def getboolean(
|
| 128 |
+
self, section: str, option: str, *, raw: bool = ..., vars: Optional[_section] = ..., fallback: _T = ...
|
| 129 |
+
) -> Union[bool, _T]: ...
|
| 130 |
+
def _get_conv(
|
| 131 |
+
self,
|
| 132 |
+
section: str,
|
| 133 |
+
option: str,
|
| 134 |
+
conv: Callable[[str], _T],
|
| 135 |
+
*,
|
| 136 |
+
raw: bool = ...,
|
| 137 |
+
vars: Optional[_section] = ...,
|
| 138 |
+
fallback: _T = ...,
|
| 139 |
+
) -> _T: ...
|
| 140 |
+
# This is incompatible with MutableMapping so we ignore the type
|
| 141 |
+
@overload # type: ignore
|
| 142 |
+
def get(self, section: str, option: str, *, raw: bool = ..., vars: Optional[_section] = ...) -> str: ...
|
| 143 |
+
@overload
|
| 144 |
+
def get(
|
| 145 |
+
self, section: str, option: str, *, raw: bool = ..., vars: Optional[_section] = ..., fallback: _T
|
| 146 |
+
) -> Union[str, _T]: ...
|
| 147 |
+
@overload
|
| 148 |
+
def items(self, *, raw: bool = ..., vars: Optional[_section] = ...) -> AbstractSet[Tuple[str, SectionProxy]]: ...
|
| 149 |
+
@overload
|
| 150 |
+
def items(self, section: str, raw: bool = ..., vars: Optional[_section] = ...) -> List[Tuple[str, str]]: ...
|
| 151 |
+
def set(self, section: str, option: str, value: Optional[str] = ...) -> None: ...
|
| 152 |
+
def write(self, fp: SupportsWrite[str], space_around_delimiters: bool = ...) -> None: ...
|
| 153 |
+
def remove_option(self, section: str, option: str) -> bool: ...
|
| 154 |
+
def remove_section(self, section: str) -> bool: ...
|
| 155 |
+
def optionxform(self, optionstr: str) -> str: ...
|
| 156 |
+
|
| 157 |
+
class ConfigParser(RawConfigParser): ...
|
| 158 |
+
class SafeConfigParser(ConfigParser): ...
|
| 159 |
+
|
| 160 |
+
class SectionProxy(MutableMapping[str, str]):
|
| 161 |
+
def __init__(self, parser: RawConfigParser, name: str) -> None: ...
|
| 162 |
+
def __getitem__(self, key: str) -> str: ...
|
| 163 |
+
def __setitem__(self, key: str, value: str) -> None: ...
|
| 164 |
+
def __delitem__(self, key: str) -> None: ...
|
| 165 |
+
def __contains__(self, key: object) -> bool: ...
|
| 166 |
+
def __len__(self) -> int: ...
|
| 167 |
+
def __iter__(self) -> Iterator[str]: ...
|
| 168 |
+
@property
|
| 169 |
+
def parser(self) -> RawConfigParser: ...
|
| 170 |
+
@property
|
| 171 |
+
def name(self) -> str: ...
|
| 172 |
+
def get(self, option: str, fallback: Optional[str] = ..., *, raw: bool = ..., vars: Optional[_section] = ..., _impl: Optional[Any] = ..., **kwargs: Any) -> str: ... # type: ignore
|
| 173 |
+
# These are partially-applied version of the methods with the same names in
|
| 174 |
+
# RawConfigParser; the stubs should be kept updated together
|
| 175 |
+
@overload
|
| 176 |
+
def getint(self, option: str, *, raw: bool = ..., vars: Optional[_section] = ...) -> int: ...
|
| 177 |
+
@overload
|
| 178 |
+
def getint(self, option: str, *, raw: bool = ..., vars: Optional[_section] = ..., fallback: _T = ...) -> Union[int, _T]: ...
|
| 179 |
+
@overload
|
| 180 |
+
def getfloat(self, option: str, *, raw: bool = ..., vars: Optional[_section] = ...) -> float: ...
|
| 181 |
+
@overload
|
| 182 |
+
def getfloat(
|
| 183 |
+
self, option: str, *, raw: bool = ..., vars: Optional[_section] = ..., fallback: _T = ...
|
| 184 |
+
) -> Union[float, _T]: ...
|
| 185 |
+
@overload
|
| 186 |
+
def getboolean(self, option: str, *, raw: bool = ..., vars: Optional[_section] = ...) -> bool: ...
|
| 187 |
+
@overload
|
| 188 |
+
def getboolean(
|
| 189 |
+
self, option: str, *, raw: bool = ..., vars: Optional[_section] = ..., fallback: _T = ...
|
| 190 |
+
) -> Union[bool, _T]: ...
|
| 191 |
+
# SectionProxy can have arbitrary attributes when custon converters are used
|
| 192 |
+
def __getattr__(self, key: str) -> Callable[..., Any]: ...
|
| 193 |
+
|
| 194 |
+
class ConverterMapping(MutableMapping[str, Optional[_converter]]):
|
| 195 |
+
GETTERCRE: Pattern[Any]
|
| 196 |
+
def __init__(self, parser: RawConfigParser) -> None: ...
|
| 197 |
+
def __getitem__(self, key: str) -> _converter: ...
|
| 198 |
+
def __setitem__(self, key: str, value: Optional[_converter]) -> None: ...
|
| 199 |
+
def __delitem__(self, key: str) -> None: ...
|
| 200 |
+
def __iter__(self) -> Iterator[str]: ...
|
| 201 |
+
def __len__(self) -> int: ...
|
| 202 |
+
|
| 203 |
+
class Error(Exception):
|
| 204 |
+
message: str
|
| 205 |
+
def __init__(self, msg: str = ...) -> None: ...
|
| 206 |
+
|
| 207 |
+
class NoSectionError(Error):
|
| 208 |
+
section: str
|
| 209 |
+
def __init__(self, section: str) -> None: ...
|
| 210 |
+
|
| 211 |
+
class DuplicateSectionError(Error):
|
| 212 |
+
section: str
|
| 213 |
+
source: Optional[str]
|
| 214 |
+
lineno: Optional[int]
|
| 215 |
+
def __init__(self, section: str, source: Optional[str] = ..., lineno: Optional[int] = ...) -> None: ...
|
| 216 |
+
|
| 217 |
+
class DuplicateOptionError(Error):
|
| 218 |
+
section: str
|
| 219 |
+
option: str
|
| 220 |
+
source: Optional[str]
|
| 221 |
+
lineno: Optional[int]
|
| 222 |
+
def __init__(self, section: str, option: str, source: Optional[str] = ..., lineno: Optional[str] = ...) -> None: ...
|
| 223 |
+
|
| 224 |
+
class NoOptionError(Error):
|
| 225 |
+
section: str
|
| 226 |
+
option: str
|
| 227 |
+
def __init__(self, option: str, section: str) -> None: ...
|
| 228 |
+
|
| 229 |
+
class InterpolationError(Error):
|
| 230 |
+
section: str
|
| 231 |
+
option: str
|
| 232 |
+
def __init__(self, option: str, section: str, msg: str) -> None: ...
|
| 233 |
+
|
| 234 |
+
class InterpolationDepthError(InterpolationError):
|
| 235 |
+
def __init__(self, option: str, section: str, rawval: object) -> None: ...
|
| 236 |
+
|
| 237 |
+
class InterpolationMissingOptionError(InterpolationError):
|
| 238 |
+
reference: str
|
| 239 |
+
def __init__(self, option: str, section: str, rawval: object, reference: str) -> None: ...
|
| 240 |
+
|
| 241 |
+
class InterpolationSyntaxError(InterpolationError): ...
|
| 242 |
+
|
| 243 |
+
class ParsingError(Error):
|
| 244 |
+
source: str
|
| 245 |
+
errors: List[Tuple[int, str]]
|
| 246 |
+
def __init__(self, source: Optional[str] = ..., filename: Optional[str] = ...) -> None: ...
|
| 247 |
+
def append(self, lineno: int, line: str) -> None: ...
|
| 248 |
+
|
| 249 |
+
class MissingSectionHeaderError(ParsingError):
|
| 250 |
+
lineno: int
|
| 251 |
+
line: str
|
| 252 |
+
def __init__(self, filename: str, lineno: int, line: str) -> None: ...
|
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/3/faulthandler.pyi
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import sys
|
| 2 |
+
from _typeshed import FileDescriptorLike
|
| 3 |
+
|
| 4 |
+
def cancel_dump_traceback_later() -> None: ...
|
| 5 |
+
def disable() -> None: ...
|
| 6 |
+
def dump_traceback(file: FileDescriptorLike = ..., all_threads: bool = ...) -> None: ...
|
| 7 |
+
def dump_traceback_later(timeout: float, repeat: bool = ..., file: FileDescriptorLike = ..., exit: bool = ...) -> None: ...
|
| 8 |
+
def enable(file: FileDescriptorLike = ..., all_threads: bool = ...) -> None: ...
|
| 9 |
+
def is_enabled() -> bool: ...
|
| 10 |
+
|
| 11 |
+
if sys.platform != "win32":
|
| 12 |
+
def register(signum: int, file: FileDescriptorLike = ..., all_threads: bool = ..., chain: bool = ...) -> None: ...
|
| 13 |
+
def unregister(signum: int) -> None: ...
|
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/3/fnmatch.pyi
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from typing import AnyStr, Iterable, List
|
| 2 |
+
|
| 3 |
+
def fnmatch(name: AnyStr, pat: AnyStr) -> bool: ...
|
| 4 |
+
def fnmatchcase(name: AnyStr, pat: AnyStr) -> bool: ...
|
| 5 |
+
def filter(names: Iterable[AnyStr], pat: AnyStr) -> List[AnyStr]: ...
|
| 6 |
+
def translate(pat: str) -> str: ...
|
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/3/functools.pyi
ADDED
|
@@ -0,0 +1,123 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import sys
|
| 2 |
+
from _typeshed import SupportsLessThan
|
| 3 |
+
from typing import (
|
| 4 |
+
Any,
|
| 5 |
+
Callable,
|
| 6 |
+
Dict,
|
| 7 |
+
Generic,
|
| 8 |
+
Hashable,
|
| 9 |
+
Iterable,
|
| 10 |
+
Mapping,
|
| 11 |
+
NamedTuple,
|
| 12 |
+
Optional,
|
| 13 |
+
Sequence,
|
| 14 |
+
Tuple,
|
| 15 |
+
Type,
|
| 16 |
+
TypeVar,
|
| 17 |
+
Union,
|
| 18 |
+
overload,
|
| 19 |
+
)
|
| 20 |
+
|
| 21 |
+
if sys.version_info >= (3, 9):
|
| 22 |
+
from types import GenericAlias
|
| 23 |
+
|
| 24 |
+
_AnyCallable = Callable[..., Any]
|
| 25 |
+
|
| 26 |
+
_T = TypeVar("_T")
|
| 27 |
+
_S = TypeVar("_S")
|
| 28 |
+
@overload
|
| 29 |
+
def reduce(function: Callable[[_T, _S], _T], sequence: Iterable[_S], initial: _T) -> _T: ...
|
| 30 |
+
@overload
|
| 31 |
+
def reduce(function: Callable[[_T, _T], _T], sequence: Iterable[_T]) -> _T: ...
|
| 32 |
+
|
| 33 |
+
class _CacheInfo(NamedTuple):
|
| 34 |
+
hits: int
|
| 35 |
+
misses: int
|
| 36 |
+
maxsize: int
|
| 37 |
+
currsize: int
|
| 38 |
+
|
| 39 |
+
class _lru_cache_wrapper(Generic[_T]):
|
| 40 |
+
__wrapped__: Callable[..., _T]
|
| 41 |
+
def __call__(self, *args: Hashable, **kwargs: Hashable) -> _T: ...
|
| 42 |
+
def cache_info(self) -> _CacheInfo: ...
|
| 43 |
+
def cache_clear(self) -> None: ...
|
| 44 |
+
|
| 45 |
+
if sys.version_info >= (3, 8):
|
| 46 |
+
@overload
|
| 47 |
+
def lru_cache(maxsize: Optional[int] = ..., typed: bool = ...) -> Callable[[Callable[..., _T]], _lru_cache_wrapper[_T]]: ...
|
| 48 |
+
@overload
|
| 49 |
+
def lru_cache(maxsize: Callable[..., _T], typed: bool = ...) -> _lru_cache_wrapper[_T]: ...
|
| 50 |
+
|
| 51 |
+
else:
|
| 52 |
+
def lru_cache(maxsize: Optional[int] = ..., typed: bool = ...) -> Callable[[Callable[..., _T]], _lru_cache_wrapper[_T]]: ...
|
| 53 |
+
|
| 54 |
+
WRAPPER_ASSIGNMENTS: Sequence[str]
|
| 55 |
+
WRAPPER_UPDATES: Sequence[str]
|
| 56 |
+
|
| 57 |
+
def update_wrapper(wrapper: _T, wrapped: _AnyCallable, assigned: Sequence[str] = ..., updated: Sequence[str] = ...) -> _T: ...
|
| 58 |
+
def wraps(wrapped: _AnyCallable, assigned: Sequence[str] = ..., updated: Sequence[str] = ...) -> Callable[[_T], _T]: ...
|
| 59 |
+
def total_ordering(cls: Type[_T]) -> Type[_T]: ...
|
| 60 |
+
def cmp_to_key(mycmp: Callable[[_T, _T], int]) -> Callable[[_T], SupportsLessThan]: ...
|
| 61 |
+
|
| 62 |
+
class partial(Generic[_T]):
|
| 63 |
+
func: Callable[..., _T]
|
| 64 |
+
args: Tuple[Any, ...]
|
| 65 |
+
keywords: Dict[str, Any]
|
| 66 |
+
def __init__(self, func: Callable[..., _T], *args: Any, **kwargs: Any) -> None: ...
|
| 67 |
+
def __call__(self, *args: Any, **kwargs: Any) -> _T: ...
|
| 68 |
+
if sys.version_info >= (3, 9):
|
| 69 |
+
def __class_getitem__(cls, item: Any) -> GenericAlias: ...
|
| 70 |
+
|
| 71 |
+
# With protocols, this could change into a generic protocol that defines __get__ and returns _T
|
| 72 |
+
_Descriptor = Any
|
| 73 |
+
|
| 74 |
+
class partialmethod(Generic[_T]):
|
| 75 |
+
func: Union[Callable[..., _T], _Descriptor]
|
| 76 |
+
args: Tuple[Any, ...]
|
| 77 |
+
keywords: Dict[str, Any]
|
| 78 |
+
@overload
|
| 79 |
+
def __init__(self, __func: Callable[..., _T], *args: Any, **keywords: Any) -> None: ...
|
| 80 |
+
@overload
|
| 81 |
+
def __init__(self, __func: _Descriptor, *args: Any, **keywords: Any) -> None: ...
|
| 82 |
+
def __get__(self, obj: Any, cls: Type[Any]) -> Callable[..., _T]: ...
|
| 83 |
+
@property
|
| 84 |
+
def __isabstractmethod__(self) -> bool: ...
|
| 85 |
+
if sys.version_info >= (3, 9):
|
| 86 |
+
def __class_getitem__(cls, item: Any) -> GenericAlias: ...
|
| 87 |
+
|
| 88 |
+
class _SingleDispatchCallable(Generic[_T]):
|
| 89 |
+
registry: Mapping[Any, Callable[..., _T]]
|
| 90 |
+
def dispatch(self, cls: Any) -> Callable[..., _T]: ...
|
| 91 |
+
@overload
|
| 92 |
+
def register(self, cls: Any) -> Callable[[Callable[..., _T]], Callable[..., _T]]: ...
|
| 93 |
+
@overload
|
| 94 |
+
def register(self, cls: Any, func: Callable[..., _T]) -> Callable[..., _T]: ...
|
| 95 |
+
def _clear_cache(self) -> None: ...
|
| 96 |
+
def __call__(self, *args: Any, **kwargs: Any) -> _T: ...
|
| 97 |
+
|
| 98 |
+
def singledispatch(func: Callable[..., _T]) -> _SingleDispatchCallable[_T]: ...
|
| 99 |
+
|
| 100 |
+
if sys.version_info >= (3, 8):
|
| 101 |
+
class singledispatchmethod(Generic[_T]):
|
| 102 |
+
dispatcher: _SingleDispatchCallable[_T]
|
| 103 |
+
func: Callable[..., _T]
|
| 104 |
+
def __init__(self, func: Callable[..., _T]) -> None: ...
|
| 105 |
+
@overload
|
| 106 |
+
def register(self, cls: Any, method: None = ...) -> Callable[[Callable[..., _T]], Callable[..., _T]]: ...
|
| 107 |
+
@overload
|
| 108 |
+
def register(self, cls: Any, method: Callable[..., _T]) -> Callable[..., _T]: ...
|
| 109 |
+
def __call__(self, *args: Any, **kwargs: Any) -> _T: ...
|
| 110 |
+
class cached_property(Generic[_T]):
|
| 111 |
+
func: Callable[[Any], _T]
|
| 112 |
+
attrname: Optional[str]
|
| 113 |
+
def __init__(self, func: Callable[[Any], _T]) -> None: ...
|
| 114 |
+
@overload
|
| 115 |
+
def __get__(self, instance: None, owner: Optional[Type[Any]] = ...) -> cached_property[_T]: ...
|
| 116 |
+
@overload
|
| 117 |
+
def __get__(self, instance: _S, owner: Optional[Type[Any]] = ...) -> _T: ...
|
| 118 |
+
def __set_name__(self, owner: Type[Any], name: str) -> None: ...
|
| 119 |
+
if sys.version_info >= (3, 9):
|
| 120 |
+
def __class_getitem__(cls, item: Any) -> GenericAlias: ...
|
| 121 |
+
|
| 122 |
+
if sys.version_info >= (3, 9):
|
| 123 |
+
def cache(__user_function: Callable[..., _T]) -> _lru_cache_wrapper[_T]: ...
|
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/3/gc.pyi
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import sys
|
| 2 |
+
from typing import Any, Dict, List, Optional, Tuple
|
| 3 |
+
|
| 4 |
+
DEBUG_COLLECTABLE: int
|
| 5 |
+
DEBUG_LEAK: int
|
| 6 |
+
DEBUG_SAVEALL: int
|
| 7 |
+
DEBUG_STATS: int
|
| 8 |
+
DEBUG_UNCOLLECTABLE: int
|
| 9 |
+
callbacks: List[Any]
|
| 10 |
+
garbage: List[Any]
|
| 11 |
+
|
| 12 |
+
def collect(generation: int = ...) -> int: ...
|
| 13 |
+
def disable() -> None: ...
|
| 14 |
+
def enable() -> None: ...
|
| 15 |
+
def get_count() -> Tuple[int, int, int]: ...
|
| 16 |
+
def get_debug() -> int: ...
|
| 17 |
+
|
| 18 |
+
if sys.version_info >= (3, 8):
|
| 19 |
+
def get_objects(generation: Optional[int] = ...) -> List[Any]: ...
|
| 20 |
+
|
| 21 |
+
else:
|
| 22 |
+
def get_objects() -> List[Any]: ...
|
| 23 |
+
|
| 24 |
+
if sys.version_info >= (3, 7):
|
| 25 |
+
def freeze() -> None: ...
|
| 26 |
+
def unfreeze() -> None: ...
|
| 27 |
+
def get_freeze_count() -> int: ...
|
| 28 |
+
|
| 29 |
+
def get_referents(*objs: Any) -> List[Any]: ...
|
| 30 |
+
def get_referrers(*objs: Any) -> List[Any]: ...
|
| 31 |
+
def get_stats() -> List[Dict[str, Any]]: ...
|
| 32 |
+
def get_threshold() -> Tuple[int, int, int]: ...
|
| 33 |
+
def is_tracked(__obj: Any) -> bool: ...
|
| 34 |
+
|
| 35 |
+
if sys.version_info >= (3, 9):
|
| 36 |
+
def is_finalized(__obj: Any) -> bool: ...
|
| 37 |
+
|
| 38 |
+
def isenabled() -> bool: ...
|
| 39 |
+
def set_debug(__flags: int) -> None: ...
|
| 40 |
+
def set_threshold(threshold0: int, threshold1: int = ..., threshold2: int = ...) -> None: ...
|
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/3/getopt.pyi
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from typing import List, Tuple
|
| 2 |
+
|
| 3 |
+
def getopt(args: List[str], shortopts: str, longopts: List[str] = ...) -> Tuple[List[Tuple[str, str]], List[str]]: ...
|
| 4 |
+
def gnu_getopt(args: List[str], shortopts: str, longopts: List[str] = ...) -> Tuple[List[Tuple[str, str]], List[str]]: ...
|
| 5 |
+
|
| 6 |
+
class GetoptError(Exception):
|
| 7 |
+
msg: str
|
| 8 |
+
opt: str
|
| 9 |
+
|
| 10 |
+
error = GetoptError
|
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/3/gzip.pyi
ADDED
|
@@ -0,0 +1,94 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import _compression
|
| 2 |
+
import sys
|
| 3 |
+
import zlib
|
| 4 |
+
from _typeshed import AnyPath, ReadableBuffer
|
| 5 |
+
from typing import IO, Optional, TextIO, Union, overload
|
| 6 |
+
from typing_extensions import Literal
|
| 7 |
+
|
| 8 |
+
_OpenBinaryMode = Literal["r", "rb", "a", "ab", "w", "wb", "x", "xb"]
|
| 9 |
+
_OpenTextMode = Literal["rt", "at", "wt", "xt"]
|
| 10 |
+
@overload
|
| 11 |
+
def open(
|
| 12 |
+
filename: Union[AnyPath, IO[bytes]],
|
| 13 |
+
mode: _OpenBinaryMode = ...,
|
| 14 |
+
compresslevel: int = ...,
|
| 15 |
+
encoding: None = ...,
|
| 16 |
+
errors: None = ...,
|
| 17 |
+
newline: None = ...,
|
| 18 |
+
) -> GzipFile: ...
|
| 19 |
+
@overload
|
| 20 |
+
def open(
|
| 21 |
+
filename: AnyPath,
|
| 22 |
+
mode: _OpenTextMode,
|
| 23 |
+
compresslevel: int = ...,
|
| 24 |
+
encoding: Optional[str] = ...,
|
| 25 |
+
errors: Optional[str] = ...,
|
| 26 |
+
newline: Optional[str] = ...,
|
| 27 |
+
) -> TextIO: ...
|
| 28 |
+
@overload
|
| 29 |
+
def open(
|
| 30 |
+
filename: Union[AnyPath, IO[bytes]],
|
| 31 |
+
mode: str,
|
| 32 |
+
compresslevel: int = ...,
|
| 33 |
+
encoding: Optional[str] = ...,
|
| 34 |
+
errors: Optional[str] = ...,
|
| 35 |
+
newline: Optional[str] = ...,
|
| 36 |
+
) -> Union[GzipFile, TextIO]: ...
|
| 37 |
+
|
| 38 |
+
class _PaddedFile:
|
| 39 |
+
file: IO[bytes]
|
| 40 |
+
def __init__(self, f: IO[bytes], prepend: bytes = ...) -> None: ...
|
| 41 |
+
def read(self, size: int) -> bytes: ...
|
| 42 |
+
def prepend(self, prepend: bytes = ...) -> None: ...
|
| 43 |
+
def seek(self, off: int) -> int: ...
|
| 44 |
+
def seekable(self) -> bool: ...
|
| 45 |
+
|
| 46 |
+
if sys.version_info >= (3, 8):
|
| 47 |
+
class BadGzipFile(OSError): ...
|
| 48 |
+
|
| 49 |
+
class GzipFile(_compression.BaseStream):
|
| 50 |
+
myfileobj: Optional[IO[bytes]]
|
| 51 |
+
mode: str
|
| 52 |
+
name: str
|
| 53 |
+
compress: zlib._Compress
|
| 54 |
+
fileobj: IO[bytes]
|
| 55 |
+
def __init__(
|
| 56 |
+
self,
|
| 57 |
+
filename: Optional[AnyPath] = ...,
|
| 58 |
+
mode: Optional[str] = ...,
|
| 59 |
+
compresslevel: int = ...,
|
| 60 |
+
fileobj: Optional[IO[bytes]] = ...,
|
| 61 |
+
mtime: Optional[float] = ...,
|
| 62 |
+
) -> None: ...
|
| 63 |
+
@property
|
| 64 |
+
def filename(self) -> str: ...
|
| 65 |
+
@property
|
| 66 |
+
def mtime(self) -> Optional[int]: ...
|
| 67 |
+
crc: int
|
| 68 |
+
def write(self, data: ReadableBuffer) -> int: ...
|
| 69 |
+
def read(self, size: Optional[int] = ...) -> bytes: ...
|
| 70 |
+
def read1(self, size: int = ...) -> bytes: ...
|
| 71 |
+
def peek(self, n: int) -> bytes: ...
|
| 72 |
+
@property
|
| 73 |
+
def closed(self) -> bool: ...
|
| 74 |
+
def close(self) -> None: ...
|
| 75 |
+
def flush(self, zlib_mode: int = ...) -> None: ...
|
| 76 |
+
def fileno(self) -> int: ...
|
| 77 |
+
def rewind(self) -> None: ...
|
| 78 |
+
def readable(self) -> bool: ...
|
| 79 |
+
def writable(self) -> bool: ...
|
| 80 |
+
def seekable(self) -> bool: ...
|
| 81 |
+
def seek(self, offset: int, whence: int = ...) -> int: ...
|
| 82 |
+
def readline(self, size: Optional[int] = ...) -> bytes: ...
|
| 83 |
+
|
| 84 |
+
class _GzipReader(_compression.DecompressReader):
|
| 85 |
+
def __init__(self, fp: IO[bytes]) -> None: ...
|
| 86 |
+
def read(self, size: int = ...) -> bytes: ...
|
| 87 |
+
|
| 88 |
+
if sys.version_info >= (3, 8):
|
| 89 |
+
def compress(data: bytes, compresslevel: int = ..., *, mtime: Optional[float] = ...) -> bytes: ...
|
| 90 |
+
|
| 91 |
+
else:
|
| 92 |
+
def compress(data: bytes, compresslevel: int = ...) -> bytes: ...
|
| 93 |
+
|
| 94 |
+
def decompress(data: bytes) -> bytes: ...
|
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/3/heapq.pyi
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from _typeshed import SupportsLessThan
|
| 2 |
+
from typing import Any, Callable, Iterable, List, Optional, TypeVar
|
| 3 |
+
|
| 4 |
+
_T = TypeVar("_T")
|
| 5 |
+
|
| 6 |
+
def heappush(__heap: List[_T], __item: _T) -> None: ...
|
| 7 |
+
def heappop(__heap: List[_T]) -> _T: ...
|
| 8 |
+
def heappushpop(__heap: List[_T], __item: _T) -> _T: ...
|
| 9 |
+
def heapify(__heap: List[_T]) -> None: ...
|
| 10 |
+
def heapreplace(__heap: List[_T], __item: _T) -> _T: ...
|
| 11 |
+
def merge(*iterables: Iterable[_T], key: Optional[Callable[[_T], Any]] = ..., reverse: bool = ...) -> Iterable[_T]: ...
|
| 12 |
+
def nlargest(n: int, iterable: Iterable[_T], key: Optional[Callable[[_T], SupportsLessThan]] = ...) -> List[_T]: ...
|
| 13 |
+
def nsmallest(n: int, iterable: Iterable[_T], key: Optional[Callable[[_T], SupportsLessThan]] = ...) -> List[_T]: ...
|
| 14 |
+
def _heapify_max(__x: List[_T]) -> None: ... # undocumented
|
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/3/inspect.pyi
ADDED
|
@@ -0,0 +1,309 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import enum
|
| 2 |
+
import sys
|
| 3 |
+
from collections import OrderedDict
|
| 4 |
+
from types import CodeType, FrameType, FunctionType, MethodType, ModuleType, TracebackType
|
| 5 |
+
from typing import (
|
| 6 |
+
AbstractSet,
|
| 7 |
+
Any,
|
| 8 |
+
Callable,
|
| 9 |
+
ClassVar,
|
| 10 |
+
Dict,
|
| 11 |
+
Generator,
|
| 12 |
+
List,
|
| 13 |
+
Mapping,
|
| 14 |
+
NamedTuple,
|
| 15 |
+
Optional,
|
| 16 |
+
Sequence,
|
| 17 |
+
Tuple,
|
| 18 |
+
Type,
|
| 19 |
+
Union,
|
| 20 |
+
)
|
| 21 |
+
from typing_extensions import Literal
|
| 22 |
+
|
| 23 |
+
#
|
| 24 |
+
# Types and members
|
| 25 |
+
#
|
| 26 |
+
class EndOfBlock(Exception): ...
|
| 27 |
+
|
| 28 |
+
class BlockFinder:
|
| 29 |
+
indent: int
|
| 30 |
+
islambda: bool
|
| 31 |
+
started: bool
|
| 32 |
+
passline: bool
|
| 33 |
+
indecorator: bool
|
| 34 |
+
decoratorhasargs: bool
|
| 35 |
+
last: int
|
| 36 |
+
def tokeneater(self, type: int, token: str, srowcol: Tuple[int, int], erowcol: Tuple[int, int], line: str) -> None: ...
|
| 37 |
+
|
| 38 |
+
CO_OPTIMIZED: int
|
| 39 |
+
CO_NEWLOCALS: int
|
| 40 |
+
CO_VARARGS: int
|
| 41 |
+
CO_VARKEYWORDS: int
|
| 42 |
+
CO_NESTED: int
|
| 43 |
+
CO_GENERATOR: int
|
| 44 |
+
CO_NOFREE: int
|
| 45 |
+
CO_COROUTINE: int
|
| 46 |
+
CO_ITERABLE_COROUTINE: int
|
| 47 |
+
CO_ASYNC_GENERATOR: int
|
| 48 |
+
TPFLAGS_IS_ABSTRACT: int
|
| 49 |
+
|
| 50 |
+
def getmembers(object: object, predicate: Optional[Callable[[Any], bool]] = ...) -> List[Tuple[str, Any]]: ...
|
| 51 |
+
def getmodulename(path: str) -> Optional[str]: ...
|
| 52 |
+
def ismodule(object: object) -> bool: ...
|
| 53 |
+
def isclass(object: object) -> bool: ...
|
| 54 |
+
def ismethod(object: object) -> bool: ...
|
| 55 |
+
def isfunction(object: object) -> bool: ...
|
| 56 |
+
|
| 57 |
+
if sys.version_info >= (3, 8):
|
| 58 |
+
def isgeneratorfunction(obj: object) -> bool: ...
|
| 59 |
+
def iscoroutinefunction(obj: object) -> bool: ...
|
| 60 |
+
|
| 61 |
+
else:
|
| 62 |
+
def isgeneratorfunction(object: object) -> bool: ...
|
| 63 |
+
def iscoroutinefunction(object: object) -> bool: ...
|
| 64 |
+
|
| 65 |
+
def isgenerator(object: object) -> bool: ...
|
| 66 |
+
def iscoroutine(object: object) -> bool: ...
|
| 67 |
+
def isawaitable(object: object) -> bool: ...
|
| 68 |
+
|
| 69 |
+
if sys.version_info >= (3, 8):
|
| 70 |
+
def isasyncgenfunction(obj: object) -> bool: ...
|
| 71 |
+
|
| 72 |
+
else:
|
| 73 |
+
def isasyncgenfunction(object: object) -> bool: ...
|
| 74 |
+
|
| 75 |
+
def isasyncgen(object: object) -> bool: ...
|
| 76 |
+
def istraceback(object: object) -> bool: ...
|
| 77 |
+
def isframe(object: object) -> bool: ...
|
| 78 |
+
def iscode(object: object) -> bool: ...
|
| 79 |
+
def isbuiltin(object: object) -> bool: ...
|
| 80 |
+
def isroutine(object: object) -> bool: ...
|
| 81 |
+
def isabstract(object: object) -> bool: ...
|
| 82 |
+
def ismethoddescriptor(object: object) -> bool: ...
|
| 83 |
+
def isdatadescriptor(object: object) -> bool: ...
|
| 84 |
+
def isgetsetdescriptor(object: object) -> bool: ...
|
| 85 |
+
def ismemberdescriptor(object: object) -> bool: ...
|
| 86 |
+
|
| 87 |
+
#
|
| 88 |
+
# Retrieving source code
|
| 89 |
+
#
|
| 90 |
+
_SourceObjectType = Union[ModuleType, Type[Any], MethodType, FunctionType, TracebackType, FrameType, CodeType, Callable[..., Any]]
|
| 91 |
+
|
| 92 |
+
def findsource(object: _SourceObjectType) -> Tuple[List[str], int]: ...
|
| 93 |
+
def getabsfile(object: _SourceObjectType, _filename: Optional[str] = ...) -> str: ...
|
| 94 |
+
def getblock(lines: Sequence[str]) -> Sequence[str]: ...
|
| 95 |
+
def getdoc(object: object) -> Optional[str]: ...
|
| 96 |
+
def getcomments(object: object) -> Optional[str]: ...
|
| 97 |
+
def getfile(object: _SourceObjectType) -> str: ...
|
| 98 |
+
def getmodule(object: object, _filename: Optional[str] = ...) -> Optional[ModuleType]: ...
|
| 99 |
+
def getsourcefile(object: _SourceObjectType) -> Optional[str]: ...
|
| 100 |
+
def getsourcelines(object: _SourceObjectType) -> Tuple[List[str], int]: ...
|
| 101 |
+
def getsource(object: _SourceObjectType) -> str: ...
|
| 102 |
+
def cleandoc(doc: str) -> str: ...
|
| 103 |
+
def indentsize(line: str) -> int: ...
|
| 104 |
+
|
| 105 |
+
#
|
| 106 |
+
# Introspecting callables with the Signature object
|
| 107 |
+
#
|
| 108 |
+
def signature(obj: Callable[..., Any], *, follow_wrapped: bool = ...) -> Signature: ...
|
| 109 |
+
|
| 110 |
+
class Signature:
|
| 111 |
+
def __init__(self, parameters: Optional[Sequence[Parameter]] = ..., *, return_annotation: Any = ...) -> None: ...
|
| 112 |
+
# TODO: can we be more specific here?
|
| 113 |
+
empty: object = ...
|
| 114 |
+
|
| 115 |
+
parameters: Mapping[str, Parameter]
|
| 116 |
+
|
| 117 |
+
# TODO: can we be more specific here?
|
| 118 |
+
return_annotation: Any
|
| 119 |
+
def bind(self, *args: Any, **kwargs: Any) -> BoundArguments: ...
|
| 120 |
+
def bind_partial(self, *args: Any, **kwargs: Any) -> BoundArguments: ...
|
| 121 |
+
def replace(self, *, parameters: Optional[Sequence[Parameter]] = ..., return_annotation: Any = ...) -> Signature: ...
|
| 122 |
+
@classmethod
|
| 123 |
+
def from_callable(cls, obj: Callable[..., Any], *, follow_wrapped: bool = ...) -> Signature: ...
|
| 124 |
+
|
| 125 |
+
# The name is the same as the enum's name in CPython
|
| 126 |
+
class _ParameterKind(enum.IntEnum):
|
| 127 |
+
POSITIONAL_ONLY: int
|
| 128 |
+
POSITIONAL_OR_KEYWORD: int
|
| 129 |
+
VAR_POSITIONAL: int
|
| 130 |
+
KEYWORD_ONLY: int
|
| 131 |
+
VAR_KEYWORD: int
|
| 132 |
+
|
| 133 |
+
if sys.version_info >= (3, 8):
|
| 134 |
+
description: str
|
| 135 |
+
|
| 136 |
+
class Parameter:
|
| 137 |
+
def __init__(self, name: str, kind: _ParameterKind, *, default: Any = ..., annotation: Any = ...) -> None: ...
|
| 138 |
+
empty: Any = ...
|
| 139 |
+
name: str
|
| 140 |
+
default: Any
|
| 141 |
+
annotation: Any
|
| 142 |
+
|
| 143 |
+
kind: _ParameterKind
|
| 144 |
+
POSITIONAL_ONLY: ClassVar[Literal[_ParameterKind.POSITIONAL_ONLY]]
|
| 145 |
+
POSITIONAL_OR_KEYWORD: ClassVar[Literal[_ParameterKind.POSITIONAL_OR_KEYWORD]]
|
| 146 |
+
VAR_POSITIONAL: ClassVar[Literal[_ParameterKind.VAR_POSITIONAL]]
|
| 147 |
+
KEYWORD_ONLY: ClassVar[Literal[_ParameterKind.KEYWORD_ONLY]]
|
| 148 |
+
VAR_KEYWORD: ClassVar[Literal[_ParameterKind.VAR_KEYWORD]]
|
| 149 |
+
def replace(
|
| 150 |
+
self, *, name: Optional[str] = ..., kind: Optional[_ParameterKind] = ..., default: Any = ..., annotation: Any = ...
|
| 151 |
+
) -> Parameter: ...
|
| 152 |
+
|
| 153 |
+
class BoundArguments:
|
| 154 |
+
arguments: OrderedDict[str, Any]
|
| 155 |
+
args: Tuple[Any, ...]
|
| 156 |
+
kwargs: Dict[str, Any]
|
| 157 |
+
signature: Signature
|
| 158 |
+
def __init__(self, signature: Signature, arguments: OrderedDict[str, Any]) -> None: ...
|
| 159 |
+
def apply_defaults(self) -> None: ...
|
| 160 |
+
|
| 161 |
+
#
|
| 162 |
+
# Classes and functions
|
| 163 |
+
#
|
| 164 |
+
|
| 165 |
+
# TODO: The actual return type should be List[_ClassTreeItem] but mypy doesn't
|
| 166 |
+
# seem to be supporting this at the moment:
|
| 167 |
+
# _ClassTreeItem = Union[List[_ClassTreeItem], Tuple[type, Tuple[type, ...]]]
|
| 168 |
+
def getclasstree(classes: List[type], unique: bool = ...) -> Any: ...
|
| 169 |
+
|
| 170 |
+
class ArgSpec(NamedTuple):
|
| 171 |
+
args: List[str]
|
| 172 |
+
varargs: Optional[str]
|
| 173 |
+
keywords: Optional[str]
|
| 174 |
+
defaults: Tuple[Any, ...]
|
| 175 |
+
|
| 176 |
+
class Arguments(NamedTuple):
|
| 177 |
+
args: List[str]
|
| 178 |
+
varargs: Optional[str]
|
| 179 |
+
varkw: Optional[str]
|
| 180 |
+
|
| 181 |
+
def getargs(co: CodeType) -> Arguments: ...
|
| 182 |
+
def getargspec(func: object) -> ArgSpec: ...
|
| 183 |
+
|
| 184 |
+
class FullArgSpec(NamedTuple):
|
| 185 |
+
args: List[str]
|
| 186 |
+
varargs: Optional[str]
|
| 187 |
+
varkw: Optional[str]
|
| 188 |
+
defaults: Optional[Tuple[Any, ...]]
|
| 189 |
+
kwonlyargs: List[str]
|
| 190 |
+
kwonlydefaults: Optional[Dict[str, Any]]
|
| 191 |
+
annotations: Dict[str, Any]
|
| 192 |
+
|
| 193 |
+
def getfullargspec(func: object) -> FullArgSpec: ...
|
| 194 |
+
|
| 195 |
+
class ArgInfo(NamedTuple):
|
| 196 |
+
args: List[str]
|
| 197 |
+
varargs: Optional[str]
|
| 198 |
+
keywords: Optional[str]
|
| 199 |
+
locals: Dict[str, Any]
|
| 200 |
+
|
| 201 |
+
def getargvalues(frame: FrameType) -> ArgInfo: ...
|
| 202 |
+
def formatannotation(annotation: object, base_module: Optional[str] = ...) -> str: ...
|
| 203 |
+
def formatannotationrelativeto(object: object) -> Callable[[object], str]: ...
|
| 204 |
+
def formatargspec(
|
| 205 |
+
args: List[str],
|
| 206 |
+
varargs: Optional[str] = ...,
|
| 207 |
+
varkw: Optional[str] = ...,
|
| 208 |
+
defaults: Optional[Tuple[Any, ...]] = ...,
|
| 209 |
+
kwonlyargs: Optional[Sequence[str]] = ...,
|
| 210 |
+
kwonlydefaults: Optional[Dict[str, Any]] = ...,
|
| 211 |
+
annotations: Dict[str, Any] = ...,
|
| 212 |
+
formatarg: Callable[[str], str] = ...,
|
| 213 |
+
formatvarargs: Callable[[str], str] = ...,
|
| 214 |
+
formatvarkw: Callable[[str], str] = ...,
|
| 215 |
+
formatvalue: Callable[[Any], str] = ...,
|
| 216 |
+
formatreturns: Callable[[Any], str] = ...,
|
| 217 |
+
formatannotation: Callable[[Any], str] = ...,
|
| 218 |
+
) -> str: ...
|
| 219 |
+
def formatargvalues(
|
| 220 |
+
args: List[str],
|
| 221 |
+
varargs: Optional[str],
|
| 222 |
+
varkw: Optional[str],
|
| 223 |
+
locals: Optional[Dict[str, Any]],
|
| 224 |
+
formatarg: Optional[Callable[[str], str]] = ...,
|
| 225 |
+
formatvarargs: Optional[Callable[[str], str]] = ...,
|
| 226 |
+
formatvarkw: Optional[Callable[[str], str]] = ...,
|
| 227 |
+
formatvalue: Optional[Callable[[Any], str]] = ...,
|
| 228 |
+
) -> str: ...
|
| 229 |
+
def getmro(cls: type) -> Tuple[type, ...]: ...
|
| 230 |
+
def getcallargs(__func: Callable[..., Any], *args: Any, **kwds: Any) -> Dict[str, Any]: ...
|
| 231 |
+
|
| 232 |
+
class ClosureVars(NamedTuple):
|
| 233 |
+
nonlocals: Mapping[str, Any]
|
| 234 |
+
globals: Mapping[str, Any]
|
| 235 |
+
builtins: Mapping[str, Any]
|
| 236 |
+
unbound: AbstractSet[str]
|
| 237 |
+
|
| 238 |
+
def getclosurevars(func: Callable[..., Any]) -> ClosureVars: ...
|
| 239 |
+
def unwrap(func: Callable[..., Any], *, stop: Optional[Callable[[Any], Any]] = ...) -> Any: ...
|
| 240 |
+
|
| 241 |
+
#
|
| 242 |
+
# The interpreter stack
|
| 243 |
+
#
|
| 244 |
+
|
| 245 |
+
class Traceback(NamedTuple):
|
| 246 |
+
filename: str
|
| 247 |
+
lineno: int
|
| 248 |
+
function: str
|
| 249 |
+
code_context: Optional[List[str]]
|
| 250 |
+
index: Optional[int] # type: ignore
|
| 251 |
+
|
| 252 |
+
class FrameInfo(NamedTuple):
|
| 253 |
+
frame: FrameType
|
| 254 |
+
filename: str
|
| 255 |
+
lineno: int
|
| 256 |
+
function: str
|
| 257 |
+
code_context: Optional[List[str]]
|
| 258 |
+
index: Optional[int] # type: ignore
|
| 259 |
+
|
| 260 |
+
def getframeinfo(frame: Union[FrameType, TracebackType], context: int = ...) -> Traceback: ...
|
| 261 |
+
def getouterframes(frame: Any, context: int = ...) -> List[FrameInfo]: ...
|
| 262 |
+
def getinnerframes(tb: TracebackType, context: int = ...) -> List[FrameInfo]: ...
|
| 263 |
+
def getlineno(frame: FrameType) -> int: ...
|
| 264 |
+
def currentframe() -> Optional[FrameType]: ...
|
| 265 |
+
def stack(context: int = ...) -> List[FrameInfo]: ...
|
| 266 |
+
def trace(context: int = ...) -> List[FrameInfo]: ...
|
| 267 |
+
|
| 268 |
+
#
|
| 269 |
+
# Fetching attributes statically
|
| 270 |
+
#
|
| 271 |
+
|
| 272 |
+
def getattr_static(obj: object, attr: str, default: Optional[Any] = ...) -> Any: ...
|
| 273 |
+
|
| 274 |
+
#
|
| 275 |
+
# Current State of Generators and Coroutines
|
| 276 |
+
#
|
| 277 |
+
|
| 278 |
+
# TODO In the next two blocks of code, can we be more specific regarding the
|
| 279 |
+
# type of the "enums"?
|
| 280 |
+
|
| 281 |
+
GEN_CREATED: str
|
| 282 |
+
GEN_RUNNING: str
|
| 283 |
+
GEN_SUSPENDED: str
|
| 284 |
+
GEN_CLOSED: str
|
| 285 |
+
|
| 286 |
+
def getgeneratorstate(generator: Generator[Any, Any, Any]) -> str: ...
|
| 287 |
+
|
| 288 |
+
CORO_CREATED: str
|
| 289 |
+
CORO_RUNNING: str
|
| 290 |
+
CORO_SUSPENDED: str
|
| 291 |
+
CORO_CLOSED: str
|
| 292 |
+
# TODO can we be more specific than "object"?
|
| 293 |
+
def getcoroutinestate(coroutine: object) -> str: ...
|
| 294 |
+
def getgeneratorlocals(generator: Generator[Any, Any, Any]) -> Dict[str, Any]: ...
|
| 295 |
+
|
| 296 |
+
# TODO can we be more specific than "object"?
|
| 297 |
+
def getcoroutinelocals(coroutine: object) -> Dict[str, Any]: ...
|
| 298 |
+
|
| 299 |
+
# Create private type alias to avoid conflict with symbol of same
|
| 300 |
+
# name created in Attribute class.
|
| 301 |
+
_Object = object
|
| 302 |
+
|
| 303 |
+
class Attribute(NamedTuple):
|
| 304 |
+
name: str
|
| 305 |
+
kind: str
|
| 306 |
+
defining_class: type
|
| 307 |
+
object: _Object
|
| 308 |
+
|
| 309 |
+
def classify_class_attrs(cls: type) -> List[Attribute]: ...
|
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/3/ipaddress.pyi
ADDED
|
@@ -0,0 +1,152 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import sys
|
| 2 |
+
from typing import Any, Container, Generic, Iterable, Iterator, Optional, SupportsInt, Tuple, TypeVar, overload
|
| 3 |
+
|
| 4 |
+
# Undocumented length constants
|
| 5 |
+
IPV4LENGTH: int
|
| 6 |
+
IPV6LENGTH: int
|
| 7 |
+
|
| 8 |
+
_A = TypeVar("_A", IPv4Address, IPv6Address)
|
| 9 |
+
_N = TypeVar("_N", IPv4Network, IPv6Network)
|
| 10 |
+
_T = TypeVar("_T")
|
| 11 |
+
|
| 12 |
+
def ip_address(address: object) -> Any: ... # morally Union[IPv4Address, IPv6Address]
|
| 13 |
+
def ip_network(address: object, strict: bool = ...) -> Any: ... # morally Union[IPv4Network, IPv6Network]
|
| 14 |
+
def ip_interface(address: object) -> Any: ... # morally Union[IPv4Interface, IPv6Interface]
|
| 15 |
+
|
| 16 |
+
class _IPAddressBase:
|
| 17 |
+
def __eq__(self, other: Any) -> bool: ...
|
| 18 |
+
def __ge__(self: _T, other: _T) -> bool: ...
|
| 19 |
+
def __gt__(self: _T, other: _T) -> bool: ...
|
| 20 |
+
def __le__(self: _T, other: _T) -> bool: ...
|
| 21 |
+
def __lt__(self: _T, other: _T) -> bool: ...
|
| 22 |
+
def __ne__(self, other: Any) -> bool: ...
|
| 23 |
+
@property
|
| 24 |
+
def compressed(self) -> str: ...
|
| 25 |
+
@property
|
| 26 |
+
def exploded(self) -> str: ...
|
| 27 |
+
@property
|
| 28 |
+
def reverse_pointer(self) -> str: ...
|
| 29 |
+
@property
|
| 30 |
+
def version(self) -> int: ...
|
| 31 |
+
|
| 32 |
+
class _BaseAddress(_IPAddressBase, SupportsInt):
|
| 33 |
+
def __init__(self, address: object) -> None: ...
|
| 34 |
+
def __add__(self: _T, other: int) -> _T: ...
|
| 35 |
+
def __hash__(self) -> int: ...
|
| 36 |
+
def __int__(self) -> int: ...
|
| 37 |
+
def __sub__(self: _T, other: int) -> _T: ...
|
| 38 |
+
@property
|
| 39 |
+
def is_global(self) -> bool: ...
|
| 40 |
+
@property
|
| 41 |
+
def is_link_local(self) -> bool: ...
|
| 42 |
+
@property
|
| 43 |
+
def is_loopback(self) -> bool: ...
|
| 44 |
+
@property
|
| 45 |
+
def is_multicast(self) -> bool: ...
|
| 46 |
+
@property
|
| 47 |
+
def is_private(self) -> bool: ...
|
| 48 |
+
@property
|
| 49 |
+
def is_reserved(self) -> bool: ...
|
| 50 |
+
@property
|
| 51 |
+
def is_unspecified(self) -> bool: ...
|
| 52 |
+
@property
|
| 53 |
+
def max_prefixlen(self) -> int: ...
|
| 54 |
+
@property
|
| 55 |
+
def packed(self) -> bytes: ...
|
| 56 |
+
|
| 57 |
+
class _BaseNetwork(_IPAddressBase, Container[_A], Iterable[_A], Generic[_A]):
|
| 58 |
+
network_address: _A
|
| 59 |
+
netmask: _A
|
| 60 |
+
def __init__(self, address: object, strict: bool = ...) -> None: ...
|
| 61 |
+
def __contains__(self, other: Any) -> bool: ...
|
| 62 |
+
def __getitem__(self, n: int) -> _A: ...
|
| 63 |
+
def __iter__(self) -> Iterator[_A]: ...
|
| 64 |
+
def address_exclude(self: _T, other: _T) -> Iterator[_T]: ...
|
| 65 |
+
@property
|
| 66 |
+
def broadcast_address(self) -> _A: ...
|
| 67 |
+
def compare_networks(self: _T, other: _T) -> int: ...
|
| 68 |
+
def hosts(self) -> Iterator[_A]: ...
|
| 69 |
+
@property
|
| 70 |
+
def is_global(self) -> bool: ...
|
| 71 |
+
@property
|
| 72 |
+
def is_link_local(self) -> bool: ...
|
| 73 |
+
@property
|
| 74 |
+
def is_loopback(self) -> bool: ...
|
| 75 |
+
@property
|
| 76 |
+
def is_multicast(self) -> bool: ...
|
| 77 |
+
@property
|
| 78 |
+
def is_private(self) -> bool: ...
|
| 79 |
+
@property
|
| 80 |
+
def is_reserved(self) -> bool: ...
|
| 81 |
+
@property
|
| 82 |
+
def is_unspecified(self) -> bool: ...
|
| 83 |
+
@property
|
| 84 |
+
def max_prefixlen(self) -> int: ...
|
| 85 |
+
@property
|
| 86 |
+
def num_addresses(self) -> int: ...
|
| 87 |
+
def overlaps(self, other: _BaseNetwork[_A]) -> bool: ...
|
| 88 |
+
@property
|
| 89 |
+
def prefixlen(self) -> int: ...
|
| 90 |
+
if sys.version_info >= (3, 7):
|
| 91 |
+
def subnet_of(self: _T, other: _T) -> bool: ...
|
| 92 |
+
def supernet_of(self: _T, other: _T) -> bool: ...
|
| 93 |
+
def subnets(self: _T, prefixlen_diff: int = ..., new_prefix: Optional[int] = ...) -> Iterator[_T]: ...
|
| 94 |
+
def supernet(self: _T, prefixlen_diff: int = ..., new_prefix: Optional[int] = ...) -> _T: ...
|
| 95 |
+
@property
|
| 96 |
+
def with_hostmask(self) -> str: ...
|
| 97 |
+
@property
|
| 98 |
+
def with_netmask(self) -> str: ...
|
| 99 |
+
@property
|
| 100 |
+
def with_prefixlen(self) -> str: ...
|
| 101 |
+
@property
|
| 102 |
+
def hostmask(self) -> _A: ...
|
| 103 |
+
|
| 104 |
+
class _BaseInterface(_BaseAddress, Generic[_A, _N]):
|
| 105 |
+
hostmask: _A
|
| 106 |
+
netmask: _A
|
| 107 |
+
network: _N
|
| 108 |
+
@property
|
| 109 |
+
def ip(self) -> _A: ...
|
| 110 |
+
@property
|
| 111 |
+
def with_hostmask(self) -> str: ...
|
| 112 |
+
@property
|
| 113 |
+
def with_netmask(self) -> str: ...
|
| 114 |
+
@property
|
| 115 |
+
def with_prefixlen(self) -> str: ...
|
| 116 |
+
|
| 117 |
+
class IPv4Address(_BaseAddress): ...
|
| 118 |
+
class IPv4Network(_BaseNetwork[IPv4Address]): ...
|
| 119 |
+
class IPv4Interface(IPv4Address, _BaseInterface[IPv4Address, IPv4Network]): ...
|
| 120 |
+
|
| 121 |
+
class IPv6Address(_BaseAddress):
|
| 122 |
+
@property
|
| 123 |
+
def ipv4_mapped(self) -> Optional[IPv4Address]: ...
|
| 124 |
+
@property
|
| 125 |
+
def is_site_local(self) -> bool: ...
|
| 126 |
+
@property
|
| 127 |
+
def sixtofour(self) -> Optional[IPv4Address]: ...
|
| 128 |
+
@property
|
| 129 |
+
def teredo(self) -> Optional[Tuple[IPv4Address, IPv4Address]]: ...
|
| 130 |
+
|
| 131 |
+
class IPv6Network(_BaseNetwork[IPv6Address]):
|
| 132 |
+
@property
|
| 133 |
+
def is_site_local(self) -> bool: ...
|
| 134 |
+
|
| 135 |
+
class IPv6Interface(IPv6Address, _BaseInterface[IPv6Address, IPv6Network]): ...
|
| 136 |
+
|
| 137 |
+
def v4_int_to_packed(address: int) -> bytes: ...
|
| 138 |
+
def v6_int_to_packed(address: int) -> bytes: ...
|
| 139 |
+
@overload
|
| 140 |
+
def summarize_address_range(first: IPv4Address, last: IPv4Address) -> Iterator[IPv4Network]: ...
|
| 141 |
+
@overload
|
| 142 |
+
def summarize_address_range(first: IPv6Address, last: IPv6Address) -> Iterator[IPv6Network]: ...
|
| 143 |
+
def collapse_addresses(addresses: Iterable[_N]) -> Iterator[_N]: ...
|
| 144 |
+
@overload
|
| 145 |
+
def get_mixed_type_key(obj: _A) -> Tuple[int, _A]: ...
|
| 146 |
+
@overload
|
| 147 |
+
def get_mixed_type_key(obj: IPv4Network) -> Tuple[int, IPv4Address, IPv4Address]: ...
|
| 148 |
+
@overload
|
| 149 |
+
def get_mixed_type_key(obj: IPv6Network) -> Tuple[int, IPv6Address, IPv6Address]: ...
|
| 150 |
+
|
| 151 |
+
class AddressValueError(ValueError): ...
|
| 152 |
+
class NetmaskValueError(ValueError): ...
|
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/3/itertools.pyi
ADDED
|
@@ -0,0 +1,109 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import sys
|
| 2 |
+
from typing import Any, Callable, Generic, Iterable, Iterator, Optional, Tuple, TypeVar, overload
|
| 3 |
+
from typing_extensions import Literal
|
| 4 |
+
|
| 5 |
+
_T = TypeVar("_T")
|
| 6 |
+
_S = TypeVar("_S")
|
| 7 |
+
_N = TypeVar("_N", int, float)
|
| 8 |
+
Predicate = Callable[[_T], object]
|
| 9 |
+
|
| 10 |
+
def count(start: _N = ..., step: _N = ...) -> Iterator[_N]: ... # more general types?
|
| 11 |
+
|
| 12 |
+
class cycle(Iterator[_T], Generic[_T]):
|
| 13 |
+
def __init__(self, iterable: Iterable[_T]) -> None: ...
|
| 14 |
+
def __next__(self) -> _T: ...
|
| 15 |
+
def __iter__(self) -> Iterator[_T]: ...
|
| 16 |
+
|
| 17 |
+
@overload
|
| 18 |
+
def repeat(object: _T) -> Iterator[_T]: ...
|
| 19 |
+
@overload
|
| 20 |
+
def repeat(object: _T, times: int) -> Iterator[_T]: ...
|
| 21 |
+
|
| 22 |
+
if sys.version_info >= (3, 8):
|
| 23 |
+
@overload
|
| 24 |
+
def accumulate(iterable: Iterable[_T], func: Callable[[_T, _T], _T] = ...) -> Iterator[_T]: ...
|
| 25 |
+
@overload
|
| 26 |
+
def accumulate(iterable: Iterable[_T], func: Callable[[_S, _T], _S], initial: Optional[_S]) -> Iterator[_S]: ...
|
| 27 |
+
|
| 28 |
+
else:
|
| 29 |
+
def accumulate(iterable: Iterable[_T], func: Callable[[_T, _T], _T] = ...) -> Iterator[_T]: ...
|
| 30 |
+
|
| 31 |
+
class chain(Iterator[_T], Generic[_T]):
|
| 32 |
+
def __init__(self, *iterables: Iterable[_T]) -> None: ...
|
| 33 |
+
def __next__(self) -> _T: ...
|
| 34 |
+
def __iter__(self) -> Iterator[_T]: ...
|
| 35 |
+
@staticmethod
|
| 36 |
+
def from_iterable(iterable: Iterable[Iterable[_S]]) -> Iterator[_S]: ...
|
| 37 |
+
|
| 38 |
+
def compress(data: Iterable[_T], selectors: Iterable[Any]) -> Iterator[_T]: ...
|
| 39 |
+
def dropwhile(predicate: Predicate[_T], iterable: Iterable[_T]) -> Iterator[_T]: ...
|
| 40 |
+
def filterfalse(predicate: Optional[Predicate[_T]], iterable: Iterable[_T]) -> Iterator[_T]: ...
|
| 41 |
+
@overload
|
| 42 |
+
def groupby(iterable: Iterable[_T], key: None = ...) -> Iterator[Tuple[_T, Iterator[_T]]]: ...
|
| 43 |
+
@overload
|
| 44 |
+
def groupby(iterable: Iterable[_T], key: Callable[[_T], _S]) -> Iterator[Tuple[_S, Iterator[_T]]]: ...
|
| 45 |
+
@overload
|
| 46 |
+
def islice(iterable: Iterable[_T], stop: Optional[int]) -> Iterator[_T]: ...
|
| 47 |
+
@overload
|
| 48 |
+
def islice(iterable: Iterable[_T], start: Optional[int], stop: Optional[int], step: Optional[int] = ...) -> Iterator[_T]: ...
|
| 49 |
+
def starmap(func: Callable[..., _S], iterable: Iterable[Iterable[Any]]) -> Iterator[_S]: ...
|
| 50 |
+
def takewhile(predicate: Predicate[_T], iterable: Iterable[_T]) -> Iterator[_T]: ...
|
| 51 |
+
def tee(iterable: Iterable[_T], n: int = ...) -> Tuple[Iterator[_T], ...]: ...
|
| 52 |
+
def zip_longest(*p: Iterable[Any], fillvalue: Any = ...) -> Iterator[Any]: ...
|
| 53 |
+
|
| 54 |
+
_T1 = TypeVar("_T1")
|
| 55 |
+
_T2 = TypeVar("_T2")
|
| 56 |
+
_T3 = TypeVar("_T3")
|
| 57 |
+
_T4 = TypeVar("_T4")
|
| 58 |
+
_T5 = TypeVar("_T5")
|
| 59 |
+
_T6 = TypeVar("_T6")
|
| 60 |
+
@overload
|
| 61 |
+
def product(iter1: Iterable[_T1]) -> Iterator[Tuple[_T1]]: ...
|
| 62 |
+
@overload
|
| 63 |
+
def product(iter1: Iterable[_T1], iter2: Iterable[_T2]) -> Iterator[Tuple[_T1, _T2]]: ...
|
| 64 |
+
@overload
|
| 65 |
+
def product(iter1: Iterable[_T1], iter2: Iterable[_T2], iter3: Iterable[_T3]) -> Iterator[Tuple[_T1, _T2, _T3]]: ...
|
| 66 |
+
@overload
|
| 67 |
+
def product(
|
| 68 |
+
iter1: Iterable[_T1], iter2: Iterable[_T2], iter3: Iterable[_T3], iter4: Iterable[_T4]
|
| 69 |
+
) -> Iterator[Tuple[_T1, _T2, _T3, _T4]]: ...
|
| 70 |
+
@overload
|
| 71 |
+
def product(
|
| 72 |
+
iter1: Iterable[_T1], iter2: Iterable[_T2], iter3: Iterable[_T3], iter4: Iterable[_T4], iter5: Iterable[_T5]
|
| 73 |
+
) -> Iterator[Tuple[_T1, _T2, _T3, _T4, _T5]]: ...
|
| 74 |
+
@overload
|
| 75 |
+
def product(
|
| 76 |
+
iter1: Iterable[_T1],
|
| 77 |
+
iter2: Iterable[_T2],
|
| 78 |
+
iter3: Iterable[_T3],
|
| 79 |
+
iter4: Iterable[_T4],
|
| 80 |
+
iter5: Iterable[_T5],
|
| 81 |
+
iter6: Iterable[_T6],
|
| 82 |
+
) -> Iterator[Tuple[_T1, _T2, _T3, _T4, _T5, _T6]]: ...
|
| 83 |
+
@overload
|
| 84 |
+
def product(
|
| 85 |
+
iter1: Iterable[Any],
|
| 86 |
+
iter2: Iterable[Any],
|
| 87 |
+
iter3: Iterable[Any],
|
| 88 |
+
iter4: Iterable[Any],
|
| 89 |
+
iter5: Iterable[Any],
|
| 90 |
+
iter6: Iterable[Any],
|
| 91 |
+
iter7: Iterable[Any],
|
| 92 |
+
*iterables: Iterable[Any],
|
| 93 |
+
) -> Iterator[Tuple[Any, ...]]: ...
|
| 94 |
+
@overload
|
| 95 |
+
def product(*iterables: Iterable[_T1], repeat: int) -> Iterator[Tuple[_T1, ...]]: ...
|
| 96 |
+
@overload
|
| 97 |
+
def product(*iterables: Iterable[Any], repeat: int = ...) -> Iterator[Tuple[Any, ...]]: ...
|
| 98 |
+
def permutations(iterable: Iterable[_T], r: Optional[int] = ...) -> Iterator[Tuple[_T, ...]]: ...
|
| 99 |
+
@overload
|
| 100 |
+
def combinations(iterable: Iterable[_T], r: Literal[2]) -> Iterator[Tuple[_T, _T]]: ...
|
| 101 |
+
@overload
|
| 102 |
+
def combinations(iterable: Iterable[_T], r: Literal[3]) -> Iterator[Tuple[_T, _T, _T]]: ...
|
| 103 |
+
@overload
|
| 104 |
+
def combinations(iterable: Iterable[_T], r: Literal[4]) -> Iterator[Tuple[_T, _T, _T, _T]]: ...
|
| 105 |
+
@overload
|
| 106 |
+
def combinations(iterable: Iterable[_T], r: Literal[5]) -> Iterator[Tuple[_T, _T, _T, _T, _T]]: ...
|
| 107 |
+
@overload
|
| 108 |
+
def combinations(iterable: Iterable[_T], r: int) -> Iterator[Tuple[_T, ...]]: ...
|
| 109 |
+
def combinations_with_replacement(iterable: Iterable[_T], r: int) -> Iterator[Tuple[_T, ...]]: ...
|
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/3/nntplib.pyi
ADDED
|
@@ -0,0 +1,113 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import datetime
|
| 2 |
+
import socket
|
| 3 |
+
import ssl
|
| 4 |
+
import sys
|
| 5 |
+
from typing import IO, Any, Dict, Iterable, List, NamedTuple, Optional, Tuple, TypeVar, Union
|
| 6 |
+
|
| 7 |
+
_SelfT = TypeVar("_SelfT", bound=_NNTPBase)
|
| 8 |
+
_File = Union[IO[bytes], bytes, str, None]
|
| 9 |
+
|
| 10 |
+
class NNTPError(Exception):
|
| 11 |
+
response: str
|
| 12 |
+
|
| 13 |
+
class NNTPReplyError(NNTPError): ...
|
| 14 |
+
class NNTPTemporaryError(NNTPError): ...
|
| 15 |
+
class NNTPPermanentError(NNTPError): ...
|
| 16 |
+
class NNTPProtocolError(NNTPError): ...
|
| 17 |
+
class NNTPDataError(NNTPError): ...
|
| 18 |
+
|
| 19 |
+
NNTP_PORT: int
|
| 20 |
+
NNTP_SSL_PORT: int
|
| 21 |
+
|
| 22 |
+
class GroupInfo(NamedTuple):
|
| 23 |
+
group: str
|
| 24 |
+
last: str
|
| 25 |
+
first: str
|
| 26 |
+
flag: str
|
| 27 |
+
|
| 28 |
+
class ArticleInfo(NamedTuple):
|
| 29 |
+
number: int
|
| 30 |
+
message_id: str
|
| 31 |
+
lines: List[bytes]
|
| 32 |
+
|
| 33 |
+
def decode_header(header_str: str) -> str: ...
|
| 34 |
+
|
| 35 |
+
class _NNTPBase:
|
| 36 |
+
encoding: str
|
| 37 |
+
errors: str
|
| 38 |
+
|
| 39 |
+
host: str
|
| 40 |
+
file: IO[bytes]
|
| 41 |
+
debugging: int
|
| 42 |
+
welcome: str
|
| 43 |
+
readermode_afterauth: bool
|
| 44 |
+
tls_on: bool
|
| 45 |
+
authenticated: bool
|
| 46 |
+
nntp_implementation: str
|
| 47 |
+
nntp_version: int
|
| 48 |
+
def __init__(self, file: IO[bytes], host: str, readermode: Optional[bool] = ..., timeout: float = ...) -> None: ...
|
| 49 |
+
def __enter__(self: _SelfT) -> _SelfT: ...
|
| 50 |
+
def __exit__(self, *args: Any) -> None: ...
|
| 51 |
+
def getwelcome(self) -> str: ...
|
| 52 |
+
def getcapabilities(self) -> Dict[str, List[str]]: ...
|
| 53 |
+
def set_debuglevel(self, level: int) -> None: ...
|
| 54 |
+
def debug(self, level: int) -> None: ...
|
| 55 |
+
def capabilities(self) -> Tuple[str, Dict[str, List[str]]]: ...
|
| 56 |
+
def newgroups(self, date: Union[datetime.date, datetime.datetime], *, file: _File = ...) -> Tuple[str, List[str]]: ...
|
| 57 |
+
def newnews(
|
| 58 |
+
self, group: str, date: Union[datetime.date, datetime.datetime], *, file: _File = ...
|
| 59 |
+
) -> Tuple[str, List[str]]: ...
|
| 60 |
+
def list(self, group_pattern: Optional[str] = ..., *, file: _File = ...) -> Tuple[str, List[str]]: ...
|
| 61 |
+
def description(self, group: str) -> str: ...
|
| 62 |
+
def descriptions(self, group_pattern: str) -> Tuple[str, Dict[str, str]]: ...
|
| 63 |
+
def group(self, name: str) -> Tuple[str, int, int, int, str]: ...
|
| 64 |
+
def help(self, *, file: _File = ...) -> Tuple[str, List[str]]: ...
|
| 65 |
+
def stat(self, message_spec: Any = ...) -> Tuple[str, int, str]: ...
|
| 66 |
+
def next(self) -> Tuple[str, int, str]: ...
|
| 67 |
+
def last(self) -> Tuple[str, int, str]: ...
|
| 68 |
+
def head(self, message_spec: Any = ..., *, file: _File = ...) -> Tuple[str, ArticleInfo]: ...
|
| 69 |
+
def body(self, message_spec: Any = ..., *, file: _File = ...) -> Tuple[str, ArticleInfo]: ...
|
| 70 |
+
def article(self, message_spec: Any = ..., *, file: _File = ...) -> Tuple[str, ArticleInfo]: ...
|
| 71 |
+
def slave(self) -> str: ...
|
| 72 |
+
def xhdr(self, hdr: str, str: Any, *, file: _File = ...) -> Tuple[str, List[str]]: ...
|
| 73 |
+
def xover(self, start: int, end: int, *, file: _File = ...) -> Tuple[str, List[Tuple[int, Dict[str, str]]]]: ...
|
| 74 |
+
def over(
|
| 75 |
+
self, message_spec: Union[None, str, List[Any], Tuple[Any, ...]], *, file: _File = ...
|
| 76 |
+
) -> Tuple[str, List[Tuple[int, Dict[str, str]]]]: ...
|
| 77 |
+
if sys.version_info < (3, 9):
|
| 78 |
+
def xgtitle(self, group: str, *, file: _File = ...) -> Tuple[str, List[Tuple[str, str]]]: ...
|
| 79 |
+
def xpath(self, id: Any) -> Tuple[str, str]: ...
|
| 80 |
+
def date(self) -> Tuple[str, datetime.datetime]: ...
|
| 81 |
+
def post(self, data: Union[bytes, Iterable[bytes]]) -> str: ...
|
| 82 |
+
def ihave(self, message_id: Any, data: Union[bytes, Iterable[bytes]]) -> str: ...
|
| 83 |
+
def quit(self) -> str: ...
|
| 84 |
+
def login(self, user: Optional[str] = ..., password: Optional[str] = ..., usenetrc: bool = ...) -> None: ...
|
| 85 |
+
def starttls(self, ssl_context: Optional[ssl.SSLContext] = ...) -> None: ...
|
| 86 |
+
|
| 87 |
+
class NNTP(_NNTPBase):
|
| 88 |
+
port: int
|
| 89 |
+
sock: socket.socket
|
| 90 |
+
def __init__(
|
| 91 |
+
self,
|
| 92 |
+
host: str,
|
| 93 |
+
port: int = ...,
|
| 94 |
+
user: Optional[str] = ...,
|
| 95 |
+
password: Optional[str] = ...,
|
| 96 |
+
readermode: Optional[bool] = ...,
|
| 97 |
+
usenetrc: bool = ...,
|
| 98 |
+
timeout: float = ...,
|
| 99 |
+
) -> None: ...
|
| 100 |
+
|
| 101 |
+
class NNTP_SSL(_NNTPBase):
|
| 102 |
+
sock: socket.socket
|
| 103 |
+
def __init__(
|
| 104 |
+
self,
|
| 105 |
+
host: str,
|
| 106 |
+
port: int = ...,
|
| 107 |
+
user: Optional[str] = ...,
|
| 108 |
+
password: Optional[str] = ...,
|
| 109 |
+
ssl_context: Optional[ssl.SSLContext] = ...,
|
| 110 |
+
readermode: Optional[bool] = ...,
|
| 111 |
+
usenetrc: bool = ...,
|
| 112 |
+
timeout: float = ...,
|
| 113 |
+
) -> None: ...
|
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/3/pathlib.pyi
ADDED
|
@@ -0,0 +1,178 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import os
|
| 2 |
+
import sys
|
| 3 |
+
from _typeshed import OpenBinaryMode, OpenBinaryModeReading, OpenBinaryModeUpdating, OpenBinaryModeWriting, OpenTextMode
|
| 4 |
+
from io import BufferedRandom, BufferedReader, BufferedWriter, FileIO, TextIOWrapper
|
| 5 |
+
from types import TracebackType
|
| 6 |
+
from typing import IO, Any, BinaryIO, Generator, List, Optional, Sequence, Tuple, Type, TypeVar, Union, overload
|
| 7 |
+
from typing_extensions import Literal
|
| 8 |
+
|
| 9 |
+
if sys.version_info >= (3, 9):
|
| 10 |
+
from types import GenericAlias
|
| 11 |
+
|
| 12 |
+
_P = TypeVar("_P", bound=PurePath)
|
| 13 |
+
|
| 14 |
+
if sys.version_info >= (3, 6):
|
| 15 |
+
_PurePathBase = os.PathLike[str]
|
| 16 |
+
_PathLike = os.PathLike[str]
|
| 17 |
+
else:
|
| 18 |
+
_PurePathBase = object
|
| 19 |
+
_PathLike = PurePath
|
| 20 |
+
|
| 21 |
+
class PurePath(_PurePathBase):
|
| 22 |
+
parts: Tuple[str, ...]
|
| 23 |
+
drive: str
|
| 24 |
+
root: str
|
| 25 |
+
anchor: str
|
| 26 |
+
name: str
|
| 27 |
+
suffix: str
|
| 28 |
+
suffixes: List[str]
|
| 29 |
+
stem: str
|
| 30 |
+
def __new__(cls: Type[_P], *args: Union[str, _PathLike]) -> _P: ...
|
| 31 |
+
def __hash__(self) -> int: ...
|
| 32 |
+
def __lt__(self, other: PurePath) -> bool: ...
|
| 33 |
+
def __le__(self, other: PurePath) -> bool: ...
|
| 34 |
+
def __gt__(self, other: PurePath) -> bool: ...
|
| 35 |
+
def __ge__(self, other: PurePath) -> bool: ...
|
| 36 |
+
def __truediv__(self: _P, key: Union[str, _PathLike]) -> _P: ...
|
| 37 |
+
def __rtruediv__(self: _P, key: Union[str, _PathLike]) -> _P: ...
|
| 38 |
+
def __bytes__(self) -> bytes: ...
|
| 39 |
+
def as_posix(self) -> str: ...
|
| 40 |
+
def as_uri(self) -> str: ...
|
| 41 |
+
def is_absolute(self) -> bool: ...
|
| 42 |
+
def is_reserved(self) -> bool: ...
|
| 43 |
+
if sys.version_info >= (3, 9):
|
| 44 |
+
def is_relative_to(self, *other: Union[str, os.PathLike[str]]) -> bool: ...
|
| 45 |
+
def match(self, path_pattern: str) -> bool: ...
|
| 46 |
+
def relative_to(self: _P, *other: Union[str, _PathLike]) -> _P: ...
|
| 47 |
+
def with_name(self: _P, name: str) -> _P: ...
|
| 48 |
+
if sys.version_info >= (3, 9):
|
| 49 |
+
def with_stem(self: _P, stem: str) -> _P: ...
|
| 50 |
+
def with_suffix(self: _P, suffix: str) -> _P: ...
|
| 51 |
+
def joinpath(self: _P, *other: Union[str, _PathLike]) -> _P: ...
|
| 52 |
+
@property
|
| 53 |
+
def parents(self: _P) -> Sequence[_P]: ...
|
| 54 |
+
@property
|
| 55 |
+
def parent(self: _P) -> _P: ...
|
| 56 |
+
if sys.version_info >= (3, 9):
|
| 57 |
+
def __class_getitem__(cls, type: Any) -> GenericAlias: ...
|
| 58 |
+
|
| 59 |
+
class PurePosixPath(PurePath): ...
|
| 60 |
+
class PureWindowsPath(PurePath): ...
|
| 61 |
+
|
| 62 |
+
class Path(PurePath):
|
| 63 |
+
def __new__(cls: Type[_P], *args: Union[str, _PathLike], **kwargs: Any) -> _P: ...
|
| 64 |
+
def __enter__(self: _P) -> _P: ...
|
| 65 |
+
def __exit__(
|
| 66 |
+
self, exc_type: Optional[Type[BaseException]], exc_value: Optional[BaseException], traceback: Optional[TracebackType]
|
| 67 |
+
) -> Optional[bool]: ...
|
| 68 |
+
@classmethod
|
| 69 |
+
def cwd(cls: Type[_P]) -> _P: ...
|
| 70 |
+
def stat(self) -> os.stat_result: ...
|
| 71 |
+
def chmod(self, mode: int) -> None: ...
|
| 72 |
+
def exists(self) -> bool: ...
|
| 73 |
+
def glob(self: _P, pattern: str) -> Generator[_P, None, None]: ...
|
| 74 |
+
def group(self) -> str: ...
|
| 75 |
+
def is_dir(self) -> bool: ...
|
| 76 |
+
def is_file(self) -> bool: ...
|
| 77 |
+
if sys.version_info >= (3, 7):
|
| 78 |
+
def is_mount(self) -> bool: ...
|
| 79 |
+
def is_symlink(self) -> bool: ...
|
| 80 |
+
def is_socket(self) -> bool: ...
|
| 81 |
+
def is_fifo(self) -> bool: ...
|
| 82 |
+
def is_block_device(self) -> bool: ...
|
| 83 |
+
def is_char_device(self) -> bool: ...
|
| 84 |
+
def iterdir(self: _P) -> Generator[_P, None, None]: ...
|
| 85 |
+
def lchmod(self, mode: int) -> None: ...
|
| 86 |
+
def lstat(self) -> os.stat_result: ...
|
| 87 |
+
def mkdir(self, mode: int = ..., parents: bool = ..., exist_ok: bool = ...) -> None: ...
|
| 88 |
+
# Adapted from builtins.open
|
| 89 |
+
# Text mode: always returns a TextIOWrapper
|
| 90 |
+
@overload
|
| 91 |
+
def open(
|
| 92 |
+
self,
|
| 93 |
+
mode: OpenTextMode = ...,
|
| 94 |
+
buffering: int = ...,
|
| 95 |
+
encoding: Optional[str] = ...,
|
| 96 |
+
errors: Optional[str] = ...,
|
| 97 |
+
newline: Optional[str] = ...,
|
| 98 |
+
) -> TextIOWrapper: ...
|
| 99 |
+
# Unbuffered binary mode: returns a FileIO
|
| 100 |
+
@overload
|
| 101 |
+
def open(
|
| 102 |
+
self, mode: OpenBinaryMode, buffering: Literal[0], encoding: None = ..., errors: None = ..., newline: None = ...
|
| 103 |
+
) -> FileIO: ...
|
| 104 |
+
# Buffering is on: return BufferedRandom, BufferedReader, or BufferedWriter
|
| 105 |
+
@overload
|
| 106 |
+
def open(
|
| 107 |
+
self,
|
| 108 |
+
mode: OpenBinaryModeUpdating,
|
| 109 |
+
buffering: Literal[-1, 1] = ...,
|
| 110 |
+
encoding: None = ...,
|
| 111 |
+
errors: None = ...,
|
| 112 |
+
newline: None = ...,
|
| 113 |
+
) -> BufferedRandom: ...
|
| 114 |
+
@overload
|
| 115 |
+
def open(
|
| 116 |
+
self,
|
| 117 |
+
mode: OpenBinaryModeWriting,
|
| 118 |
+
buffering: Literal[-1, 1] = ...,
|
| 119 |
+
encoding: None = ...,
|
| 120 |
+
errors: None = ...,
|
| 121 |
+
newline: None = ...,
|
| 122 |
+
) -> BufferedWriter: ...
|
| 123 |
+
@overload
|
| 124 |
+
def open(
|
| 125 |
+
self,
|
| 126 |
+
mode: OpenBinaryModeReading,
|
| 127 |
+
buffering: Literal[-1, 1] = ...,
|
| 128 |
+
encoding: None = ...,
|
| 129 |
+
errors: None = ...,
|
| 130 |
+
newline: None = ...,
|
| 131 |
+
) -> BufferedReader: ...
|
| 132 |
+
# Buffering cannot be determined: fall back to BinaryIO
|
| 133 |
+
@overload
|
| 134 |
+
def open(
|
| 135 |
+
self, mode: OpenBinaryMode, buffering: int, encoding: None = ..., errors: None = ..., newline: None = ...
|
| 136 |
+
) -> BinaryIO: ...
|
| 137 |
+
# Fallback if mode is not specified
|
| 138 |
+
@overload
|
| 139 |
+
def open(
|
| 140 |
+
self,
|
| 141 |
+
mode: str,
|
| 142 |
+
buffering: int = ...,
|
| 143 |
+
encoding: Optional[str] = ...,
|
| 144 |
+
errors: Optional[str] = ...,
|
| 145 |
+
newline: Optional[str] = ...,
|
| 146 |
+
) -> IO[Any]: ...
|
| 147 |
+
def owner(self) -> str: ...
|
| 148 |
+
if sys.version_info >= (3, 9):
|
| 149 |
+
def readlink(self: _P) -> _P: ...
|
| 150 |
+
if sys.version_info >= (3, 8):
|
| 151 |
+
def rename(self: _P, target: Union[str, PurePath]) -> _P: ...
|
| 152 |
+
def replace(self: _P, target: Union[str, PurePath]) -> _P: ...
|
| 153 |
+
else:
|
| 154 |
+
def rename(self, target: Union[str, PurePath]) -> None: ...
|
| 155 |
+
def replace(self, target: Union[str, PurePath]) -> None: ...
|
| 156 |
+
def resolve(self: _P, strict: bool = ...) -> _P: ...
|
| 157 |
+
def rglob(self: _P, pattern: str) -> Generator[_P, None, None]: ...
|
| 158 |
+
def rmdir(self) -> None: ...
|
| 159 |
+
def symlink_to(self, target: Union[str, Path], target_is_directory: bool = ...) -> None: ...
|
| 160 |
+
def touch(self, mode: int = ..., exist_ok: bool = ...) -> None: ...
|
| 161 |
+
if sys.version_info >= (3, 8):
|
| 162 |
+
def unlink(self, missing_ok: bool = ...) -> None: ...
|
| 163 |
+
else:
|
| 164 |
+
def unlink(self) -> None: ...
|
| 165 |
+
@classmethod
|
| 166 |
+
def home(cls: Type[_P]) -> _P: ...
|
| 167 |
+
def absolute(self: _P) -> _P: ...
|
| 168 |
+
def expanduser(self: _P) -> _P: ...
|
| 169 |
+
def read_bytes(self) -> bytes: ...
|
| 170 |
+
def read_text(self, encoding: Optional[str] = ..., errors: Optional[str] = ...) -> str: ...
|
| 171 |
+
def samefile(self, other_path: Union[str, bytes, int, Path]) -> bool: ...
|
| 172 |
+
def write_bytes(self, data: bytes) -> int: ...
|
| 173 |
+
def write_text(self, data: str, encoding: Optional[str] = ..., errors: Optional[str] = ...) -> int: ...
|
| 174 |
+
if sys.version_info >= (3, 8):
|
| 175 |
+
def link_to(self, target: Union[str, bytes, os.PathLike[str]]) -> None: ...
|
| 176 |
+
|
| 177 |
+
class PosixPath(Path, PurePosixPath): ...
|
| 178 |
+
class WindowsPath(Path, PureWindowsPath): ...
|
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/3/pipes.pyi
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import os
|
| 2 |
+
|
| 3 |
+
class Template:
|
| 4 |
+
def __init__(self) -> None: ...
|
| 5 |
+
def reset(self) -> None: ...
|
| 6 |
+
def clone(self) -> Template: ...
|
| 7 |
+
def debug(self, flag: bool) -> None: ...
|
| 8 |
+
def append(self, cmd: str, kind: str) -> None: ...
|
| 9 |
+
def prepend(self, cmd: str, kind: str) -> None: ...
|
| 10 |
+
def open(self, file: str, rw: str) -> os._wrap_close: ...
|
| 11 |
+
def copy(self, file: str, rw: str) -> os._wrap_close: ...
|
| 12 |
+
|
| 13 |
+
# Not documented, but widely used.
|
| 14 |
+
# Documented as shlex.quote since 3.3.
|
| 15 |
+
def quote(s: str) -> str: ...
|
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/3/platform.pyi
ADDED
|
@@ -0,0 +1,66 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import sys
|
| 2 |
+
|
| 3 |
+
if sys.version_info < (3, 9):
|
| 4 |
+
import os
|
| 5 |
+
|
| 6 |
+
DEV_NULL = os.devnull
|
| 7 |
+
from typing import NamedTuple, Optional, Tuple
|
| 8 |
+
|
| 9 |
+
if sys.version_info >= (3, 8):
|
| 10 |
+
def libc_ver(
|
| 11 |
+
executable: Optional[str] = ..., lib: str = ..., version: str = ..., chunksize: int = ...
|
| 12 |
+
) -> Tuple[str, str]: ...
|
| 13 |
+
|
| 14 |
+
else:
|
| 15 |
+
def libc_ver(executable: str = ..., lib: str = ..., version: str = ..., chunksize: int = ...) -> Tuple[str, str]: ...
|
| 16 |
+
|
| 17 |
+
if sys.version_info < (3, 8):
|
| 18 |
+
def linux_distribution(
|
| 19 |
+
distname: str = ...,
|
| 20 |
+
version: str = ...,
|
| 21 |
+
id: str = ...,
|
| 22 |
+
supported_dists: Tuple[str, ...] = ...,
|
| 23 |
+
full_distribution_name: bool = ...,
|
| 24 |
+
) -> Tuple[str, str, str]: ...
|
| 25 |
+
def dist(
|
| 26 |
+
distname: str = ..., version: str = ..., id: str = ..., supported_dists: Tuple[str, ...] = ...
|
| 27 |
+
) -> Tuple[str, str, str]: ...
|
| 28 |
+
|
| 29 |
+
def win32_ver(release: str = ..., version: str = ..., csd: str = ..., ptype: str = ...) -> Tuple[str, str, str, str]: ...
|
| 30 |
+
|
| 31 |
+
if sys.version_info >= (3, 8):
|
| 32 |
+
def win32_edition() -> str: ...
|
| 33 |
+
def win32_is_iot() -> bool: ...
|
| 34 |
+
|
| 35 |
+
def mac_ver(
|
| 36 |
+
release: str = ..., versioninfo: Tuple[str, str, str] = ..., machine: str = ...
|
| 37 |
+
) -> Tuple[str, Tuple[str, str, str], str]: ...
|
| 38 |
+
def java_ver(
|
| 39 |
+
release: str = ..., vendor: str = ..., vminfo: Tuple[str, str, str] = ..., osinfo: Tuple[str, str, str] = ...
|
| 40 |
+
) -> Tuple[str, str, Tuple[str, str, str], Tuple[str, str, str]]: ...
|
| 41 |
+
def system_alias(system: str, release: str, version: str) -> Tuple[str, str, str]: ...
|
| 42 |
+
def architecture(executable: str = ..., bits: str = ..., linkage: str = ...) -> Tuple[str, str]: ...
|
| 43 |
+
|
| 44 |
+
class uname_result(NamedTuple):
|
| 45 |
+
system: str
|
| 46 |
+
node: str
|
| 47 |
+
release: str
|
| 48 |
+
version: str
|
| 49 |
+
machine: str
|
| 50 |
+
processor: str
|
| 51 |
+
|
| 52 |
+
def uname() -> uname_result: ...
|
| 53 |
+
def system() -> str: ...
|
| 54 |
+
def node() -> str: ...
|
| 55 |
+
def release() -> str: ...
|
| 56 |
+
def version() -> str: ...
|
| 57 |
+
def machine() -> str: ...
|
| 58 |
+
def processor() -> str: ...
|
| 59 |
+
def python_implementation() -> str: ...
|
| 60 |
+
def python_version() -> str: ...
|
| 61 |
+
def python_version_tuple() -> Tuple[str, str, str]: ...
|
| 62 |
+
def python_branch() -> str: ...
|
| 63 |
+
def python_revision() -> str: ...
|
| 64 |
+
def python_build() -> Tuple[str, str]: ...
|
| 65 |
+
def python_compiler() -> str: ...
|
| 66 |
+
def platform(aliased: bool = ..., terse: bool = ...) -> str: ...
|
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/3/posixpath.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/random.pyi
ADDED
|
@@ -0,0 +1,87 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import _random
|
| 2 |
+
import sys
|
| 3 |
+
from typing import AbstractSet, Any, Callable, Iterable, List, MutableSequence, Optional, Sequence, Tuple, TypeVar, Union
|
| 4 |
+
|
| 5 |
+
_T = TypeVar("_T")
|
| 6 |
+
|
| 7 |
+
class Random(_random.Random):
|
| 8 |
+
def __init__(self, x: Any = ...) -> None: ...
|
| 9 |
+
def seed(self, a: Any = ..., version: int = ...) -> None: ...
|
| 10 |
+
def getstate(self) -> Tuple[Any, ...]: ...
|
| 11 |
+
def setstate(self, state: Tuple[Any, ...]) -> None: ...
|
| 12 |
+
def getrandbits(self, __k: int) -> int: ...
|
| 13 |
+
def randrange(self, start: int, stop: Optional[int] = ..., step: int = ...) -> int: ...
|
| 14 |
+
def randint(self, a: int, b: int) -> int: ...
|
| 15 |
+
if sys.version_info >= (3, 9):
|
| 16 |
+
def randbytes(self, n: int) -> bytes: ...
|
| 17 |
+
def choice(self, seq: Sequence[_T]) -> _T: ...
|
| 18 |
+
def choices(
|
| 19 |
+
self,
|
| 20 |
+
population: Sequence[_T],
|
| 21 |
+
weights: Optional[Sequence[float]] = ...,
|
| 22 |
+
*,
|
| 23 |
+
cum_weights: Optional[Sequence[float]] = ...,
|
| 24 |
+
k: int = ...,
|
| 25 |
+
) -> List[_T]: ...
|
| 26 |
+
def shuffle(self, x: MutableSequence[Any], random: Optional[Callable[[], float]] = ...) -> None: ...
|
| 27 |
+
if sys.version_info >= (3, 9):
|
| 28 |
+
def sample(
|
| 29 |
+
self, population: Union[Sequence[_T], AbstractSet[_T]], k: int, *, counts: Optional[Iterable[_T]] = ...
|
| 30 |
+
) -> List[_T]: ...
|
| 31 |
+
else:
|
| 32 |
+
def sample(self, population: Union[Sequence[_T], AbstractSet[_T]], k: int) -> List[_T]: ...
|
| 33 |
+
def random(self) -> float: ...
|
| 34 |
+
def uniform(self, a: float, b: float) -> float: ...
|
| 35 |
+
def triangular(self, low: float = ..., high: float = ..., mode: Optional[float] = ...) -> float: ...
|
| 36 |
+
def betavariate(self, alpha: float, beta: float) -> float: ...
|
| 37 |
+
def expovariate(self, lambd: float) -> float: ...
|
| 38 |
+
def gammavariate(self, alpha: float, beta: float) -> float: ...
|
| 39 |
+
def gauss(self, mu: float, sigma: float) -> float: ...
|
| 40 |
+
def lognormvariate(self, mu: float, sigma: float) -> float: ...
|
| 41 |
+
def normalvariate(self, mu: float, sigma: float) -> float: ...
|
| 42 |
+
def vonmisesvariate(self, mu: float, kappa: float) -> float: ...
|
| 43 |
+
def paretovariate(self, alpha: float) -> float: ...
|
| 44 |
+
def weibullvariate(self, alpha: float, beta: float) -> float: ...
|
| 45 |
+
|
| 46 |
+
# SystemRandom is not implemented for all OS's; good on Windows & Linux
|
| 47 |
+
class SystemRandom(Random): ...
|
| 48 |
+
|
| 49 |
+
# ----- random function stubs -----
|
| 50 |
+
def seed(a: Any = ..., version: int = ...) -> None: ...
|
| 51 |
+
def getstate() -> object: ...
|
| 52 |
+
def setstate(state: object) -> None: ...
|
| 53 |
+
def getrandbits(__k: int) -> int: ...
|
| 54 |
+
def randrange(start: int, stop: Union[None, int] = ..., step: int = ...) -> int: ...
|
| 55 |
+
def randint(a: int, b: int) -> int: ...
|
| 56 |
+
|
| 57 |
+
if sys.version_info >= (3, 9):
|
| 58 |
+
def randbytes(n: int) -> bytes: ...
|
| 59 |
+
|
| 60 |
+
def choice(seq: Sequence[_T]) -> _T: ...
|
| 61 |
+
def choices(
|
| 62 |
+
population: Sequence[_T],
|
| 63 |
+
weights: Optional[Sequence[float]] = ...,
|
| 64 |
+
*,
|
| 65 |
+
cum_weights: Optional[Sequence[float]] = ...,
|
| 66 |
+
k: int = ...,
|
| 67 |
+
) -> List[_T]: ...
|
| 68 |
+
def shuffle(x: MutableSequence[Any], random: Optional[Callable[[], float]] = ...) -> None: ...
|
| 69 |
+
|
| 70 |
+
if sys.version_info >= (3, 9):
|
| 71 |
+
def sample(population: Union[Sequence[_T], AbstractSet[_T]], k: int, *, counts: Optional[Iterable[_T]] = ...) -> List[_T]: ...
|
| 72 |
+
|
| 73 |
+
else:
|
| 74 |
+
def sample(population: Union[Sequence[_T], AbstractSet[_T]], k: int) -> List[_T]: ...
|
| 75 |
+
|
| 76 |
+
def random() -> float: ...
|
| 77 |
+
def uniform(a: float, b: float) -> float: ...
|
| 78 |
+
def triangular(low: float = ..., high: float = ..., mode: Optional[float] = ...) -> float: ...
|
| 79 |
+
def betavariate(alpha: float, beta: float) -> float: ...
|
| 80 |
+
def expovariate(lambd: float) -> float: ...
|
| 81 |
+
def gammavariate(alpha: float, beta: float) -> float: ...
|
| 82 |
+
def gauss(mu: float, sigma: float) -> float: ...
|
| 83 |
+
def lognormvariate(mu: float, sigma: float) -> float: ...
|
| 84 |
+
def normalvariate(mu: float, sigma: float) -> float: ...
|
| 85 |
+
def vonmisesvariate(mu: float, kappa: float) -> float: ...
|
| 86 |
+
def paretovariate(alpha: float) -> float: ...
|
| 87 |
+
def weibullvariate(alpha: float, beta: float) -> float: ...
|
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/3/re.pyi
ADDED
|
@@ -0,0 +1,123 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import enum
|
| 2 |
+
import sys
|
| 3 |
+
from typing import Any, AnyStr, Callable, Iterator, List, Optional, Tuple, Union, overload
|
| 4 |
+
|
| 5 |
+
# ----- re variables and constants -----
|
| 6 |
+
if sys.version_info >= (3, 7):
|
| 7 |
+
from typing import Match as Match, Pattern as Pattern
|
| 8 |
+
else:
|
| 9 |
+
from typing import Match, Pattern
|
| 10 |
+
|
| 11 |
+
class RegexFlag(enum.IntFlag):
|
| 12 |
+
A: int
|
| 13 |
+
ASCII: int
|
| 14 |
+
DEBUG: int
|
| 15 |
+
I: int
|
| 16 |
+
IGNORECASE: int
|
| 17 |
+
L: int
|
| 18 |
+
LOCALE: int
|
| 19 |
+
M: int
|
| 20 |
+
MULTILINE: int
|
| 21 |
+
S: int
|
| 22 |
+
DOTALL: int
|
| 23 |
+
X: int
|
| 24 |
+
VERBOSE: int
|
| 25 |
+
U: int
|
| 26 |
+
UNICODE: int
|
| 27 |
+
T: int
|
| 28 |
+
TEMPLATE: int
|
| 29 |
+
|
| 30 |
+
A = RegexFlag.A
|
| 31 |
+
ASCII = RegexFlag.ASCII
|
| 32 |
+
DEBUG = RegexFlag.DEBUG
|
| 33 |
+
I = RegexFlag.I
|
| 34 |
+
IGNORECASE = RegexFlag.IGNORECASE
|
| 35 |
+
L = RegexFlag.L
|
| 36 |
+
LOCALE = RegexFlag.LOCALE
|
| 37 |
+
M = RegexFlag.M
|
| 38 |
+
MULTILINE = RegexFlag.MULTILINE
|
| 39 |
+
S = RegexFlag.S
|
| 40 |
+
DOTALL = RegexFlag.DOTALL
|
| 41 |
+
X = RegexFlag.X
|
| 42 |
+
VERBOSE = RegexFlag.VERBOSE
|
| 43 |
+
U = RegexFlag.U
|
| 44 |
+
UNICODE = RegexFlag.UNICODE
|
| 45 |
+
T = RegexFlag.T
|
| 46 |
+
TEMPLATE = RegexFlag.TEMPLATE
|
| 47 |
+
_FlagsType = Union[int, RegexFlag]
|
| 48 |
+
|
| 49 |
+
if sys.version_info < (3, 7):
|
| 50 |
+
# undocumented
|
| 51 |
+
_pattern_type: type
|
| 52 |
+
|
| 53 |
+
class error(Exception):
|
| 54 |
+
msg: str
|
| 55 |
+
pattern: str
|
| 56 |
+
pos: Optional[int]
|
| 57 |
+
lineno: Optional[int]
|
| 58 |
+
colno: Optional[int]
|
| 59 |
+
|
| 60 |
+
@overload
|
| 61 |
+
def compile(pattern: AnyStr, flags: _FlagsType = ...) -> Pattern[AnyStr]: ...
|
| 62 |
+
@overload
|
| 63 |
+
def compile(pattern: Pattern[AnyStr], flags: _FlagsType = ...) -> Pattern[AnyStr]: ...
|
| 64 |
+
@overload
|
| 65 |
+
def search(pattern: AnyStr, string: AnyStr, flags: _FlagsType = ...) -> Optional[Match[AnyStr]]: ...
|
| 66 |
+
@overload
|
| 67 |
+
def search(pattern: Pattern[AnyStr], string: AnyStr, flags: _FlagsType = ...) -> Optional[Match[AnyStr]]: ...
|
| 68 |
+
@overload
|
| 69 |
+
def match(pattern: AnyStr, string: AnyStr, flags: _FlagsType = ...) -> Optional[Match[AnyStr]]: ...
|
| 70 |
+
@overload
|
| 71 |
+
def match(pattern: Pattern[AnyStr], string: AnyStr, flags: _FlagsType = ...) -> Optional[Match[AnyStr]]: ...
|
| 72 |
+
|
| 73 |
+
# New in Python 3.4
|
| 74 |
+
@overload
|
| 75 |
+
def fullmatch(pattern: AnyStr, string: AnyStr, flags: _FlagsType = ...) -> Optional[Match[AnyStr]]: ...
|
| 76 |
+
@overload
|
| 77 |
+
def fullmatch(pattern: Pattern[AnyStr], string: AnyStr, flags: _FlagsType = ...) -> Optional[Match[AnyStr]]: ...
|
| 78 |
+
@overload
|
| 79 |
+
def split(pattern: AnyStr, string: AnyStr, maxsplit: int = ..., flags: _FlagsType = ...) -> List[AnyStr]: ...
|
| 80 |
+
@overload
|
| 81 |
+
def split(pattern: Pattern[AnyStr], string: AnyStr, maxsplit: int = ..., flags: _FlagsType = ...) -> List[AnyStr]: ...
|
| 82 |
+
@overload
|
| 83 |
+
def findall(pattern: AnyStr, string: AnyStr, flags: _FlagsType = ...) -> List[Any]: ...
|
| 84 |
+
@overload
|
| 85 |
+
def findall(pattern: Pattern[AnyStr], string: AnyStr, flags: _FlagsType = ...) -> List[Any]: ...
|
| 86 |
+
|
| 87 |
+
# Return an iterator yielding match objects over all non-overlapping matches
|
| 88 |
+
# for the RE pattern in string. The string is scanned left-to-right, and
|
| 89 |
+
# matches are returned in the order found. Empty matches are included in the
|
| 90 |
+
# result unless they touch the beginning of another match.
|
| 91 |
+
@overload
|
| 92 |
+
def finditer(pattern: AnyStr, string: AnyStr, flags: _FlagsType = ...) -> Iterator[Match[AnyStr]]: ...
|
| 93 |
+
@overload
|
| 94 |
+
def finditer(pattern: Pattern[AnyStr], string: AnyStr, flags: _FlagsType = ...) -> Iterator[Match[AnyStr]]: ...
|
| 95 |
+
@overload
|
| 96 |
+
def sub(pattern: AnyStr, repl: AnyStr, string: AnyStr, count: int = ..., flags: _FlagsType = ...) -> AnyStr: ...
|
| 97 |
+
@overload
|
| 98 |
+
def sub(
|
| 99 |
+
pattern: AnyStr, repl: Callable[[Match[AnyStr]], AnyStr], string: AnyStr, count: int = ..., flags: _FlagsType = ...
|
| 100 |
+
) -> AnyStr: ...
|
| 101 |
+
@overload
|
| 102 |
+
def sub(pattern: Pattern[AnyStr], repl: AnyStr, string: AnyStr, count: int = ..., flags: _FlagsType = ...) -> AnyStr: ...
|
| 103 |
+
@overload
|
| 104 |
+
def sub(
|
| 105 |
+
pattern: Pattern[AnyStr], repl: Callable[[Match[AnyStr]], AnyStr], string: AnyStr, count: int = ..., flags: _FlagsType = ...
|
| 106 |
+
) -> AnyStr: ...
|
| 107 |
+
@overload
|
| 108 |
+
def subn(pattern: AnyStr, repl: AnyStr, string: AnyStr, count: int = ..., flags: _FlagsType = ...) -> Tuple[AnyStr, int]: ...
|
| 109 |
+
@overload
|
| 110 |
+
def subn(
|
| 111 |
+
pattern: AnyStr, repl: Callable[[Match[AnyStr]], AnyStr], string: AnyStr, count: int = ..., flags: _FlagsType = ...
|
| 112 |
+
) -> Tuple[AnyStr, int]: ...
|
| 113 |
+
@overload
|
| 114 |
+
def subn(
|
| 115 |
+
pattern: Pattern[AnyStr], repl: AnyStr, string: AnyStr, count: int = ..., flags: _FlagsType = ...
|
| 116 |
+
) -> Tuple[AnyStr, int]: ...
|
| 117 |
+
@overload
|
| 118 |
+
def subn(
|
| 119 |
+
pattern: Pattern[AnyStr], repl: Callable[[Match[AnyStr]], AnyStr], string: AnyStr, count: int = ..., flags: _FlagsType = ...
|
| 120 |
+
) -> Tuple[AnyStr, int]: ...
|
| 121 |
+
def escape(pattern: AnyStr) -> AnyStr: ...
|
| 122 |
+
def purge() -> None: ...
|
| 123 |
+
def template(pattern: Union[AnyStr, Pattern[AnyStr]], flags: _FlagsType = ...) -> Pattern[AnyStr]: ...
|
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/3/selectors.pyi
ADDED
|
@@ -0,0 +1,69 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import sys
|
| 2 |
+
from _typeshed import FileDescriptor, FileDescriptorLike
|
| 3 |
+
from abc import ABCMeta, abstractmethod
|
| 4 |
+
from typing import Any, List, Mapping, NamedTuple, Optional, Tuple
|
| 5 |
+
|
| 6 |
+
_EventMask = int
|
| 7 |
+
|
| 8 |
+
EVENT_READ: _EventMask
|
| 9 |
+
EVENT_WRITE: _EventMask
|
| 10 |
+
|
| 11 |
+
class SelectorKey(NamedTuple):
|
| 12 |
+
fileobj: FileDescriptorLike
|
| 13 |
+
fd: FileDescriptor
|
| 14 |
+
events: _EventMask
|
| 15 |
+
data: Any
|
| 16 |
+
|
| 17 |
+
class BaseSelector(metaclass=ABCMeta):
|
| 18 |
+
@abstractmethod
|
| 19 |
+
def register(self, fileobj: FileDescriptorLike, events: _EventMask, data: Any = ...) -> SelectorKey: ...
|
| 20 |
+
@abstractmethod
|
| 21 |
+
def unregister(self, fileobj: FileDescriptorLike) -> SelectorKey: ...
|
| 22 |
+
def modify(self, fileobj: FileDescriptorLike, events: _EventMask, data: Any = ...) -> SelectorKey: ...
|
| 23 |
+
@abstractmethod
|
| 24 |
+
def select(self, timeout: Optional[float] = ...) -> List[Tuple[SelectorKey, _EventMask]]: ...
|
| 25 |
+
def close(self) -> None: ...
|
| 26 |
+
def get_key(self, fileobj: FileDescriptorLike) -> SelectorKey: ...
|
| 27 |
+
@abstractmethod
|
| 28 |
+
def get_map(self) -> Mapping[FileDescriptorLike, SelectorKey]: ...
|
| 29 |
+
def __enter__(self) -> BaseSelector: ...
|
| 30 |
+
def __exit__(self, *args: Any) -> None: ...
|
| 31 |
+
|
| 32 |
+
class SelectSelector(BaseSelector):
|
| 33 |
+
def register(self, fileobj: FileDescriptorLike, events: _EventMask, data: Any = ...) -> SelectorKey: ...
|
| 34 |
+
def unregister(self, fileobj: FileDescriptorLike) -> SelectorKey: ...
|
| 35 |
+
def select(self, timeout: Optional[float] = ...) -> List[Tuple[SelectorKey, _EventMask]]: ...
|
| 36 |
+
def get_map(self) -> Mapping[FileDescriptorLike, SelectorKey]: ...
|
| 37 |
+
|
| 38 |
+
if sys.platform != "win32":
|
| 39 |
+
class PollSelector(BaseSelector):
|
| 40 |
+
def register(self, fileobj: FileDescriptorLike, events: _EventMask, data: Any = ...) -> SelectorKey: ...
|
| 41 |
+
def unregister(self, fileobj: FileDescriptorLike) -> SelectorKey: ...
|
| 42 |
+
def select(self, timeout: Optional[float] = ...) -> List[Tuple[SelectorKey, _EventMask]]: ...
|
| 43 |
+
def get_map(self) -> Mapping[FileDescriptorLike, SelectorKey]: ...
|
| 44 |
+
class EpollSelector(BaseSelector):
|
| 45 |
+
def fileno(self) -> int: ...
|
| 46 |
+
def register(self, fileobj: FileDescriptorLike, events: _EventMask, data: Any = ...) -> SelectorKey: ...
|
| 47 |
+
def unregister(self, fileobj: FileDescriptorLike) -> SelectorKey: ...
|
| 48 |
+
def select(self, timeout: Optional[float] = ...) -> List[Tuple[SelectorKey, _EventMask]]: ...
|
| 49 |
+
def get_map(self) -> Mapping[FileDescriptorLike, SelectorKey]: ...
|
| 50 |
+
|
| 51 |
+
class DevpollSelector(BaseSelector):
|
| 52 |
+
def fileno(self) -> int: ...
|
| 53 |
+
def register(self, fileobj: FileDescriptorLike, events: _EventMask, data: Any = ...) -> SelectorKey: ...
|
| 54 |
+
def unregister(self, fileobj: FileDescriptorLike) -> SelectorKey: ...
|
| 55 |
+
def select(self, timeout: Optional[float] = ...) -> List[Tuple[SelectorKey, _EventMask]]: ...
|
| 56 |
+
def get_map(self) -> Mapping[FileDescriptorLike, SelectorKey]: ...
|
| 57 |
+
|
| 58 |
+
class KqueueSelector(BaseSelector):
|
| 59 |
+
def fileno(self) -> int: ...
|
| 60 |
+
def register(self, fileobj: FileDescriptorLike, events: _EventMask, data: Any = ...) -> SelectorKey: ...
|
| 61 |
+
def unregister(self, fileobj: FileDescriptorLike) -> SelectorKey: ...
|
| 62 |
+
def select(self, timeout: Optional[float] = ...) -> List[Tuple[SelectorKey, _EventMask]]: ...
|
| 63 |
+
def get_map(self) -> Mapping[FileDescriptorLike, SelectorKey]: ...
|
| 64 |
+
|
| 65 |
+
class DefaultSelector(BaseSelector):
|
| 66 |
+
def register(self, fileobj: FileDescriptorLike, events: _EventMask, data: Any = ...) -> SelectorKey: ...
|
| 67 |
+
def unregister(self, fileobj: FileDescriptorLike) -> SelectorKey: ...
|
| 68 |
+
def select(self, timeout: Optional[float] = ...) -> List[Tuple[SelectorKey, _EventMask]]: ...
|
| 69 |
+
def get_map(self) -> Mapping[FileDescriptorLike, SelectorKey]: ...
|
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/3/shelve.pyi
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import collections
|
| 2 |
+
from typing import Any, Dict, Iterator, Optional, Tuple
|
| 3 |
+
|
| 4 |
+
class Shelf(collections.MutableMapping[Any, Any]):
|
| 5 |
+
def __init__(
|
| 6 |
+
self, dict: Dict[bytes, Any], protocol: Optional[int] = ..., writeback: bool = ..., keyencoding: str = ...
|
| 7 |
+
) -> None: ...
|
| 8 |
+
def __iter__(self) -> Iterator[str]: ...
|
| 9 |
+
def __len__(self) -> int: ...
|
| 10 |
+
def __contains__(self, key: Any) -> bool: ... # key should be str, but it would conflict with superclass's type signature
|
| 11 |
+
def get(self, key: str, default: Any = ...) -> Any: ...
|
| 12 |
+
def __getitem__(self, key: str) -> Any: ...
|
| 13 |
+
def __setitem__(self, key: str, value: Any) -> None: ...
|
| 14 |
+
def __delitem__(self, key: str) -> None: ...
|
| 15 |
+
def __enter__(self) -> Shelf: ...
|
| 16 |
+
def __exit__(self, type: Any, value: Any, traceback: Any) -> None: ...
|
| 17 |
+
def close(self) -> None: ...
|
| 18 |
+
def __del__(self) -> None: ...
|
| 19 |
+
def sync(self) -> None: ...
|
| 20 |
+
|
| 21 |
+
class BsdDbShelf(Shelf):
|
| 22 |
+
def __init__(
|
| 23 |
+
self, dict: Dict[bytes, Any], protocol: Optional[int] = ..., writeback: bool = ..., keyencoding: str = ...
|
| 24 |
+
) -> None: ...
|
| 25 |
+
def set_location(self, key: Any) -> Tuple[str, Any]: ...
|
| 26 |
+
def next(self) -> Tuple[str, Any]: ...
|
| 27 |
+
def previous(self) -> Tuple[str, Any]: ...
|
| 28 |
+
def first(self) -> Tuple[str, Any]: ...
|
| 29 |
+
def last(self) -> Tuple[str, Any]: ...
|
| 30 |
+
|
| 31 |
+
class DbfilenameShelf(Shelf):
|
| 32 |
+
def __init__(self, filename: str, flag: str = ..., protocol: Optional[int] = ..., writeback: bool = ...) -> None: ...
|
| 33 |
+
|
| 34 |
+
def open(filename: str, flag: str = ..., protocol: Optional[int] = ..., writeback: bool = ...) -> DbfilenameShelf: ...
|