Datasets:
Add files using upload-large-folder tool
Browse filesThis view is limited to 50 files because it contains too many changes. See raw diff
- .gitattributes +3 -0
- material/dataset/Datasets/Electron Microscopy Image Masks/TiO2_Masks_Manual_4connected/1908256_m.tif +3 -0
- material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/debug.py +132 -0
- material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/third_party/2and3/attr/__init__.pyi +257 -0
- material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/third_party/2and3/attr/_version_info.pyi +9 -0
- material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/third_party/2and3/attr/converters.pyi +11 -0
- material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/third_party/2and3/attr/exceptions.pyi +15 -0
- material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/third_party/2and3/attr/filters.pyi +6 -0
- material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/third_party/2and3/attr/validators.pyi +54 -0
- material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/third_party/2and3/cachetools/abc.pyi +7 -0
- material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/third_party/2and3/cachetools/func.pyi +11 -0
- material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/third_party/2and3/cachetools/rr.pyi +21 -0
- material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/third_party/2and3/cachetools/ttl.pyi +23 -0
- material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/third_party/2and3/chardet/langgreekmodel.pyi +9 -0
- material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/third_party/2and3/chardet/langturkishmodel.pyi +7 -0
- material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/third_party/2and3/chardet/version.pyi +4 -0
- material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/third_party/2and3/cryptography/__init__.pyi +0 -0
- material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/third_party/2and3/cryptography/exceptions.pyi +7 -0
- material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/third_party/2and3/cryptography/fernet.pyi +25 -0
- material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/third_party/2and3/cryptography/hazmat/__init__.pyi +3 -0
- material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/third_party/2and3/cryptography/hazmat/primitives/__init__.pyi +3 -0
- material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/third_party/2and3/cryptography/hazmat/primitives/asymmetric/__init__.pyi +3 -0
- material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/third_party/2and3/cryptography/hazmat/primitives/asymmetric/dh.pyi +79 -0
- material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/third_party/2and3/cryptography/hazmat/primitives/asymmetric/dsa.pyi +79 -0
- material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/third_party/2and3/cryptography/hazmat/primitives/asymmetric/ec.pyi +196 -0
- material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/third_party/2and3/cryptography/hazmat/primitives/asymmetric/ed25519.pyi +25 -0
- material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/third_party/2and3/cryptography/hazmat/primitives/asymmetric/ed448.pyi +25 -0
- material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/third_party/2and3/cryptography/hazmat/primitives/asymmetric/padding.pyi +27 -0
- material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/third_party/2and3/cryptography/hazmat/primitives/asymmetric/rsa.pyi +83 -0
- material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/third_party/2and3/cryptography/hazmat/primitives/asymmetric/utils.pyi +12 -0
- material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/third_party/2and3/cryptography/hazmat/primitives/asymmetric/x25519.pyi +23 -0
- material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/third_party/2and3/cryptography/hazmat/primitives/asymmetric/x448.pyi +23 -0
- material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/third_party/2and3/cryptography/hazmat/primitives/ciphers/aead.pyi +22 -0
- material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/third_party/2and3/cryptography/hazmat/primitives/cmac.pyi +11 -0
- material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/third_party/2and3/cryptography/hazmat/primitives/constant_time.pyi +1 -0
- material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/third_party/2and3/cryptography/hazmat/primitives/hashes.pyi +44 -0
- material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/third_party/2and3/cryptography/hazmat/primitives/hmac.pyi +11 -0
- material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/third_party/2and3/cryptography/hazmat/primitives/kdf/__init__.pyi +7 -0
- material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/third_party/2and3/cryptography/hazmat/primitives/kdf/concatkdf.pyi +24 -0
- material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/third_party/2and3/cryptography/hazmat/primitives/kdf/hkdf.pyi +22 -0
- material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/third_party/2and3/cryptography/hazmat/primitives/kdf/kbkdf.pyi +30 -0
- material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/third_party/2and3/cryptography/hazmat/primitives/kdf/pbkdf2.pyi +12 -0
- material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/third_party/2and3/cryptography/hazmat/primitives/kdf/scrypt.pyi +9 -0
- material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/third_party/2and3/cryptography/hazmat/primitives/kdf/x963kdf.pyi +12 -0
- material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/third_party/2and3/cryptography/hazmat/primitives/keywrap.pyi +10 -0
- material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/third_party/2and3/cryptography/hazmat/primitives/padding.pyi +17 -0
- material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/third_party/2and3/cryptography/hazmat/primitives/poly1305.pyi +9 -0
- material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/third_party/2and3/cryptography/hazmat/primitives/serialization/__init__.pyi +63 -0
- material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/third_party/2and3/cryptography/hazmat/primitives/serialization/pkcs12.pyi +18 -0
- material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/third_party/2and3/cryptography/hazmat/primitives/twofactor/__init__.pyi +1 -0
.gitattributes
CHANGED
|
@@ -456,3 +456,6 @@ material/dataset/Datasets/Electron[[:space:]]Microscopy[[:space:]]Image[[:space:
|
|
| 456 |
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/matplotlib/axes/__pycache__/_base.cpython-310.pyc filter=lfs diff=lfs merge=lfs -text
|
| 457 |
material/dataset/Datasets/Electron[[:space:]]Microscopy[[:space:]]Image[[:space:]]Masks/TiO2_Masks_TSEM/Image_Registration/Output/1908274/1908275.tif filter=lfs diff=lfs merge=lfs -text
|
| 458 |
material/dataset/Datasets/Electron[[:space:]]Microscopy[[:space:]]Image[[:space:]]Masks/TiO2_Masks_TSEM/Image_Registration/Input/1908306/1908307.tif filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
|
|
|
| 456 |
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/matplotlib/axes/__pycache__/_base.cpython-310.pyc filter=lfs diff=lfs merge=lfs -text
|
| 457 |
material/dataset/Datasets/Electron[[:space:]]Microscopy[[:space:]]Image[[:space:]]Masks/TiO2_Masks_TSEM/Image_Registration/Output/1908274/1908275.tif filter=lfs diff=lfs merge=lfs -text
|
| 458 |
material/dataset/Datasets/Electron[[:space:]]Microscopy[[:space:]]Image[[:space:]]Masks/TiO2_Masks_TSEM/Image_Registration/Input/1908306/1908307.tif filter=lfs diff=lfs merge=lfs -text
|
| 459 |
+
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/matplotlib/axes/__pycache__/_axes.cpython-310.pyc filter=lfs diff=lfs merge=lfs -text
|
| 460 |
+
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/matplotlib/mpl-data/fonts/ttf/DejaVuSansMono-Oblique.ttf filter=lfs diff=lfs merge=lfs -text
|
| 461 |
+
material/dataset/Datasets/Electron[[:space:]]Microscopy[[:space:]]Image[[:space:]]Masks/TiO2_Masks_Manual_4connected/1908256_m.tif filter=lfs diff=lfs merge=lfs -text
|
material/dataset/Datasets/Electron Microscopy Image Masks/TiO2_Masks_Manual_4connected/1908256_m.tif
ADDED
|
|
Git LFS Details
|
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/debug.py
ADDED
|
@@ -0,0 +1,132 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import os
|
| 2 |
+
import time
|
| 3 |
+
from contextlib import contextmanager
|
| 4 |
+
from typing import Callable, Optional
|
| 5 |
+
|
| 6 |
+
_inited = False
|
| 7 |
+
|
| 8 |
+
|
| 9 |
+
def _lazy_colorama_init():
|
| 10 |
+
"""
|
| 11 |
+
Lazily init colorama if necessary, not to screw up stdout if debugging is
|
| 12 |
+
not enabled.
|
| 13 |
+
|
| 14 |
+
This version of the function does nothing.
|
| 15 |
+
"""
|
| 16 |
+
|
| 17 |
+
|
| 18 |
+
try:
|
| 19 |
+
if os.name == 'nt':
|
| 20 |
+
# Does not work on Windows, as pyreadline and colorama interfere
|
| 21 |
+
raise ImportError
|
| 22 |
+
else:
|
| 23 |
+
# Use colorama for nicer console output.
|
| 24 |
+
from colorama import Fore, init # type: ignore[import]
|
| 25 |
+
from colorama import initialise
|
| 26 |
+
|
| 27 |
+
def _lazy_colorama_init(): # noqa: F811
|
| 28 |
+
"""
|
| 29 |
+
Lazily init colorama if necessary, not to screw up stdout is
|
| 30 |
+
debug not enabled.
|
| 31 |
+
|
| 32 |
+
This version of the function does init colorama.
|
| 33 |
+
"""
|
| 34 |
+
global _inited
|
| 35 |
+
if not _inited:
|
| 36 |
+
# pytest resets the stream at the end - causes troubles. Since
|
| 37 |
+
# after every output the stream is reset automatically we don't
|
| 38 |
+
# need this.
|
| 39 |
+
initialise.atexit_done = True
|
| 40 |
+
try:
|
| 41 |
+
init(strip=False)
|
| 42 |
+
except Exception:
|
| 43 |
+
# Colorama fails with initializing under vim and is buggy in
|
| 44 |
+
# version 0.3.6.
|
| 45 |
+
pass
|
| 46 |
+
_inited = True
|
| 47 |
+
|
| 48 |
+
except ImportError:
|
| 49 |
+
class Fore: # type: ignore[no-redef]
|
| 50 |
+
RED = ''
|
| 51 |
+
GREEN = ''
|
| 52 |
+
YELLOW = ''
|
| 53 |
+
MAGENTA = ''
|
| 54 |
+
RESET = ''
|
| 55 |
+
BLUE = ''
|
| 56 |
+
|
| 57 |
+
NOTICE = object()
|
| 58 |
+
WARNING = object()
|
| 59 |
+
SPEED = object()
|
| 60 |
+
|
| 61 |
+
enable_speed = False
|
| 62 |
+
enable_warning = False
|
| 63 |
+
enable_notice = False
|
| 64 |
+
|
| 65 |
+
# callback, interface: level, str
|
| 66 |
+
debug_function: Optional[Callable[[str, str], None]] = None
|
| 67 |
+
_debug_indent = 0
|
| 68 |
+
_start_time = time.time()
|
| 69 |
+
|
| 70 |
+
|
| 71 |
+
def reset_time():
|
| 72 |
+
global _start_time, _debug_indent
|
| 73 |
+
_start_time = time.time()
|
| 74 |
+
_debug_indent = 0
|
| 75 |
+
|
| 76 |
+
|
| 77 |
+
def increase_indent(func):
|
| 78 |
+
"""Decorator for makin """
|
| 79 |
+
def wrapper(*args, **kwargs):
|
| 80 |
+
with increase_indent_cm():
|
| 81 |
+
return func(*args, **kwargs)
|
| 82 |
+
return wrapper
|
| 83 |
+
|
| 84 |
+
|
| 85 |
+
@contextmanager
|
| 86 |
+
def increase_indent_cm(title=None, color='MAGENTA'):
|
| 87 |
+
global _debug_indent
|
| 88 |
+
if title:
|
| 89 |
+
dbg('Start: ' + title, color=color)
|
| 90 |
+
_debug_indent += 1
|
| 91 |
+
try:
|
| 92 |
+
yield
|
| 93 |
+
finally:
|
| 94 |
+
_debug_indent -= 1
|
| 95 |
+
if title:
|
| 96 |
+
dbg('End: ' + title, color=color)
|
| 97 |
+
|
| 98 |
+
|
| 99 |
+
def dbg(message, *args, color='GREEN'):
|
| 100 |
+
""" Looks at the stack, to see if a debug message should be printed. """
|
| 101 |
+
assert color
|
| 102 |
+
|
| 103 |
+
if debug_function and enable_notice:
|
| 104 |
+
i = ' ' * _debug_indent
|
| 105 |
+
_lazy_colorama_init()
|
| 106 |
+
debug_function(color, i + 'dbg: ' + message % tuple(repr(a) for a in args))
|
| 107 |
+
|
| 108 |
+
|
| 109 |
+
def warning(message, *args, format=True):
|
| 110 |
+
if debug_function and enable_warning:
|
| 111 |
+
i = ' ' * _debug_indent
|
| 112 |
+
if format:
|
| 113 |
+
message = message % tuple(repr(a) for a in args)
|
| 114 |
+
debug_function('RED', i + 'warning: ' + message)
|
| 115 |
+
|
| 116 |
+
|
| 117 |
+
def speed(name):
|
| 118 |
+
if debug_function and enable_speed:
|
| 119 |
+
now = time.time()
|
| 120 |
+
i = ' ' * _debug_indent
|
| 121 |
+
debug_function('YELLOW', i + 'speed: ' + '%s %s' % (name, now - _start_time))
|
| 122 |
+
|
| 123 |
+
|
| 124 |
+
def print_to_stdout(color, str_out):
|
| 125 |
+
"""
|
| 126 |
+
The default debug function that prints to standard out.
|
| 127 |
+
|
| 128 |
+
:param str color: A string that is an attribute of ``colorama.Fore``.
|
| 129 |
+
"""
|
| 130 |
+
col = getattr(Fore, color)
|
| 131 |
+
_lazy_colorama_init()
|
| 132 |
+
print(col + str_out + Fore.RESET)
|
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/third_party/2and3/attr/__init__.pyi
ADDED
|
@@ -0,0 +1,257 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from typing import Any, Callable, Dict, Generic, List, Mapping, Optional, Sequence, Tuple, Type, TypeVar, Union, overload
|
| 2 |
+
|
| 3 |
+
# `import X as X` is required to make these public
|
| 4 |
+
from . import converters as converters, exceptions as exceptions, filters as filters, validators as validators
|
| 5 |
+
from ._version_info import VersionInfo
|
| 6 |
+
|
| 7 |
+
__version__: str
|
| 8 |
+
__version_info__: VersionInfo
|
| 9 |
+
__title__: str
|
| 10 |
+
__description__: str
|
| 11 |
+
__url__: str
|
| 12 |
+
__uri__: str
|
| 13 |
+
__author__: str
|
| 14 |
+
__email__: str
|
| 15 |
+
__license__: str
|
| 16 |
+
__copyright__: str
|
| 17 |
+
|
| 18 |
+
_T = TypeVar("_T")
|
| 19 |
+
_C = TypeVar("_C", bound=type)
|
| 20 |
+
|
| 21 |
+
_ValidatorType = Callable[[Any, Attribute[_T], _T], Any]
|
| 22 |
+
_ConverterType = Callable[[Any], _T]
|
| 23 |
+
_FilterType = Callable[[Attribute[_T], _T], bool]
|
| 24 |
+
_ReprType = Callable[[Any], str]
|
| 25 |
+
_ReprArgType = Union[bool, _ReprType]
|
| 26 |
+
# FIXME: in reality, if multiple validators are passed they must be in a list or tuple,
|
| 27 |
+
# but those are invariant and so would prevent subtypes of _ValidatorType from working
|
| 28 |
+
# when passed in a list or tuple.
|
| 29 |
+
_ValidatorArgType = Union[_ValidatorType[_T], Sequence[_ValidatorType[_T]]]
|
| 30 |
+
|
| 31 |
+
# _make --
|
| 32 |
+
|
| 33 |
+
NOTHING: object
|
| 34 |
+
|
| 35 |
+
# NOTE: Factory lies about its return type to make this possible: `x: List[int] = Factory(list)`
|
| 36 |
+
# Work around mypy issue #4554 in the common case by using an overload.
|
| 37 |
+
@overload
|
| 38 |
+
def Factory(factory: Callable[[], _T]) -> _T: ...
|
| 39 |
+
@overload
|
| 40 |
+
def Factory(factory: Union[Callable[[Any], _T], Callable[[], _T]], takes_self: bool = ...) -> _T: ...
|
| 41 |
+
|
| 42 |
+
class Attribute(Generic[_T]):
|
| 43 |
+
name: str
|
| 44 |
+
default: Optional[_T]
|
| 45 |
+
validator: Optional[_ValidatorType[_T]]
|
| 46 |
+
repr: _ReprArgType
|
| 47 |
+
cmp: bool
|
| 48 |
+
eq: bool
|
| 49 |
+
order: bool
|
| 50 |
+
hash: Optional[bool]
|
| 51 |
+
init: bool
|
| 52 |
+
converter: Optional[_ConverterType[_T]]
|
| 53 |
+
metadata: Dict[Any, Any]
|
| 54 |
+
type: Optional[Type[_T]]
|
| 55 |
+
kw_only: bool
|
| 56 |
+
|
| 57 |
+
# NOTE: We had several choices for the annotation to use for type arg:
|
| 58 |
+
# 1) Type[_T]
|
| 59 |
+
# - Pros: Handles simple cases correctly
|
| 60 |
+
# - Cons: Might produce less informative errors in the case of conflicting TypeVars
|
| 61 |
+
# e.g. `attr.ib(default='bad', type=int)`
|
| 62 |
+
# 2) Callable[..., _T]
|
| 63 |
+
# - Pros: Better error messages than #1 for conflicting TypeVars
|
| 64 |
+
# - Cons: Terrible error messages for validator checks.
|
| 65 |
+
# e.g. attr.ib(type=int, validator=validate_str)
|
| 66 |
+
# -> error: Cannot infer function type argument
|
| 67 |
+
# 3) type (and do all of the work in the mypy plugin)
|
| 68 |
+
# - Pros: Simple here, and we could customize the plugin with our own errors.
|
| 69 |
+
# - Cons: Would need to write mypy plugin code to handle all the cases.
|
| 70 |
+
# We chose option #1.
|
| 71 |
+
|
| 72 |
+
# `attr` lies about its return type to make the following possible:
|
| 73 |
+
# attr() -> Any
|
| 74 |
+
# attr(8) -> int
|
| 75 |
+
# attr(validator=<some callable>) -> Whatever the callable expects.
|
| 76 |
+
# This makes this type of assignments possible:
|
| 77 |
+
# x: int = attr(8)
|
| 78 |
+
#
|
| 79 |
+
# This form catches explicit None or no default but with no other arguments returns Any.
|
| 80 |
+
@overload
|
| 81 |
+
def attrib(
|
| 82 |
+
default: None = ...,
|
| 83 |
+
validator: None = ...,
|
| 84 |
+
repr: _ReprArgType = ...,
|
| 85 |
+
cmp: Optional[bool] = ...,
|
| 86 |
+
hash: Optional[bool] = ...,
|
| 87 |
+
init: bool = ...,
|
| 88 |
+
metadata: Optional[Mapping[Any, Any]] = ...,
|
| 89 |
+
type: None = ...,
|
| 90 |
+
converter: None = ...,
|
| 91 |
+
factory: None = ...,
|
| 92 |
+
kw_only: bool = ...,
|
| 93 |
+
eq: Optional[bool] = ...,
|
| 94 |
+
order: Optional[bool] = ...,
|
| 95 |
+
) -> Any: ...
|
| 96 |
+
|
| 97 |
+
# This form catches an explicit None or no default and infers the type from the other arguments.
|
| 98 |
+
@overload
|
| 99 |
+
def attrib(
|
| 100 |
+
default: None = ...,
|
| 101 |
+
validator: Optional[_ValidatorArgType[_T]] = ...,
|
| 102 |
+
repr: _ReprArgType = ...,
|
| 103 |
+
cmp: Optional[bool] = ...,
|
| 104 |
+
hash: Optional[bool] = ...,
|
| 105 |
+
init: bool = ...,
|
| 106 |
+
metadata: Optional[Mapping[Any, Any]] = ...,
|
| 107 |
+
type: Optional[Type[_T]] = ...,
|
| 108 |
+
converter: Optional[_ConverterType[_T]] = ...,
|
| 109 |
+
factory: Optional[Callable[[], _T]] = ...,
|
| 110 |
+
kw_only: bool = ...,
|
| 111 |
+
eq: Optional[bool] = ...,
|
| 112 |
+
order: Optional[bool] = ...,
|
| 113 |
+
) -> _T: ...
|
| 114 |
+
|
| 115 |
+
# This form catches an explicit default argument.
|
| 116 |
+
@overload
|
| 117 |
+
def attrib(
|
| 118 |
+
default: _T,
|
| 119 |
+
validator: Optional[_ValidatorArgType[_T]] = ...,
|
| 120 |
+
repr: _ReprArgType = ...,
|
| 121 |
+
cmp: Optional[bool] = ...,
|
| 122 |
+
hash: Optional[bool] = ...,
|
| 123 |
+
init: bool = ...,
|
| 124 |
+
metadata: Optional[Mapping[Any, Any]] = ...,
|
| 125 |
+
type: Optional[Type[_T]] = ...,
|
| 126 |
+
converter: Optional[_ConverterType[_T]] = ...,
|
| 127 |
+
factory: Optional[Callable[[], _T]] = ...,
|
| 128 |
+
kw_only: bool = ...,
|
| 129 |
+
eq: Optional[bool] = ...,
|
| 130 |
+
order: Optional[bool] = ...,
|
| 131 |
+
) -> _T: ...
|
| 132 |
+
|
| 133 |
+
# This form covers type=non-Type: e.g. forward references (str), Any
|
| 134 |
+
@overload
|
| 135 |
+
def attrib(
|
| 136 |
+
default: Optional[_T] = ...,
|
| 137 |
+
validator: Optional[_ValidatorArgType[_T]] = ...,
|
| 138 |
+
repr: _ReprArgType = ...,
|
| 139 |
+
cmp: Optional[bool] = ...,
|
| 140 |
+
hash: Optional[bool] = ...,
|
| 141 |
+
init: bool = ...,
|
| 142 |
+
metadata: Optional[Mapping[Any, Any]] = ...,
|
| 143 |
+
type: object = ...,
|
| 144 |
+
converter: Optional[_ConverterType[_T]] = ...,
|
| 145 |
+
factory: Optional[Callable[[], _T]] = ...,
|
| 146 |
+
kw_only: bool = ...,
|
| 147 |
+
eq: Optional[bool] = ...,
|
| 148 |
+
order: Optional[bool] = ...,
|
| 149 |
+
) -> Any: ...
|
| 150 |
+
@overload
|
| 151 |
+
def attrs(
|
| 152 |
+
maybe_cls: _C,
|
| 153 |
+
these: Optional[Dict[str, Any]] = ...,
|
| 154 |
+
repr_ns: Optional[str] = ...,
|
| 155 |
+
repr: bool = ...,
|
| 156 |
+
cmp: Optional[bool] = ...,
|
| 157 |
+
hash: Optional[bool] = ...,
|
| 158 |
+
init: bool = ...,
|
| 159 |
+
slots: bool = ...,
|
| 160 |
+
frozen: bool = ...,
|
| 161 |
+
weakref_slot: bool = ...,
|
| 162 |
+
str: bool = ...,
|
| 163 |
+
auto_attribs: bool = ...,
|
| 164 |
+
kw_only: bool = ...,
|
| 165 |
+
cache_hash: bool = ...,
|
| 166 |
+
auto_exc: bool = ...,
|
| 167 |
+
eq: Optional[bool] = ...,
|
| 168 |
+
order: Optional[bool] = ...,
|
| 169 |
+
) -> _C: ...
|
| 170 |
+
@overload
|
| 171 |
+
def attrs(
|
| 172 |
+
maybe_cls: None = ...,
|
| 173 |
+
these: Optional[Dict[str, Any]] = ...,
|
| 174 |
+
repr_ns: Optional[str] = ...,
|
| 175 |
+
repr: bool = ...,
|
| 176 |
+
cmp: Optional[bool] = ...,
|
| 177 |
+
hash: Optional[bool] = ...,
|
| 178 |
+
init: bool = ...,
|
| 179 |
+
slots: bool = ...,
|
| 180 |
+
frozen: bool = ...,
|
| 181 |
+
weakref_slot: bool = ...,
|
| 182 |
+
str: bool = ...,
|
| 183 |
+
auto_attribs: bool = ...,
|
| 184 |
+
kw_only: bool = ...,
|
| 185 |
+
cache_hash: bool = ...,
|
| 186 |
+
auto_exc: bool = ...,
|
| 187 |
+
eq: Optional[bool] = ...,
|
| 188 |
+
order: Optional[bool] = ...,
|
| 189 |
+
) -> Callable[[_C], _C]: ...
|
| 190 |
+
|
| 191 |
+
# TODO: add support for returning NamedTuple from the mypy plugin
|
| 192 |
+
class _Fields(Tuple[Attribute[Any], ...]):
|
| 193 |
+
def __getattr__(self, name: str) -> Attribute[Any]: ...
|
| 194 |
+
|
| 195 |
+
def fields(cls: type) -> _Fields: ...
|
| 196 |
+
def fields_dict(cls: type) -> Dict[str, Attribute[Any]]: ...
|
| 197 |
+
def validate(inst: Any) -> None: ...
|
| 198 |
+
|
| 199 |
+
# TODO: add support for returning a proper attrs class from the mypy plugin
|
| 200 |
+
# we use Any instead of _CountingAttr so that e.g. `make_class('Foo', [attr.ib()])` is valid
|
| 201 |
+
def make_class(
|
| 202 |
+
name: str,
|
| 203 |
+
attrs: Union[List[str], Tuple[str, ...], Dict[str, Any]],
|
| 204 |
+
bases: Tuple[type, ...] = ...,
|
| 205 |
+
repr_ns: Optional[str] = ...,
|
| 206 |
+
repr: bool = ...,
|
| 207 |
+
cmp: Optional[bool] = ...,
|
| 208 |
+
hash: Optional[bool] = ...,
|
| 209 |
+
init: bool = ...,
|
| 210 |
+
slots: bool = ...,
|
| 211 |
+
frozen: bool = ...,
|
| 212 |
+
weakref_slot: bool = ...,
|
| 213 |
+
str: bool = ...,
|
| 214 |
+
auto_attribs: bool = ...,
|
| 215 |
+
kw_only: bool = ...,
|
| 216 |
+
cache_hash: bool = ...,
|
| 217 |
+
auto_exc: bool = ...,
|
| 218 |
+
eq: Optional[bool] = ...,
|
| 219 |
+
order: Optional[bool] = ...,
|
| 220 |
+
) -> type: ...
|
| 221 |
+
|
| 222 |
+
# _funcs --
|
| 223 |
+
|
| 224 |
+
# TODO: add support for returning TypedDict from the mypy plugin
|
| 225 |
+
# FIXME: asdict/astuple do not honor their factory args. waiting on one of these:
|
| 226 |
+
# https://github.com/python/mypy/issues/4236
|
| 227 |
+
# https://github.com/python/typing/issues/253
|
| 228 |
+
def asdict(
|
| 229 |
+
inst: Any,
|
| 230 |
+
recurse: bool = ...,
|
| 231 |
+
filter: Optional[_FilterType[Any]] = ...,
|
| 232 |
+
dict_factory: Type[Mapping[Any, Any]] = ...,
|
| 233 |
+
retain_collection_types: bool = ...,
|
| 234 |
+
) -> Dict[str, Any]: ...
|
| 235 |
+
|
| 236 |
+
# TODO: add support for returning NamedTuple from the mypy plugin
|
| 237 |
+
def astuple(
|
| 238 |
+
inst: Any,
|
| 239 |
+
recurse: bool = ...,
|
| 240 |
+
filter: Optional[_FilterType[Any]] = ...,
|
| 241 |
+
tuple_factory: Type[Sequence[Any]] = ...,
|
| 242 |
+
retain_collection_types: bool = ...,
|
| 243 |
+
) -> Tuple[Any, ...]: ...
|
| 244 |
+
def has(cls: type) -> bool: ...
|
| 245 |
+
def assoc(inst: _T, **changes: Any) -> _T: ...
|
| 246 |
+
def evolve(inst: _T, **changes: Any) -> _T: ...
|
| 247 |
+
|
| 248 |
+
# _config --
|
| 249 |
+
|
| 250 |
+
def set_run_validators(run: bool) -> None: ...
|
| 251 |
+
def get_run_validators() -> bool: ...
|
| 252 |
+
|
| 253 |
+
# aliases --
|
| 254 |
+
|
| 255 |
+
s = attributes = attrs
|
| 256 |
+
ib = attr = attrib
|
| 257 |
+
dataclass = attrs # Technically, partial(attrs, auto_attribs=True) ;)
|
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/third_party/2and3/attr/_version_info.pyi
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
class VersionInfo:
|
| 2 |
+
@property
|
| 3 |
+
def year(self) -> int: ...
|
| 4 |
+
@property
|
| 5 |
+
def minor(self) -> int: ...
|
| 6 |
+
@property
|
| 7 |
+
def micro(self) -> int: ...
|
| 8 |
+
@property
|
| 9 |
+
def releaselevel(self) -> str: ...
|
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/third_party/2and3/attr/converters.pyi
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from typing import Callable, Optional, TypeVar, overload
|
| 2 |
+
|
| 3 |
+
from . import _ConverterType
|
| 4 |
+
|
| 5 |
+
_T = TypeVar("_T")
|
| 6 |
+
|
| 7 |
+
def optional(converter: _ConverterType[_T]) -> _ConverterType[Optional[_T]]: ...
|
| 8 |
+
@overload
|
| 9 |
+
def default_if_none(default: _T) -> _ConverterType[_T]: ...
|
| 10 |
+
@overload
|
| 11 |
+
def default_if_none(*, factory: Callable[[], _T]) -> _ConverterType[_T]: ...
|
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/third_party/2and3/attr/exceptions.pyi
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from typing import Any
|
| 2 |
+
|
| 3 |
+
class FrozenInstanceError(AttributeError):
|
| 4 |
+
msg: str = ...
|
| 5 |
+
|
| 6 |
+
class AttrsAttributeNotFoundError(ValueError): ...
|
| 7 |
+
class NotAnAttrsClassError(ValueError): ...
|
| 8 |
+
class DefaultAlreadySetError(RuntimeError): ...
|
| 9 |
+
class UnannotatedAttributeError(RuntimeError): ...
|
| 10 |
+
class PythonTooOldError(RuntimeError): ...
|
| 11 |
+
|
| 12 |
+
class NotCallableError(TypeError):
|
| 13 |
+
msg: str = ...
|
| 14 |
+
value: Any = ...
|
| 15 |
+
def __init__(self, msg: str, value: Any) -> None: ...
|
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/third_party/2and3/attr/filters.pyi
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from typing import Any, Union
|
| 2 |
+
|
| 3 |
+
from . import Attribute, _FilterType
|
| 4 |
+
|
| 5 |
+
def include(*what: Union[type, Attribute[Any]]) -> _FilterType[Any]: ...
|
| 6 |
+
def exclude(*what: Union[type, Attribute[Any]]) -> _FilterType[Any]: ...
|
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/third_party/2and3/attr/validators.pyi
ADDED
|
@@ -0,0 +1,54 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from typing import (
|
| 2 |
+
Any,
|
| 3 |
+
AnyStr,
|
| 4 |
+
Callable,
|
| 5 |
+
Container,
|
| 6 |
+
Iterable,
|
| 7 |
+
List,
|
| 8 |
+
Mapping,
|
| 9 |
+
Match,
|
| 10 |
+
Optional,
|
| 11 |
+
Tuple,
|
| 12 |
+
Type,
|
| 13 |
+
TypeVar,
|
| 14 |
+
Union,
|
| 15 |
+
overload,
|
| 16 |
+
)
|
| 17 |
+
|
| 18 |
+
from . import _ValidatorType
|
| 19 |
+
|
| 20 |
+
_T = TypeVar("_T")
|
| 21 |
+
_T1 = TypeVar("_T1")
|
| 22 |
+
_T2 = TypeVar("_T2")
|
| 23 |
+
_T3 = TypeVar("_T3")
|
| 24 |
+
_I = TypeVar("_I", bound=Iterable)
|
| 25 |
+
_K = TypeVar("_K")
|
| 26 |
+
_V = TypeVar("_V")
|
| 27 |
+
_M = TypeVar("_M", bound=Mapping)
|
| 28 |
+
|
| 29 |
+
# To be more precise on instance_of use some overloads.
|
| 30 |
+
# If there are more than 3 items in the tuple then we fall back to Any
|
| 31 |
+
@overload
|
| 32 |
+
def instance_of(type: Type[_T]) -> _ValidatorType[_T]: ...
|
| 33 |
+
@overload
|
| 34 |
+
def instance_of(type: Tuple[Type[_T]]) -> _ValidatorType[_T]: ...
|
| 35 |
+
@overload
|
| 36 |
+
def instance_of(type: Tuple[Type[_T1], Type[_T2]]) -> _ValidatorType[Union[_T1, _T2]]: ...
|
| 37 |
+
@overload
|
| 38 |
+
def instance_of(type: Tuple[Type[_T1], Type[_T2], Type[_T3]]) -> _ValidatorType[Union[_T1, _T2, _T3]]: ...
|
| 39 |
+
@overload
|
| 40 |
+
def instance_of(type: Tuple[type, ...]) -> _ValidatorType[Any]: ...
|
| 41 |
+
def provides(interface: Any) -> _ValidatorType[Any]: ...
|
| 42 |
+
def optional(validator: Union[_ValidatorType[_T], List[_ValidatorType[_T]]]) -> _ValidatorType[Optional[_T]]: ...
|
| 43 |
+
def in_(options: Container[_T]) -> _ValidatorType[_T]: ...
|
| 44 |
+
def and_(*validators: _ValidatorType[_T]) -> _ValidatorType[_T]: ...
|
| 45 |
+
def matches_re(
|
| 46 |
+
regex: AnyStr, flags: int = ..., func: Optional[Callable[[AnyStr, AnyStr, int], Optional[Match[AnyStr]]]] = ...
|
| 47 |
+
) -> _ValidatorType[AnyStr]: ...
|
| 48 |
+
def deep_iterable(
|
| 49 |
+
member_validator: _ValidatorType[_T], iterable_validator: Optional[_ValidatorType[_I]] = ...
|
| 50 |
+
) -> _ValidatorType[_I]: ...
|
| 51 |
+
def deep_mapping(
|
| 52 |
+
key_validator: _ValidatorType[_K], value_validator: _ValidatorType[_V], mapping_validator: Optional[_ValidatorType[_M]] = ...
|
| 53 |
+
) -> _ValidatorType[_M]: ...
|
| 54 |
+
def is_callable() -> _ValidatorType[_T]: ...
|
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/third_party/2and3/cachetools/abc.pyi
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from abc import ABCMeta
|
| 2 |
+
from typing import MutableMapping, TypeVar
|
| 3 |
+
|
| 4 |
+
_KT = TypeVar("_KT")
|
| 5 |
+
_VT = TypeVar("_VT")
|
| 6 |
+
|
| 7 |
+
class DefaultMapping(MutableMapping[_KT, _VT], metaclass=ABCMeta): ...
|
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/third_party/2and3/cachetools/func.pyi
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from typing import Any, Callable, Optional, Sequence, TypeVar
|
| 2 |
+
|
| 3 |
+
_T = TypeVar("_T")
|
| 4 |
+
|
| 5 |
+
_F = TypeVar("_F", bound=Callable[..., Any])
|
| 6 |
+
_RET = Callable[[_F], _F]
|
| 7 |
+
|
| 8 |
+
def lfu_cache(maxsize: int = ..., typed: bool = ...) -> _RET: ...
|
| 9 |
+
def lru_cache(maxsize: int = ..., typed: bool = ...) -> _RET: ...
|
| 10 |
+
def rr_cache(maxsize: int = ..., choice: Optional[Callable[[Sequence[_T]], _T]] = ..., typed: bool = ...) -> _RET: ...
|
| 11 |
+
def ttl_cache(maxsize: int = ..., ttl: float = ..., timer: float = ..., typed: bool = ...) -> _RET: ...
|
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/third_party/2and3/cachetools/rr.pyi
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from typing import Callable, Iterator, Optional, Sequence, TypeVar
|
| 2 |
+
|
| 3 |
+
from .cache import Cache as Cache
|
| 4 |
+
|
| 5 |
+
_KT = TypeVar("_KT")
|
| 6 |
+
_VT = TypeVar("_VT")
|
| 7 |
+
|
| 8 |
+
class RRCache(Cache[_KT, _VT]):
|
| 9 |
+
def __init__(
|
| 10 |
+
self,
|
| 11 |
+
maxsize: int,
|
| 12 |
+
choice: Optional[Callable[[Sequence[_KT]], _KT]] = ...,
|
| 13 |
+
getsizeof: Optional[Callable[[_VT], int]] = ...,
|
| 14 |
+
) -> None: ...
|
| 15 |
+
def __getitem__(self, key: _KT) -> _VT: ...
|
| 16 |
+
def __setitem__(self, key: _KT, value: _VT) -> None: ...
|
| 17 |
+
def __delitem__(self, key: _KT) -> None: ...
|
| 18 |
+
def __iter__(self) -> Iterator[_KT]: ...
|
| 19 |
+
def __len__(self) -> int: ...
|
| 20 |
+
@property
|
| 21 |
+
def choice(self) -> Callable[[Sequence[_KT]], _KT]: ...
|
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/third_party/2and3/cachetools/ttl.pyi
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from typing import Callable, Iterator, Optional, TypeVar
|
| 2 |
+
|
| 3 |
+
from .cache import Cache
|
| 4 |
+
|
| 5 |
+
_KT = TypeVar("_KT")
|
| 6 |
+
_VT = TypeVar("_VT")
|
| 7 |
+
|
| 8 |
+
class TTLCache(Cache[_KT, _VT]):
|
| 9 |
+
def __init__(
|
| 10 |
+
self, maxsize: int, ttl: float, timer: Callable[[], float] = ..., getsizeof: Optional[Callable[[_VT], int]] = ...
|
| 11 |
+
) -> None: ...
|
| 12 |
+
def __getitem__(self, key: _KT, cache_getitem: Callable[[_KT], _VT] = ...) -> _VT: ...
|
| 13 |
+
def __setitem__(self, key: _KT, value: _VT, cache_setitem: Callable[[_KT, _VT], None] = ...) -> None: ...
|
| 14 |
+
def __delitem__(self, key: _KT, cache_delitem: Callable[[_KT], None] = ...) -> None: ...
|
| 15 |
+
def __iter__(self) -> Iterator[_KT]: ...
|
| 16 |
+
def __len__(self) -> int: ...
|
| 17 |
+
@property
|
| 18 |
+
def currsize(self) -> int: ...
|
| 19 |
+
@property
|
| 20 |
+
def timer(self) -> Callable[[], float]: ...
|
| 21 |
+
@property
|
| 22 |
+
def ttl(self) -> float: ...
|
| 23 |
+
def expire(self, time: Optional[Callable[[], float]] = ...) -> None: ...
|
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/third_party/2and3/chardet/langgreekmodel.pyi
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from typing import Tuple
|
| 2 |
+
|
| 3 |
+
from . import _LangModelType
|
| 4 |
+
|
| 5 |
+
Latin7_char_to_order_map: Tuple[int, ...]
|
| 6 |
+
win1253_char_to_order_map: Tuple[int, ...]
|
| 7 |
+
GreekLangModel: Tuple[int, ...]
|
| 8 |
+
Latin7GreekModel: _LangModelType
|
| 9 |
+
Win1253GreekModel: _LangModelType
|
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/third_party/2and3/chardet/langturkishmodel.pyi
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from typing import Tuple
|
| 2 |
+
|
| 3 |
+
from . import _LangModelType
|
| 4 |
+
|
| 5 |
+
Latin5_TurkishCharToOrderMap: Tuple[int, ...]
|
| 6 |
+
TurkishLangModel: Tuple[int, ...]
|
| 7 |
+
Latin5TurkishModel: _LangModelType
|
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/third_party/2and3/chardet/version.pyi
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from typing import List
|
| 2 |
+
|
| 3 |
+
__version__: str
|
| 4 |
+
VERSION: List[str]
|
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/third_party/2and3/cryptography/__init__.pyi
ADDED
|
File without changes
|
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/third_party/2and3/cryptography/exceptions.pyi
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
class AlreadyFinalized(Exception): ...
|
| 2 |
+
class AlreadyUpdated(Exception): ...
|
| 3 |
+
class InvalidKey(Exception): ...
|
| 4 |
+
class InvalidSignature(Exception): ...
|
| 5 |
+
class InvalidTag(Exception): ...
|
| 6 |
+
class NotYetFinalized(Exception): ...
|
| 7 |
+
class UnsupportedAlgorithm(Exception): ...
|
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/third_party/2and3/cryptography/fernet.pyi
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from typing import List, Optional, Text, Union
|
| 2 |
+
|
| 3 |
+
class InvalidToken(Exception): ...
|
| 4 |
+
|
| 5 |
+
class Fernet(object):
|
| 6 |
+
def __init__(self, key: Union[bytes, Text]) -> None: ...
|
| 7 |
+
def decrypt(self, token: bytes, ttl: Optional[int] = ...) -> bytes: ...
|
| 8 |
+
# decrypt_at_time accepts None ttl at runtime but it's an implementtion detail and it doesn't really
|
| 9 |
+
# make sense for the client code to use it like that, so the parameter is typed as int as opposed to
|
| 10 |
+
# Optional[int].
|
| 11 |
+
def decrypt_at_time(self, token: bytes, ttl: int, current_time: int) -> bytes: ...
|
| 12 |
+
def encrypt(self, data: bytes) -> bytes: ...
|
| 13 |
+
def encrypt_at_time(self, data: bytes, current_time: int) -> bytes: ...
|
| 14 |
+
def extract_timestamp(self, token: bytes) -> int: ...
|
| 15 |
+
@classmethod
|
| 16 |
+
def generate_key(cls) -> bytes: ...
|
| 17 |
+
|
| 18 |
+
class MultiFernet(object):
|
| 19 |
+
def __init__(self, fernets: List[Fernet]) -> None: ...
|
| 20 |
+
def decrypt(self, token: bytes, ttl: Optional[int] = ...) -> bytes: ...
|
| 21 |
+
# See a note above on the typing of the ttl parameter.
|
| 22 |
+
def decrypt_at_time(self, token: bytes, ttl: int, current_time: int) -> bytes: ...
|
| 23 |
+
def encrypt(self, data: bytes) -> bytes: ...
|
| 24 |
+
def encrypt_at_time(self, data: bytes, current_time: int) -> bytes: ...
|
| 25 |
+
def rotate(self, msg: bytes) -> bytes: ...
|
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/third_party/2and3/cryptography/hazmat/__init__.pyi
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from typing import Any
|
| 2 |
+
|
| 3 |
+
def __getattr__(name: str) -> Any: ...
|
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/third_party/2and3/cryptography/hazmat/primitives/__init__.pyi
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from typing import Any
|
| 2 |
+
|
| 3 |
+
def __getattr__(name: str) -> Any: ...
|
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/third_party/2and3/cryptography/hazmat/primitives/asymmetric/__init__.pyi
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from typing import Any
|
| 2 |
+
|
| 3 |
+
def __getattr__(name: str) -> Any: ...
|
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/third_party/2and3/cryptography/hazmat/primitives/asymmetric/dh.pyi
ADDED
|
@@ -0,0 +1,79 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from abc import ABCMeta, abstractmethod
|
| 2 |
+
from typing import Optional
|
| 3 |
+
|
| 4 |
+
from cryptography.hazmat.backends.interfaces import DHBackend
|
| 5 |
+
from cryptography.hazmat.primitives.serialization import (
|
| 6 |
+
Encoding,
|
| 7 |
+
KeySerializationEncryption,
|
| 8 |
+
ParameterFormat,
|
| 9 |
+
PrivateFormat,
|
| 10 |
+
PublicFormat,
|
| 11 |
+
)
|
| 12 |
+
|
| 13 |
+
class DHParameters(metaclass=ABCMeta):
|
| 14 |
+
@abstractmethod
|
| 15 |
+
def generate_private_key(self) -> DHPrivateKey: ...
|
| 16 |
+
@abstractmethod
|
| 17 |
+
def parameter_bytes(self, encoding: Encoding, format: ParameterFormat) -> bytes: ...
|
| 18 |
+
@abstractmethod
|
| 19 |
+
def parameter_numbers(self) -> DHParameterNumbers: ...
|
| 20 |
+
|
| 21 |
+
DHParametersWithSerialization = DHParameters
|
| 22 |
+
|
| 23 |
+
class DHParameterNumbers(object):
|
| 24 |
+
@property
|
| 25 |
+
def p(self) -> int: ...
|
| 26 |
+
@property
|
| 27 |
+
def g(self) -> int: ...
|
| 28 |
+
@property
|
| 29 |
+
def q(self) -> int: ...
|
| 30 |
+
def __init__(self, p: int, g: int, q: Optional[int]) -> None: ...
|
| 31 |
+
def parameters(self, backend: Optional[DHBackend] = ...) -> DHParameters: ...
|
| 32 |
+
|
| 33 |
+
class DHPrivateKey(metaclass=ABCMeta):
|
| 34 |
+
key_size: int
|
| 35 |
+
@abstractmethod
|
| 36 |
+
def exchange(self, peer_public_key: DHPublicKey) -> bytes: ...
|
| 37 |
+
@abstractmethod
|
| 38 |
+
def parameters(self) -> DHParameters: ...
|
| 39 |
+
@abstractmethod
|
| 40 |
+
def public_key(self) -> DHPublicKey: ...
|
| 41 |
+
|
| 42 |
+
class DHPrivateKeyWithSerialization(DHPrivateKey):
|
| 43 |
+
@abstractmethod
|
| 44 |
+
def private_bytes(
|
| 45 |
+
self, encoding: Encoding, format: PrivateFormat, encryption_algorithm: KeySerializationEncryption
|
| 46 |
+
) -> bytes: ...
|
| 47 |
+
@abstractmethod
|
| 48 |
+
def private_numbers(self) -> DHPrivateNumbers: ...
|
| 49 |
+
|
| 50 |
+
class DHPrivateNumbers(object):
|
| 51 |
+
@property
|
| 52 |
+
def public_numbers(self) -> DHPublicNumbers: ...
|
| 53 |
+
@property
|
| 54 |
+
def x(self) -> int: ...
|
| 55 |
+
def __init__(self, x: int, public_numbers: DHPublicNumbers) -> None: ...
|
| 56 |
+
def private_key(self, backend: Optional[DHBackend] = ...) -> DHPrivateKey: ...
|
| 57 |
+
|
| 58 |
+
class DHPublicKey(metaclass=ABCMeta):
|
| 59 |
+
@property
|
| 60 |
+
@abstractmethod
|
| 61 |
+
def key_size(self) -> int: ...
|
| 62 |
+
@abstractmethod
|
| 63 |
+
def parameters(self) -> DHParameters: ...
|
| 64 |
+
@abstractmethod
|
| 65 |
+
def public_bytes(self, encoding: Encoding, format: PublicFormat) -> bytes: ...
|
| 66 |
+
@abstractmethod
|
| 67 |
+
def public_numbers(self) -> DHPublicNumbers: ...
|
| 68 |
+
|
| 69 |
+
DHPublicKeyWithSerialization = DHPublicKey
|
| 70 |
+
|
| 71 |
+
class DHPublicNumbers(object):
|
| 72 |
+
@property
|
| 73 |
+
def parameter_numbers(self) -> DHParameterNumbers: ...
|
| 74 |
+
@property
|
| 75 |
+
def y(self) -> int: ...
|
| 76 |
+
def __init__(self, y: int, parameter_numbers: DHParameterNumbers) -> None: ...
|
| 77 |
+
def public_key(self, backend: Optional[DHBackend] = ...) -> DHPublicKey: ...
|
| 78 |
+
|
| 79 |
+
def generate_parameters(generator: int, key_size: int, backend: Optional[DHBackend] = ...) -> DHParameters: ...
|
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/third_party/2and3/cryptography/hazmat/primitives/asymmetric/dsa.pyi
ADDED
|
@@ -0,0 +1,79 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from abc import ABCMeta, abstractmethod
|
| 2 |
+
from typing import Optional, Union
|
| 3 |
+
|
| 4 |
+
from cryptography.hazmat.backends.interfaces import DSABackend
|
| 5 |
+
from cryptography.hazmat.primitives.asymmetric import AsymmetricVerificationContext
|
| 6 |
+
from cryptography.hazmat.primitives.asymmetric.utils import Prehashed
|
| 7 |
+
from cryptography.hazmat.primitives.hashes import HashAlgorithm
|
| 8 |
+
from cryptography.hazmat.primitives.serialization import Encoding, KeySerializationEncryption, PrivateFormat, PublicFormat
|
| 9 |
+
|
| 10 |
+
class DSAParameters(metaclass=ABCMeta):
|
| 11 |
+
@abstractmethod
|
| 12 |
+
def generate_private_key(self) -> DSAPrivateKey: ...
|
| 13 |
+
|
| 14 |
+
class DSAParametersWithNumbers(DSAParameters):
|
| 15 |
+
@abstractmethod
|
| 16 |
+
def parameter_numbers(self) -> DSAParameterNumbers: ...
|
| 17 |
+
|
| 18 |
+
class DSAParameterNumbers(object):
|
| 19 |
+
@property
|
| 20 |
+
def p(self) -> int: ...
|
| 21 |
+
@property
|
| 22 |
+
def q(self) -> int: ...
|
| 23 |
+
@property
|
| 24 |
+
def g(self) -> int: ...
|
| 25 |
+
def __init__(self, p: int, q: int, g: int) -> None: ...
|
| 26 |
+
def parameters(self, backend: Optional[DSABackend] = ...) -> DSAParameters: ...
|
| 27 |
+
|
| 28 |
+
class DSAPrivateKey(metaclass=ABCMeta):
|
| 29 |
+
@property
|
| 30 |
+
@abstractmethod
|
| 31 |
+
def key_size(self) -> int: ...
|
| 32 |
+
@abstractmethod
|
| 33 |
+
def parameters(self) -> DSAParameters: ...
|
| 34 |
+
@abstractmethod
|
| 35 |
+
def public_key(self) -> DSAPublicKey: ...
|
| 36 |
+
@abstractmethod
|
| 37 |
+
def sign(self, data: bytes, algorithm: Union[HashAlgorithm, Prehashed]) -> bytes: ...
|
| 38 |
+
|
| 39 |
+
class DSAPrivateKeyWithSerialization(DSAPrivateKey):
|
| 40 |
+
@abstractmethod
|
| 41 |
+
def private_bytes(
|
| 42 |
+
self, encoding: Encoding, format: PrivateFormat, encryption_algorithm: KeySerializationEncryption
|
| 43 |
+
) -> bytes: ...
|
| 44 |
+
@abstractmethod
|
| 45 |
+
def private_numbers(self) -> DSAPrivateNumbers: ...
|
| 46 |
+
|
| 47 |
+
class DSAPrivateNumbers(object):
|
| 48 |
+
@property
|
| 49 |
+
def x(self) -> int: ...
|
| 50 |
+
@property
|
| 51 |
+
def public_numbers(self) -> DSAPublicNumbers: ...
|
| 52 |
+
def __init__(self, x: int, public_numbers: DSAPublicNumbers) -> None: ...
|
| 53 |
+
|
| 54 |
+
class DSAPublicKey(metaclass=ABCMeta):
|
| 55 |
+
@property
|
| 56 |
+
@abstractmethod
|
| 57 |
+
def key_size(self) -> int: ...
|
| 58 |
+
@abstractmethod
|
| 59 |
+
def public_bytes(self, encoding: Encoding, format: PublicFormat) -> bytes: ...
|
| 60 |
+
@abstractmethod
|
| 61 |
+
def public_numbers(self) -> DSAPublicNumbers: ...
|
| 62 |
+
@abstractmethod
|
| 63 |
+
def verifier(
|
| 64 |
+
self, signature: bytes, signature_algorithm: Union[HashAlgorithm, Prehashed]
|
| 65 |
+
) -> AsymmetricVerificationContext: ...
|
| 66 |
+
@abstractmethod
|
| 67 |
+
def verify(self, signature: bytes, data: bytes, algorithm: Union[HashAlgorithm, Prehashed]) -> None: ...
|
| 68 |
+
|
| 69 |
+
DSAPublicKeyWithSerialization = DSAPublicKey
|
| 70 |
+
|
| 71 |
+
class DSAPublicNumbers(object):
|
| 72 |
+
@property
|
| 73 |
+
def y(self) -> int: ...
|
| 74 |
+
@property
|
| 75 |
+
def parameter_numbers(self) -> DSAParameterNumbers: ...
|
| 76 |
+
def __init__(self, y: int, parameter_numbers: DSAParameterNumbers) -> None: ...
|
| 77 |
+
|
| 78 |
+
def generate_parameters(key_size: int, backend: Optional[DSABackend] = ...) -> DSAParameters: ...
|
| 79 |
+
def generate_private_key(key_size: int, backend: Optional[DSABackend] = ...) -> DSAPrivateKey: ...
|
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/third_party/2and3/cryptography/hazmat/primitives/asymmetric/ec.pyi
ADDED
|
@@ -0,0 +1,196 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from abc import ABCMeta, abstractmethod
|
| 2 |
+
from typing import ClassVar, Optional, Union
|
| 3 |
+
|
| 4 |
+
from cryptography.hazmat.backends.interfaces import EllipticCurveBackend
|
| 5 |
+
from cryptography.hazmat.primitives.asymmetric import AsymmetricVerificationContext
|
| 6 |
+
from cryptography.hazmat.primitives.asymmetric.utils import Prehashed
|
| 7 |
+
from cryptography.hazmat.primitives.hashes import HashAlgorithm
|
| 8 |
+
from cryptography.hazmat.primitives.serialization import Encoding, KeySerializationEncryption, PrivateFormat, PublicFormat
|
| 9 |
+
from cryptography.x509 import ObjectIdentifier
|
| 10 |
+
|
| 11 |
+
class EllipticCurve(metaclass=ABCMeta):
|
| 12 |
+
@property
|
| 13 |
+
@abstractmethod
|
| 14 |
+
def key_size(self) -> int: ...
|
| 15 |
+
@property
|
| 16 |
+
@abstractmethod
|
| 17 |
+
def name(self) -> str: ...
|
| 18 |
+
|
| 19 |
+
class BrainpoolP256R1(EllipticCurve):
|
| 20 |
+
key_size: int = ...
|
| 21 |
+
name: str = ...
|
| 22 |
+
|
| 23 |
+
class BrainpoolP384R1(EllipticCurve):
|
| 24 |
+
key_size: int = ...
|
| 25 |
+
name: str = ...
|
| 26 |
+
|
| 27 |
+
class BrainpoolP512R1(EllipticCurve):
|
| 28 |
+
key_size: int = ...
|
| 29 |
+
name: str = ...
|
| 30 |
+
|
| 31 |
+
class SECP192R1(EllipticCurve):
|
| 32 |
+
key_size: int = ...
|
| 33 |
+
name: str = ...
|
| 34 |
+
|
| 35 |
+
class SECP224R1(EllipticCurve):
|
| 36 |
+
key_size: int = ...
|
| 37 |
+
name: str = ...
|
| 38 |
+
|
| 39 |
+
class SECP256K1(EllipticCurve):
|
| 40 |
+
key_size: int = ...
|
| 41 |
+
name: str = ...
|
| 42 |
+
|
| 43 |
+
class SECP256R1(EllipticCurve):
|
| 44 |
+
key_size: int = ...
|
| 45 |
+
name: str = ...
|
| 46 |
+
|
| 47 |
+
class SECP384R1(EllipticCurve):
|
| 48 |
+
key_size: int = ...
|
| 49 |
+
name: str = ...
|
| 50 |
+
|
| 51 |
+
class SECP521R1(EllipticCurve):
|
| 52 |
+
key_size: int = ...
|
| 53 |
+
name: str = ...
|
| 54 |
+
|
| 55 |
+
class SECT163K1(EllipticCurve):
|
| 56 |
+
key_size: int = ...
|
| 57 |
+
name: str = ...
|
| 58 |
+
|
| 59 |
+
class SECT163R2(EllipticCurve):
|
| 60 |
+
key_size: int = ...
|
| 61 |
+
name: str = ...
|
| 62 |
+
|
| 63 |
+
class SECT233K1(EllipticCurve):
|
| 64 |
+
key_size: int = ...
|
| 65 |
+
name: str = ...
|
| 66 |
+
|
| 67 |
+
class SECT233R1(EllipticCurve):
|
| 68 |
+
key_size: int = ...
|
| 69 |
+
name: str = ...
|
| 70 |
+
|
| 71 |
+
class SECT283K1(EllipticCurve):
|
| 72 |
+
key_size: int = ...
|
| 73 |
+
name: str = ...
|
| 74 |
+
|
| 75 |
+
class SECT283R1(EllipticCurve):
|
| 76 |
+
key_size: int = ...
|
| 77 |
+
name: str = ...
|
| 78 |
+
|
| 79 |
+
class SECT409K1(EllipticCurve):
|
| 80 |
+
key_size: int = ...
|
| 81 |
+
name: str = ...
|
| 82 |
+
|
| 83 |
+
class SECT409R1(EllipticCurve):
|
| 84 |
+
key_size: int = ...
|
| 85 |
+
name: str = ...
|
| 86 |
+
|
| 87 |
+
class SECT571K1(EllipticCurve):
|
| 88 |
+
key_size: int = ...
|
| 89 |
+
name: str = ...
|
| 90 |
+
|
| 91 |
+
class SECT571R1(EllipticCurve):
|
| 92 |
+
key_size: int = ...
|
| 93 |
+
name: str = ...
|
| 94 |
+
|
| 95 |
+
class EllipticCurveOID(object):
|
| 96 |
+
SECP192R1: ClassVar[ObjectIdentifier]
|
| 97 |
+
SECP224R1: ClassVar[ObjectIdentifier]
|
| 98 |
+
SECP256K1: ClassVar[ObjectIdentifier]
|
| 99 |
+
SECP256R1: ClassVar[ObjectIdentifier]
|
| 100 |
+
SECP384R1: ClassVar[ObjectIdentifier]
|
| 101 |
+
SECP521R1: ClassVar[ObjectIdentifier]
|
| 102 |
+
BRAINPOOLP256R1: ClassVar[ObjectIdentifier]
|
| 103 |
+
BRAINPOOLP384R1: ClassVar[ObjectIdentifier]
|
| 104 |
+
BRAINPOOLP512R1: ClassVar[ObjectIdentifier]
|
| 105 |
+
SECT163K1: ClassVar[ObjectIdentifier]
|
| 106 |
+
SECT163R2: ClassVar[ObjectIdentifier]
|
| 107 |
+
SECT233K1: ClassVar[ObjectIdentifier]
|
| 108 |
+
SECT233R1: ClassVar[ObjectIdentifier]
|
| 109 |
+
SECT283K1: ClassVar[ObjectIdentifier]
|
| 110 |
+
SECT283R1: ClassVar[ObjectIdentifier]
|
| 111 |
+
SECT409K1: ClassVar[ObjectIdentifier]
|
| 112 |
+
SECT409R1: ClassVar[ObjectIdentifier]
|
| 113 |
+
SECT571K1: ClassVar[ObjectIdentifier]
|
| 114 |
+
SECT571R1: ClassVar[ObjectIdentifier]
|
| 115 |
+
|
| 116 |
+
class EllipticCurvePrivateKey(metaclass=ABCMeta):
|
| 117 |
+
@property
|
| 118 |
+
@abstractmethod
|
| 119 |
+
def curve(self) -> EllipticCurve: ...
|
| 120 |
+
@property
|
| 121 |
+
@abstractmethod
|
| 122 |
+
def key_size(self) -> int: ...
|
| 123 |
+
@abstractmethod
|
| 124 |
+
def exchange(self, algorithm: ECDH, peer_public_key: EllipticCurvePublicKey) -> bytes: ...
|
| 125 |
+
@abstractmethod
|
| 126 |
+
def public_key(self) -> EllipticCurvePublicKey: ...
|
| 127 |
+
@abstractmethod
|
| 128 |
+
def sign(self, data: bytes, signature_algorithm: EllipticCurveSignatureAlgorithm) -> bytes: ...
|
| 129 |
+
|
| 130 |
+
class EllipticCurvePrivateKeyWithSerialization(EllipticCurvePrivateKey):
|
| 131 |
+
@abstractmethod
|
| 132 |
+
def private_bytes(
|
| 133 |
+
self, encoding: Encoding, format: PrivateFormat, encryption_algorithm: KeySerializationEncryption
|
| 134 |
+
) -> bytes: ...
|
| 135 |
+
@abstractmethod
|
| 136 |
+
def private_numbers(self) -> EllipticCurvePrivateNumbers: ...
|
| 137 |
+
|
| 138 |
+
class EllipticCurvePrivateNumbers(object):
|
| 139 |
+
@property
|
| 140 |
+
def private_value(self) -> int: ...
|
| 141 |
+
@property
|
| 142 |
+
def public_numbers(self) -> EllipticCurvePublicNumbers: ...
|
| 143 |
+
def __init__(self, private_value: int, public_numbers: EllipticCurvePublicNumbers) -> None: ...
|
| 144 |
+
def private_key(self, backend: Optional[EllipticCurveBackend] = ...) -> EllipticCurvePrivateKey: ...
|
| 145 |
+
|
| 146 |
+
class EllipticCurvePublicKey(metaclass=ABCMeta):
|
| 147 |
+
@property
|
| 148 |
+
@abstractmethod
|
| 149 |
+
def curve(self) -> EllipticCurve: ...
|
| 150 |
+
@property
|
| 151 |
+
@abstractmethod
|
| 152 |
+
def key_size(self) -> int: ...
|
| 153 |
+
@classmethod
|
| 154 |
+
def from_encoded_point(cls, curve: EllipticCurve, data: bytes) -> EllipticCurvePublicKey: ...
|
| 155 |
+
@abstractmethod
|
| 156 |
+
def public_bytes(self, encoding: Encoding, format: PublicFormat) -> bytes: ...
|
| 157 |
+
@abstractmethod
|
| 158 |
+
def public_numbers(self) -> EllipticCurvePublicNumbers: ...
|
| 159 |
+
@abstractmethod
|
| 160 |
+
def verifier(
|
| 161 |
+
self, signature: bytes, signature_algorithm: EllipticCurveSignatureAlgorithm
|
| 162 |
+
) -> AsymmetricVerificationContext: ...
|
| 163 |
+
@abstractmethod
|
| 164 |
+
def verify(self, signature: bytes, data: bytes, signature_algorithm: EllipticCurveSignatureAlgorithm) -> None: ...
|
| 165 |
+
|
| 166 |
+
EllipticCurvePublicKeyWithSerialization = EllipticCurvePublicKey
|
| 167 |
+
|
| 168 |
+
class EllipticCurvePublicNumbers(object):
|
| 169 |
+
@property
|
| 170 |
+
def curve(self) -> EllipticCurve: ...
|
| 171 |
+
@property
|
| 172 |
+
def x(self) -> int: ...
|
| 173 |
+
@property
|
| 174 |
+
def y(self) -> int: ...
|
| 175 |
+
def __init__(self, x: int, y: int, curve: EllipticCurve) -> None: ...
|
| 176 |
+
@classmethod
|
| 177 |
+
def from_encoded_point(cls, curve: EllipticCurve, data: bytes) -> EllipticCurvePublicNumbers: ...
|
| 178 |
+
def public_key(self, backend: Optional[EllipticCurveBackend] = ...) -> EllipticCurvePublicKey: ...
|
| 179 |
+
|
| 180 |
+
class EllipticCurveSignatureAlgorithm(metaclass=ABCMeta):
|
| 181 |
+
@property
|
| 182 |
+
@abstractmethod
|
| 183 |
+
def algorithm(self) -> Union[HashAlgorithm, Prehashed]: ...
|
| 184 |
+
|
| 185 |
+
class ECDH(object): ...
|
| 186 |
+
|
| 187 |
+
class ECDSA(EllipticCurveSignatureAlgorithm):
|
| 188 |
+
def __init__(self, algorithm: Union[HashAlgorithm, Prehashed]): ...
|
| 189 |
+
@property
|
| 190 |
+
def algorithm(self) -> Union[HashAlgorithm, Prehashed]: ...
|
| 191 |
+
|
| 192 |
+
def derive_private_key(
|
| 193 |
+
private_value: int, curve: EllipticCurve, backend: Optional[EllipticCurveBackend] = ...
|
| 194 |
+
) -> EllipticCurvePrivateKey: ...
|
| 195 |
+
def generate_private_key(curve: EllipticCurve, backend: Optional[EllipticCurveBackend] = ...) -> EllipticCurvePrivateKey: ...
|
| 196 |
+
def get_curve_for_oid(oid: ObjectIdentifier) -> EllipticCurve: ...
|
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/third_party/2and3/cryptography/hazmat/primitives/asymmetric/ed25519.pyi
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from abc import ABCMeta, abstractmethod
|
| 2 |
+
|
| 3 |
+
from cryptography.hazmat.primitives.serialization import Encoding, KeySerializationEncryption, PrivateFormat, PublicFormat
|
| 4 |
+
|
| 5 |
+
class Ed25519PrivateKey(metaclass=ABCMeta):
|
| 6 |
+
@classmethod
|
| 7 |
+
def generate(cls) -> Ed25519PrivateKey: ...
|
| 8 |
+
@classmethod
|
| 9 |
+
def from_private_bytes(cls, data: bytes) -> Ed25519PrivateKey: ...
|
| 10 |
+
@abstractmethod
|
| 11 |
+
def private_bytes(
|
| 12 |
+
self, encoding: Encoding, format: PrivateFormat, encryption_algorithm: KeySerializationEncryption
|
| 13 |
+
) -> bytes: ...
|
| 14 |
+
@abstractmethod
|
| 15 |
+
def public_key(self) -> Ed25519PublicKey: ...
|
| 16 |
+
@abstractmethod
|
| 17 |
+
def sign(self, data: bytes) -> bytes: ...
|
| 18 |
+
|
| 19 |
+
class Ed25519PublicKey(metaclass=ABCMeta):
|
| 20 |
+
@classmethod
|
| 21 |
+
def from_public_bytes(cls, data: bytes) -> Ed25519PublicKey: ...
|
| 22 |
+
@abstractmethod
|
| 23 |
+
def public_bytes(self, encoding: Encoding, format: PublicFormat) -> bytes: ...
|
| 24 |
+
@abstractmethod
|
| 25 |
+
def verify(self, signature: bytes, data: bytes) -> None: ...
|
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/third_party/2and3/cryptography/hazmat/primitives/asymmetric/ed448.pyi
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from abc import ABCMeta, abstractmethod
|
| 2 |
+
|
| 3 |
+
from cryptography.hazmat.primitives.serialization import Encoding, KeySerializationEncryption, PrivateFormat, PublicFormat
|
| 4 |
+
|
| 5 |
+
class Ed448PrivateKey(metaclass=ABCMeta):
|
| 6 |
+
@classmethod
|
| 7 |
+
def generate(cls) -> Ed448PrivateKey: ...
|
| 8 |
+
@classmethod
|
| 9 |
+
def from_private_bytes(cls, data: bytes) -> Ed448PrivateKey: ...
|
| 10 |
+
@abstractmethod
|
| 11 |
+
def private_bytes(
|
| 12 |
+
self, encoding: Encoding, format: PrivateFormat, encryption_algorithm: KeySerializationEncryption
|
| 13 |
+
) -> bytes: ...
|
| 14 |
+
@abstractmethod
|
| 15 |
+
def public_key(self) -> Ed448PublicKey: ...
|
| 16 |
+
@abstractmethod
|
| 17 |
+
def sign(self, data: bytes) -> bytes: ...
|
| 18 |
+
|
| 19 |
+
class Ed448PublicKey(metaclass=ABCMeta):
|
| 20 |
+
@classmethod
|
| 21 |
+
def from_public_bytes(cls, data: bytes) -> Ed448PublicKey: ...
|
| 22 |
+
@abstractmethod
|
| 23 |
+
def public_bytes(self, encoding: Encoding, format: PublicFormat) -> bytes: ...
|
| 24 |
+
@abstractmethod
|
| 25 |
+
def verify(self, signature: bytes, data: bytes) -> None: ...
|
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/third_party/2and3/cryptography/hazmat/primitives/asymmetric/padding.pyi
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from abc import ABCMeta, abstractmethod
|
| 2 |
+
from typing import ClassVar, Optional, Union
|
| 3 |
+
|
| 4 |
+
from cryptography.hazmat.primitives.hashes import HashAlgorithm
|
| 5 |
+
|
| 6 |
+
class AsymmetricPadding(metaclass=ABCMeta):
|
| 7 |
+
@property
|
| 8 |
+
@abstractmethod
|
| 9 |
+
def name(self) -> str: ...
|
| 10 |
+
|
| 11 |
+
class MGF1(object):
|
| 12 |
+
def __init__(self, algorithm: HashAlgorithm) -> None: ...
|
| 13 |
+
|
| 14 |
+
class OAEP(AsymmetricPadding):
|
| 15 |
+
def __init__(self, mgf: MGF1, algorithm: HashAlgorithm, label: Optional[bytes]) -> None: ...
|
| 16 |
+
@property
|
| 17 |
+
def name(self) -> str: ...
|
| 18 |
+
|
| 19 |
+
class PKCS1v15(AsymmetricPadding):
|
| 20 |
+
@property
|
| 21 |
+
def name(self) -> str: ...
|
| 22 |
+
|
| 23 |
+
class PSS(AsymmetricPadding):
|
| 24 |
+
MAX_LENGTH: ClassVar[object]
|
| 25 |
+
def __init__(self, mgf: MGF1, salt_length: Union[int, object]) -> None: ...
|
| 26 |
+
@property
|
| 27 |
+
def name(self) -> str: ...
|
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/third_party/2and3/cryptography/hazmat/primitives/asymmetric/rsa.pyi
ADDED
|
@@ -0,0 +1,83 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from abc import ABCMeta, abstractmethod
|
| 2 |
+
from typing import Optional, Tuple, Union
|
| 3 |
+
|
| 4 |
+
from cryptography.hazmat.backends.interfaces import RSABackend
|
| 5 |
+
from cryptography.hazmat.primitives.asymmetric import AsymmetricVerificationContext
|
| 6 |
+
from cryptography.hazmat.primitives.asymmetric.padding import AsymmetricPadding
|
| 7 |
+
from cryptography.hazmat.primitives.asymmetric.utils import Prehashed
|
| 8 |
+
from cryptography.hazmat.primitives.hashes import HashAlgorithm
|
| 9 |
+
from cryptography.hazmat.primitives.serialization import Encoding, KeySerializationEncryption, PrivateFormat, PublicFormat
|
| 10 |
+
|
| 11 |
+
class RSAPrivateKey(metaclass=ABCMeta):
|
| 12 |
+
@property
|
| 13 |
+
@abstractmethod
|
| 14 |
+
def key_size(self) -> int: ...
|
| 15 |
+
@abstractmethod
|
| 16 |
+
def decrypt(self, ciphertext: bytes, padding: AsymmetricPadding) -> bytes: ...
|
| 17 |
+
@abstractmethod
|
| 18 |
+
def public_key(self) -> RSAPublicKey: ...
|
| 19 |
+
@abstractmethod
|
| 20 |
+
def sign(self, data: bytes, padding: AsymmetricPadding, algorithm: Union[HashAlgorithm, Prehashed]) -> bytes: ...
|
| 21 |
+
|
| 22 |
+
class RSAPrivateKeyWithSerialization(RSAPrivateKey):
|
| 23 |
+
@abstractmethod
|
| 24 |
+
def private_bytes(
|
| 25 |
+
self, encoding: Encoding, format: PrivateFormat, encryption_algorithm: KeySerializationEncryption
|
| 26 |
+
) -> bytes: ...
|
| 27 |
+
@abstractmethod
|
| 28 |
+
def private_numbers(self) -> RSAPrivateNumbers: ...
|
| 29 |
+
|
| 30 |
+
class RSAPublicKey(metaclass=ABCMeta):
|
| 31 |
+
@property
|
| 32 |
+
@abstractmethod
|
| 33 |
+
def key_size(self) -> int: ...
|
| 34 |
+
@abstractmethod
|
| 35 |
+
def encrypt(self, plaintext: bytes, padding: AsymmetricPadding) -> bytes: ...
|
| 36 |
+
@abstractmethod
|
| 37 |
+
def public_bytes(self, encoding: Encoding, format: PublicFormat) -> bytes: ...
|
| 38 |
+
@abstractmethod
|
| 39 |
+
def public_numbers(self) -> RSAPublicNumbers: ...
|
| 40 |
+
@abstractmethod
|
| 41 |
+
def verifier(
|
| 42 |
+
self, signature: bytes, padding: AsymmetricPadding, algorithm: Union[HashAlgorithm, Prehashed]
|
| 43 |
+
) -> AsymmetricVerificationContext: ...
|
| 44 |
+
@abstractmethod
|
| 45 |
+
def verify(
|
| 46 |
+
self, signature: bytes, data: bytes, padding: AsymmetricPadding, algorithm: Union[HashAlgorithm, Prehashed]
|
| 47 |
+
) -> None: ...
|
| 48 |
+
|
| 49 |
+
RSAPublicKeyWithSerialization = RSAPublicKey
|
| 50 |
+
|
| 51 |
+
def generate_private_key(
|
| 52 |
+
public_exponent: int, key_size: int, backend: Optional[RSABackend] = ...
|
| 53 |
+
) -> RSAPrivateKeyWithSerialization: ...
|
| 54 |
+
def rsa_crt_iqmp(p: int, q: int) -> int: ...
|
| 55 |
+
def rsa_crt_dmp1(private_exponent: int, p: int) -> int: ...
|
| 56 |
+
def rsa_crt_dmq1(private_exponent: int, q: int) -> int: ...
|
| 57 |
+
def rsa_recover_prime_factors(n: int, e: int, d: int) -> Tuple[int, int]: ...
|
| 58 |
+
|
| 59 |
+
class RSAPrivateNumbers(object):
|
| 60 |
+
def __init__(self, p: int, q: int, d: int, dmp1: int, dmq1: int, iqmp: int, public_numbers: RSAPublicNumbers) -> None: ...
|
| 61 |
+
@property
|
| 62 |
+
def p(self) -> int: ...
|
| 63 |
+
@property
|
| 64 |
+
def q(self) -> int: ...
|
| 65 |
+
@property
|
| 66 |
+
def d(self) -> int: ...
|
| 67 |
+
@property
|
| 68 |
+
def dmp1(self) -> int: ...
|
| 69 |
+
@property
|
| 70 |
+
def dmq1(self) -> int: ...
|
| 71 |
+
@property
|
| 72 |
+
def iqmp(self) -> int: ...
|
| 73 |
+
@property
|
| 74 |
+
def public_numbers(self) -> RSAPublicNumbers: ...
|
| 75 |
+
def private_key(self, backend: Optional[RSABackend] = ...) -> RSAPrivateKey: ...
|
| 76 |
+
|
| 77 |
+
class RSAPublicNumbers(object):
|
| 78 |
+
def __init__(self, e: int, n: int) -> None: ...
|
| 79 |
+
@property
|
| 80 |
+
def e(self) -> int: ...
|
| 81 |
+
@property
|
| 82 |
+
def n(self) -> int: ...
|
| 83 |
+
def public_key(self, backend: Optional[RSABackend] = ...) -> RSAPublicKey: ...
|
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/third_party/2and3/cryptography/hazmat/primitives/asymmetric/utils.pyi
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from typing import Tuple
|
| 2 |
+
|
| 3 |
+
from cryptography.hazmat.primitives.hashes import HashAlgorithm
|
| 4 |
+
|
| 5 |
+
def decode_dss_signature(signature: bytes) -> Tuple[int, int]: ...
|
| 6 |
+
def encode_dss_signature(r: int, s: int) -> bytes: ...
|
| 7 |
+
|
| 8 |
+
class Prehashed(object):
|
| 9 |
+
_algorithm: HashAlgorithm # undocumented
|
| 10 |
+
_digest_size: int # undocumented
|
| 11 |
+
def __init__(self, algorithm: HashAlgorithm) -> None: ...
|
| 12 |
+
digest_size: int
|
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/third_party/2and3/cryptography/hazmat/primitives/asymmetric/x25519.pyi
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from abc import ABCMeta, abstractmethod
|
| 2 |
+
|
| 3 |
+
from cryptography.hazmat.primitives.serialization import Encoding, KeySerializationEncryption, PrivateFormat, PublicFormat
|
| 4 |
+
|
| 5 |
+
class X25519PrivateKey(metaclass=ABCMeta):
|
| 6 |
+
@classmethod
|
| 7 |
+
def from_private_bytes(cls, data: bytes) -> X25519PrivateKey: ...
|
| 8 |
+
@classmethod
|
| 9 |
+
def generate(cls) -> X25519PrivateKey: ...
|
| 10 |
+
@abstractmethod
|
| 11 |
+
def exchange(self, peer_public_key: X25519PublicKey) -> bytes: ...
|
| 12 |
+
@abstractmethod
|
| 13 |
+
def private_bytes(
|
| 14 |
+
self, encoding: Encoding, format: PrivateFormat, encryption_algorithm: KeySerializationEncryption
|
| 15 |
+
) -> bytes: ...
|
| 16 |
+
@abstractmethod
|
| 17 |
+
def public_key(self) -> X25519PublicKey: ...
|
| 18 |
+
|
| 19 |
+
class X25519PublicKey(metaclass=ABCMeta):
|
| 20 |
+
@classmethod
|
| 21 |
+
def from_public_bytes(cls, data: bytes) -> X25519PublicKey: ...
|
| 22 |
+
@abstractmethod
|
| 23 |
+
def public_bytes(self, encoding: Encoding, format: PublicFormat) -> bytes: ...
|
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/third_party/2and3/cryptography/hazmat/primitives/asymmetric/x448.pyi
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from abc import ABCMeta, abstractmethod
|
| 2 |
+
|
| 3 |
+
from cryptography.hazmat.primitives.serialization import Encoding, KeySerializationEncryption, PrivateFormat, PublicFormat
|
| 4 |
+
|
| 5 |
+
class X448PrivateKey(metaclass=ABCMeta):
|
| 6 |
+
@classmethod
|
| 7 |
+
def from_private_bytes(cls, data: bytes) -> X448PrivateKey: ...
|
| 8 |
+
@classmethod
|
| 9 |
+
def generate(cls) -> X448PrivateKey: ...
|
| 10 |
+
@abstractmethod
|
| 11 |
+
def exchange(self, peer_public_key: X448PublicKey) -> bytes: ...
|
| 12 |
+
@abstractmethod
|
| 13 |
+
def private_bytes(
|
| 14 |
+
self, encoding: Encoding, format: PrivateFormat, encryption_algorithm: KeySerializationEncryption
|
| 15 |
+
) -> bytes: ...
|
| 16 |
+
@abstractmethod
|
| 17 |
+
def public_key(self) -> X448PublicKey: ...
|
| 18 |
+
|
| 19 |
+
class X448PublicKey(metaclass=ABCMeta):
|
| 20 |
+
@classmethod
|
| 21 |
+
def from_public_bytes(cls, data: bytes) -> X448PublicKey: ...
|
| 22 |
+
@abstractmethod
|
| 23 |
+
def public_bytes(self, encoding: Encoding, format: PublicFormat) -> bytes: ...
|
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/third_party/2and3/cryptography/hazmat/primitives/ciphers/aead.pyi
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from typing import Optional
|
| 2 |
+
|
| 3 |
+
class AESCCM(object):
|
| 4 |
+
def __init__(self, key: bytes, tag_length: Optional[int]) -> None: ...
|
| 5 |
+
def decrypt(self, nonce: bytes, data: bytes, associated_data: Optional[bytes]) -> bytes: ...
|
| 6 |
+
def encrypt(self, nonce: bytes, data: bytes, associated_data: Optional[bytes]) -> bytes: ...
|
| 7 |
+
@classmethod
|
| 8 |
+
def generate_key(cls, bit_length: int) -> bytes: ...
|
| 9 |
+
|
| 10 |
+
class AESGCM(object):
|
| 11 |
+
def __init__(self, key: bytes) -> None: ...
|
| 12 |
+
def decrypt(self, nonce: bytes, data: bytes, associated_data: Optional[bytes]) -> bytes: ...
|
| 13 |
+
def encrypt(self, nonce: bytes, data: bytes, associated_data: Optional[bytes]) -> bytes: ...
|
| 14 |
+
@classmethod
|
| 15 |
+
def generate_key(cls, bit_length: int) -> bytes: ...
|
| 16 |
+
|
| 17 |
+
class ChaCha20Poly1305(object):
|
| 18 |
+
def __init__(self, key: bytes) -> None: ...
|
| 19 |
+
def decrypt(self, nonce: bytes, data: bytes, associated_data: Optional[bytes]) -> bytes: ...
|
| 20 |
+
def encrypt(self, nonce: bytes, data: bytes, associated_data: Optional[bytes]) -> bytes: ...
|
| 21 |
+
@classmethod
|
| 22 |
+
def generate_key(cls) -> bytes: ...
|
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/third_party/2and3/cryptography/hazmat/primitives/cmac.pyi
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from typing import Optional
|
| 2 |
+
|
| 3 |
+
from cryptography.hazmat.backends.interfaces import CMACBackend
|
| 4 |
+
from cryptography.hazmat.primitives.ciphers import BlockCipherAlgorithm
|
| 5 |
+
|
| 6 |
+
class CMAC(object):
|
| 7 |
+
def __init__(self, algorithm: BlockCipherAlgorithm, backend: Optional[CMACBackend] = ...) -> None: ...
|
| 8 |
+
def copy(self) -> CMAC: ...
|
| 9 |
+
def finalize(self) -> bytes: ...
|
| 10 |
+
def update(self, data: bytes) -> None: ...
|
| 11 |
+
def verify(self, signature: bytes) -> None: ...
|
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/third_party/2and3/cryptography/hazmat/primitives/constant_time.pyi
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
def bytes_eq(a: bytes, b: bytes) -> bool: ...
|
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/third_party/2and3/cryptography/hazmat/primitives/hashes.pyi
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from abc import ABCMeta, abstractmethod
|
| 2 |
+
from typing import Optional
|
| 3 |
+
|
| 4 |
+
from cryptography.hazmat.backends.interfaces import HashBackend
|
| 5 |
+
|
| 6 |
+
class HashAlgorithm(metaclass=ABCMeta):
|
| 7 |
+
digest_size: int
|
| 8 |
+
name: str
|
| 9 |
+
|
| 10 |
+
class HashContext(metaclass=ABCMeta):
|
| 11 |
+
algorithm: HashAlgorithm
|
| 12 |
+
@abstractmethod
|
| 13 |
+
def copy(self) -> HashContext: ...
|
| 14 |
+
@abstractmethod
|
| 15 |
+
def finalize(self) -> bytes: ...
|
| 16 |
+
@abstractmethod
|
| 17 |
+
def update(self, data: bytes) -> None: ...
|
| 18 |
+
|
| 19 |
+
class BLAKE2b(HashAlgorithm): ...
|
| 20 |
+
class BLAKE2s(HashAlgorithm): ...
|
| 21 |
+
class MD5(HashAlgorithm): ...
|
| 22 |
+
class SHA1(HashAlgorithm): ...
|
| 23 |
+
class SHA224(HashAlgorithm): ...
|
| 24 |
+
class SHA256(HashAlgorithm): ...
|
| 25 |
+
class SHA384(HashAlgorithm): ...
|
| 26 |
+
class SHA3_224(HashAlgorithm): ...
|
| 27 |
+
class SHA3_256(HashAlgorithm): ...
|
| 28 |
+
class SHA3_384(HashAlgorithm): ...
|
| 29 |
+
class SHA3_512(HashAlgorithm): ...
|
| 30 |
+
class SHA512(HashAlgorithm): ...
|
| 31 |
+
class SHA512_224(HashAlgorithm): ...
|
| 32 |
+
class SHA512_256(HashAlgorithm): ...
|
| 33 |
+
|
| 34 |
+
class SHAKE128(HashAlgorithm):
|
| 35 |
+
def __init__(self, digest_size: int) -> None: ...
|
| 36 |
+
|
| 37 |
+
class SHAKE256(HashAlgorithm):
|
| 38 |
+
def __init__(self, digest_size: int) -> None: ...
|
| 39 |
+
|
| 40 |
+
class Hash(HashContext):
|
| 41 |
+
def __init__(self, algorithm: HashAlgorithm, backend: Optional[HashBackend] = ...): ...
|
| 42 |
+
def copy(self) -> Hash: ...
|
| 43 |
+
def finalize(self) -> bytes: ...
|
| 44 |
+
def update(self, data: bytes) -> None: ...
|
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/third_party/2and3/cryptography/hazmat/primitives/hmac.pyi
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from typing import Optional
|
| 2 |
+
|
| 3 |
+
from cryptography.hazmat.backends.interfaces import HMACBackend
|
| 4 |
+
from cryptography.hazmat.primitives.hashes import HashAlgorithm
|
| 5 |
+
|
| 6 |
+
class HMAC(object):
|
| 7 |
+
def __init__(self, key: bytes, algorithm: HashAlgorithm, backend: Optional[HMACBackend] = ...) -> None: ...
|
| 8 |
+
def copy(self) -> HMAC: ...
|
| 9 |
+
def finalize(self) -> bytes: ...
|
| 10 |
+
def update(self, msg: bytes) -> None: ...
|
| 11 |
+
def verify(self, signature: bytes) -> None: ...
|
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/third_party/2and3/cryptography/hazmat/primitives/kdf/__init__.pyi
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from abc import ABCMeta, abstractmethod
|
| 2 |
+
|
| 3 |
+
class KeyDerivationFunction(metaclass=ABCMeta):
|
| 4 |
+
@abstractmethod
|
| 5 |
+
def derive(self, key_material: bytes) -> bytes: ...
|
| 6 |
+
@abstractmethod
|
| 7 |
+
def verify(self, key_material: bytes, expected_key: bytes) -> None: ...
|
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/third_party/2and3/cryptography/hazmat/primitives/kdf/concatkdf.pyi
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from typing import Optional
|
| 2 |
+
|
| 3 |
+
from cryptography.hazmat.backends.interfaces import HashBackend, HMACBackend
|
| 4 |
+
from cryptography.hazmat.primitives.hashes import HashAlgorithm
|
| 5 |
+
from cryptography.hazmat.primitives.kdf import KeyDerivationFunction
|
| 6 |
+
|
| 7 |
+
class ConcatKDFHash(KeyDerivationFunction):
|
| 8 |
+
def __init__(
|
| 9 |
+
self, algorithm: HashAlgorithm, length: int, otherinfo: Optional[bytes], backend: Optional[HashBackend] = ...
|
| 10 |
+
): ...
|
| 11 |
+
def derive(self, key_material: bytes) -> bytes: ...
|
| 12 |
+
def verify(self, key_material: bytes, expected_key: bytes) -> None: ...
|
| 13 |
+
|
| 14 |
+
class ConcatKDFHMAC(KeyDerivationFunction):
|
| 15 |
+
def __init__(
|
| 16 |
+
self,
|
| 17 |
+
algorithm: HashAlgorithm,
|
| 18 |
+
length: int,
|
| 19 |
+
salt: Optional[bytes],
|
| 20 |
+
otherinfo: Optional[bytes],
|
| 21 |
+
backend: Optional[HMACBackend] = ...,
|
| 22 |
+
): ...
|
| 23 |
+
def derive(self, key_material: bytes) -> bytes: ...
|
| 24 |
+
def verify(self, key_material: bytes, expected_key: bytes) -> None: ...
|
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/third_party/2and3/cryptography/hazmat/primitives/kdf/hkdf.pyi
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from typing import Optional
|
| 2 |
+
|
| 3 |
+
from cryptography.hazmat.backends.interfaces import HMACBackend
|
| 4 |
+
from cryptography.hazmat.primitives.hashes import HashAlgorithm
|
| 5 |
+
from cryptography.hazmat.primitives.kdf import KeyDerivationFunction
|
| 6 |
+
|
| 7 |
+
class HKDF(KeyDerivationFunction):
|
| 8 |
+
def __init__(
|
| 9 |
+
self,
|
| 10 |
+
algorithm: HashAlgorithm,
|
| 11 |
+
length: int,
|
| 12 |
+
salt: Optional[bytes],
|
| 13 |
+
info: Optional[bytes],
|
| 14 |
+
backend: Optional[HMACBackend] = ...,
|
| 15 |
+
): ...
|
| 16 |
+
def derive(self, key_material: bytes) -> bytes: ...
|
| 17 |
+
def verify(self, key_material: bytes, expected_key: bytes) -> None: ...
|
| 18 |
+
|
| 19 |
+
class HKDFExpand(KeyDerivationFunction):
|
| 20 |
+
def __init__(self, algorithm: HashAlgorithm, length: int, info: Optional[bytes], backend: Optional[HMACBackend] = ...): ...
|
| 21 |
+
def derive(self, key_material: bytes) -> bytes: ...
|
| 22 |
+
def verify(self, key_material: bytes, expected_key: bytes) -> None: ...
|
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/third_party/2and3/cryptography/hazmat/primitives/kdf/kbkdf.pyi
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from enum import Enum
|
| 2 |
+
from typing import Optional
|
| 3 |
+
|
| 4 |
+
from cryptography.hazmat.backends.interfaces import HMACBackend
|
| 5 |
+
from cryptography.hazmat.primitives.hashes import HashAlgorithm
|
| 6 |
+
from cryptography.hazmat.primitives.kdf import KeyDerivationFunction
|
| 7 |
+
|
| 8 |
+
class Mode(Enum):
|
| 9 |
+
CounterMode: str
|
| 10 |
+
|
| 11 |
+
class CounterLocation(Enum):
|
| 12 |
+
BeforeFixed: str
|
| 13 |
+
AfterFixed: str
|
| 14 |
+
|
| 15 |
+
class KBKDFHMAC(KeyDerivationFunction):
|
| 16 |
+
def __init__(
|
| 17 |
+
self,
|
| 18 |
+
algorithm: HashAlgorithm,
|
| 19 |
+
mode: Mode,
|
| 20 |
+
length: int,
|
| 21 |
+
rlen: int,
|
| 22 |
+
llen: int,
|
| 23 |
+
location: CounterLocation,
|
| 24 |
+
label: Optional[bytes],
|
| 25 |
+
context: Optional[bytes],
|
| 26 |
+
fixed: Optional[bytes],
|
| 27 |
+
backend: Optional[HMACBackend] = ...,
|
| 28 |
+
): ...
|
| 29 |
+
def derive(self, key_material: bytes) -> bytes: ...
|
| 30 |
+
def verify(self, key_material: bytes, expected_key: bytes) -> None: ...
|
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/third_party/2and3/cryptography/hazmat/primitives/kdf/pbkdf2.pyi
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from typing import Optional
|
| 2 |
+
|
| 3 |
+
from cryptography.hazmat.backends.interfaces import PBKDF2HMACBackend
|
| 4 |
+
from cryptography.hazmat.primitives.hashes import HashAlgorithm
|
| 5 |
+
from cryptography.hazmat.primitives.kdf import KeyDerivationFunction
|
| 6 |
+
|
| 7 |
+
class PBKDF2HMAC(KeyDerivationFunction):
|
| 8 |
+
def __init__(
|
| 9 |
+
self, algorithm: HashAlgorithm, length: int, salt: bytes, iterations: int, backend: Optional[PBKDF2HMACBackend] = ...
|
| 10 |
+
): ...
|
| 11 |
+
def derive(self, key_material: bytes) -> bytes: ...
|
| 12 |
+
def verify(self, key_material: bytes, expected_key: bytes) -> None: ...
|
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/third_party/2and3/cryptography/hazmat/primitives/kdf/scrypt.pyi
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from typing import Optional
|
| 2 |
+
|
| 3 |
+
from cryptography.hazmat.backends.interfaces import ScryptBackend
|
| 4 |
+
from cryptography.hazmat.primitives.kdf import KeyDerivationFunction
|
| 5 |
+
|
| 6 |
+
class Scrypt(KeyDerivationFunction):
|
| 7 |
+
def __init__(self, salt: bytes, length: int, n: int, r: int, p: int, backend: Optional[ScryptBackend] = ...): ...
|
| 8 |
+
def derive(self, key_material: bytes) -> bytes: ...
|
| 9 |
+
def verify(self, key_material: bytes, expected_key: bytes) -> None: ...
|
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/third_party/2and3/cryptography/hazmat/primitives/kdf/x963kdf.pyi
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from typing import Optional
|
| 2 |
+
|
| 3 |
+
from cryptography.hazmat.backends.interfaces import HashBackend
|
| 4 |
+
from cryptography.hazmat.primitives.hashes import HashAlgorithm
|
| 5 |
+
from cryptography.hazmat.primitives.kdf import KeyDerivationFunction
|
| 6 |
+
|
| 7 |
+
class X963KDF(KeyDerivationFunction):
|
| 8 |
+
def __init__(
|
| 9 |
+
self, algorithm: HashAlgorithm, length: int, sharedinfo: Optional[bytes], backend: Optional[HashBackend] = ...
|
| 10 |
+
): ...
|
| 11 |
+
def derive(self, key_material: bytes) -> bytes: ...
|
| 12 |
+
def verify(self, key_material: bytes, expected_key: bytes) -> None: ...
|
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/third_party/2and3/cryptography/hazmat/primitives/keywrap.pyi
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from typing import Optional
|
| 2 |
+
|
| 3 |
+
from cryptography.hazmat.backends.interfaces import CipherBackend
|
| 4 |
+
|
| 5 |
+
def aes_key_wrap(wrapping_key: bytes, key_to_wrap: bytes, backend: Optional[CipherBackend] = ...) -> bytes: ...
|
| 6 |
+
def aes_key_wrap_with_padding(wrapping_key: bytes, key_to_wrap: bytes, backend: Optional[CipherBackend] = ...) -> bytes: ...
|
| 7 |
+
def aes_key_unwrap(wrapping_key: bytes, wrapped_key: bytes, backend: Optional[CipherBackend] = ...) -> bytes: ...
|
| 8 |
+
def aes_key_unwrap_with_padding(wrapping_key: bytes, wrapped_key: bytes, backend: Optional[CipherBackend] = ...) -> bytes: ...
|
| 9 |
+
|
| 10 |
+
class InvalidUnwrap(Exception): ...
|
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/third_party/2and3/cryptography/hazmat/primitives/padding.pyi
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from abc import ABCMeta, abstractmethod
|
| 2 |
+
|
| 3 |
+
class PaddingContext(metaclass=ABCMeta):
|
| 4 |
+
@abstractmethod
|
| 5 |
+
def finalize(self) -> bytes: ...
|
| 6 |
+
@abstractmethod
|
| 7 |
+
def update(self, data: bytes) -> bytes: ...
|
| 8 |
+
|
| 9 |
+
class ANSIX923(object):
|
| 10 |
+
def __init__(self, block_size: int) -> None: ...
|
| 11 |
+
def padder(self) -> PaddingContext: ...
|
| 12 |
+
def unpadder(self) -> PaddingContext: ...
|
| 13 |
+
|
| 14 |
+
class PKCS7(object):
|
| 15 |
+
def __init__(self, block_size: int) -> None: ...
|
| 16 |
+
def padder(self) -> PaddingContext: ...
|
| 17 |
+
def unpadder(self) -> PaddingContext: ...
|
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/third_party/2and3/cryptography/hazmat/primitives/poly1305.pyi
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
class Poly1305(object):
|
| 2 |
+
def __init__(self, key: bytes) -> None: ...
|
| 3 |
+
def finalize(self) -> bytes: ...
|
| 4 |
+
@classmethod
|
| 5 |
+
def generate_tag(cls, key: bytes, data: bytes) -> bytes: ...
|
| 6 |
+
def update(self, data: bytes) -> None: ...
|
| 7 |
+
def verify(self, tag: bytes) -> None: ...
|
| 8 |
+
@classmethod
|
| 9 |
+
def verify_tag(cls, key: bytes, data: bytes, tag: bytes) -> None: ...
|
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/third_party/2and3/cryptography/hazmat/primitives/serialization/__init__.pyi
ADDED
|
@@ -0,0 +1,63 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from abc import ABCMeta
|
| 2 |
+
from enum import Enum
|
| 3 |
+
from typing import Any, Optional, Union
|
| 4 |
+
|
| 5 |
+
from cryptography.hazmat.backends.interfaces import (
|
| 6 |
+
DERSerializationBackend,
|
| 7 |
+
DSABackend,
|
| 8 |
+
EllipticCurveBackend,
|
| 9 |
+
PEMSerializationBackend,
|
| 10 |
+
RSABackend,
|
| 11 |
+
)
|
| 12 |
+
from cryptography.hazmat.primitives.asymmetric.dh import DHPrivateKey, DHPublicKey
|
| 13 |
+
from cryptography.hazmat.primitives.asymmetric.dsa import DSAPrivateKey, DSAPublicKey
|
| 14 |
+
from cryptography.hazmat.primitives.asymmetric.ec import EllipticCurvePrivateKey, EllipticCurvePublicKey
|
| 15 |
+
from cryptography.hazmat.primitives.asymmetric.ed25519 import Ed25519PublicKey
|
| 16 |
+
from cryptography.hazmat.primitives.asymmetric.rsa import RSAPrivateKey, RSAPublicKey
|
| 17 |
+
|
| 18 |
+
def load_pem_private_key(
|
| 19 |
+
data: bytes, password: Optional[bytes], backend: Optional[PEMSerializationBackend] = ...
|
| 20 |
+
) -> Any: ... # actually Union[RSAPrivateKey, DSAPrivateKey, DHPrivateKey, EllipticCurvePrivateKey]
|
| 21 |
+
def load_pem_public_key(
|
| 22 |
+
data: bytes, backend: Optional[PEMSerializationBackend] = ...
|
| 23 |
+
) -> Any: ... # actually Union[RSAPublicKey, DSAPublicKey, DHPublicKey, EllipticCurvePublicKey]
|
| 24 |
+
def load_der_private_key(
|
| 25 |
+
data: bytes, password: Optional[bytes], backend: Optional[DERSerializationBackend] = ...
|
| 26 |
+
) -> Any: ... # actually Union[RSAPrivateKey, DSAPrivateKey, DHPrivateKey, EllipticCurvePrivateKey]
|
| 27 |
+
def load_der_public_key(
|
| 28 |
+
data: bytes, backend: Optional[DERSerializationBackend] = ...
|
| 29 |
+
) -> Any: ... # actually Union[RSAPublicKey, DSAPublicKey, DHPublicKey, EllipticCurvePublicKey]
|
| 30 |
+
def load_ssh_public_key(
|
| 31 |
+
data: bytes, backend: Union[RSABackend, DSABackend, EllipticCurveBackend, None]
|
| 32 |
+
) -> Any: ... # actually Union[RSAPublicKey, DSAPublicKey, DHPublicKey, EllipticCurvePublicKey, Ed25519PublicKey]
|
| 33 |
+
|
| 34 |
+
class Encoding(Enum):
|
| 35 |
+
PEM: str
|
| 36 |
+
DER: str
|
| 37 |
+
OpenSSH: str
|
| 38 |
+
Raw: str
|
| 39 |
+
X962: str
|
| 40 |
+
|
| 41 |
+
class PrivateFormat(Enum):
|
| 42 |
+
PKCS8: str
|
| 43 |
+
TraditionalOpenSSL: str
|
| 44 |
+
Raw: str
|
| 45 |
+
|
| 46 |
+
class PublicFormat(Enum):
|
| 47 |
+
SubjectPublicKeyInfo: str
|
| 48 |
+
PKCS1: str
|
| 49 |
+
OpenSSH: str
|
| 50 |
+
Raw: str
|
| 51 |
+
CompressedPoint: str
|
| 52 |
+
UncompressedPoint: str
|
| 53 |
+
|
| 54 |
+
class ParameterFormat(Enum):
|
| 55 |
+
PKCS3: str
|
| 56 |
+
|
| 57 |
+
class KeySerializationEncryption(metaclass=ABCMeta): ...
|
| 58 |
+
|
| 59 |
+
class BestAvailableEncryption(KeySerializationEncryption):
|
| 60 |
+
password: bytes
|
| 61 |
+
def __init__(self, password: bytes) -> None: ...
|
| 62 |
+
|
| 63 |
+
class NoEncryption(KeySerializationEncryption): ...
|
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/third_party/2and3/cryptography/hazmat/primitives/serialization/pkcs12.pyi
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from typing import Any, List, Optional, Tuple, Union
|
| 2 |
+
|
| 3 |
+
from cryptography.hazmat.primitives.asymmetric.dsa import DSAPrivateKeyWithSerialization
|
| 4 |
+
from cryptography.hazmat.primitives.asymmetric.ec import EllipticCurvePrivateKeyWithSerialization
|
| 5 |
+
from cryptography.hazmat.primitives.asymmetric.rsa import RSAPrivateKeyWithSerialization
|
| 6 |
+
from cryptography.hazmat.primitives.serialization import KeySerializationEncryption
|
| 7 |
+
from cryptography.x509 import Certificate
|
| 8 |
+
|
| 9 |
+
def load_key_and_certificates(
|
| 10 |
+
data: bytes, password: Optional[bytes], backend: Optional[Any] = ...
|
| 11 |
+
) -> Tuple[Optional[Any], Optional[Certificate], List[Certificate]]: ...
|
| 12 |
+
def serialize_key_and_certificates(
|
| 13 |
+
name: bytes,
|
| 14 |
+
key: Union[RSAPrivateKeyWithSerialization, EllipticCurvePrivateKeyWithSerialization, DSAPrivateKeyWithSerialization],
|
| 15 |
+
cert: Optional[Certificate],
|
| 16 |
+
cas: Optional[List[Certificate]],
|
| 17 |
+
enc: KeySerializationEncryption,
|
| 18 |
+
) -> bytes: ...
|
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/third_party/2and3/cryptography/hazmat/primitives/twofactor/__init__.pyi
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
class InvalidToken(Exception): ...
|