basedpyright 1.24.0 → 1.25.0
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/dist/pyright-langserver.js +1 -1
- package/dist/pyright-langserver.js.LICENSE.txt +42 -0
- 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/stdlib/_asyncio.pyi +3 -25
- package/dist/typeshed-fallback/stdlib/_bisect.pyi +4 -44
- package/dist/typeshed-fallback/stdlib/_bootlocale.pyi +1 -1
- package/dist/typeshed-fallback/stdlib/_csv.pyi +2 -16
- package/dist/typeshed-fallback/stdlib/_dbm.pyi +1 -13
- package/dist/typeshed-fallback/stdlib/_decimal.pyi +1 -8
- package/dist/typeshed-fallback/stdlib/_dummy_thread.pyi +33 -33
- package/dist/typeshed-fallback/stdlib/_dummy_threading.pyi +164 -180
- package/dist/typeshed-fallback/stdlib/_gdbm.pyi +1 -39
- package/dist/typeshed-fallback/stdlib/_hashlib.pyi +7 -28
- package/dist/typeshed-fallback/stdlib/_imp.pyi +1 -3
- package/dist/typeshed-fallback/stdlib/_msi.pyi +92 -94
- package/dist/typeshed-fallback/stdlib/_sqlite3.pyi +6 -48
- package/dist/typeshed-fallback/stdlib/_ssl.pyi +1 -8
- package/dist/typeshed-fallback/stdlib/_thread.pyi +1 -8
- package/dist/typeshed-fallback/stdlib/_warnings.pyi +2 -6
- package/dist/typeshed-fallback/stdlib/aifc.pyi +91 -91
- package/dist/typeshed-fallback/stdlib/array.pyi +3 -17
- package/dist/typeshed-fallback/stdlib/asynchat.pyi +21 -21
- package/dist/typeshed-fallback/stdlib/asyncio/sslproto.pyi +4 -23
- package/dist/typeshed-fallback/stdlib/asyncore.pyi +90 -90
- package/dist/typeshed-fallback/stdlib/audioop.pyi +43 -95
- package/dist/typeshed-fallback/stdlib/binascii.pyi +5 -15
- package/dist/typeshed-fallback/stdlib/binhex.pyi +45 -45
- package/dist/typeshed-fallback/stdlib/builtins.pyi +8 -106
- package/dist/typeshed-fallback/stdlib/cgi.pyi +118 -118
- package/dist/typeshed-fallback/stdlib/cgitb.pyi +32 -32
- package/dist/typeshed-fallback/stdlib/chunk.pyi +20 -20
- package/dist/typeshed-fallback/stdlib/datetime.pyi +4 -12
- package/dist/typeshed-fallback/stdlib/distutils/__init__.pyi +5 -5
- package/dist/typeshed-fallback/stdlib/distutils/_msvccompiler.pyi +13 -13
- package/dist/typeshed-fallback/stdlib/distutils/archive_util.pyi +35 -35
- package/dist/typeshed-fallback/stdlib/distutils/bcppcompiler.pyi +3 -3
- package/dist/typeshed-fallback/stdlib/distutils/ccompiler.pyi +176 -176
- package/dist/typeshed-fallback/stdlib/distutils/cmd.pyi +229 -229
- package/dist/typeshed-fallback/stdlib/distutils/command/__init__.pyi +48 -48
- package/dist/typeshed-fallback/stdlib/distutils/command/bdist.pyi +27 -27
- package/dist/typeshed-fallback/stdlib/distutils/command/bdist_dumb.pyi +22 -22
- package/dist/typeshed-fallback/stdlib/distutils/command/bdist_msi.pyi +46 -46
- package/dist/typeshed-fallback/stdlib/distutils/command/bdist_rpm.pyi +53 -53
- package/dist/typeshed-fallback/stdlib/distutils/command/bdist_wininst.pyi +16 -16
- package/dist/typeshed-fallback/stdlib/distutils/command/build.pyi +34 -34
- package/dist/typeshed-fallback/stdlib/distutils/command/build_clib.pyi +29 -29
- package/dist/typeshed-fallback/stdlib/distutils/command/build_ext.pyi +52 -52
- package/dist/typeshed-fallback/stdlib/distutils/command/build_py.pyi +45 -45
- package/dist/typeshed-fallback/stdlib/distutils/command/build_scripts.pyi +25 -25
- package/dist/typeshed-fallback/stdlib/distutils/command/check.pyi +40 -40
- package/dist/typeshed-fallback/stdlib/distutils/command/clean.pyi +18 -18
- package/dist/typeshed-fallback/stdlib/distutils/command/config.pyi +84 -84
- package/dist/typeshed-fallback/stdlib/distutils/command/install.pyi +71 -71
- package/dist/typeshed-fallback/stdlib/distutils/command/install_data.pyi +20 -20
- package/dist/typeshed-fallback/stdlib/distutils/command/install_egg_info.pyi +19 -19
- package/dist/typeshed-fallback/stdlib/distutils/command/install_headers.pyi +17 -17
- package/dist/typeshed-fallback/stdlib/distutils/command/install_lib.pyi +26 -26
- package/dist/typeshed-fallback/stdlib/distutils/command/install_scripts.pyi +19 -19
- package/dist/typeshed-fallback/stdlib/distutils/command/register.pyi +21 -21
- package/dist/typeshed-fallback/stdlib/distutils/command/sdist.pyi +45 -45
- package/dist/typeshed-fallback/stdlib/distutils/command/upload.pyi +18 -18
- package/dist/typeshed-fallback/stdlib/distutils/config.pyi +17 -17
- package/dist/typeshed-fallback/stdlib/distutils/core.pyi +58 -58
- package/dist/typeshed-fallback/stdlib/distutils/cygwinccompiler.pyi +20 -20
- package/dist/typeshed-fallback/stdlib/distutils/debug.pyi +3 -3
- package/dist/typeshed-fallback/stdlib/distutils/dep_util.pyi +14 -14
- package/dist/typeshed-fallback/stdlib/distutils/dir_util.pyi +23 -23
- package/dist/typeshed-fallback/stdlib/distutils/dist.pyi +317 -317
- package/dist/typeshed-fallback/stdlib/distutils/errors.pyi +19 -19
- package/dist/typeshed-fallback/stdlib/distutils/extension.pyi +36 -36
- package/dist/typeshed-fallback/stdlib/distutils/fancy_getopt.pyi +34 -34
- package/dist/typeshed-fallback/stdlib/distutils/file_util.pyi +38 -38
- package/dist/typeshed-fallback/stdlib/distutils/filelist.pyi +58 -58
- package/dist/typeshed-fallback/stdlib/distutils/log.pyi +26 -26
- package/dist/typeshed-fallback/stdlib/distutils/msvccompiler.pyi +3 -3
- package/dist/typeshed-fallback/stdlib/distutils/spawn.pyi +10 -10
- package/dist/typeshed-fallback/stdlib/distutils/sysconfig.pyi +33 -33
- package/dist/typeshed-fallback/stdlib/distutils/text_file.pyi +21 -21
- package/dist/typeshed-fallback/stdlib/distutils/unixccompiler.pyi +3 -3
- package/dist/typeshed-fallback/stdlib/distutils/util.pyi +53 -53
- package/dist/typeshed-fallback/stdlib/distutils/version.pyi +36 -38
- package/dist/typeshed-fallback/stdlib/dummy_threading.pyi +2 -2
- package/dist/typeshed-fallback/stdlib/encodings/mac_centeuro.pyi +21 -21
- package/dist/typeshed-fallback/stdlib/formatter.pyi +88 -88
- package/dist/typeshed-fallback/stdlib/hmac.pyi +2 -30
- package/dist/typeshed-fallback/stdlib/imghdr.pyi +17 -17
- package/dist/typeshed-fallback/stdlib/imp.pyi +62 -62
- package/dist/typeshed-fallback/stdlib/importlib/metadata/__init__.pyi +7 -36
- package/dist/typeshed-fallback/stdlib/lib2to3/btm_matcher.pyi +28 -28
- package/dist/typeshed-fallback/stdlib/lib2to3/fixer_base.pyi +42 -42
- package/dist/typeshed-fallback/stdlib/lib2to3/fixes/fix_apply.pyi +8 -8
- package/dist/typeshed-fallback/stdlib/lib2to3/fixes/fix_asserts.pyi +10 -10
- package/dist/typeshed-fallback/stdlib/lib2to3/fixes/fix_basestring.pyi +8 -8
- package/dist/typeshed-fallback/stdlib/lib2to3/fixes/fix_buffer.pyi +8 -8
- package/dist/typeshed-fallback/stdlib/lib2to3/fixes/fix_dict.pyi +16 -16
- package/dist/typeshed-fallback/stdlib/lib2to3/fixes/fix_except.pyi +14 -14
- package/dist/typeshed-fallback/stdlib/lib2to3/fixes/fix_exec.pyi +8 -8
- package/dist/typeshed-fallback/stdlib/lib2to3/fixes/fix_execfile.pyi +8 -8
- package/dist/typeshed-fallback/stdlib/lib2to3/fixes/fix_exitfunc.pyi +13 -13
- package/dist/typeshed-fallback/stdlib/lib2to3/fixes/fix_filter.pyi +9 -9
- package/dist/typeshed-fallback/stdlib/lib2to3/fixes/fix_funcattrs.pyi +8 -8
- package/dist/typeshed-fallback/stdlib/lib2to3/fixes/fix_future.pyi +8 -8
- package/dist/typeshed-fallback/stdlib/lib2to3/fixes/fix_getcwdu.pyi +8 -8
- package/dist/typeshed-fallback/stdlib/lib2to3/fixes/fix_has_key.pyi +8 -8
- package/dist/typeshed-fallback/stdlib/lib2to3/fixes/fix_idioms.pyi +15 -15
- package/dist/typeshed-fallback/stdlib/lib2to3/fixes/fix_import.pyi +16 -16
- package/dist/typeshed-fallback/stdlib/lib2to3/fixes/fix_imports.pyi +21 -21
- package/dist/typeshed-fallback/stdlib/lib2to3/fixes/fix_imports2.pyi +8 -8
- package/dist/typeshed-fallback/stdlib/lib2to3/fixes/fix_input.pyi +11 -11
- package/dist/typeshed-fallback/stdlib/lib2to3/fixes/fix_intern.pyi +9 -9
- package/dist/typeshed-fallback/stdlib/lib2to3/fixes/fix_isinstance.pyi +8 -8
- package/dist/typeshed-fallback/stdlib/lib2to3/fixes/fix_itertools.pyi +9 -9
- package/dist/typeshed-fallback/stdlib/lib2to3/fixes/fix_itertools_imports.pyi +7 -7
- package/dist/typeshed-fallback/stdlib/lib2to3/fixes/fix_long.pyi +7 -7
- package/dist/typeshed-fallback/stdlib/lib2to3/fixes/fix_map.pyi +9 -9
- package/dist/typeshed-fallback/stdlib/lib2to3/fixes/fix_metaclass.pyi +17 -17
- package/dist/typeshed-fallback/stdlib/lib2to3/fixes/fix_methodattrs.pyi +10 -10
- package/dist/typeshed-fallback/stdlib/lib2to3/fixes/fix_ne.pyi +8 -8
- package/dist/typeshed-fallback/stdlib/lib2to3/fixes/fix_next.pyi +19 -19
- package/dist/typeshed-fallback/stdlib/lib2to3/fixes/fix_nonzero.pyi +8 -8
- package/dist/typeshed-fallback/stdlib/lib2to3/fixes/fix_numliterals.pyi +8 -8
- package/dist/typeshed-fallback/stdlib/lib2to3/fixes/fix_operator.pyi +12 -12
- package/dist/typeshed-fallback/stdlib/lib2to3/fixes/fix_paren.pyi +8 -8
- package/dist/typeshed-fallback/stdlib/lib2to3/fixes/fix_print.pyi +12 -12
- package/dist/typeshed-fallback/stdlib/lib2to3/fixes/fix_raise.pyi +8 -8
- package/dist/typeshed-fallback/stdlib/lib2to3/fixes/fix_raw_input.pyi +8 -8
- package/dist/typeshed-fallback/stdlib/lib2to3/fixes/fix_reduce.pyi +8 -8
- package/dist/typeshed-fallback/stdlib/lib2to3/fixes/fix_reload.pyi +9 -9
- package/dist/typeshed-fallback/stdlib/lib2to3/fixes/fix_renames.pyi +17 -17
- package/dist/typeshed-fallback/stdlib/lib2to3/fixes/fix_repr.pyi +8 -8
- package/dist/typeshed-fallback/stdlib/lib2to3/fixes/fix_set_literal.pyi +7 -7
- package/dist/typeshed-fallback/stdlib/lib2to3/fixes/fix_standarderror.pyi +8 -8
- package/dist/typeshed-fallback/stdlib/lib2to3/fixes/fix_sys_exc.pyi +9 -9
- package/dist/typeshed-fallback/stdlib/lib2to3/fixes/fix_throw.pyi +8 -8
- package/dist/typeshed-fallback/stdlib/lib2to3/fixes/fix_tuple_params.pyi +17 -17
- package/dist/typeshed-fallback/stdlib/lib2to3/fixes/fix_types.pyi +8 -8
- package/dist/typeshed-fallback/stdlib/lib2to3/fixes/fix_unicode.pyi +12 -12
- package/dist/typeshed-fallback/stdlib/lib2to3/fixes/fix_urllib.pyi +15 -15
- package/dist/typeshed-fallback/stdlib/lib2to3/fixes/fix_ws_comma.pyi +12 -12
- package/dist/typeshed-fallback/stdlib/lib2to3/fixes/fix_xrange.pyi +20 -20
- package/dist/typeshed-fallback/stdlib/lib2to3/fixes/fix_xreadlines.pyi +8 -8
- package/dist/typeshed-fallback/stdlib/lib2to3/fixes/fix_zip.pyi +9 -9
- package/dist/typeshed-fallback/stdlib/lib2to3/main.pyi +42 -42
- package/dist/typeshed-fallback/stdlib/lib2to3/pgen2/__init__.pyi +9 -9
- package/dist/typeshed-fallback/stdlib/lib2to3/pgen2/driver.pyi +27 -27
- package/dist/typeshed-fallback/stdlib/lib2to3/pgen2/grammar.pyi +24 -24
- package/dist/typeshed-fallback/stdlib/lib2to3/pgen2/literals.pyi +7 -7
- package/dist/typeshed-fallback/stdlib/lib2to3/pgen2/parse.pyi +30 -30
- package/dist/typeshed-fallback/stdlib/lib2to3/pgen2/pgen.pyi +50 -50
- package/dist/typeshed-fallback/stdlib/lib2to3/pgen2/token.pyi +69 -69
- package/dist/typeshed-fallback/stdlib/lib2to3/pgen2/tokenize.pyi +96 -96
- package/dist/typeshed-fallback/stdlib/lib2to3/pygram.pyi +114 -114
- package/dist/typeshed-fallback/stdlib/lib2to3/pytree.pyi +117 -127
- package/dist/typeshed-fallback/stdlib/lib2to3/refactor.pyi +82 -82
- package/dist/typeshed-fallback/stdlib/mailcap.pyi +11 -11
- package/dist/typeshed-fallback/stdlib/marshal.pyi +4 -52
- package/dist/typeshed-fallback/stdlib/math.pyi +2 -6
- package/dist/typeshed-fallback/stdlib/msilib/__init__.pyi +177 -177
- package/dist/typeshed-fallback/stdlib/msilib/schema.pyi +94 -94
- package/dist/typeshed-fallback/stdlib/msilib/sequence.pyi +13 -13
- package/dist/typeshed-fallback/stdlib/msilib/text.pyi +7 -7
- package/dist/typeshed-fallback/stdlib/nis.pyi +4 -31
- package/dist/typeshed-fallback/stdlib/nntplib.pyi +125 -125
- package/dist/typeshed-fallback/stdlib/os/__init__.pyi +1 -8
- package/dist/typeshed-fallback/stdlib/parser.pyi +24 -55
- package/dist/typeshed-fallback/stdlib/pipes.pyi +16 -16
- package/dist/typeshed-fallback/stdlib/smtpd.pyi +91 -91
- package/dist/typeshed-fallback/stdlib/sndhdr.pyi +14 -14
- package/dist/typeshed-fallback/stdlib/spwd.pyi +13 -66
- package/dist/typeshed-fallback/stdlib/sqlite3/__init__.pyi +2 -6
- package/dist/typeshed-fallback/stdlib/ssl.pyi +0 -4
- package/dist/typeshed-fallback/stdlib/sunau.pyi +86 -86
- package/dist/typeshed-fallback/stdlib/symbol.pyi +93 -93
- package/dist/typeshed-fallback/stdlib/sys/__init__.pyi +4 -40
- package/dist/typeshed-fallback/stdlib/telnetlib.pyi +123 -123
- package/dist/typeshed-fallback/stdlib/tkinter/tix.pyi +299 -299
- package/dist/typeshed-fallback/stdlib/types.pyi +2 -6
- package/dist/typeshed-fallback/stdlib/typing.pyi +2 -6
- package/dist/typeshed-fallback/stdlib/typing_extensions.pyi +544 -559
- package/dist/typeshed-fallback/stdlib/unittest/__init__.pyi +1 -6
- package/dist/typeshed-fallback/stdlib/uu.pyi +13 -13
- package/dist/typeshed-fallback/stdlib/xdrlib.pyi +57 -57
- package/dist/typeshed-fallback/stdlib/xxlimited.pyi +1 -3
- package/dist/typeshed-fallback/stdlib/zipimport.pyi +0 -29
- package/dist/typeshed-fallback/stdlib/zlib.pyi +1 -10
- package/dist/typeshed-fallback/stdlib/zoneinfo/__init__.pyi +3 -9
- package/package.json +1 -1
|
@@ -1,91 +1,91 @@
|
|
|
1
|
-
import asynchat
|
|
2
|
-
import asyncore
|
|
3
|
-
import socket
|
|
4
|
-
import sys
|
|
5
|
-
from collections import defaultdict
|
|
6
|
-
from typing import Any
|
|
7
|
-
from typing_extensions import TypeAlias
|
|
8
|
-
|
|
9
|
-
if sys.version_info >= (3, 11):
|
|
10
|
-
__all__ = ["SMTPChannel", "SMTPServer", "DebuggingServer", "PureProxy"]
|
|
11
|
-
else:
|
|
12
|
-
__all__ = ["SMTPChannel", "SMTPServer", "DebuggingServer", "PureProxy", "MailmanProxy"]
|
|
13
|
-
|
|
14
|
-
_Address: TypeAlias = tuple[str, int] # (host, port)
|
|
15
|
-
|
|
16
|
-
class SMTPChannel(asynchat.async_chat):
|
|
17
|
-
COMMAND: int
|
|
18
|
-
DATA: int
|
|
19
|
-
|
|
20
|
-
command_size_limits: defaultdict[str, int]
|
|
21
|
-
smtp_server: SMTPServer
|
|
22
|
-
conn: socket.socket
|
|
23
|
-
addr: Any
|
|
24
|
-
received_lines: list[str]
|
|
25
|
-
smtp_state: int
|
|
26
|
-
seen_greeting: str
|
|
27
|
-
mailfrom: str
|
|
28
|
-
rcpttos: list[str]
|
|
29
|
-
received_data: str
|
|
30
|
-
fqdn: str
|
|
31
|
-
peer: str
|
|
32
|
-
|
|
33
|
-
command_size_limit: int
|
|
34
|
-
data_size_limit: int
|
|
35
|
-
|
|
36
|
-
enable_SMTPUTF8: bool
|
|
37
|
-
@property
|
|
38
|
-
def max_command_size_limit(self) -> int: ...
|
|
39
|
-
def __init__(
|
|
40
|
-
self,
|
|
41
|
-
server: SMTPServer,
|
|
42
|
-
conn: socket.socket,
|
|
43
|
-
addr: Any,
|
|
44
|
-
data_size_limit: int = 33554432,
|
|
45
|
-
map: asyncore._MapType | None = None,
|
|
46
|
-
enable_SMTPUTF8: bool = False,
|
|
47
|
-
decode_data: bool = False,
|
|
48
|
-
) -> None: ...
|
|
49
|
-
# base asynchat.async_chat.push() accepts bytes
|
|
50
|
-
def push(self, msg: str) -> None: ... # type: ignore[override]
|
|
51
|
-
def collect_incoming_data(self, data: bytes) -> None: ...
|
|
52
|
-
def found_terminator(self) -> None: ...
|
|
53
|
-
def smtp_HELO(self, arg: str) -> None: ...
|
|
54
|
-
def smtp_NOOP(self, arg: str) -> None: ...
|
|
55
|
-
def smtp_QUIT(self, arg: str) -> None: ...
|
|
56
|
-
def smtp_MAIL(self, arg: str) -> None: ...
|
|
57
|
-
def smtp_RCPT(self, arg: str) -> None: ...
|
|
58
|
-
def smtp_RSET(self, arg: str) -> None: ...
|
|
59
|
-
def smtp_DATA(self, arg: str) -> None: ...
|
|
60
|
-
def smtp_EHLO(self, arg: str) -> None: ...
|
|
61
|
-
def smtp_HELP(self, arg: str) -> None: ...
|
|
62
|
-
def smtp_VRFY(self, arg: str) -> None: ...
|
|
63
|
-
def smtp_EXPN(self, arg: str) -> None: ...
|
|
64
|
-
|
|
65
|
-
class SMTPServer(asyncore.dispatcher):
|
|
66
|
-
channel_class: type[SMTPChannel]
|
|
67
|
-
|
|
68
|
-
data_size_limit: int
|
|
69
|
-
enable_SMTPUTF8: bool
|
|
70
|
-
def __init__(
|
|
71
|
-
self,
|
|
72
|
-
localaddr: _Address,
|
|
73
|
-
remoteaddr: _Address,
|
|
74
|
-
data_size_limit: int = 33554432,
|
|
75
|
-
map: asyncore._MapType | None = None,
|
|
76
|
-
enable_SMTPUTF8: bool = False,
|
|
77
|
-
decode_data: bool = False,
|
|
78
|
-
) -> None: ...
|
|
79
|
-
def handle_accepted(self, conn: socket.socket, addr: Any) -> None: ...
|
|
80
|
-
def process_message(
|
|
81
|
-
self, peer: _Address, mailfrom: str, rcpttos: list[str], data: bytes | str, **kwargs: Any
|
|
82
|
-
) -> str | None: ...
|
|
83
|
-
|
|
84
|
-
class DebuggingServer(SMTPServer): ...
|
|
85
|
-
|
|
86
|
-
class PureProxy(SMTPServer):
|
|
87
|
-
def process_message(self, peer: _Address, mailfrom: str, rcpttos: list[str], data: bytes | str) -> str | None: ... # type: ignore[override]
|
|
88
|
-
|
|
89
|
-
if sys.version_info < (3, 11):
|
|
90
|
-
class MailmanProxy(PureProxy):
|
|
91
|
-
def process_message(self, peer: _Address, mailfrom: str, rcpttos: list[str], data: bytes | str) -> str | None: ... # type: ignore[override]
|
|
1
|
+
import asynchat
|
|
2
|
+
import asyncore
|
|
3
|
+
import socket
|
|
4
|
+
import sys
|
|
5
|
+
from collections import defaultdict
|
|
6
|
+
from typing import Any
|
|
7
|
+
from typing_extensions import TypeAlias
|
|
8
|
+
|
|
9
|
+
if sys.version_info >= (3, 11):
|
|
10
|
+
__all__ = ["SMTPChannel", "SMTPServer", "DebuggingServer", "PureProxy"]
|
|
11
|
+
else:
|
|
12
|
+
__all__ = ["SMTPChannel", "SMTPServer", "DebuggingServer", "PureProxy", "MailmanProxy"]
|
|
13
|
+
|
|
14
|
+
_Address: TypeAlias = tuple[str, int] # (host, port)
|
|
15
|
+
|
|
16
|
+
class SMTPChannel(asynchat.async_chat):
|
|
17
|
+
COMMAND: int
|
|
18
|
+
DATA: int
|
|
19
|
+
|
|
20
|
+
command_size_limits: defaultdict[str, int]
|
|
21
|
+
smtp_server: SMTPServer
|
|
22
|
+
conn: socket.socket
|
|
23
|
+
addr: Any
|
|
24
|
+
received_lines: list[str]
|
|
25
|
+
smtp_state: int
|
|
26
|
+
seen_greeting: str
|
|
27
|
+
mailfrom: str
|
|
28
|
+
rcpttos: list[str]
|
|
29
|
+
received_data: str
|
|
30
|
+
fqdn: str
|
|
31
|
+
peer: str
|
|
32
|
+
|
|
33
|
+
command_size_limit: int
|
|
34
|
+
data_size_limit: int
|
|
35
|
+
|
|
36
|
+
enable_SMTPUTF8: bool
|
|
37
|
+
@property
|
|
38
|
+
def max_command_size_limit(self) -> int: ...
|
|
39
|
+
def __init__(
|
|
40
|
+
self,
|
|
41
|
+
server: SMTPServer,
|
|
42
|
+
conn: socket.socket,
|
|
43
|
+
addr: Any,
|
|
44
|
+
data_size_limit: int = 33554432,
|
|
45
|
+
map: asyncore._MapType | None = None,
|
|
46
|
+
enable_SMTPUTF8: bool = False,
|
|
47
|
+
decode_data: bool = False,
|
|
48
|
+
) -> None: ...
|
|
49
|
+
# base asynchat.async_chat.push() accepts bytes
|
|
50
|
+
def push(self, msg: str) -> None: ... # type: ignore[override]
|
|
51
|
+
def collect_incoming_data(self, data: bytes) -> None: ...
|
|
52
|
+
def found_terminator(self) -> None: ...
|
|
53
|
+
def smtp_HELO(self, arg: str) -> None: ...
|
|
54
|
+
def smtp_NOOP(self, arg: str) -> None: ...
|
|
55
|
+
def smtp_QUIT(self, arg: str) -> None: ...
|
|
56
|
+
def smtp_MAIL(self, arg: str) -> None: ...
|
|
57
|
+
def smtp_RCPT(self, arg: str) -> None: ...
|
|
58
|
+
def smtp_RSET(self, arg: str) -> None: ...
|
|
59
|
+
def smtp_DATA(self, arg: str) -> None: ...
|
|
60
|
+
def smtp_EHLO(self, arg: str) -> None: ...
|
|
61
|
+
def smtp_HELP(self, arg: str) -> None: ...
|
|
62
|
+
def smtp_VRFY(self, arg: str) -> None: ...
|
|
63
|
+
def smtp_EXPN(self, arg: str) -> None: ...
|
|
64
|
+
|
|
65
|
+
class SMTPServer(asyncore.dispatcher):
|
|
66
|
+
channel_class: type[SMTPChannel]
|
|
67
|
+
|
|
68
|
+
data_size_limit: int
|
|
69
|
+
enable_SMTPUTF8: bool
|
|
70
|
+
def __init__(
|
|
71
|
+
self,
|
|
72
|
+
localaddr: _Address,
|
|
73
|
+
remoteaddr: _Address,
|
|
74
|
+
data_size_limit: int = 33554432,
|
|
75
|
+
map: asyncore._MapType | None = None,
|
|
76
|
+
enable_SMTPUTF8: bool = False,
|
|
77
|
+
decode_data: bool = False,
|
|
78
|
+
) -> None: ...
|
|
79
|
+
def handle_accepted(self, conn: socket.socket, addr: Any) -> None: ...
|
|
80
|
+
def process_message(
|
|
81
|
+
self, peer: _Address, mailfrom: str, rcpttos: list[str], data: bytes | str, **kwargs: Any
|
|
82
|
+
) -> str | None: ...
|
|
83
|
+
|
|
84
|
+
class DebuggingServer(SMTPServer): ...
|
|
85
|
+
|
|
86
|
+
class PureProxy(SMTPServer):
|
|
87
|
+
def process_message(self, peer: _Address, mailfrom: str, rcpttos: list[str], data: bytes | str) -> str | None: ... # type: ignore[override]
|
|
88
|
+
|
|
89
|
+
if sys.version_info < (3, 11):
|
|
90
|
+
class MailmanProxy(PureProxy):
|
|
91
|
+
def process_message(self, peer: _Address, mailfrom: str, rcpttos: list[str], data: bytes | str) -> str | None: ... # type: ignore[override]
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
from _typeshed import StrOrBytesPath
|
|
2
|
-
from typing import NamedTuple
|
|
3
|
-
|
|
4
|
-
__all__ = ["what", "whathdr"]
|
|
5
|
-
|
|
6
|
-
class SndHeaders(NamedTuple):
|
|
7
|
-
filetype: str
|
|
8
|
-
framerate: int
|
|
9
|
-
nchannels: int
|
|
10
|
-
nframes: int
|
|
11
|
-
sampwidth: int | str
|
|
12
|
-
|
|
13
|
-
def what(filename: StrOrBytesPath) -> SndHeaders | None: ...
|
|
14
|
-
def whathdr(filename: StrOrBytesPath) -> SndHeaders | None: ...
|
|
1
|
+
from _typeshed import StrOrBytesPath
|
|
2
|
+
from typing import NamedTuple
|
|
3
|
+
|
|
4
|
+
__all__ = ["what", "whathdr"]
|
|
5
|
+
|
|
6
|
+
class SndHeaders(NamedTuple):
|
|
7
|
+
filetype: str
|
|
8
|
+
framerate: int
|
|
9
|
+
nchannels: int
|
|
10
|
+
nframes: int
|
|
11
|
+
sampwidth: int | str
|
|
12
|
+
|
|
13
|
+
def what(filename: StrOrBytesPath) -> SndHeaders | None: ...
|
|
14
|
+
def whathdr(filename: StrOrBytesPath) -> SndHeaders | None: ...
|
|
@@ -1,15 +1,3 @@
|
|
|
1
|
-
"""
|
|
2
|
-
This module provides access to the Unix shadow password database.
|
|
3
|
-
It is available on various Unix versions.
|
|
4
|
-
|
|
5
|
-
Shadow password database entries are reported as 9-tuples of type struct_spwd,
|
|
6
|
-
containing the following items from the password database (see `<shadow.h>'):
|
|
7
|
-
sp_namp, sp_pwdp, sp_lstchg, sp_min, sp_max, sp_warn, sp_inact, sp_expire, sp_flag.
|
|
8
|
-
The sp_namp and sp_pwdp are strings, the rest are integers.
|
|
9
|
-
An exception is raised if the entry asked for cannot be found.
|
|
10
|
-
You have to be root to be able to use this module.
|
|
11
|
-
"""
|
|
12
|
-
|
|
13
1
|
import sys
|
|
14
2
|
from _typeshed import structseq
|
|
15
3
|
from typing import Any, Final, final
|
|
@@ -17,13 +5,6 @@ from typing import Any, Final, final
|
|
|
17
5
|
if sys.platform != "win32":
|
|
18
6
|
@final
|
|
19
7
|
class struct_spwd(structseq[Any], tuple[str, str, int, int, int, int, int, int, int]):
|
|
20
|
-
"""
|
|
21
|
-
spwd.struct_spwd: Results from getsp*() routines.
|
|
22
|
-
|
|
23
|
-
This object may be accessed either as a 9-tuple of
|
|
24
|
-
(sp_namp,sp_pwdp,sp_lstchg,sp_min,sp_max,sp_warn,sp_inact,sp_expire,sp_flag)
|
|
25
|
-
or via the object attributes as named in the above tuple.
|
|
26
|
-
"""
|
|
27
8
|
if sys.version_info >= (3, 10):
|
|
28
9
|
__match_args__: Final = (
|
|
29
10
|
"sp_namp",
|
|
@@ -38,62 +19,28 @@ if sys.platform != "win32":
|
|
|
38
19
|
)
|
|
39
20
|
|
|
40
21
|
@property
|
|
41
|
-
def sp_namp(self) -> str:
|
|
42
|
-
"""login name"""
|
|
43
|
-
...
|
|
22
|
+
def sp_namp(self) -> str: ...
|
|
44
23
|
@property
|
|
45
|
-
def sp_pwdp(self) -> str:
|
|
46
|
-
"""encrypted password"""
|
|
47
|
-
...
|
|
24
|
+
def sp_pwdp(self) -> str: ...
|
|
48
25
|
@property
|
|
49
|
-
def sp_lstchg(self) -> int:
|
|
50
|
-
"""date of last change"""
|
|
51
|
-
...
|
|
26
|
+
def sp_lstchg(self) -> int: ...
|
|
52
27
|
@property
|
|
53
|
-
def sp_min(self) -> int:
|
|
54
|
-
"""min #days between changes"""
|
|
55
|
-
...
|
|
28
|
+
def sp_min(self) -> int: ...
|
|
56
29
|
@property
|
|
57
|
-
def sp_max(self) -> int:
|
|
58
|
-
"""max #days between changes"""
|
|
59
|
-
...
|
|
30
|
+
def sp_max(self) -> int: ...
|
|
60
31
|
@property
|
|
61
|
-
def sp_warn(self) -> int:
|
|
62
|
-
"""#days before pw expires to warn user about it"""
|
|
63
|
-
...
|
|
32
|
+
def sp_warn(self) -> int: ...
|
|
64
33
|
@property
|
|
65
|
-
def sp_inact(self) -> int:
|
|
66
|
-
"""#days after pw expires until account is disabled"""
|
|
67
|
-
...
|
|
34
|
+
def sp_inact(self) -> int: ...
|
|
68
35
|
@property
|
|
69
|
-
def sp_expire(self) -> int:
|
|
70
|
-
"""#days since 1970-01-01 when account expires"""
|
|
71
|
-
...
|
|
36
|
+
def sp_expire(self) -> int: ...
|
|
72
37
|
@property
|
|
73
|
-
def sp_flag(self) -> int:
|
|
74
|
-
"""reserved"""
|
|
75
|
-
...
|
|
38
|
+
def sp_flag(self) -> int: ...
|
|
76
39
|
# Deprecated aliases below.
|
|
77
40
|
@property
|
|
78
|
-
def sp_nam(self) -> str:
|
|
79
|
-
"""login name; deprecated"""
|
|
80
|
-
...
|
|
41
|
+
def sp_nam(self) -> str: ...
|
|
81
42
|
@property
|
|
82
|
-
def sp_pwd(self) -> str:
|
|
83
|
-
"""encrypted password; deprecated"""
|
|
84
|
-
...
|
|
85
|
-
|
|
86
|
-
def getspall() -> list[struct_spwd]:
|
|
87
|
-
"""
|
|
88
|
-
Return a list of all available shadow password database entries, in arbitrary order.
|
|
89
|
-
|
|
90
|
-
See `help(spwd)` for more on shadow password database entries.
|
|
91
|
-
"""
|
|
92
|
-
...
|
|
93
|
-
def getspnam(arg: str, /) -> struct_spwd:
|
|
94
|
-
"""
|
|
95
|
-
Return the shadow password database entry for the given user name.
|
|
43
|
+
def sp_pwd(self) -> str: ...
|
|
96
44
|
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
...
|
|
45
|
+
def getspall() -> list[struct_spwd]: ...
|
|
46
|
+
def getspnam(arg: str, /) -> struct_spwd: ...
|
|
@@ -461,9 +461,7 @@ class Connection:
|
|
|
461
461
|
"""
|
|
462
462
|
...
|
|
463
463
|
else:
|
|
464
|
-
def iterdump(self) -> Generator[str, None, None]:
|
|
465
|
-
"""Returns iterator to the dump of the database in an SQL text format."""
|
|
466
|
-
...
|
|
464
|
+
def iterdump(self) -> Generator[str, None, None]: ...
|
|
467
465
|
|
|
468
466
|
def rollback(self) -> None:
|
|
469
467
|
"""
|
|
@@ -521,9 +519,7 @@ class Connection:
|
|
|
521
519
|
"""Load SQLite extension module."""
|
|
522
520
|
...
|
|
523
521
|
else:
|
|
524
|
-
def load_extension(self, name: str, /) -> None:
|
|
525
|
-
"""Load SQLite extension module."""
|
|
526
|
-
...
|
|
522
|
+
def load_extension(self, name: str, /) -> None: ...
|
|
527
523
|
|
|
528
524
|
def backup(
|
|
529
525
|
self,
|
|
@@ -325,10 +325,6 @@ class _ASN1Object(_ASN1ObjectBase):
|
|
|
325
325
|
def fromname(cls, name: str) -> Self: ...
|
|
326
326
|
|
|
327
327
|
class Purpose(_ASN1Object, enum.Enum):
|
|
328
|
-
"""
|
|
329
|
-
SSLContext purpose flags with X509v3 Extended Key Usage objects
|
|
330
|
-
|
|
331
|
-
"""
|
|
332
328
|
SERVER_AUTH = (129, "serverAuth", "TLS Web Server Authentication", "1.3.6.1.5.5.7.3.2") # pyright: ignore[reportCallIssue]
|
|
333
329
|
CLIENT_AUTH = (130, "clientAuth", "TLS Web Client Authentication", "1.3.6.1.5.5.7.3.1") # pyright: ignore[reportCallIssue]
|
|
334
330
|
|
|
@@ -1,86 +1,86 @@
|
|
|
1
|
-
import sys
|
|
2
|
-
from _typeshed import Unused
|
|
3
|
-
from typing import IO, Any, Literal, NamedTuple, NoReturn, overload
|
|
4
|
-
from typing_extensions import Self, TypeAlias
|
|
5
|
-
|
|
6
|
-
_File: TypeAlias = str | IO[bytes]
|
|
7
|
-
|
|
8
|
-
class Error(Exception): ...
|
|
9
|
-
|
|
10
|
-
AUDIO_FILE_MAGIC: int
|
|
11
|
-
AUDIO_FILE_ENCODING_MULAW_8: int
|
|
12
|
-
AUDIO_FILE_ENCODING_LINEAR_8: int
|
|
13
|
-
AUDIO_FILE_ENCODING_LINEAR_16: int
|
|
14
|
-
AUDIO_FILE_ENCODING_LINEAR_24: int
|
|
15
|
-
AUDIO_FILE_ENCODING_LINEAR_32: int
|
|
16
|
-
AUDIO_FILE_ENCODING_FLOAT: int
|
|
17
|
-
AUDIO_FILE_ENCODING_DOUBLE: int
|
|
18
|
-
AUDIO_FILE_ENCODING_ADPCM_G721: int
|
|
19
|
-
AUDIO_FILE_ENCODING_ADPCM_G722: int
|
|
20
|
-
AUDIO_FILE_ENCODING_ADPCM_G723_3: int
|
|
21
|
-
AUDIO_FILE_ENCODING_ADPCM_G723_5: int
|
|
22
|
-
AUDIO_FILE_ENCODING_ALAW_8: int
|
|
23
|
-
AUDIO_UNKNOWN_SIZE: int
|
|
24
|
-
|
|
25
|
-
class _sunau_params(NamedTuple):
|
|
26
|
-
nchannels: int
|
|
27
|
-
sampwidth: int
|
|
28
|
-
framerate: int
|
|
29
|
-
nframes: int
|
|
30
|
-
comptype: str
|
|
31
|
-
compname: str
|
|
32
|
-
|
|
33
|
-
class Au_read:
|
|
34
|
-
def __init__(self, f: _File) -> None: ...
|
|
35
|
-
def __enter__(self) -> Self: ...
|
|
36
|
-
def __exit__(self, *args: Unused) -> None: ...
|
|
37
|
-
def __del__(self) -> None: ...
|
|
38
|
-
def getfp(self) -> IO[bytes] | None: ...
|
|
39
|
-
def rewind(self) -> None: ...
|
|
40
|
-
def close(self) -> None: ...
|
|
41
|
-
def tell(self) -> int: ...
|
|
42
|
-
def getnchannels(self) -> int: ...
|
|
43
|
-
def getnframes(self) -> int: ...
|
|
44
|
-
def getsampwidth(self) -> int: ...
|
|
45
|
-
def getframerate(self) -> int: ...
|
|
46
|
-
def getcomptype(self) -> str: ...
|
|
47
|
-
def getcompname(self) -> str: ...
|
|
48
|
-
def getparams(self) -> _sunau_params: ...
|
|
49
|
-
def getmarkers(self) -> None: ...
|
|
50
|
-
def getmark(self, id: Any) -> NoReturn: ...
|
|
51
|
-
def setpos(self, pos: int) -> None: ...
|
|
52
|
-
def readframes(self, nframes: int) -> bytes | None: ...
|
|
53
|
-
|
|
54
|
-
class Au_write:
|
|
55
|
-
def __init__(self, f: _File) -> None: ...
|
|
56
|
-
def __enter__(self) -> Self: ...
|
|
57
|
-
def __exit__(self, *args: Unused) -> None: ...
|
|
58
|
-
def __del__(self) -> None: ...
|
|
59
|
-
def setnchannels(self, nchannels: int) -> None: ...
|
|
60
|
-
def getnchannels(self) -> int: ...
|
|
61
|
-
def setsampwidth(self, sampwidth: int) -> None: ...
|
|
62
|
-
def getsampwidth(self) -> int: ...
|
|
63
|
-
def setframerate(self, framerate: float) -> None: ...
|
|
64
|
-
def getframerate(self) -> int: ...
|
|
65
|
-
def setnframes(self, nframes: int) -> None: ...
|
|
66
|
-
def getnframes(self) -> int: ...
|
|
67
|
-
def setcomptype(self, type: str, name: str) -> None: ...
|
|
68
|
-
def getcomptype(self) -> str: ...
|
|
69
|
-
def getcompname(self) -> str: ...
|
|
70
|
-
def setparams(self, params: _sunau_params) -> None: ...
|
|
71
|
-
def getparams(self) -> _sunau_params: ...
|
|
72
|
-
def tell(self) -> int: ...
|
|
73
|
-
# should be any bytes-like object after 3.4, but we don't have a type for that
|
|
74
|
-
def writeframesraw(self, data: bytes) -> None: ...
|
|
75
|
-
def writeframes(self, data: bytes) -> None: ...
|
|
76
|
-
def close(self) -> None: ...
|
|
77
|
-
|
|
78
|
-
@overload
|
|
79
|
-
def open(f: _File, mode: Literal["r", "rb"]) -> Au_read: ...
|
|
80
|
-
@overload
|
|
81
|
-
def open(f: _File, mode: Literal["w", "wb"]) -> Au_write: ...
|
|
82
|
-
@overload
|
|
83
|
-
def open(f: _File, mode: str | None = None) -> Any: ...
|
|
84
|
-
|
|
85
|
-
if sys.version_info < (3, 9):
|
|
86
|
-
openfp = open
|
|
1
|
+
import sys
|
|
2
|
+
from _typeshed import Unused
|
|
3
|
+
from typing import IO, Any, Literal, NamedTuple, NoReturn, overload
|
|
4
|
+
from typing_extensions import Self, TypeAlias
|
|
5
|
+
|
|
6
|
+
_File: TypeAlias = str | IO[bytes]
|
|
7
|
+
|
|
8
|
+
class Error(Exception): ...
|
|
9
|
+
|
|
10
|
+
AUDIO_FILE_MAGIC: int
|
|
11
|
+
AUDIO_FILE_ENCODING_MULAW_8: int
|
|
12
|
+
AUDIO_FILE_ENCODING_LINEAR_8: int
|
|
13
|
+
AUDIO_FILE_ENCODING_LINEAR_16: int
|
|
14
|
+
AUDIO_FILE_ENCODING_LINEAR_24: int
|
|
15
|
+
AUDIO_FILE_ENCODING_LINEAR_32: int
|
|
16
|
+
AUDIO_FILE_ENCODING_FLOAT: int
|
|
17
|
+
AUDIO_FILE_ENCODING_DOUBLE: int
|
|
18
|
+
AUDIO_FILE_ENCODING_ADPCM_G721: int
|
|
19
|
+
AUDIO_FILE_ENCODING_ADPCM_G722: int
|
|
20
|
+
AUDIO_FILE_ENCODING_ADPCM_G723_3: int
|
|
21
|
+
AUDIO_FILE_ENCODING_ADPCM_G723_5: int
|
|
22
|
+
AUDIO_FILE_ENCODING_ALAW_8: int
|
|
23
|
+
AUDIO_UNKNOWN_SIZE: int
|
|
24
|
+
|
|
25
|
+
class _sunau_params(NamedTuple):
|
|
26
|
+
nchannels: int
|
|
27
|
+
sampwidth: int
|
|
28
|
+
framerate: int
|
|
29
|
+
nframes: int
|
|
30
|
+
comptype: str
|
|
31
|
+
compname: str
|
|
32
|
+
|
|
33
|
+
class Au_read:
|
|
34
|
+
def __init__(self, f: _File) -> None: ...
|
|
35
|
+
def __enter__(self) -> Self: ...
|
|
36
|
+
def __exit__(self, *args: Unused) -> None: ...
|
|
37
|
+
def __del__(self) -> None: ...
|
|
38
|
+
def getfp(self) -> IO[bytes] | None: ...
|
|
39
|
+
def rewind(self) -> None: ...
|
|
40
|
+
def close(self) -> None: ...
|
|
41
|
+
def tell(self) -> int: ...
|
|
42
|
+
def getnchannels(self) -> int: ...
|
|
43
|
+
def getnframes(self) -> int: ...
|
|
44
|
+
def getsampwidth(self) -> int: ...
|
|
45
|
+
def getframerate(self) -> int: ...
|
|
46
|
+
def getcomptype(self) -> str: ...
|
|
47
|
+
def getcompname(self) -> str: ...
|
|
48
|
+
def getparams(self) -> _sunau_params: ...
|
|
49
|
+
def getmarkers(self) -> None: ...
|
|
50
|
+
def getmark(self, id: Any) -> NoReturn: ...
|
|
51
|
+
def setpos(self, pos: int) -> None: ...
|
|
52
|
+
def readframes(self, nframes: int) -> bytes | None: ...
|
|
53
|
+
|
|
54
|
+
class Au_write:
|
|
55
|
+
def __init__(self, f: _File) -> None: ...
|
|
56
|
+
def __enter__(self) -> Self: ...
|
|
57
|
+
def __exit__(self, *args: Unused) -> None: ...
|
|
58
|
+
def __del__(self) -> None: ...
|
|
59
|
+
def setnchannels(self, nchannels: int) -> None: ...
|
|
60
|
+
def getnchannels(self) -> int: ...
|
|
61
|
+
def setsampwidth(self, sampwidth: int) -> None: ...
|
|
62
|
+
def getsampwidth(self) -> int: ...
|
|
63
|
+
def setframerate(self, framerate: float) -> None: ...
|
|
64
|
+
def getframerate(self) -> int: ...
|
|
65
|
+
def setnframes(self, nframes: int) -> None: ...
|
|
66
|
+
def getnframes(self) -> int: ...
|
|
67
|
+
def setcomptype(self, type: str, name: str) -> None: ...
|
|
68
|
+
def getcomptype(self) -> str: ...
|
|
69
|
+
def getcompname(self) -> str: ...
|
|
70
|
+
def setparams(self, params: _sunau_params) -> None: ...
|
|
71
|
+
def getparams(self) -> _sunau_params: ...
|
|
72
|
+
def tell(self) -> int: ...
|
|
73
|
+
# should be any bytes-like object after 3.4, but we don't have a type for that
|
|
74
|
+
def writeframesraw(self, data: bytes) -> None: ...
|
|
75
|
+
def writeframes(self, data: bytes) -> None: ...
|
|
76
|
+
def close(self) -> None: ...
|
|
77
|
+
|
|
78
|
+
@overload
|
|
79
|
+
def open(f: _File, mode: Literal["r", "rb"]) -> Au_read: ...
|
|
80
|
+
@overload
|
|
81
|
+
def open(f: _File, mode: Literal["w", "wb"]) -> Au_write: ...
|
|
82
|
+
@overload
|
|
83
|
+
def open(f: _File, mode: str | None = None) -> Any: ...
|
|
84
|
+
|
|
85
|
+
if sys.version_info < (3, 9):
|
|
86
|
+
openfp = open
|