basedpyright 1.13.2 → 1.13.3
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.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 +42 -279
- package/dist/typeshed-fallback/stdlib/_bisect.pyi +221 -221
- package/dist/typeshed-fallback/stdlib/_bootlocale.pyi +1 -1
- package/dist/typeshed-fallback/stdlib/_collections_abc.pyi +15 -5
- package/dist/typeshed-fallback/stdlib/_csv.pyi +213 -213
- package/dist/typeshed-fallback/stdlib/_decimal.pyi +0 -18
- package/dist/typeshed-fallback/stdlib/_dummy_thread.pyi +33 -33
- package/dist/typeshed-fallback/stdlib/_dummy_threading.pyi +180 -164
- package/dist/typeshed-fallback/stdlib/_heapq.pyi +67 -67
- package/dist/typeshed-fallback/stdlib/_interpqueues.pyi +16 -0
- package/dist/typeshed-fallback/stdlib/_interpreters.pyi +50 -0
- package/dist/typeshed-fallback/stdlib/_json.pyi +92 -92
- package/dist/typeshed-fallback/stdlib/_lsprof.pyi +92 -92
- package/dist/typeshed-fallback/stdlib/_msi.pyi +94 -92
- package/dist/typeshed-fallback/stdlib/_operator.pyi +0 -24
- package/dist/typeshed-fallback/stdlib/_random.pyi +30 -30
- package/dist/typeshed-fallback/stdlib/_tkinter.pyi +6 -2
- package/dist/typeshed-fallback/stdlib/_weakrefset.pyi +7 -1
- package/dist/typeshed-fallback/stdlib/abc.pyi +12 -4
- package/dist/typeshed-fallback/stdlib/argparse.pyi +3 -1
- package/dist/typeshed-fallback/stdlib/array.pyi +281 -281
- package/dist/typeshed-fallback/stdlib/asynchat.pyi +21 -21
- package/dist/typeshed-fallback/stdlib/asyncio/events.pyi +35 -4
- package/dist/typeshed-fallback/stdlib/asyncio/futures.pyi +107 -15
- package/dist/typeshed-fallback/stdlib/asyncio/locks.pyi +9 -3
- package/dist/typeshed-fallback/stdlib/asyncio/queues.pyi +10 -2
- package/dist/typeshed-fallback/stdlib/asyncio/sslproto.pyi +23 -4
- package/dist/typeshed-fallback/stdlib/asyncio/tasks.pyi +107 -12
- package/dist/typeshed-fallback/stdlib/asyncio/windows_events.pyi +86 -86
- package/dist/typeshed-fallback/stdlib/asyncio/windows_utils.pyi +49 -49
- package/dist/typeshed-fallback/stdlib/asyncore.pyi +90 -90
- package/dist/typeshed-fallback/stdlib/audioop.pyi +95 -95
- package/dist/typeshed-fallback/stdlib/binascii.pyi +123 -123
- package/dist/typeshed-fallback/stdlib/binhex.pyi +45 -45
- package/dist/typeshed-fallback/stdlib/builtins.pyi +0 -1
- package/dist/typeshed-fallback/stdlib/bz2.pyi +59 -6
- package/dist/typeshed-fallback/stdlib/cmath.pyi +112 -112
- package/dist/typeshed-fallback/stdlib/codecs.pyi +18 -6
- package/dist/typeshed-fallback/stdlib/collections/__init__.pyi +200 -56
- package/dist/typeshed-fallback/stdlib/concurrent/futures/__init__.pyi +33 -14
- package/dist/typeshed-fallback/stdlib/concurrent/futures/_base.pyi +7 -1
- package/dist/typeshed-fallback/stdlib/concurrent/futures/thread.pyi +7 -1
- package/dist/typeshed-fallback/stdlib/contextvars.pyi +99 -16
- package/dist/typeshed-fallback/stdlib/csv.pyi +14 -2
- package/dist/typeshed-fallback/stdlib/ctypes/__init__.pyi +7 -1
- package/dist/typeshed-fallback/stdlib/ctypes/_endian.pyi +6 -2
- package/dist/typeshed-fallback/stdlib/curses/panel.pyi +16 -4
- package/dist/typeshed-fallback/stdlib/dataclasses.pyi +7 -1
- package/dist/typeshed-fallback/stdlib/datetime.pyi +346 -104
- package/dist/typeshed-fallback/stdlib/dbm/gnu.pyi +52 -2
- package/dist/typeshed-fallback/stdlib/dbm/ndbm.pyi +26 -2
- package/dist/typeshed-fallback/stdlib/difflib.pyi +7 -1
- package/dist/typeshed-fallback/stdlib/distutils/__init__.pyi +5 -5
- 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 +173 -173
- package/dist/typeshed-fallback/stdlib/distutils/cmd.pyi +99 -99
- package/dist/typeshed-fallback/stdlib/distutils/command/bdist.pyi +25 -25
- package/dist/typeshed-fallback/stdlib/distutils/command/bdist_dumb.pyi +21 -21
- package/dist/typeshed-fallback/stdlib/distutils/command/bdist_msi.pyi +45 -45
- package/dist/typeshed-fallback/stdlib/distutils/command/bdist_rpm.pyi +52 -52
- package/dist/typeshed-fallback/stdlib/distutils/command/bdist_wininst.pyi +16 -16
- package/dist/typeshed-fallback/stdlib/distutils/command/build.pyi +33 -33
- package/dist/typeshed-fallback/stdlib/distutils/command/build_clib.pyi +27 -27
- package/dist/typeshed-fallback/stdlib/distutils/command/build_ext.pyi +50 -50
- package/dist/typeshed-fallback/stdlib/distutils/command/build_py.pyi +44 -44
- package/dist/typeshed-fallback/stdlib/distutils/command/build_scripts.pyi +24 -24
- package/dist/typeshed-fallback/stdlib/distutils/command/check.pyi +39 -39
- package/dist/typeshed-fallback/stdlib/distutils/command/clean.pyi +17 -17
- package/dist/typeshed-fallback/stdlib/distutils/command/config.pyi +84 -84
- package/dist/typeshed-fallback/stdlib/distutils/command/install.pyi +65 -65
- package/dist/typeshed-fallback/stdlib/distutils/command/install_data.pyi +19 -19
- package/dist/typeshed-fallback/stdlib/distutils/command/install_egg_info.pyi +18 -18
- package/dist/typeshed-fallback/stdlib/distutils/command/install_headers.pyi +16 -16
- package/dist/typeshed-fallback/stdlib/distutils/command/install_lib.pyi +25 -25
- package/dist/typeshed-fallback/stdlib/distutils/command/install_scripts.pyi +18 -18
- package/dist/typeshed-fallback/stdlib/distutils/command/register.pyi +20 -20
- package/dist/typeshed-fallback/stdlib/distutils/command/sdist.pyi +44 -44
- package/dist/typeshed-fallback/stdlib/distutils/command/upload.pyi +17 -17
- package/dist/typeshed-fallback/stdlib/distutils/config.pyi +17 -17
- package/dist/typeshed-fallback/stdlib/distutils/core.pyi +57 -57
- package/dist/typeshed-fallback/stdlib/distutils/cygwinccompiler.pyi +20 -20
- package/dist/typeshed-fallback/stdlib/distutils/debug.pyi +1 -1
- 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 +149 -149
- 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 +25 -25
- package/dist/typeshed-fallback/stdlib/distutils/msvccompiler.pyi +3 -3
- package/dist/typeshed-fallback/stdlib/distutils/spawn.pyi +6 -6
- 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 +50 -50
- package/dist/typeshed-fallback/stdlib/distutils/version.pyi +38 -36
- package/dist/typeshed-fallback/stdlib/dummy_threading.pyi +2 -2
- package/dist/typeshed-fallback/stdlib/email/_header_value_parser.pyi +3 -1
- package/dist/typeshed-fallback/stdlib/email/charset.pyi +3 -1
- package/dist/typeshed-fallback/stdlib/email/header.pyi +3 -1
- package/dist/typeshed-fallback/stdlib/email/headerregistry.pyi +6 -1
- package/dist/typeshed-fallback/stdlib/enum.pyi +8 -1
- package/dist/typeshed-fallback/stdlib/filecmp.pyi +7 -1
- package/dist/typeshed-fallback/stdlib/fileinput.pyi +7 -1
- package/dist/typeshed-fallback/stdlib/formatter.pyi +88 -88
- package/dist/typeshed-fallback/stdlib/fractions.pyi +6 -2
- package/dist/typeshed-fallback/stdlib/functools.pyi +65 -13
- package/dist/typeshed-fallback/stdlib/graphlib.pyi +7 -1
- package/dist/typeshed-fallback/stdlib/gzip.pyi +3 -1
- package/dist/typeshed-fallback/stdlib/hashlib.pyi +42 -14
- package/dist/typeshed-fallback/stdlib/heapq.pyi +3 -1
- package/dist/typeshed-fallback/stdlib/hmac.pyi +30 -2
- package/dist/typeshed-fallback/stdlib/http/cookies.pyi +7 -1
- package/dist/typeshed-fallback/stdlib/imp.pyi +62 -62
- package/dist/typeshed-fallback/stdlib/importlib/abc.pyi +3 -1
- package/dist/typeshed-fallback/stdlib/importlib/machinery.pyi +3 -1
- package/dist/typeshed-fallback/stdlib/importlib/metadata/__init__.pyi +79 -15
- package/dist/typeshed-fallback/stdlib/importlib/metadata/_meta.pyi +3 -1
- package/dist/typeshed-fallback/stdlib/importlib/resources/simple.pyi +3 -1
- package/dist/typeshed-fallback/stdlib/io.pyi +428 -44
- package/dist/typeshed-fallback/stdlib/ipaddress.pyi +153 -28
- package/dist/typeshed-fallback/stdlib/itertools.pyi +5 -1
- package/dist/typeshed-fallback/stdlib/json/encoder.pyi +14 -2
- package/dist/typeshed-fallback/stdlib/keyword.pyi +6 -2
- package/dist/typeshed-fallback/stdlib/lib2to3/pytree.pyi +12 -2
- package/dist/typeshed-fallback/stdlib/logging/__init__.pyi +17 -3
- package/dist/typeshed-fallback/stdlib/lzma.pyi +107 -9
- package/dist/typeshed-fallback/stdlib/mailbox.pyi +14 -2
- package/dist/typeshed-fallback/stdlib/math.pyi +424 -424
- package/dist/typeshed-fallback/stdlib/mmap.pyi +160 -160
- 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/multiprocessing/connection.pyi +9 -3
- package/dist/typeshed-fallback/stdlib/multiprocessing/context.pyi +12 -2
- package/dist/typeshed-fallback/stdlib/multiprocessing/dummy/__init__.pyi +3 -1
- package/dist/typeshed-fallback/stdlib/multiprocessing/managers.pyi +10 -2
- package/dist/typeshed-fallback/stdlib/multiprocessing/pool.pyi +7 -1
- package/dist/typeshed-fallback/stdlib/multiprocessing/popen_spawn_win32.pyi +30 -30
- package/dist/typeshed-fallback/stdlib/multiprocessing/process.pyi +15 -4
- package/dist/typeshed-fallback/stdlib/multiprocessing/queues.pyi +14 -2
- package/dist/typeshed-fallback/stdlib/multiprocessing/shared_memory.pyi +19 -5
- package/dist/typeshed-fallback/stdlib/nis.pyi +31 -4
- package/dist/typeshed-fallback/stdlib/numbers.pyi +26 -6
- package/dist/typeshed-fallback/stdlib/opcode.pyi +3 -1
- package/dist/typeshed-fallback/stdlib/optparse.pyi +3 -1
- package/dist/typeshed-fallback/stdlib/os/__init__.pyi +1447 -217
- package/dist/typeshed-fallback/stdlib/pathlib.pyi +42 -11
- package/dist/typeshed-fallback/stdlib/pickle.pyi +200 -12
- package/dist/typeshed-fallback/stdlib/posixpath.pyi +6 -2
- package/dist/typeshed-fallback/stdlib/pyexpat/errors.pyi +2 -0
- package/dist/typeshed-fallback/stdlib/pyexpat/model.pyi +2 -0
- package/dist/typeshed-fallback/stdlib/queue.pyi +57 -9
- package/dist/typeshed-fallback/stdlib/re.pyi +219 -57
- package/dist/typeshed-fallback/stdlib/sched.pyi +8 -1
- package/dist/typeshed-fallback/stdlib/signal.pyi +95 -19
- package/dist/typeshed-fallback/stdlib/smtpd.pyi +91 -91
- package/dist/typeshed-fallback/stdlib/socket.pyi +12 -2
- package/dist/typeshed-fallback/stdlib/sqlite3/dbapi2.pyi +417 -83
- package/dist/typeshed-fallback/stdlib/ssl.pyi +133 -22
- package/dist/typeshed-fallback/stdlib/statistics.pyi +20 -5
- package/dist/typeshed-fallback/stdlib/struct.pyi +114 -13
- package/dist/typeshed-fallback/stdlib/subprocess.pyi +14 -2
- package/dist/typeshed-fallback/stdlib/symbol.pyi +93 -93
- package/dist/typeshed-fallback/stdlib/symtable.pyi +30 -1
- package/dist/typeshed-fallback/stdlib/sys/__init__.pyi +7 -3
- package/dist/typeshed-fallback/stdlib/tarfile.pyi +6 -2
- package/dist/typeshed-fallback/stdlib/tempfile.pyi +17 -3
- package/dist/typeshed-fallback/stdlib/threading.pyi +68 -7
- package/dist/typeshed-fallback/stdlib/tkinter/__init__.pyi +3 -1
- package/dist/typeshed-fallback/stdlib/turtle.pyi +11 -3
- package/dist/typeshed-fallback/stdlib/types.pyi +306 -79
- package/dist/typeshed-fallback/stdlib/typing.pyi +310 -31
- package/dist/typeshed-fallback/stdlib/typing_extensions.pyi +42 -11
- package/dist/typeshed-fallback/stdlib/unittest/__init__.pyi +6 -1
- package/dist/typeshed-fallback/stdlib/unittest/case.pyi +7 -1
- package/dist/typeshed-fallback/stdlib/unittest/mock.pyi +3 -1
- package/dist/typeshed-fallback/stdlib/urllib/parse.pyi +51 -3
- package/dist/typeshed-fallback/stdlib/weakref.pyi +6 -2
- package/dist/typeshed-fallback/stdlib/winsound.pyi +44 -28
- package/dist/typeshed-fallback/stdlib/xml/dom/minicompat.pyi +6 -2
- package/dist/typeshed-fallback/stdlib/xml/dom/minidom.pyi +33 -11
- package/dist/typeshed-fallback/stdlib/xml/etree/ElementTree.pyi +30 -10
- package/dist/typeshed-fallback/stdlib/xml/parsers/expat/errors.pyi +2 -0
- package/dist/typeshed-fallback/stdlib/xml/parsers/expat/model.pyi +2 -0
- package/dist/typeshed-fallback/stdlib/xxlimited.pyi +19 -4
- package/dist/typeshed-fallback/stdlib/zipimport.pyi +31 -0
- package/dist/typeshed-fallback/stdlib/zlib.pyi +157 -157
- package/dist/typeshed-fallback/stdlib/zoneinfo/__init__.pyi +18 -6
- package/dist/typeshed-fallback/stubs/assertpy/assertpy/extracting.pyi +2 -2
- package/dist/typeshed-fallback/stubs/docker/docker/_types.pyi +18 -1
- package/dist/typeshed-fallback/stubs/docker/docker/api/container.pyi +5 -19
- package/dist/typeshed-fallback/stubs/docker/docker/api/daemon.pyi +2 -1
- package/dist/typeshed-fallback/stubs/docker/docker/models/containers.pyi +268 -6
- package/dist/typeshed-fallback/stubs/docker/docker/types/containers.pyi +3 -7
- package/dist/typeshed-fallback/stubs/docker/docker/types/daemon.pyi +10 -4
- package/dist/typeshed-fallback/stubs/docutils/docutils/parsers/rst/states.pyi +47 -0
- package/dist/typeshed-fallback/stubs/gdb/gdb/__init__.pyi +1 -1
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/shortest_paths/generic.pyi +1 -1
- package/dist/typeshed-fallback/stubs/openpyxl/METADATA.toml +1 -1
- package/dist/typeshed-fallback/stubs/openpyxl/openpyxl/packaging/extended.pyi +0 -2
- package/dist/typeshed-fallback/stubs/openpyxl/openpyxl/styles/named_styles.pyi +2 -1
- package/dist/typeshed-fallback/stubs/pygit2/METADATA.toml +1 -1
- package/dist/typeshed-fallback/stubs/pytest-lazy-fixture/pytest_lazyfixture.pyi +2 -2
- package/dist/typeshed-fallback/stubs/python-crontab/METADATA.toml +1 -1
- package/dist/typeshed-fallback/stubs/reportlab/METADATA.toml +1 -1
- package/dist/typeshed-fallback/stubs/reportlab/reportlab/lib/rl_safe_eval.pyi +23 -11
- package/dist/typeshed-fallback/stubs/reportlab/reportlab/pdfbase/pdfdoc.pyi +6 -0
- package/dist/typeshed-fallback/stubs/setuptools/METADATA.toml +1 -1
- package/dist/typeshed-fallback/stubs/setuptools/setuptools/_distutils/archive_util.pyi +8 -8
- package/dist/typeshed-fallback/stubs/setuptools/setuptools/_distutils/ccompiler.pyi +11 -17
- package/dist/typeshed-fallback/stubs/setuptools/setuptools/_distutils/cmd.pyi +11 -11
- package/dist/typeshed-fallback/stubs/setuptools/setuptools/_distutils/command/build_py.pyi +1 -2
- package/dist/typeshed-fallback/stubs/setuptools/setuptools/_distutils/filelist.pyi +4 -12
- package/dist/typeshed-fallback/stubs/setuptools/setuptools/_distutils/sysconfig.pyi +2 -4
- package/dist/typeshed-fallback/stubs/setuptools/setuptools/_distutils/util.pyi +5 -8
- package/dist/typeshed-fallback/stubs/str2bool/METADATA.toml +2 -0
- package/dist/typeshed-fallback/stubs/str2bool/str2bool/__init__.pyi +7 -0
- package/package.json +1 -1
|
@@ -57,135 +57,297 @@ _T = TypeVar("_T")
|
|
|
57
57
|
@final
|
|
58
58
|
class Match(Generic[AnyStr]):
|
|
59
59
|
@property
|
|
60
|
-
def pos(self) -> int:
|
|
60
|
+
def pos(self) -> int:
|
|
61
|
+
"""The index into the string at which the RE engine started looking for a match."""
|
|
62
|
+
...
|
|
61
63
|
@property
|
|
62
|
-
def endpos(self) -> int:
|
|
64
|
+
def endpos(self) -> int:
|
|
65
|
+
"""The index into the string beyond which the RE engine will not go."""
|
|
66
|
+
...
|
|
63
67
|
@property
|
|
64
|
-
def lastindex(self) -> int | None:
|
|
68
|
+
def lastindex(self) -> int | None:
|
|
69
|
+
"""The integer index of the last matched capturing group."""
|
|
70
|
+
...
|
|
65
71
|
@property
|
|
66
|
-
def lastgroup(self) -> str | None:
|
|
72
|
+
def lastgroup(self) -> str | None:
|
|
73
|
+
"""The name of the last matched capturing group."""
|
|
74
|
+
...
|
|
67
75
|
@property
|
|
68
|
-
def string(self) -> AnyStr:
|
|
76
|
+
def string(self) -> AnyStr:
|
|
77
|
+
"""The string passed to match() or search()."""
|
|
78
|
+
...
|
|
69
79
|
|
|
70
80
|
# The regular expression object whose match() or search() method produced
|
|
71
81
|
# this match instance.
|
|
72
82
|
@property
|
|
73
|
-
def re(self) -> Pattern[AnyStr]:
|
|
83
|
+
def re(self) -> Pattern[AnyStr]:
|
|
84
|
+
"""The regular expression object."""
|
|
85
|
+
...
|
|
74
86
|
@overload
|
|
75
|
-
def expand(self: Match[str], template: str) -> str:
|
|
87
|
+
def expand(self: Match[str], template: str) -> str:
|
|
88
|
+
"""Return the string obtained by doing backslash substitution on the string template, as done by the sub() method."""
|
|
89
|
+
...
|
|
76
90
|
@overload
|
|
77
|
-
def expand(self: Match[bytes], template: ReadableBuffer) -> bytes:
|
|
91
|
+
def expand(self: Match[bytes], template: ReadableBuffer) -> bytes:
|
|
92
|
+
"""Return the string obtained by doing backslash substitution on the string template, as done by the sub() method."""
|
|
93
|
+
...
|
|
78
94
|
@overload
|
|
79
|
-
def expand(self, template: AnyStr) -> AnyStr:
|
|
95
|
+
def expand(self, template: AnyStr) -> AnyStr:
|
|
96
|
+
"""Return the string obtained by doing backslash substitution on the string template, as done by the sub() method."""
|
|
97
|
+
...
|
|
80
98
|
# group() returns "AnyStr" or "AnyStr | None", depending on the pattern.
|
|
81
99
|
@overload
|
|
82
|
-
def group(self, group: Literal[0] = 0, /) -> AnyStr:
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
100
|
+
def group(self, group: Literal[0] = 0, /) -> AnyStr:
|
|
101
|
+
"""
|
|
102
|
+
group([group1, ...]) -> str or tuple.
|
|
103
|
+
Return subgroup(s) of the match by indices or names.
|
|
104
|
+
For 0 returns the entire match.
|
|
105
|
+
"""
|
|
106
|
+
...
|
|
107
|
+
@overload
|
|
108
|
+
def group(self, group: str | int, /) -> AnyStr | Any:
|
|
109
|
+
"""
|
|
110
|
+
group([group1, ...]) -> str or tuple.
|
|
111
|
+
Return subgroup(s) of the match by indices or names.
|
|
112
|
+
For 0 returns the entire match.
|
|
113
|
+
"""
|
|
114
|
+
...
|
|
115
|
+
@overload
|
|
116
|
+
def group(self, group1: str | int, group2: str | int, /, *groups: str | int) -> tuple[AnyStr | Any, ...]:
|
|
117
|
+
"""
|
|
118
|
+
group([group1, ...]) -> str or tuple.
|
|
119
|
+
Return subgroup(s) of the match by indices or names.
|
|
120
|
+
For 0 returns the entire match.
|
|
121
|
+
"""
|
|
122
|
+
...
|
|
87
123
|
# Each item of groups()'s return tuple is either "AnyStr" or
|
|
88
124
|
# "AnyStr | None", depending on the pattern.
|
|
89
125
|
@overload
|
|
90
|
-
def groups(self) -> tuple[AnyStr | Any, ...]:
|
|
91
|
-
|
|
92
|
-
|
|
126
|
+
def groups(self) -> tuple[AnyStr | Any, ...]:
|
|
127
|
+
"""
|
|
128
|
+
Return a tuple containing all the subgroups of the match, from 1.
|
|
129
|
+
|
|
130
|
+
default
|
|
131
|
+
Is used for groups that did not participate in the match.
|
|
132
|
+
"""
|
|
133
|
+
...
|
|
134
|
+
@overload
|
|
135
|
+
def groups(self, default: _T) -> tuple[AnyStr | _T, ...]:
|
|
136
|
+
"""
|
|
137
|
+
Return a tuple containing all the subgroups of the match, from 1.
|
|
138
|
+
|
|
139
|
+
default
|
|
140
|
+
Is used for groups that did not participate in the match.
|
|
141
|
+
"""
|
|
142
|
+
...
|
|
93
143
|
# Each value in groupdict()'s return dict is either "AnyStr" or
|
|
94
144
|
# "AnyStr | None", depending on the pattern.
|
|
95
145
|
@overload
|
|
96
|
-
def groupdict(self) -> dict[str, AnyStr | Any]:
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
146
|
+
def groupdict(self) -> dict[str, AnyStr | Any]:
|
|
147
|
+
"""
|
|
148
|
+
Return a dictionary containing all the named subgroups of the match, keyed by the subgroup name.
|
|
149
|
+
|
|
150
|
+
default
|
|
151
|
+
Is used for groups that did not participate in the match.
|
|
152
|
+
"""
|
|
153
|
+
...
|
|
154
|
+
@overload
|
|
155
|
+
def groupdict(self, default: _T) -> dict[str, AnyStr | _T]:
|
|
156
|
+
"""
|
|
157
|
+
Return a dictionary containing all the named subgroups of the match, keyed by the subgroup name.
|
|
158
|
+
|
|
159
|
+
default
|
|
160
|
+
Is used for groups that did not participate in the match.
|
|
161
|
+
"""
|
|
162
|
+
...
|
|
163
|
+
def start(self, group: int | str = 0, /) -> int:
|
|
164
|
+
"""Return index of the start of the substring matched by group."""
|
|
165
|
+
...
|
|
166
|
+
def end(self, group: int | str = 0, /) -> int:
|
|
167
|
+
"""Return index of the end of the substring matched by group."""
|
|
168
|
+
...
|
|
169
|
+
def span(self, group: int | str = 0, /) -> tuple[int, int]:
|
|
170
|
+
"""For match object m, return the 2-tuple (m.start(group), m.end(group))."""
|
|
171
|
+
...
|
|
102
172
|
@property
|
|
103
173
|
def regs(self) -> tuple[tuple[int, int], ...]: ... # undocumented
|
|
104
174
|
# __getitem__() returns "AnyStr" or "AnyStr | None", depending on the pattern.
|
|
105
175
|
@overload
|
|
106
|
-
def __getitem__(self, key: Literal[0], /) -> AnyStr:
|
|
176
|
+
def __getitem__(self, key: Literal[0], /) -> AnyStr:
|
|
177
|
+
"""Return self[key]."""
|
|
178
|
+
...
|
|
107
179
|
@overload
|
|
108
|
-
def __getitem__(self, key: int | str, /) -> AnyStr | Any:
|
|
180
|
+
def __getitem__(self, key: int | str, /) -> AnyStr | Any:
|
|
181
|
+
"""Return self[key]."""
|
|
182
|
+
...
|
|
109
183
|
def __copy__(self) -> Match[AnyStr]: ...
|
|
110
184
|
def __deepcopy__(self, memo: Any, /) -> Match[AnyStr]: ...
|
|
111
185
|
if sys.version_info >= (3, 9):
|
|
112
|
-
def __class_getitem__(cls, item: Any, /) -> GenericAlias:
|
|
186
|
+
def __class_getitem__(cls, item: Any, /) -> GenericAlias:
|
|
187
|
+
"""See PEP 585"""
|
|
188
|
+
...
|
|
113
189
|
|
|
114
190
|
@final
|
|
115
191
|
class Pattern(Generic[AnyStr]):
|
|
116
192
|
@property
|
|
117
|
-
def flags(self) -> int:
|
|
193
|
+
def flags(self) -> int:
|
|
194
|
+
"""The regex matching flags."""
|
|
195
|
+
...
|
|
118
196
|
@property
|
|
119
|
-
def groupindex(self) -> Mapping[str, int]:
|
|
197
|
+
def groupindex(self) -> Mapping[str, int]:
|
|
198
|
+
"""A dictionary mapping group names to group numbers."""
|
|
199
|
+
...
|
|
120
200
|
@property
|
|
121
|
-
def groups(self) -> int:
|
|
201
|
+
def groups(self) -> int:
|
|
202
|
+
"""The number of capturing groups in the pattern."""
|
|
203
|
+
...
|
|
122
204
|
@property
|
|
123
|
-
def pattern(self) -> AnyStr:
|
|
205
|
+
def pattern(self) -> AnyStr:
|
|
206
|
+
"""The pattern string from which the RE object was compiled."""
|
|
207
|
+
...
|
|
124
208
|
@overload
|
|
125
|
-
def search(self: Pattern[str], string: str, pos: int = 0, endpos: int = sys.maxsize) -> Match[str] | None:
|
|
209
|
+
def search(self: Pattern[str], string: str, pos: int = 0, endpos: int = sys.maxsize) -> Match[str] | None:
|
|
210
|
+
"""
|
|
211
|
+
Scan through string looking for a match, and return a corresponding match object instance.
|
|
212
|
+
|
|
213
|
+
Return None if no position in the string matches.
|
|
214
|
+
"""
|
|
215
|
+
...
|
|
126
216
|
@overload
|
|
127
|
-
def search(self: Pattern[bytes], string: ReadableBuffer, pos: int = 0, endpos: int = sys.maxsize) -> Match[bytes] | None:
|
|
217
|
+
def search(self: Pattern[bytes], string: ReadableBuffer, pos: int = 0, endpos: int = sys.maxsize) -> Match[bytes] | None:
|
|
218
|
+
"""
|
|
219
|
+
Scan through string looking for a match, and return a corresponding match object instance.
|
|
220
|
+
|
|
221
|
+
Return None if no position in the string matches.
|
|
222
|
+
"""
|
|
223
|
+
...
|
|
128
224
|
@overload
|
|
129
|
-
def search(self, string: AnyStr, pos: int = 0, endpos: int = sys.maxsize) -> Match[AnyStr] | None:
|
|
225
|
+
def search(self, string: AnyStr, pos: int = 0, endpos: int = sys.maxsize) -> Match[AnyStr] | None:
|
|
226
|
+
"""
|
|
227
|
+
Scan through string looking for a match, and return a corresponding match object instance.
|
|
228
|
+
|
|
229
|
+
Return None if no position in the string matches.
|
|
230
|
+
"""
|
|
231
|
+
...
|
|
130
232
|
@overload
|
|
131
|
-
def match(self: Pattern[str], string: str, pos: int = 0, endpos: int = sys.maxsize) -> Match[str] | None:
|
|
233
|
+
def match(self: Pattern[str], string: str, pos: int = 0, endpos: int = sys.maxsize) -> Match[str] | None:
|
|
234
|
+
"""Matches zero or more characters at the beginning of the string."""
|
|
235
|
+
...
|
|
132
236
|
@overload
|
|
133
|
-
def match(self: Pattern[bytes], string: ReadableBuffer, pos: int = 0, endpos: int = sys.maxsize) -> Match[bytes] | None:
|
|
237
|
+
def match(self: Pattern[bytes], string: ReadableBuffer, pos: int = 0, endpos: int = sys.maxsize) -> Match[bytes] | None:
|
|
238
|
+
"""Matches zero or more characters at the beginning of the string."""
|
|
239
|
+
...
|
|
134
240
|
@overload
|
|
135
|
-
def match(self, string: AnyStr, pos: int = 0, endpos: int = sys.maxsize) -> Match[AnyStr] | None:
|
|
241
|
+
def match(self, string: AnyStr, pos: int = 0, endpos: int = sys.maxsize) -> Match[AnyStr] | None:
|
|
242
|
+
"""Matches zero or more characters at the beginning of the string."""
|
|
243
|
+
...
|
|
136
244
|
@overload
|
|
137
|
-
def fullmatch(self: Pattern[str], string: str, pos: int = 0, endpos: int = sys.maxsize) -> Match[str] | None:
|
|
245
|
+
def fullmatch(self: Pattern[str], string: str, pos: int = 0, endpos: int = sys.maxsize) -> Match[str] | None:
|
|
246
|
+
"""Matches against all of the string."""
|
|
247
|
+
...
|
|
138
248
|
@overload
|
|
139
|
-
def fullmatch(self: Pattern[bytes], string: ReadableBuffer, pos: int = 0, endpos: int = sys.maxsize) -> Match[bytes] | None:
|
|
249
|
+
def fullmatch(self: Pattern[bytes], string: ReadableBuffer, pos: int = 0, endpos: int = sys.maxsize) -> Match[bytes] | None:
|
|
250
|
+
"""Matches against all of the string."""
|
|
251
|
+
...
|
|
140
252
|
@overload
|
|
141
|
-
def fullmatch(self, string: AnyStr, pos: int = 0, endpos: int = sys.maxsize) -> Match[AnyStr] | None:
|
|
253
|
+
def fullmatch(self, string: AnyStr, pos: int = 0, endpos: int = sys.maxsize) -> Match[AnyStr] | None:
|
|
254
|
+
"""Matches against all of the string."""
|
|
255
|
+
...
|
|
142
256
|
@overload
|
|
143
|
-
def split(self: Pattern[str], string: str, maxsplit: int = 0) -> list[str | Any]:
|
|
257
|
+
def split(self: Pattern[str], string: str, maxsplit: int = 0) -> list[str | Any]:
|
|
258
|
+
"""Split string by the occurrences of pattern."""
|
|
259
|
+
...
|
|
144
260
|
@overload
|
|
145
|
-
def split(self: Pattern[bytes], string: ReadableBuffer, maxsplit: int = 0) -> list[bytes | Any]:
|
|
261
|
+
def split(self: Pattern[bytes], string: ReadableBuffer, maxsplit: int = 0) -> list[bytes | Any]:
|
|
262
|
+
"""Split string by the occurrences of pattern."""
|
|
263
|
+
...
|
|
146
264
|
@overload
|
|
147
|
-
def split(self, string: AnyStr, maxsplit: int = 0) -> list[AnyStr | Any]:
|
|
265
|
+
def split(self, string: AnyStr, maxsplit: int = 0) -> list[AnyStr | Any]:
|
|
266
|
+
"""Split string by the occurrences of pattern."""
|
|
267
|
+
...
|
|
148
268
|
# return type depends on the number of groups in the pattern
|
|
149
269
|
@overload
|
|
150
|
-
def findall(self: Pattern[str], string: str, pos: int = 0, endpos: int = sys.maxsize) -> list[Any]:
|
|
270
|
+
def findall(self: Pattern[str], string: str, pos: int = 0, endpos: int = sys.maxsize) -> list[Any]:
|
|
271
|
+
"""Return a list of all non-overlapping matches of pattern in string."""
|
|
272
|
+
...
|
|
151
273
|
@overload
|
|
152
|
-
def findall(self: Pattern[bytes], string: ReadableBuffer, pos: int = 0, endpos: int = sys.maxsize) -> list[Any]:
|
|
274
|
+
def findall(self: Pattern[bytes], string: ReadableBuffer, pos: int = 0, endpos: int = sys.maxsize) -> list[Any]:
|
|
275
|
+
"""Return a list of all non-overlapping matches of pattern in string."""
|
|
276
|
+
...
|
|
153
277
|
@overload
|
|
154
|
-
def findall(self, string: AnyStr, pos: int = 0, endpos: int = sys.maxsize) -> list[AnyStr]:
|
|
278
|
+
def findall(self, string: AnyStr, pos: int = 0, endpos: int = sys.maxsize) -> list[AnyStr]:
|
|
279
|
+
"""Return a list of all non-overlapping matches of pattern in string."""
|
|
280
|
+
...
|
|
155
281
|
@overload
|
|
156
|
-
def finditer(self: Pattern[str], string: str, pos: int = 0, endpos: int = sys.maxsize) -> Iterator[Match[str]]:
|
|
282
|
+
def finditer(self: Pattern[str], string: str, pos: int = 0, endpos: int = sys.maxsize) -> Iterator[Match[str]]:
|
|
283
|
+
"""
|
|
284
|
+
Return an iterator over all non-overlapping matches for the RE pattern in string.
|
|
285
|
+
|
|
286
|
+
For each match, the iterator returns a match object.
|
|
287
|
+
"""
|
|
288
|
+
...
|
|
157
289
|
@overload
|
|
158
|
-
def finditer(self: Pattern[bytes], string: ReadableBuffer, pos: int = 0, endpos: int = sys.maxsize) -> Iterator[Match[bytes]]:
|
|
290
|
+
def finditer(self: Pattern[bytes], string: ReadableBuffer, pos: int = 0, endpos: int = sys.maxsize) -> Iterator[Match[bytes]]:
|
|
291
|
+
"""
|
|
292
|
+
Return an iterator over all non-overlapping matches for the RE pattern in string.
|
|
293
|
+
|
|
294
|
+
For each match, the iterator returns a match object.
|
|
295
|
+
"""
|
|
296
|
+
...
|
|
159
297
|
@overload
|
|
160
|
-
def finditer(self, string: AnyStr, pos: int = 0, endpos: int = sys.maxsize) -> Iterator[Match[AnyStr]]:
|
|
298
|
+
def finditer(self, string: AnyStr, pos: int = 0, endpos: int = sys.maxsize) -> Iterator[Match[AnyStr]]:
|
|
299
|
+
"""
|
|
300
|
+
Return an iterator over all non-overlapping matches for the RE pattern in string.
|
|
301
|
+
|
|
302
|
+
For each match, the iterator returns a match object.
|
|
303
|
+
"""
|
|
304
|
+
...
|
|
161
305
|
@overload
|
|
162
|
-
def sub(self: Pattern[str], repl: str | Callable[[Match[str]], str], string: str, count: int = 0) -> str:
|
|
306
|
+
def sub(self: Pattern[str], repl: str | Callable[[Match[str]], str], string: str, count: int = 0) -> str:
|
|
307
|
+
"""Return the string obtained by replacing the leftmost non-overlapping occurrences of pattern in string by the replacement repl."""
|
|
308
|
+
...
|
|
163
309
|
@overload
|
|
164
310
|
def sub( # type: ignore[overload-overlap]
|
|
165
311
|
self: Pattern[bytes],
|
|
166
312
|
repl: ReadableBuffer | Callable[[Match[bytes]], ReadableBuffer],
|
|
167
313
|
string: ReadableBuffer,
|
|
168
314
|
count: int = 0,
|
|
169
|
-
) -> bytes:
|
|
315
|
+
) -> bytes:
|
|
316
|
+
"""Return the string obtained by replacing the leftmost non-overlapping occurrences of pattern in string by the replacement repl."""
|
|
317
|
+
...
|
|
170
318
|
@overload
|
|
171
|
-
def sub(self, repl: AnyStr | Callable[[Match[AnyStr]], AnyStr], string: AnyStr, count: int = 0) -> AnyStr:
|
|
319
|
+
def sub(self, repl: AnyStr | Callable[[Match[AnyStr]], AnyStr], string: AnyStr, count: int = 0) -> AnyStr:
|
|
320
|
+
"""Return the string obtained by replacing the leftmost non-overlapping occurrences of pattern in string by the replacement repl."""
|
|
321
|
+
...
|
|
172
322
|
@overload
|
|
173
|
-
def subn(self: Pattern[str], repl: str | Callable[[Match[str]], str], string: str, count: int = 0) -> tuple[str, int]:
|
|
323
|
+
def subn(self: Pattern[str], repl: str | Callable[[Match[str]], str], string: str, count: int = 0) -> tuple[str, int]:
|
|
324
|
+
"""Return the tuple (new_string, number_of_subs_made) found by replacing the leftmost non-overlapping occurrences of pattern with the replacement repl."""
|
|
325
|
+
...
|
|
174
326
|
@overload
|
|
175
327
|
def subn( # type: ignore[overload-overlap]
|
|
176
328
|
self: Pattern[bytes],
|
|
177
329
|
repl: ReadableBuffer | Callable[[Match[bytes]], ReadableBuffer],
|
|
178
330
|
string: ReadableBuffer,
|
|
179
331
|
count: int = 0,
|
|
180
|
-
) -> tuple[bytes, int]:
|
|
332
|
+
) -> tuple[bytes, int]:
|
|
333
|
+
"""Return the tuple (new_string, number_of_subs_made) found by replacing the leftmost non-overlapping occurrences of pattern with the replacement repl."""
|
|
334
|
+
...
|
|
181
335
|
@overload
|
|
182
|
-
def subn(self, repl: AnyStr | Callable[[Match[AnyStr]], AnyStr], string: AnyStr, count: int = 0) -> tuple[AnyStr, int]:
|
|
336
|
+
def subn(self, repl: AnyStr | Callable[[Match[AnyStr]], AnyStr], string: AnyStr, count: int = 0) -> tuple[AnyStr, int]:
|
|
337
|
+
"""Return the tuple (new_string, number_of_subs_made) found by replacing the leftmost non-overlapping occurrences of pattern with the replacement repl."""
|
|
338
|
+
...
|
|
183
339
|
def __copy__(self) -> Pattern[AnyStr]: ...
|
|
184
340
|
def __deepcopy__(self, memo: Any, /) -> Pattern[AnyStr]: ...
|
|
185
|
-
def __eq__(self, value: object, /) -> bool:
|
|
186
|
-
|
|
341
|
+
def __eq__(self, value: object, /) -> bool:
|
|
342
|
+
"""Return self==value."""
|
|
343
|
+
...
|
|
344
|
+
def __hash__(self) -> int:
|
|
345
|
+
"""Return hash(self)."""
|
|
346
|
+
...
|
|
187
347
|
if sys.version_info >= (3, 9):
|
|
188
|
-
def __class_getitem__(cls, item: Any, /) -> GenericAlias:
|
|
348
|
+
def __class_getitem__(cls, item: Any, /) -> GenericAlias:
|
|
349
|
+
"""See PEP 585"""
|
|
350
|
+
...
|
|
189
351
|
|
|
190
352
|
# ----- re variables and constants -----
|
|
191
353
|
|
|
@@ -39,4 +39,11 @@ class scheduler:
|
|
|
39
39
|
def cancel(self, event: Event) -> None: ...
|
|
40
40
|
def empty(self) -> bool: ...
|
|
41
41
|
@property
|
|
42
|
-
def queue(self) -> list[Event]:
|
|
42
|
+
def queue(self) -> list[Event]:
|
|
43
|
+
"""
|
|
44
|
+
An ordered list of upcoming events.
|
|
45
|
+
|
|
46
|
+
Events are named tuples with fields for:
|
|
47
|
+
time, priority, action, arguments, kwargs
|
|
48
|
+
"""
|
|
49
|
+
...
|
|
@@ -67,7 +67,14 @@ SIG_IGN: Handlers
|
|
|
67
67
|
_SIGNUM: TypeAlias = int | Signals
|
|
68
68
|
_HANDLER: TypeAlias = Callable[[int, FrameType | None], Any] | int | Handlers | None
|
|
69
69
|
|
|
70
|
-
def default_int_handler(signalnum: int, frame: FrameType | None, /) -> Never:
|
|
70
|
+
def default_int_handler(signalnum: int, frame: FrameType | None, /) -> Never:
|
|
71
|
+
"""
|
|
72
|
+
default_int_handler(...)
|
|
73
|
+
|
|
74
|
+
The default handler for SIGINT installed by Python.
|
|
75
|
+
It raises KeyboardInterrupt.
|
|
76
|
+
"""
|
|
77
|
+
...
|
|
71
78
|
|
|
72
79
|
if sys.version_info >= (3, 10): # arguments changed in 3.10.2
|
|
73
80
|
def getsignal(signalnum: _SIGNUM) -> _HANDLER: ...
|
|
@@ -130,17 +137,41 @@ else:
|
|
|
130
137
|
SIG_BLOCK = Sigmasks.SIG_BLOCK
|
|
131
138
|
SIG_UNBLOCK = Sigmasks.SIG_UNBLOCK
|
|
132
139
|
SIG_SETMASK = Sigmasks.SIG_SETMASK
|
|
133
|
-
def alarm(seconds: int, /) -> int:
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
def
|
|
140
|
+
def alarm(seconds: int, /) -> int:
|
|
141
|
+
"""Arrange for SIGALRM to arrive after the given number of seconds."""
|
|
142
|
+
...
|
|
143
|
+
def getitimer(which: int, /) -> tuple[float, float]:
|
|
144
|
+
"""Returns current value of given itimer."""
|
|
145
|
+
...
|
|
146
|
+
def pause() -> None:
|
|
147
|
+
"""Wait until a signal arrives."""
|
|
148
|
+
...
|
|
149
|
+
def pthread_kill(thread_id: int, signalnum: int, /) -> None:
|
|
150
|
+
"""Send a signal to a thread."""
|
|
151
|
+
...
|
|
137
152
|
if sys.version_info >= (3, 10): # arguments changed in 3.10.2
|
|
138
153
|
def pthread_sigmask(how: int, mask: Iterable[int]) -> set[_SIGNUM]: ...
|
|
139
154
|
else:
|
|
140
155
|
def pthread_sigmask(how: int, mask: Iterable[int], /) -> set[_SIGNUM]: ...
|
|
141
156
|
|
|
142
|
-
def setitimer(which: int, seconds: float, interval: float = 0.0, /) -> tuple[float, float]:
|
|
143
|
-
|
|
157
|
+
def setitimer(which: int, seconds: float, interval: float = 0.0, /) -> tuple[float, float]:
|
|
158
|
+
"""
|
|
159
|
+
Sets given itimer (one of ITIMER_REAL, ITIMER_VIRTUAL or ITIMER_PROF).
|
|
160
|
+
|
|
161
|
+
The timer will fire after value seconds and after that every interval seconds.
|
|
162
|
+
The itimer can be cleared by setting seconds to zero.
|
|
163
|
+
|
|
164
|
+
Returns old values as a tuple: (delay, interval).
|
|
165
|
+
"""
|
|
166
|
+
...
|
|
167
|
+
def siginterrupt(signalnum: int, flag: bool, /) -> None:
|
|
168
|
+
"""
|
|
169
|
+
Change system call restart behaviour.
|
|
170
|
+
|
|
171
|
+
If flag is False, system calls will be restarted when interrupted by
|
|
172
|
+
signal sig, else system calls will be interrupted.
|
|
173
|
+
"""
|
|
174
|
+
...
|
|
144
175
|
def sigpending() -> Any: ...
|
|
145
176
|
if sys.version_info >= (3, 10): # argument changed in 3.10.2
|
|
146
177
|
def sigwait(sigset: Iterable[int]) -> _SIGNUM: ...
|
|
@@ -161,27 +192,72 @@ else:
|
|
|
161
192
|
__match_args__: Final = ("si_signo", "si_code", "si_errno", "si_pid", "si_uid", "si_status", "si_band")
|
|
162
193
|
|
|
163
194
|
@property
|
|
164
|
-
def si_signo(self) -> int:
|
|
195
|
+
def si_signo(self) -> int:
|
|
196
|
+
"""signal number"""
|
|
197
|
+
...
|
|
165
198
|
@property
|
|
166
|
-
def si_code(self) -> int:
|
|
199
|
+
def si_code(self) -> int:
|
|
200
|
+
"""signal code"""
|
|
201
|
+
...
|
|
167
202
|
@property
|
|
168
|
-
def si_errno(self) -> int:
|
|
203
|
+
def si_errno(self) -> int:
|
|
204
|
+
"""errno associated with this signal"""
|
|
205
|
+
...
|
|
169
206
|
@property
|
|
170
|
-
def si_pid(self) -> int:
|
|
207
|
+
def si_pid(self) -> int:
|
|
208
|
+
"""sending process ID"""
|
|
209
|
+
...
|
|
171
210
|
@property
|
|
172
|
-
def si_uid(self) -> int:
|
|
211
|
+
def si_uid(self) -> int:
|
|
212
|
+
"""real user ID of sending process"""
|
|
213
|
+
...
|
|
173
214
|
@property
|
|
174
|
-
def si_status(self) -> int:
|
|
215
|
+
def si_status(self) -> int:
|
|
216
|
+
"""exit value or signal"""
|
|
217
|
+
...
|
|
175
218
|
@property
|
|
176
|
-
def si_band(self) -> int:
|
|
219
|
+
def si_band(self) -> int:
|
|
220
|
+
"""band event for SIGPOLL"""
|
|
221
|
+
...
|
|
222
|
+
|
|
223
|
+
def sigtimedwait(sigset: Iterable[int], timeout: float, /) -> struct_siginfo | None:
|
|
224
|
+
"""
|
|
225
|
+
Like sigwaitinfo(), but with a timeout.
|
|
177
226
|
|
|
178
|
-
|
|
179
|
-
|
|
227
|
+
The timeout is specified in seconds, with floating point numbers allowed.
|
|
228
|
+
"""
|
|
229
|
+
...
|
|
230
|
+
def sigwaitinfo(sigset: Iterable[int], /) -> struct_siginfo:
|
|
231
|
+
"""
|
|
232
|
+
Wait synchronously until one of the signals in *sigset* is delivered.
|
|
180
233
|
|
|
181
|
-
|
|
234
|
+
Returns a struct_siginfo containing information about the signal.
|
|
235
|
+
"""
|
|
236
|
+
...
|
|
237
|
+
|
|
238
|
+
def strsignal(signalnum: _SIGNUM, /) -> str | None:
|
|
239
|
+
"""
|
|
240
|
+
Return the system description of the given signal.
|
|
241
|
+
|
|
242
|
+
The return values can be such as "Interrupt", "Segmentation fault", etc.
|
|
243
|
+
Returns None if the signal is not recognized.
|
|
244
|
+
"""
|
|
245
|
+
...
|
|
182
246
|
def valid_signals() -> set[Signals]: ...
|
|
183
|
-
def raise_signal(signalnum: _SIGNUM, /) -> None:
|
|
184
|
-
|
|
247
|
+
def raise_signal(signalnum: _SIGNUM, /) -> None:
|
|
248
|
+
"""Send a signal to the executing process."""
|
|
249
|
+
...
|
|
250
|
+
def set_wakeup_fd(fd: int, /, *, warn_on_full_buffer: bool = ...) -> int:
|
|
251
|
+
"""
|
|
252
|
+
set_wakeup_fd(fd, *, warn_on_full_buffer=True) -> fd
|
|
253
|
+
|
|
254
|
+
Sets the fd to be written to (with the signal number) when a signal
|
|
255
|
+
comes in. A library can use this to wakeup select or poll.
|
|
256
|
+
The previous fd or -1 is returned.
|
|
257
|
+
|
|
258
|
+
The fd must be non-blocking.
|
|
259
|
+
"""
|
|
260
|
+
...
|
|
185
261
|
|
|
186
262
|
if sys.version_info >= (3, 9):
|
|
187
263
|
if sys.platform == "linux":
|