basedpyright 1.18.3 → 1.18.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -3
- package/dist/pyright-langserver.js +1 -1
- package/dist/pyright-langserver.js.map +1 -1
- package/dist/pyright.js +1 -1
- package/dist/pyright.js.map +1 -1
- package/dist/typeshed-fallback/commit.txt +1 -1
- package/dist/typeshed-fallback/stdlib/VERSIONS +2 -0
- package/dist/typeshed-fallback/stdlib/_ast.pyi +140 -1667
- package/dist/typeshed-fallback/stdlib/_csv.pyi +14 -3
- package/dist/typeshed-fallback/stdlib/_curses.pyi +857 -65
- package/dist/typeshed-fallback/stdlib/_decimal.pyi +29 -820
- package/dist/typeshed-fallback/stdlib/_socket.pyi +4 -12
- package/dist/typeshed-fallback/stdlib/_sqlite3.pyi +387 -0
- package/dist/typeshed-fallback/stdlib/_ssl.pyi +406 -0
- package/dist/typeshed-fallback/stdlib/_weakref.pyi +2 -41
- package/dist/typeshed-fallback/stdlib/ast.pyi +1843 -172
- package/dist/typeshed-fallback/stdlib/builtins.pyi +5 -0
- package/dist/typeshed-fallback/stdlib/cProfile.pyi +3 -3
- package/dist/typeshed-fallback/stdlib/calendar.pyi +3 -3
- package/dist/typeshed-fallback/stdlib/concurrent/futures/process.pyi +3 -2
- package/dist/typeshed-fallback/stdlib/contextlib.pyi +6 -8
- package/dist/typeshed-fallback/stdlib/csv.pyi +4 -3
- package/dist/typeshed-fallback/stdlib/curses/__init__.pyi +7 -2
- package/dist/typeshed-fallback/stdlib/curses/panel.pyi +4 -4
- package/dist/typeshed-fallback/stdlib/curses/textpad.pyi +3 -3
- package/dist/typeshed-fallback/stdlib/decimal.pyi +840 -2
- package/dist/typeshed-fallback/stdlib/email/_policybase.pyi +27 -18
- package/dist/typeshed-fallback/stdlib/email/feedparser.pyi +5 -5
- package/dist/typeshed-fallback/stdlib/email/generator.pyi +46 -9
- package/dist/typeshed-fallback/stdlib/email/message.pyi +8 -6
- package/dist/typeshed-fallback/stdlib/email/parser.pyi +6 -4
- package/dist/typeshed-fallback/stdlib/email/policy.pyi +28 -10
- package/dist/typeshed-fallback/stdlib/http/client.pyi +3 -2
- package/dist/typeshed-fallback/stdlib/io.pyi +6 -22
- package/dist/typeshed-fallback/stdlib/multiprocessing/connection.pyi +27 -19
- package/dist/typeshed-fallback/stdlib/multiprocessing/context.pyi +5 -2
- package/dist/typeshed-fallback/stdlib/multiprocessing/managers.pyi +4 -2
- package/dist/typeshed-fallback/stdlib/multiprocessing/reduction.pyi +2 -2
- package/dist/typeshed-fallback/stdlib/profile.pyi +3 -3
- package/dist/typeshed-fallback/stdlib/pyexpat/__init__.pyi +1 -5
- package/dist/typeshed-fallback/stdlib/re.pyi +10 -1
- package/dist/typeshed-fallback/stdlib/socket.pyi +12 -4
- package/dist/typeshed-fallback/stdlib/sqlite3/__init__.pyi +739 -1
- package/dist/typeshed-fallback/stdlib/sqlite3/dbapi2.pyi +220 -884
- package/dist/typeshed-fallback/stdlib/sre_constants.pyi +1 -8
- package/dist/typeshed-fallback/stdlib/ssl.pyi +40 -128
- package/dist/typeshed-fallback/stdlib/tarfile.pyi +111 -6
- package/dist/typeshed-fallback/stdlib/tkinter/__init__.pyi +127 -21
- package/dist/typeshed-fallback/stdlib/tokenize.pyi +1 -1
- package/dist/typeshed-fallback/stdlib/typing.pyi +7 -7
- package/dist/typeshed-fallback/stdlib/typing_extensions.pyi +1 -1
- package/dist/typeshed-fallback/stdlib/unittest/mock.pyi +2 -2
- package/dist/typeshed-fallback/stdlib/weakref.pyi +49 -14
- package/dist/typeshed-fallback/stdlib/xml/parsers/expat/__init__.pyi +6 -0
- package/dist/typeshed-fallback/stdlib/xmlrpc/client.pyi +1 -1
- package/dist/typeshed-fallback/stdlib/xmlrpc/server.pyi +3 -2
- package/dist/typeshed-fallback/stdlib/zoneinfo/__init__.pyi +41 -44
- package/dist/typeshed-fallback/stdlib/zoneinfo/_common.pyi +13 -0
- package/dist/typeshed-fallback/stdlib/zoneinfo/_tzpath.pyi +13 -0
- package/dist/typeshed-fallback/stubs/Flask-SocketIO/METADATA.toml +1 -1
- package/dist/typeshed-fallback/stubs/braintree/METADATA.toml +1 -1
- package/dist/typeshed-fallback/stubs/braintree/braintree/error_codes.pyi +1 -0
- package/dist/typeshed-fallback/stubs/docutils/docutils/__init__.pyi +3 -1
- package/dist/typeshed-fallback/stubs/docutils/docutils/frontend.pyi +1 -2
- package/dist/typeshed-fallback/stubs/docutils/docutils/parsers/rst/directives/admonitions.pyi +15 -2
- package/dist/typeshed-fallback/stubs/docutils/docutils/readers/doctree.pyi +1 -1
- package/dist/typeshed-fallback/stubs/docutils/docutils/writers/__init__.pyi +21 -2
- package/dist/typeshed-fallback/stubs/fpdf2/fpdf/fpdf.pyi +4 -4
- package/dist/typeshed-fallback/stubs/greenlet/METADATA.toml +1 -1
- package/dist/typeshed-fallback/stubs/hdbcli/METADATA.toml +1 -1
- package/dist/typeshed-fallback/stubs/icalendar/METADATA.toml +5 -2
- package/dist/typeshed-fallback/stubs/icalendar/icalendar/__init__.pyi +49 -5
- package/dist/typeshed-fallback/stubs/icalendar/icalendar/cal.pyi +32 -6
- package/dist/typeshed-fallback/stubs/icalendar/icalendar/caselessdict.pyi +2 -0
- package/dist/typeshed-fallback/stubs/icalendar/icalendar/parser.pyi +25 -1
- package/dist/typeshed-fallback/stubs/icalendar/icalendar/parser_tools.pyi +7 -3
- package/dist/typeshed-fallback/stubs/icalendar/icalendar/prop.pyi +112 -72
- package/dist/typeshed-fallback/stubs/icalendar/icalendar/timezone/__init__.pyi +8 -0
- package/dist/typeshed-fallback/stubs/icalendar/icalendar/timezone/provider.pyi +29 -0
- package/dist/typeshed-fallback/stubs/icalendar/icalendar/timezone/pytz.pyi +22 -0
- package/dist/typeshed-fallback/stubs/icalendar/icalendar/timezone/tzp.pyi +30 -0
- package/dist/typeshed-fallback/stubs/icalendar/icalendar/timezone/zoneinfo.pyi +33 -0
- package/dist/typeshed-fallback/stubs/icalendar/icalendar/tools.pyi +2 -0
- package/dist/typeshed-fallback/stubs/icalendar/icalendar/version.pyi +8 -0
- package/dist/typeshed-fallback/stubs/jwcrypto/METADATA.toml +3 -0
- package/dist/typeshed-fallback/stubs/jwcrypto/jwcrypto/common.pyi +48 -0
- package/dist/typeshed-fallback/stubs/jwcrypto/jwcrypto/jwa.pyi +35 -0
- package/dist/typeshed-fallback/stubs/jwcrypto/jwcrypto/jwe.pyi +51 -0
- package/dist/typeshed-fallback/stubs/jwcrypto/jwcrypto/jwk.pyi +115 -0
- package/dist/typeshed-fallback/stubs/jwcrypto/jwcrypto/jws.pyi +52 -0
- package/dist/typeshed-fallback/stubs/jwcrypto/jwcrypto/jwt.pyi +78 -0
- package/dist/typeshed-fallback/stubs/m3u8/METADATA.toml +2 -0
- package/dist/typeshed-fallback/stubs/m3u8/m3u8/__init__.pyi +74 -0
- package/dist/typeshed-fallback/stubs/m3u8/m3u8/httpclient.pyi +19 -0
- package/dist/typeshed-fallback/stubs/m3u8/m3u8/mixins.pyi +25 -0
- package/dist/typeshed-fallback/stubs/m3u8/m3u8/model.pyi +406 -0
- package/dist/typeshed-fallback/stubs/m3u8/m3u8/parser.pyi +14 -0
- package/dist/typeshed-fallback/stubs/m3u8/m3u8/protocol.pyi +41 -0
- package/dist/typeshed-fallback/stubs/m3u8/m3u8/version_matching.pyi +5 -0
- package/dist/typeshed-fallback/stubs/m3u8/m3u8/version_matching_rules.pyi +24 -0
- package/dist/typeshed-fallback/stubs/paramiko/paramiko/transport.pyi +2 -1
- package/dist/typeshed-fallback/stubs/protobuf/METADATA.toml +2 -2
- package/dist/typeshed-fallback/stubs/protobuf/google/protobuf/descriptor_pb2.pyi +4 -3
- package/dist/typeshed-fallback/stubs/protobuf/google/protobuf/internal/well_known_types.pyi +0 -1
- package/dist/typeshed-fallback/stubs/pytz/pytz/__init__.pyi +4 -4
- package/dist/typeshed-fallback/stubs/pytz/pytz/tzinfo.pyi +1 -1
- package/dist/typeshed-fallback/stubs/qrcode/METADATA.toml +3 -2
- package/dist/typeshed-fallback/stubs/redis/redis/client.pyi +18 -0
- package/dist/typeshed-fallback/stubs/reportlab/METADATA.toml +1 -1
- package/dist/typeshed-fallback/stubs/reportlab/reportlab/graphics/renderPDF.pyi +2 -2
- package/dist/typeshed-fallback/stubs/seaborn/METADATA.toml +9 -1
- package/dist/typeshed-fallback/stubs/vobject/vobject/__init__.pyi +4 -0
- package/dist/typeshed-fallback/stubs/vobject/vobject/base.pyi +11 -2
- package/dist/typeshed-fallback/stubs/vobject/vobject/behavior.pyi +1 -1
- package/dist/typeshed-fallback/stubs/vobject/vobject/change_tz.pyi +4 -0
- package/dist/typeshed-fallback/stubs/vobject/vobject/ics_diff.pyi +0 -3
- package/dist/typeshed-fallback/stubs/vobject/vobject/vcard.pyi +1 -1
- package/dist/typeshed-fallback/stubs/waitress/waitress/__init__.pyi +2 -2
- package/package.json +1 -1
- package/dist/typeshed-fallback/stubs/Pillow/METADATA.toml +0 -8
- package/dist/typeshed-fallback/stubs/Pillow/PIL/BdfFontFile.pyi +0 -11
- package/dist/typeshed-fallback/stubs/Pillow/PIL/BlpImagePlugin.pyi +0 -39
- package/dist/typeshed-fallback/stubs/Pillow/PIL/BmpImagePlugin.pyi +0 -25
- package/dist/typeshed-fallback/stubs/Pillow/PIL/BufrStubImagePlugin.pyi +0 -9
- package/dist/typeshed-fallback/stubs/Pillow/PIL/ContainerIO.pyi +0 -14
- package/dist/typeshed-fallback/stubs/Pillow/PIL/CurImagePlugin.pyi +0 -6
- package/dist/typeshed-fallback/stubs/Pillow/PIL/DcxImagePlugin.pyi +0 -13
- package/dist/typeshed-fallback/stubs/Pillow/PIL/DdsImagePlugin.pyi +0 -314
- package/dist/typeshed-fallback/stubs/Pillow/PIL/EpsImagePlugin.pyi +0 -34
- package/dist/typeshed-fallback/stubs/Pillow/PIL/ExifTags.pyi +0 -347
- package/dist/typeshed-fallback/stubs/Pillow/PIL/FitsImagePlugin.pyi +0 -7
- package/dist/typeshed-fallback/stubs/Pillow/PIL/FliImagePlugin.pyi +0 -9
- package/dist/typeshed-fallback/stubs/Pillow/PIL/FontFile.pyi +0 -16
- package/dist/typeshed-fallback/stubs/Pillow/PIL/FpxImagePlugin.pyi +0 -23
- package/dist/typeshed-fallback/stubs/Pillow/PIL/FtexImagePlugin.pyi +0 -15
- package/dist/typeshed-fallback/stubs/Pillow/PIL/GbrImagePlugin.pyi +0 -11
- package/dist/typeshed-fallback/stubs/Pillow/PIL/GdImageFile.pyi +0 -9
- package/dist/typeshed-fallback/stubs/Pillow/PIL/GifImagePlugin.pyi +0 -31
- package/dist/typeshed-fallback/stubs/Pillow/PIL/GimpGradientFile.pyi +0 -19
- package/dist/typeshed-fallback/stubs/Pillow/PIL/GimpPaletteFile.pyi +0 -7
- package/dist/typeshed-fallback/stubs/Pillow/PIL/GribStubImagePlugin.pyi +0 -9
- package/dist/typeshed-fallback/stubs/Pillow/PIL/Hdf5StubImagePlugin.pyi +0 -9
- package/dist/typeshed-fallback/stubs/Pillow/PIL/IcnsImagePlugin.pyi +0 -36
- package/dist/typeshed-fallback/stubs/Pillow/PIL/IcoImagePlugin.pyi +0 -26
- package/dist/typeshed-fallback/stubs/Pillow/PIL/ImImagePlugin.pyi +0 -34
- package/dist/typeshed-fallback/stubs/Pillow/PIL/Image.pyi +0 -342
- package/dist/typeshed-fallback/stubs/Pillow/PIL/ImageChops.pyi +0 -23
- package/dist/typeshed-fallback/stubs/Pillow/PIL/ImageCms.pyi +0 -84
- package/dist/typeshed-fallback/stubs/Pillow/PIL/ImageColor.pyi +0 -10
- package/dist/typeshed-fallback/stubs/Pillow/PIL/ImageDraw.pyi +0 -155
- package/dist/typeshed-fallback/stubs/Pillow/PIL/ImageDraw2.pyi +0 -37
- package/dist/typeshed-fallback/stubs/Pillow/PIL/ImageEnhance.pyi +0 -25
- package/dist/typeshed-fallback/stubs/Pillow/PIL/ImageFile.pyi +0 -89
- package/dist/typeshed-fallback/stubs/Pillow/PIL/ImageFilter.pyi +0 -136
- package/dist/typeshed-fallback/stubs/Pillow/PIL/ImageFont.pyi +0 -114
- package/dist/typeshed-fallback/stubs/Pillow/PIL/ImageGrab.pyi +0 -36
- package/dist/typeshed-fallback/stubs/Pillow/PIL/ImageMath.pyi +0 -49
- package/dist/typeshed-fallback/stubs/Pillow/PIL/ImageMode.pyi +0 -10
- package/dist/typeshed-fallback/stubs/Pillow/PIL/ImageMorph.pyi +0 -26
- package/dist/typeshed-fallback/stubs/Pillow/PIL/ImageOps.pyi +0 -53
- package/dist/typeshed-fallback/stubs/Pillow/PIL/ImagePalette.pyi +0 -26
- package/dist/typeshed-fallback/stubs/Pillow/PIL/ImagePath.pyi +0 -3
- package/dist/typeshed-fallback/stubs/Pillow/PIL/ImageQt.pyi +0 -26
- package/dist/typeshed-fallback/stubs/Pillow/PIL/ImageSequence.pyi +0 -14
- package/dist/typeshed-fallback/stubs/Pillow/PIL/ImageShow.pyi +0 -58
- package/dist/typeshed-fallback/stubs/Pillow/PIL/ImageStat.pyi +0 -14
- package/dist/typeshed-fallback/stubs/Pillow/PIL/ImageTk.pyi +0 -51
- package/dist/typeshed-fallback/stubs/Pillow/PIL/ImageTransform.pyi +0 -21
- package/dist/typeshed-fallback/stubs/Pillow/PIL/ImageWin.pyi +0 -38
- package/dist/typeshed-fallback/stubs/Pillow/PIL/ImtImagePlugin.pyi +0 -10
- package/dist/typeshed-fallback/stubs/Pillow/PIL/IptcImagePlugin.pyi +0 -23
- package/dist/typeshed-fallback/stubs/Pillow/PIL/Jpeg2KImagePlugin.pyi +0 -23
- package/dist/typeshed-fallback/stubs/Pillow/PIL/JpegImagePlugin.pyi +0 -30
- package/dist/typeshed-fallback/stubs/Pillow/PIL/JpegPresets.pyi +0 -3
- package/dist/typeshed-fallback/stubs/Pillow/PIL/McIdasImagePlugin.pyi +0 -7
- package/dist/typeshed-fallback/stubs/Pillow/PIL/MicImagePlugin.pyi +0 -18
- package/dist/typeshed-fallback/stubs/Pillow/PIL/MpegImagePlugin.pyi +0 -18
- package/dist/typeshed-fallback/stubs/Pillow/PIL/MpoImagePlugin.pyi +0 -15
- package/dist/typeshed-fallback/stubs/Pillow/PIL/MspImagePlugin.pyi +0 -10
- package/dist/typeshed-fallback/stubs/Pillow/PIL/PSDraw.pyi +0 -19
- package/dist/typeshed-fallback/stubs/Pillow/PIL/PaletteFile.pyi +0 -7
- package/dist/typeshed-fallback/stubs/Pillow/PIL/PalmImagePlugin.pyi +0 -5
- package/dist/typeshed-fallback/stubs/Pillow/PIL/PcdImagePlugin.pyi +0 -10
- package/dist/typeshed-fallback/stubs/Pillow/PIL/PcfFontFile.pyi +0 -25
- package/dist/typeshed-fallback/stubs/Pillow/PIL/PcxImagePlugin.pyi +0 -10
- package/dist/typeshed-fallback/stubs/Pillow/PIL/PdfParser.pyi +0 -167
- package/dist/typeshed-fallback/stubs/Pillow/PIL/PixarImagePlugin.pyi +0 -7
- package/dist/typeshed-fallback/stubs/Pillow/PIL/PngImagePlugin.pyi +0 -115
- package/dist/typeshed-fallback/stubs/Pillow/PIL/PpmImagePlugin.pyi +0 -17
- package/dist/typeshed-fallback/stubs/Pillow/PIL/PsdImagePlugin.pyi +0 -17
- package/dist/typeshed-fallback/stubs/Pillow/PIL/PyAccess.pyi +0 -69
- package/dist/typeshed-fallback/stubs/Pillow/PIL/QoiImagePlugin.pyi +0 -11
- package/dist/typeshed-fallback/stubs/Pillow/PIL/SgiImagePlugin.pyi +0 -13
- package/dist/typeshed-fallback/stubs/Pillow/PIL/SpiderImagePlugin.pyi +0 -28
- package/dist/typeshed-fallback/stubs/Pillow/PIL/SunImagePlugin.pyi +0 -7
- package/dist/typeshed-fallback/stubs/Pillow/PIL/TarIO.pyi +0 -12
- package/dist/typeshed-fallback/stubs/Pillow/PIL/TgaImagePlugin.pyi +0 -12
- package/dist/typeshed-fallback/stubs/Pillow/PIL/TiffImagePlugin.pyi +0 -295
- package/dist/typeshed-fallback/stubs/Pillow/PIL/TiffTags.pyi +0 -46
- package/dist/typeshed-fallback/stubs/Pillow/PIL/WalImageFile.pyi +0 -14
- package/dist/typeshed-fallback/stubs/Pillow/PIL/WebPImagePlugin.pyi +0 -18
- package/dist/typeshed-fallback/stubs/Pillow/PIL/WmfImagePlugin.pyi +0 -19
- package/dist/typeshed-fallback/stubs/Pillow/PIL/XVThumbImagePlugin.pyi +0 -9
- package/dist/typeshed-fallback/stubs/Pillow/PIL/XbmImagePlugin.pyi +0 -10
- package/dist/typeshed-fallback/stubs/Pillow/PIL/XpmImagePlugin.pyi +0 -11
- package/dist/typeshed-fallback/stubs/Pillow/PIL/__init__.pyi +0 -3
- package/dist/typeshed-fallback/stubs/Pillow/PIL/_binary.pyi +0 -13
- package/dist/typeshed-fallback/stubs/Pillow/PIL/_imaging.pyi +0 -29
- package/dist/typeshed-fallback/stubs/Pillow/PIL/_tkinter_finder.pyi +0 -2
- package/dist/typeshed-fallback/stubs/Pillow/PIL/_version.pyi +0 -1
- package/dist/typeshed-fallback/stubs/Pillow/PIL/features.pyi +0 -23
- package/dist/typeshed-fallback/stubs/icalendar/icalendar/timezone_cache.pyi +0 -0
- /package/dist/typeshed-fallback/stubs/icalendar/icalendar/{windows_to_olson.pyi → timezone/windows_to_olson.pyi} +0 -0
- /package/dist/typeshed-fallback/stubs/{Pillow/PIL/PdfImagePlugin.pyi → jwcrypto/jwcrypto/__init__.pyi} +0 -0
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
from _typeshed import Incomplete
|
|
2
|
+
from collections.abc import Sequence
|
|
3
|
+
from enum import Enum
|
|
4
|
+
from typing import Any, NamedTuple
|
|
5
|
+
|
|
6
|
+
from cryptography.hazmat.primitives.asymmetric.ed448 import Ed448PrivateKey as Ed448PrivateKey, Ed448PublicKey as Ed448PublicKey
|
|
7
|
+
from cryptography.hazmat.primitives.asymmetric.ed25519 import (
|
|
8
|
+
Ed25519PrivateKey as Ed25519PrivateKey,
|
|
9
|
+
Ed25519PublicKey as Ed25519PublicKey,
|
|
10
|
+
)
|
|
11
|
+
from cryptography.hazmat.primitives.asymmetric.x448 import X448PrivateKey as X448PrivateKey, X448PublicKey as X448PublicKey
|
|
12
|
+
from cryptography.hazmat.primitives.asymmetric.x25519 import (
|
|
13
|
+
X25519PrivateKey as X25519PrivateKey,
|
|
14
|
+
X25519PublicKey as X25519PublicKey,
|
|
15
|
+
)
|
|
16
|
+
from jwcrypto.common import JWException
|
|
17
|
+
|
|
18
|
+
class UnimplementedOKPCurveKey:
|
|
19
|
+
@classmethod
|
|
20
|
+
def generate(cls) -> None: ...
|
|
21
|
+
@classmethod
|
|
22
|
+
def from_public_bytes(cls, *args) -> None: ...
|
|
23
|
+
@classmethod
|
|
24
|
+
def from_private_bytes(cls, *args) -> None: ...
|
|
25
|
+
|
|
26
|
+
ImplementedOkpCurves: Sequence[str]
|
|
27
|
+
priv_bytes: Incomplete
|
|
28
|
+
|
|
29
|
+
JWKTypesRegistry: Incomplete
|
|
30
|
+
|
|
31
|
+
class ParmType(Enum):
|
|
32
|
+
name: str
|
|
33
|
+
b64: str
|
|
34
|
+
b64u: str
|
|
35
|
+
unsupported: str
|
|
36
|
+
|
|
37
|
+
class JWKParameter(NamedTuple):
|
|
38
|
+
description: Incomplete
|
|
39
|
+
public: Incomplete
|
|
40
|
+
required: Incomplete
|
|
41
|
+
type: Incomplete
|
|
42
|
+
|
|
43
|
+
JWKValuesRegistry: Incomplete
|
|
44
|
+
JWKParamsRegistry: Incomplete
|
|
45
|
+
JWKEllipticCurveRegistry: Incomplete
|
|
46
|
+
JWKUseRegistry: Incomplete
|
|
47
|
+
JWKOperationsRegistry: Incomplete
|
|
48
|
+
JWKpycaCurveMap: Incomplete
|
|
49
|
+
IANANamedInformationHashAlgorithmRegistry: Incomplete
|
|
50
|
+
|
|
51
|
+
class InvalidJWKType(JWException):
|
|
52
|
+
value: Incomplete
|
|
53
|
+
def __init__(self, value: Incomplete | None = None) -> None: ...
|
|
54
|
+
|
|
55
|
+
class InvalidJWKUsage(JWException):
|
|
56
|
+
value: Incomplete
|
|
57
|
+
use: Incomplete
|
|
58
|
+
def __init__(self, use, value) -> None: ...
|
|
59
|
+
|
|
60
|
+
class InvalidJWKOperation(JWException):
|
|
61
|
+
op: Incomplete
|
|
62
|
+
values: Incomplete
|
|
63
|
+
def __init__(self, operation, values) -> None: ...
|
|
64
|
+
|
|
65
|
+
class InvalidJWKValue(JWException): ...
|
|
66
|
+
|
|
67
|
+
class JWK(dict[str, Any]):
|
|
68
|
+
def __init__(self, **kwargs) -> None: ...
|
|
69
|
+
@classmethod
|
|
70
|
+
def generate(cls, **kwargs): ...
|
|
71
|
+
def generate_key(self, **params) -> None: ...
|
|
72
|
+
def import_key(self, **kwargs) -> None: ...
|
|
73
|
+
@classmethod
|
|
74
|
+
def from_json(cls, key): ...
|
|
75
|
+
def export(self, private_key: bool = True, as_dict: bool = False): ...
|
|
76
|
+
def export_public(self, as_dict: bool = False): ...
|
|
77
|
+
def export_private(self, as_dict: bool = False): ...
|
|
78
|
+
def export_symmetric(self, as_dict: bool = False): ...
|
|
79
|
+
def public(self): ...
|
|
80
|
+
@property
|
|
81
|
+
def has_public(self) -> bool: ...
|
|
82
|
+
@property
|
|
83
|
+
def has_private(self) -> bool: ...
|
|
84
|
+
@property
|
|
85
|
+
def is_symmetric(self) -> bool: ...
|
|
86
|
+
@property
|
|
87
|
+
def key_type(self): ...
|
|
88
|
+
@property
|
|
89
|
+
def key_id(self): ...
|
|
90
|
+
@property
|
|
91
|
+
def key_curve(self): ...
|
|
92
|
+
def get_curve(self, arg): ...
|
|
93
|
+
def get_op_key(self, operation: Incomplete | None = None, arg: Incomplete | None = None): ...
|
|
94
|
+
def import_from_pyca(self, key) -> None: ...
|
|
95
|
+
def import_from_pem(self, data, password: Incomplete | None = None, kid: Incomplete | None = None) -> None: ...
|
|
96
|
+
def export_to_pem(self, private_key: bool = False, password: bool = False): ...
|
|
97
|
+
@classmethod
|
|
98
|
+
def from_pyca(cls, key): ...
|
|
99
|
+
@classmethod
|
|
100
|
+
def from_pem(cls, data, password: Incomplete | None = None): ...
|
|
101
|
+
def thumbprint(self, hashalg=...): ...
|
|
102
|
+
def thumbprint_uri(self, hname: str = "sha-256"): ...
|
|
103
|
+
@classmethod
|
|
104
|
+
def from_password(cls, password): ...
|
|
105
|
+
def setdefault(self, key: str, default: Incomplete | None = None): ...
|
|
106
|
+
|
|
107
|
+
class JWKSet(dict[str, Any]):
|
|
108
|
+
def add(self, elem) -> None: ...
|
|
109
|
+
def export(self, private_keys: bool = True, as_dict: bool = False): ...
|
|
110
|
+
def import_keyset(self, keyset) -> None: ...
|
|
111
|
+
@classmethod
|
|
112
|
+
def from_json(cls, keyset): ...
|
|
113
|
+
def get_key(self, kid): ...
|
|
114
|
+
def get_keys(self, kid): ...
|
|
115
|
+
def setdefault(self, key: str, default: Incomplete | None = None): ...
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
from _typeshed import Incomplete
|
|
2
|
+
|
|
3
|
+
from jwcrypto.common import JWException
|
|
4
|
+
|
|
5
|
+
JWSHeaderRegistry: Incomplete
|
|
6
|
+
default_allowed_algs: Incomplete
|
|
7
|
+
|
|
8
|
+
class InvalidJWSSignature(JWException):
|
|
9
|
+
def __init__(self, message: str | None = None, exception: BaseException | None = None) -> None: ...
|
|
10
|
+
|
|
11
|
+
class InvalidJWSObject(JWException):
|
|
12
|
+
def __init__(self, message: str | None = None, exception: BaseException | None = None) -> None: ...
|
|
13
|
+
|
|
14
|
+
class InvalidJWSOperation(JWException):
|
|
15
|
+
def __init__(self, message: str | None = None, exception: BaseException | None = None) -> None: ...
|
|
16
|
+
|
|
17
|
+
class JWSCore:
|
|
18
|
+
alg: Incomplete
|
|
19
|
+
engine: Incomplete
|
|
20
|
+
key: Incomplete
|
|
21
|
+
header: Incomplete
|
|
22
|
+
protected: Incomplete
|
|
23
|
+
payload: Incomplete
|
|
24
|
+
def __init__(self, alg, key, header, payload, algs: Incomplete | None = None) -> None: ...
|
|
25
|
+
def sign(self): ...
|
|
26
|
+
def verify(self, signature): ...
|
|
27
|
+
|
|
28
|
+
class JWS:
|
|
29
|
+
objects: Incomplete
|
|
30
|
+
verifylog: Incomplete
|
|
31
|
+
header_registry: Incomplete
|
|
32
|
+
def __init__(self, payload: Incomplete | None = None, header_registry: Incomplete | None = None) -> None: ...
|
|
33
|
+
@property
|
|
34
|
+
def allowed_algs(self): ...
|
|
35
|
+
@allowed_algs.setter
|
|
36
|
+
def allowed_algs(self, algs) -> None: ...
|
|
37
|
+
@property
|
|
38
|
+
def is_valid(self): ...
|
|
39
|
+
def verify(self, key, alg: Incomplete | None = None, detached_payload: Incomplete | None = None) -> None: ...
|
|
40
|
+
def deserialize(self, raw_jws, key: Incomplete | None = None, alg: Incomplete | None = None) -> None: ...
|
|
41
|
+
def add_signature(
|
|
42
|
+
self, key, alg: Incomplete | None = None, protected: Incomplete | None = None, header: Incomplete | None = None
|
|
43
|
+
) -> None: ...
|
|
44
|
+
def serialize(self, compact: bool = False): ...
|
|
45
|
+
@property
|
|
46
|
+
def payload(self): ...
|
|
47
|
+
def detach_payload(self) -> None: ...
|
|
48
|
+
@property
|
|
49
|
+
def jose_header(self): ...
|
|
50
|
+
@classmethod
|
|
51
|
+
def from_jose_token(cls, token): ...
|
|
52
|
+
def __eq__(self, other: object) -> bool: ...
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
from _typeshed import Incomplete
|
|
2
|
+
from collections.abc import Mapping
|
|
3
|
+
from typing_extensions import deprecated
|
|
4
|
+
|
|
5
|
+
from jwcrypto.common import JWException, JWKeyNotFound
|
|
6
|
+
from jwcrypto.jwk import JWK, JWKSet
|
|
7
|
+
|
|
8
|
+
JWTClaimsRegistry: Mapping[str, str]
|
|
9
|
+
JWT_expect_type: bool
|
|
10
|
+
|
|
11
|
+
class JWTExpired(JWException):
|
|
12
|
+
def __init__(self, message: str | None = None, exception: BaseException | None = None) -> None: ...
|
|
13
|
+
|
|
14
|
+
class JWTNotYetValid(JWException):
|
|
15
|
+
def __init__(self, message: str | None = None, exception: BaseException | None = None) -> None: ...
|
|
16
|
+
|
|
17
|
+
class JWTMissingClaim(JWException):
|
|
18
|
+
def __init__(self, message: str | None = None, exception: BaseException | None = None) -> None: ...
|
|
19
|
+
|
|
20
|
+
class JWTInvalidClaimValue(JWException):
|
|
21
|
+
def __init__(self, message: str | None = None, exception: BaseException | None = None) -> None: ...
|
|
22
|
+
|
|
23
|
+
class JWTInvalidClaimFormat(JWException):
|
|
24
|
+
def __init__(self, message: str | None = None, exception: BaseException | None = None) -> None: ...
|
|
25
|
+
|
|
26
|
+
@deprecated("")
|
|
27
|
+
class JWTMissingKeyID(JWException):
|
|
28
|
+
def __init__(self, message: str | None = None, exception: BaseException | None = None) -> None: ...
|
|
29
|
+
|
|
30
|
+
class JWTMissingKey(JWKeyNotFound):
|
|
31
|
+
def __init__(self, message: str | None = None, exception: BaseException | None = None) -> None: ...
|
|
32
|
+
|
|
33
|
+
class JWT:
|
|
34
|
+
deserializelog: Incomplete
|
|
35
|
+
def __init__(
|
|
36
|
+
self,
|
|
37
|
+
header: dict[Incomplete, Incomplete] | str | None = None,
|
|
38
|
+
claims: dict[Incomplete, Incomplete] | str | None = None,
|
|
39
|
+
jwt: Incomplete | None = None,
|
|
40
|
+
key: JWK | JWKSet | None = None,
|
|
41
|
+
algs: Incomplete | None = None,
|
|
42
|
+
default_claims: Incomplete | None = None,
|
|
43
|
+
check_claims: Incomplete | None = None,
|
|
44
|
+
expected_type: Incomplete | None = None,
|
|
45
|
+
) -> None: ...
|
|
46
|
+
@property
|
|
47
|
+
def header(self): ...
|
|
48
|
+
@header.setter
|
|
49
|
+
def header(self, h) -> None: ...
|
|
50
|
+
@property
|
|
51
|
+
def claims(self): ...
|
|
52
|
+
@claims.setter
|
|
53
|
+
def claims(self, data) -> None: ...
|
|
54
|
+
@property
|
|
55
|
+
def token(self): ...
|
|
56
|
+
@token.setter
|
|
57
|
+
def token(self, t) -> None: ...
|
|
58
|
+
@property
|
|
59
|
+
def leeway(self): ...
|
|
60
|
+
@leeway.setter
|
|
61
|
+
def leeway(self, lwy) -> None: ...
|
|
62
|
+
@property
|
|
63
|
+
def validity(self): ...
|
|
64
|
+
@validity.setter
|
|
65
|
+
def validity(self, v) -> None: ...
|
|
66
|
+
@property
|
|
67
|
+
def expected_type(self): ...
|
|
68
|
+
@expected_type.setter
|
|
69
|
+
def expected_type(self, v) -> None: ...
|
|
70
|
+
def norm_typ(self, val): ...
|
|
71
|
+
def make_signed_token(self, key) -> None: ...
|
|
72
|
+
def make_encrypted_token(self, key) -> None: ...
|
|
73
|
+
def validate(self, key) -> None: ...
|
|
74
|
+
def deserialize(self, jwt, key: Incomplete | None = None) -> None: ...
|
|
75
|
+
def serialize(self, compact: bool = True): ...
|
|
76
|
+
@classmethod
|
|
77
|
+
def from_jose_token(cls, token): ...
|
|
78
|
+
def __eq__(self, other: object) -> bool: ...
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
from _typeshed import Incomplete
|
|
2
|
+
from collections.abc import Callable, Mapping
|
|
3
|
+
from typing import Any
|
|
4
|
+
from typing_extensions import TypeAlias
|
|
5
|
+
|
|
6
|
+
from m3u8.httpclient import _HTTPClientProtocol
|
|
7
|
+
from m3u8.model import (
|
|
8
|
+
M3U8,
|
|
9
|
+
ContentSteering,
|
|
10
|
+
DateRange,
|
|
11
|
+
DateRangeList,
|
|
12
|
+
IFramePlaylist,
|
|
13
|
+
ImagePlaylist,
|
|
14
|
+
Key,
|
|
15
|
+
Media,
|
|
16
|
+
MediaList,
|
|
17
|
+
PartialSegment,
|
|
18
|
+
PartialSegmentList,
|
|
19
|
+
PartInformation,
|
|
20
|
+
Playlist,
|
|
21
|
+
PlaylistList,
|
|
22
|
+
PreloadHint,
|
|
23
|
+
RenditionReport,
|
|
24
|
+
RenditionReportList,
|
|
25
|
+
Segment,
|
|
26
|
+
SegmentList,
|
|
27
|
+
ServerControl,
|
|
28
|
+
Skip,
|
|
29
|
+
Start,
|
|
30
|
+
Tiles,
|
|
31
|
+
)
|
|
32
|
+
from m3u8.parser import ParseError, parse
|
|
33
|
+
|
|
34
|
+
__all__ = (
|
|
35
|
+
"M3U8",
|
|
36
|
+
"Segment",
|
|
37
|
+
"SegmentList",
|
|
38
|
+
"PartialSegment",
|
|
39
|
+
"PartialSegmentList",
|
|
40
|
+
"Key",
|
|
41
|
+
"Playlist",
|
|
42
|
+
"IFramePlaylist",
|
|
43
|
+
"Media",
|
|
44
|
+
"MediaList",
|
|
45
|
+
"PlaylistList",
|
|
46
|
+
"Start",
|
|
47
|
+
"RenditionReport",
|
|
48
|
+
"RenditionReportList",
|
|
49
|
+
"ServerControl",
|
|
50
|
+
"Skip",
|
|
51
|
+
"PartInformation",
|
|
52
|
+
"PreloadHint",
|
|
53
|
+
"DateRange",
|
|
54
|
+
"DateRangeList",
|
|
55
|
+
"ContentSteering",
|
|
56
|
+
"ImagePlaylist",
|
|
57
|
+
"Tiles",
|
|
58
|
+
"loads",
|
|
59
|
+
"load",
|
|
60
|
+
"parse",
|
|
61
|
+
"ParseError",
|
|
62
|
+
)
|
|
63
|
+
|
|
64
|
+
_CustomTagsParser: TypeAlias = Callable[[str, int, dict[str, Any], dict[str, Any]], object]
|
|
65
|
+
|
|
66
|
+
def loads(content: str, uri: str | None = None, custom_tags_parser: _CustomTagsParser | None = None) -> M3U8: ...
|
|
67
|
+
def load(
|
|
68
|
+
uri: str,
|
|
69
|
+
timeout: Incomplete | None = None,
|
|
70
|
+
headers: Mapping[str, Any] = {},
|
|
71
|
+
custom_tags_parser: _CustomTagsParser | None = None,
|
|
72
|
+
http_client: _HTTPClientProtocol = ...,
|
|
73
|
+
verify_ssl: bool = True,
|
|
74
|
+
) -> M3U8: ...
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import urllib.request
|
|
2
|
+
from typing import Any, Protocol, type_check_only
|
|
3
|
+
|
|
4
|
+
@type_check_only
|
|
5
|
+
class _HTTPClientProtocol(Protocol): # noqa: Y046
|
|
6
|
+
def download(
|
|
7
|
+
self, uri: str, timeout: float | None = None, headers: dict[str, Any] = {}, verify_ssl: bool = True
|
|
8
|
+
) -> tuple[str, str]: ...
|
|
9
|
+
|
|
10
|
+
class DefaultHTTPClient:
|
|
11
|
+
proxies: dict[str, str] | None
|
|
12
|
+
|
|
13
|
+
def __init__(self, proxies: dict[str, str] | None = None) -> None: ...
|
|
14
|
+
def download(
|
|
15
|
+
self, uri: str, timeout: float | None = None, headers: dict[str, Any] = {}, verify_ssl: bool = True
|
|
16
|
+
) -> tuple[str, str]: ...
|
|
17
|
+
|
|
18
|
+
class HTTPSHandler:
|
|
19
|
+
def __new__(cls, verify_ssl: bool = True) -> urllib.request.HTTPSHandler: ... # type: ignore
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
from abc import ABCMeta
|
|
2
|
+
from collections.abc import Iterable
|
|
3
|
+
from typing import TypeVar
|
|
4
|
+
|
|
5
|
+
_T = TypeVar("_T")
|
|
6
|
+
|
|
7
|
+
class BasePathMixin:
|
|
8
|
+
uri: str | None
|
|
9
|
+
@property
|
|
10
|
+
def absolute_uri(self) -> str: ...
|
|
11
|
+
@property
|
|
12
|
+
def base_path(self) -> str: ...
|
|
13
|
+
@base_path.setter
|
|
14
|
+
def base_path(self, newbase_path: str) -> None: ...
|
|
15
|
+
def get_path_from_uri(self) -> str: ...
|
|
16
|
+
|
|
17
|
+
class GroupedBasePathMixin(Iterable[_T], metaclass=ABCMeta):
|
|
18
|
+
@property
|
|
19
|
+
def base_uri(self) -> str: ...
|
|
20
|
+
@base_uri.setter
|
|
21
|
+
def base_uri(self, __new_url: str, /) -> None: ...
|
|
22
|
+
@property
|
|
23
|
+
def base_path(self) -> str: ...
|
|
24
|
+
@base_path.setter
|
|
25
|
+
def base_path(self, __new_url: str, /) -> None: ...
|