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
|
@@ -34,20 +34,10 @@ class AST:
|
|
|
34
34
|
if sys.version_info >= (3, 13):
|
|
35
35
|
_field_types: ClassVar[dict[str, Any]]
|
|
36
36
|
|
|
37
|
-
class mod(AST):
|
|
38
|
-
|
|
39
|
-
mod = Module(stmt* body, type_ignore* type_ignores)
|
|
40
|
-
| Interactive(stmt* body)
|
|
41
|
-
| Expression(expr body)
|
|
42
|
-
| FunctionType(expr* argtypes, expr returns)
|
|
43
|
-
"""
|
|
44
|
-
...
|
|
45
|
-
class type_ignore(AST):
|
|
46
|
-
"""type_ignore = TypeIgnore(int lineno, string tag)"""
|
|
47
|
-
...
|
|
37
|
+
class mod(AST): ...
|
|
38
|
+
class type_ignore(AST): ...
|
|
48
39
|
|
|
49
40
|
class TypeIgnore(type_ignore):
|
|
50
|
-
"""TypeIgnore(int lineno, string tag)"""
|
|
51
41
|
if sys.version_info >= (3, 10):
|
|
52
42
|
__match_args__ = ("lineno", "tag")
|
|
53
43
|
lineno: int
|
|
@@ -55,7 +45,6 @@ class TypeIgnore(type_ignore):
|
|
|
55
45
|
def __init__(self, lineno: int, tag: str) -> None: ...
|
|
56
46
|
|
|
57
47
|
class FunctionType(mod):
|
|
58
|
-
"""FunctionType(expr* argtypes, expr returns)"""
|
|
59
48
|
if sys.version_info >= (3, 10):
|
|
60
49
|
__match_args__ = ("argtypes", "returns")
|
|
61
50
|
argtypes: list[expr]
|
|
@@ -69,7 +58,6 @@ class FunctionType(mod):
|
|
|
69
58
|
def __init__(self, argtypes: list[expr], returns: expr) -> None: ...
|
|
70
59
|
|
|
71
60
|
class Module(mod):
|
|
72
|
-
"""Module(stmt* body, type_ignore* type_ignores)"""
|
|
73
61
|
if sys.version_info >= (3, 10):
|
|
74
62
|
__match_args__ = ("body", "type_ignores")
|
|
75
63
|
body: list[stmt]
|
|
@@ -80,7 +68,6 @@ class Module(mod):
|
|
|
80
68
|
def __init__(self, body: list[stmt], type_ignores: list[TypeIgnore]) -> None: ...
|
|
81
69
|
|
|
82
70
|
class Interactive(mod):
|
|
83
|
-
"""Interactive(stmt* body)"""
|
|
84
71
|
if sys.version_info >= (3, 10):
|
|
85
72
|
__match_args__ = ("body",)
|
|
86
73
|
body: list[stmt]
|
|
@@ -90,40 +77,12 @@ class Interactive(mod):
|
|
|
90
77
|
def __init__(self, body: list[stmt]) -> None: ...
|
|
91
78
|
|
|
92
79
|
class Expression(mod):
|
|
93
|
-
"""Expression(expr body)"""
|
|
94
80
|
if sys.version_info >= (3, 10):
|
|
95
81
|
__match_args__ = ("body",)
|
|
96
82
|
body: expr
|
|
97
83
|
def __init__(self, body: expr) -> None: ...
|
|
98
84
|
|
|
99
85
|
class stmt(AST):
|
|
100
|
-
"""
|
|
101
|
-
stmt = FunctionDef(identifier name, arguments args, stmt* body, expr* decorator_list, expr? returns, string? type_comment)
|
|
102
|
-
| AsyncFunctionDef(identifier name, arguments args, stmt* body, expr* decorator_list, expr? returns, string? type_comment)
|
|
103
|
-
| ClassDef(identifier name, expr* bases, keyword* keywords, stmt* body, expr* decorator_list)
|
|
104
|
-
| Return(expr? value)
|
|
105
|
-
| Delete(expr* targets)
|
|
106
|
-
| Assign(expr* targets, expr value, string? type_comment)
|
|
107
|
-
| AugAssign(expr target, operator op, expr value)
|
|
108
|
-
| AnnAssign(expr target, expr annotation, expr? value, int simple)
|
|
109
|
-
| For(expr target, expr iter, stmt* body, stmt* orelse, string? type_comment)
|
|
110
|
-
| AsyncFor(expr target, expr iter, stmt* body, stmt* orelse, string? type_comment)
|
|
111
|
-
| While(expr test, stmt* body, stmt* orelse)
|
|
112
|
-
| If(expr test, stmt* body, stmt* orelse)
|
|
113
|
-
| With(withitem* items, stmt* body, string? type_comment)
|
|
114
|
-
| AsyncWith(withitem* items, stmt* body, string? type_comment)
|
|
115
|
-
| Raise(expr? exc, expr? cause)
|
|
116
|
-
| Try(stmt* body, excepthandler* handlers, stmt* orelse, stmt* finalbody)
|
|
117
|
-
| Assert(expr test, expr? msg)
|
|
118
|
-
| Import(alias* names)
|
|
119
|
-
| ImportFrom(identifier? module, alias* names, int? level)
|
|
120
|
-
| Global(identifier* names)
|
|
121
|
-
| Nonlocal(identifier* names)
|
|
122
|
-
| Expr(expr value)
|
|
123
|
-
| Pass
|
|
124
|
-
| Break
|
|
125
|
-
| Continue
|
|
126
|
-
"""
|
|
127
86
|
lineno: int
|
|
128
87
|
col_offset: int
|
|
129
88
|
end_lineno: int | None
|
|
@@ -131,7 +90,6 @@ class stmt(AST):
|
|
|
131
90
|
def __init__(self, **kwargs: Unpack[_Attributes]) -> None: ...
|
|
132
91
|
|
|
133
92
|
class FunctionDef(stmt):
|
|
134
|
-
"""FunctionDef(identifier name, arguments args, stmt* body, expr* decorator_list, expr? returns, string? type_comment)"""
|
|
135
93
|
if sys.version_info >= (3, 12):
|
|
136
94
|
__match_args__ = ("name", "args", "body", "decorator_list", "returns", "type_comment", "type_params")
|
|
137
95
|
elif sys.version_info >= (3, 10):
|
|
@@ -195,7 +153,6 @@ class FunctionDef(stmt):
|
|
|
195
153
|
) -> None: ...
|
|
196
154
|
|
|
197
155
|
class AsyncFunctionDef(stmt):
|
|
198
|
-
"""AsyncFunctionDef(identifier name, arguments args, stmt* body, expr* decorator_list, expr? returns, string? type_comment)"""
|
|
199
156
|
if sys.version_info >= (3, 12):
|
|
200
157
|
__match_args__ = ("name", "args", "body", "decorator_list", "returns", "type_comment", "type_params")
|
|
201
158
|
elif sys.version_info >= (3, 10):
|
|
@@ -259,7 +216,6 @@ class AsyncFunctionDef(stmt):
|
|
|
259
216
|
) -> None: ...
|
|
260
217
|
|
|
261
218
|
class ClassDef(stmt):
|
|
262
|
-
"""ClassDef(identifier name, expr* bases, keyword* keywords, stmt* body, expr* decorator_list)"""
|
|
263
219
|
if sys.version_info >= (3, 12):
|
|
264
220
|
__match_args__ = ("name", "bases", "keywords", "body", "decorator_list", "type_params")
|
|
265
221
|
elif sys.version_info >= (3, 10):
|
|
@@ -305,14 +261,12 @@ class ClassDef(stmt):
|
|
|
305
261
|
) -> None: ...
|
|
306
262
|
|
|
307
263
|
class Return(stmt):
|
|
308
|
-
"""Return(expr? value)"""
|
|
309
264
|
if sys.version_info >= (3, 10):
|
|
310
265
|
__match_args__ = ("value",)
|
|
311
266
|
value: expr | None
|
|
312
267
|
def __init__(self, value: expr | None = None, **kwargs: Unpack[_Attributes]) -> None: ...
|
|
313
268
|
|
|
314
269
|
class Delete(stmt):
|
|
315
|
-
"""Delete(expr* targets)"""
|
|
316
270
|
if sys.version_info >= (3, 10):
|
|
317
271
|
__match_args__ = ("targets",)
|
|
318
272
|
targets: list[expr]
|
|
@@ -322,7 +276,6 @@ class Delete(stmt):
|
|
|
322
276
|
def __init__(self, targets: list[expr], **kwargs: Unpack[_Attributes]) -> None: ...
|
|
323
277
|
|
|
324
278
|
class Assign(stmt):
|
|
325
|
-
"""Assign(expr* targets, expr value, string? type_comment)"""
|
|
326
279
|
if sys.version_info >= (3, 10):
|
|
327
280
|
__match_args__ = ("targets", "value", "type_comment")
|
|
328
281
|
targets: list[expr]
|
|
@@ -343,7 +296,6 @@ class Assign(stmt):
|
|
|
343
296
|
) -> None: ...
|
|
344
297
|
|
|
345
298
|
class AugAssign(stmt):
|
|
346
|
-
"""AugAssign(expr target, operator op, expr value)"""
|
|
347
299
|
if sys.version_info >= (3, 10):
|
|
348
300
|
__match_args__ = ("target", "op", "value")
|
|
349
301
|
target: Name | Attribute | Subscript
|
|
@@ -354,7 +306,6 @@ class AugAssign(stmt):
|
|
|
354
306
|
) -> None: ...
|
|
355
307
|
|
|
356
308
|
class AnnAssign(stmt):
|
|
357
|
-
"""AnnAssign(expr target, expr annotation, expr? value, int simple)"""
|
|
358
309
|
if sys.version_info >= (3, 10):
|
|
359
310
|
__match_args__ = ("target", "annotation", "value", "simple")
|
|
360
311
|
target: Name | Attribute | Subscript
|
|
@@ -382,7 +333,6 @@ class AnnAssign(stmt):
|
|
|
382
333
|
) -> None: ...
|
|
383
334
|
|
|
384
335
|
class For(stmt):
|
|
385
|
-
"""For(expr target, expr iter, stmt* body, stmt* orelse, string? type_comment)"""
|
|
386
336
|
if sys.version_info >= (3, 10):
|
|
387
337
|
__match_args__ = ("target", "iter", "body", "orelse", "type_comment")
|
|
388
338
|
target: expr
|
|
@@ -412,7 +362,6 @@ class For(stmt):
|
|
|
412
362
|
) -> None: ...
|
|
413
363
|
|
|
414
364
|
class AsyncFor(stmt):
|
|
415
|
-
"""AsyncFor(expr target, expr iter, stmt* body, stmt* orelse, string? type_comment)"""
|
|
416
365
|
if sys.version_info >= (3, 10):
|
|
417
366
|
__match_args__ = ("target", "iter", "body", "orelse", "type_comment")
|
|
418
367
|
target: expr
|
|
@@ -442,7 +391,6 @@ class AsyncFor(stmt):
|
|
|
442
391
|
) -> None: ...
|
|
443
392
|
|
|
444
393
|
class While(stmt):
|
|
445
|
-
"""While(expr test, stmt* body, stmt* orelse)"""
|
|
446
394
|
if sys.version_info >= (3, 10):
|
|
447
395
|
__match_args__ = ("test", "body", "orelse")
|
|
448
396
|
test: expr
|
|
@@ -456,7 +404,6 @@ class While(stmt):
|
|
|
456
404
|
def __init__(self, test: expr, body: list[stmt], orelse: list[stmt], **kwargs: Unpack[_Attributes]) -> None: ...
|
|
457
405
|
|
|
458
406
|
class If(stmt):
|
|
459
|
-
"""If(expr test, stmt* body, stmt* orelse)"""
|
|
460
407
|
if sys.version_info >= (3, 10):
|
|
461
408
|
__match_args__ = ("test", "body", "orelse")
|
|
462
409
|
test: expr
|
|
@@ -470,7 +417,6 @@ class If(stmt):
|
|
|
470
417
|
def __init__(self, test: expr, body: list[stmt], orelse: list[stmt], **kwargs: Unpack[_Attributes]) -> None: ...
|
|
471
418
|
|
|
472
419
|
class With(stmt):
|
|
473
|
-
"""With(withitem* items, stmt* body, string? type_comment)"""
|
|
474
420
|
if sys.version_info >= (3, 10):
|
|
475
421
|
__match_args__ = ("items", "body", "type_comment")
|
|
476
422
|
items: list[withitem]
|
|
@@ -490,7 +436,6 @@ class With(stmt):
|
|
|
490
436
|
) -> None: ...
|
|
491
437
|
|
|
492
438
|
class AsyncWith(stmt):
|
|
493
|
-
"""AsyncWith(withitem* items, stmt* body, string? type_comment)"""
|
|
494
439
|
if sys.version_info >= (3, 10):
|
|
495
440
|
__match_args__ = ("items", "body", "type_comment")
|
|
496
441
|
items: list[withitem]
|
|
@@ -510,7 +455,6 @@ class AsyncWith(stmt):
|
|
|
510
455
|
) -> None: ...
|
|
511
456
|
|
|
512
457
|
class Raise(stmt):
|
|
513
|
-
"""Raise(expr? exc, expr? cause)"""
|
|
514
458
|
if sys.version_info >= (3, 10):
|
|
515
459
|
__match_args__ = ("exc", "cause")
|
|
516
460
|
exc: expr | None
|
|
@@ -518,7 +462,6 @@ class Raise(stmt):
|
|
|
518
462
|
def __init__(self, exc: expr | None = None, cause: expr | None = None, **kwargs: Unpack[_Attributes]) -> None: ...
|
|
519
463
|
|
|
520
464
|
class Try(stmt):
|
|
521
|
-
"""Try(stmt* body, excepthandler* handlers, stmt* orelse, stmt* finalbody)"""
|
|
522
465
|
if sys.version_info >= (3, 10):
|
|
523
466
|
__match_args__ = ("body", "handlers", "orelse", "finalbody")
|
|
524
467
|
body: list[stmt]
|
|
@@ -546,7 +489,6 @@ class Try(stmt):
|
|
|
546
489
|
|
|
547
490
|
if sys.version_info >= (3, 11):
|
|
548
491
|
class TryStar(stmt):
|
|
549
|
-
"""TryStar(stmt* body, excepthandler* handlers, stmt* orelse, stmt* finalbody)"""
|
|
550
492
|
__match_args__ = ("body", "handlers", "orelse", "finalbody")
|
|
551
493
|
body: list[stmt]
|
|
552
494
|
handlers: list[ExceptHandler]
|
|
@@ -572,7 +514,6 @@ if sys.version_info >= (3, 11):
|
|
|
572
514
|
) -> None: ...
|
|
573
515
|
|
|
574
516
|
class Assert(stmt):
|
|
575
|
-
"""Assert(expr test, expr? msg)"""
|
|
576
517
|
if sys.version_info >= (3, 10):
|
|
577
518
|
__match_args__ = ("test", "msg")
|
|
578
519
|
test: expr
|
|
@@ -580,7 +521,6 @@ class Assert(stmt):
|
|
|
580
521
|
def __init__(self, test: expr, msg: expr | None = None, **kwargs: Unpack[_Attributes]) -> None: ...
|
|
581
522
|
|
|
582
523
|
class Import(stmt):
|
|
583
|
-
"""Import(alias* names)"""
|
|
584
524
|
if sys.version_info >= (3, 10):
|
|
585
525
|
__match_args__ = ("names",)
|
|
586
526
|
names: list[alias]
|
|
@@ -590,7 +530,6 @@ class Import(stmt):
|
|
|
590
530
|
def __init__(self, names: list[alias], **kwargs: Unpack[_Attributes]) -> None: ...
|
|
591
531
|
|
|
592
532
|
class ImportFrom(stmt):
|
|
593
|
-
"""ImportFrom(identifier? module, alias* names, int? level)"""
|
|
594
533
|
if sys.version_info >= (3, 10):
|
|
595
534
|
__match_args__ = ("module", "names", "level")
|
|
596
535
|
module: str | None
|
|
@@ -612,7 +551,6 @@ class ImportFrom(stmt):
|
|
|
612
551
|
) -> None: ...
|
|
613
552
|
|
|
614
553
|
class Global(stmt):
|
|
615
|
-
"""Global(identifier* names)"""
|
|
616
554
|
if sys.version_info >= (3, 10):
|
|
617
555
|
__match_args__ = ("names",)
|
|
618
556
|
names: list[_Identifier]
|
|
@@ -622,7 +560,6 @@ class Global(stmt):
|
|
|
622
560
|
def __init__(self, names: list[_Identifier], **kwargs: Unpack[_Attributes]) -> None: ...
|
|
623
561
|
|
|
624
562
|
class Nonlocal(stmt):
|
|
625
|
-
"""Nonlocal(identifier* names)"""
|
|
626
563
|
if sys.version_info >= (3, 10):
|
|
627
564
|
__match_args__ = ("names",)
|
|
628
565
|
names: list[_Identifier]
|
|
@@ -632,52 +569,16 @@ class Nonlocal(stmt):
|
|
|
632
569
|
def __init__(self, names: list[_Identifier], **kwargs: Unpack[_Attributes]) -> None: ...
|
|
633
570
|
|
|
634
571
|
class Expr(stmt):
|
|
635
|
-
"""Expr(expr value)"""
|
|
636
572
|
if sys.version_info >= (3, 10):
|
|
637
573
|
__match_args__ = ("value",)
|
|
638
574
|
value: expr
|
|
639
575
|
def __init__(self, value: expr, **kwargs: Unpack[_Attributes]) -> None: ...
|
|
640
576
|
|
|
641
|
-
class Pass(stmt):
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
class Break(stmt):
|
|
645
|
-
"""Break"""
|
|
646
|
-
...
|
|
647
|
-
class Continue(stmt):
|
|
648
|
-
"""Continue"""
|
|
649
|
-
...
|
|
577
|
+
class Pass(stmt): ...
|
|
578
|
+
class Break(stmt): ...
|
|
579
|
+
class Continue(stmt): ...
|
|
650
580
|
|
|
651
581
|
class expr(AST):
|
|
652
|
-
"""
|
|
653
|
-
expr = BoolOp(boolop op, expr* values)
|
|
654
|
-
| NamedExpr(expr target, expr value)
|
|
655
|
-
| BinOp(expr left, operator op, expr right)
|
|
656
|
-
| UnaryOp(unaryop op, expr operand)
|
|
657
|
-
| Lambda(arguments args, expr body)
|
|
658
|
-
| IfExp(expr test, expr body, expr orelse)
|
|
659
|
-
| Dict(expr* keys, expr* values)
|
|
660
|
-
| Set(expr* elts)
|
|
661
|
-
| ListComp(expr elt, comprehension* generators)
|
|
662
|
-
| SetComp(expr elt, comprehension* generators)
|
|
663
|
-
| DictComp(expr key, expr value, comprehension* generators)
|
|
664
|
-
| GeneratorExp(expr elt, comprehension* generators)
|
|
665
|
-
| Await(expr value)
|
|
666
|
-
| Yield(expr? value)
|
|
667
|
-
| YieldFrom(expr value)
|
|
668
|
-
| Compare(expr left, cmpop* ops, expr* comparators)
|
|
669
|
-
| Call(expr func, expr* args, keyword* keywords)
|
|
670
|
-
| FormattedValue(expr value, int? conversion, expr? format_spec)
|
|
671
|
-
| JoinedStr(expr* values)
|
|
672
|
-
| Constant(constant value, string? kind)
|
|
673
|
-
| Attribute(expr value, identifier attr, expr_context ctx)
|
|
674
|
-
| Subscript(expr value, expr slice, expr_context ctx)
|
|
675
|
-
| Starred(expr value, expr_context ctx)
|
|
676
|
-
| Name(identifier id, expr_context ctx)
|
|
677
|
-
| List(expr* elts, expr_context ctx)
|
|
678
|
-
| Tuple(expr* elts, expr_context ctx)
|
|
679
|
-
| Slice(expr? lower, expr? upper, expr? step)
|
|
680
|
-
"""
|
|
681
582
|
lineno: int
|
|
682
583
|
col_offset: int
|
|
683
584
|
end_lineno: int | None
|
|
@@ -685,7 +586,6 @@ class expr(AST):
|
|
|
685
586
|
def __init__(self, **kwargs: Unpack[_Attributes]) -> None: ...
|
|
686
587
|
|
|
687
588
|
class BoolOp(expr):
|
|
688
|
-
"""BoolOp(boolop op, expr* values)"""
|
|
689
589
|
if sys.version_info >= (3, 10):
|
|
690
590
|
__match_args__ = ("op", "values")
|
|
691
591
|
op: boolop
|
|
@@ -696,7 +596,6 @@ class BoolOp(expr):
|
|
|
696
596
|
def __init__(self, op: boolop, values: list[expr], **kwargs: Unpack[_Attributes]) -> None: ...
|
|
697
597
|
|
|
698
598
|
class BinOp(expr):
|
|
699
|
-
"""BinOp(expr left, operator op, expr right)"""
|
|
700
599
|
if sys.version_info >= (3, 10):
|
|
701
600
|
__match_args__ = ("left", "op", "right")
|
|
702
601
|
left: expr
|
|
@@ -705,7 +604,6 @@ class BinOp(expr):
|
|
|
705
604
|
def __init__(self, left: expr, op: operator, right: expr, **kwargs: Unpack[_Attributes]) -> None: ...
|
|
706
605
|
|
|
707
606
|
class UnaryOp(expr):
|
|
708
|
-
"""UnaryOp(unaryop op, expr operand)"""
|
|
709
607
|
if sys.version_info >= (3, 10):
|
|
710
608
|
__match_args__ = ("op", "operand")
|
|
711
609
|
op: unaryop
|
|
@@ -713,7 +611,6 @@ class UnaryOp(expr):
|
|
|
713
611
|
def __init__(self, op: unaryop, operand: expr, **kwargs: Unpack[_Attributes]) -> None: ...
|
|
714
612
|
|
|
715
613
|
class Lambda(expr):
|
|
716
|
-
"""Lambda(arguments args, expr body)"""
|
|
717
614
|
if sys.version_info >= (3, 10):
|
|
718
615
|
__match_args__ = ("args", "body")
|
|
719
616
|
args: arguments
|
|
@@ -721,7 +618,6 @@ class Lambda(expr):
|
|
|
721
618
|
def __init__(self, args: arguments, body: expr, **kwargs: Unpack[_Attributes]) -> None: ...
|
|
722
619
|
|
|
723
620
|
class IfExp(expr):
|
|
724
|
-
"""IfExp(expr test, expr body, expr orelse)"""
|
|
725
621
|
if sys.version_info >= (3, 10):
|
|
726
622
|
__match_args__ = ("test", "body", "orelse")
|
|
727
623
|
test: expr
|
|
@@ -730,7 +626,6 @@ class IfExp(expr):
|
|
|
730
626
|
def __init__(self, test: expr, body: expr, orelse: expr, **kwargs: Unpack[_Attributes]) -> None: ...
|
|
731
627
|
|
|
732
628
|
class Dict(expr):
|
|
733
|
-
"""Dict(expr* keys, expr* values)"""
|
|
734
629
|
if sys.version_info >= (3, 10):
|
|
735
630
|
__match_args__ = ("keys", "values")
|
|
736
631
|
keys: list[expr | None]
|
|
@@ -741,7 +636,6 @@ class Dict(expr):
|
|
|
741
636
|
def __init__(self, keys: list[expr | None], values: list[expr], **kwargs: Unpack[_Attributes]) -> None: ...
|
|
742
637
|
|
|
743
638
|
class Set(expr):
|
|
744
|
-
"""Set(expr* elts)"""
|
|
745
639
|
if sys.version_info >= (3, 10):
|
|
746
640
|
__match_args__ = ("elts",)
|
|
747
641
|
elts: list[expr]
|
|
@@ -751,7 +645,6 @@ class Set(expr):
|
|
|
751
645
|
def __init__(self, elts: list[expr], **kwargs: Unpack[_Attributes]) -> None: ...
|
|
752
646
|
|
|
753
647
|
class ListComp(expr):
|
|
754
|
-
"""ListComp(expr elt, comprehension* generators)"""
|
|
755
648
|
if sys.version_info >= (3, 10):
|
|
756
649
|
__match_args__ = ("elt", "generators")
|
|
757
650
|
elt: expr
|
|
@@ -762,7 +655,6 @@ class ListComp(expr):
|
|
|
762
655
|
def __init__(self, elt: expr, generators: list[comprehension], **kwargs: Unpack[_Attributes]) -> None: ...
|
|
763
656
|
|
|
764
657
|
class SetComp(expr):
|
|
765
|
-
"""SetComp(expr elt, comprehension* generators)"""
|
|
766
658
|
if sys.version_info >= (3, 10):
|
|
767
659
|
__match_args__ = ("elt", "generators")
|
|
768
660
|
elt: expr
|
|
@@ -773,7 +665,6 @@ class SetComp(expr):
|
|
|
773
665
|
def __init__(self, elt: expr, generators: list[comprehension], **kwargs: Unpack[_Attributes]) -> None: ...
|
|
774
666
|
|
|
775
667
|
class DictComp(expr):
|
|
776
|
-
"""DictComp(expr key, expr value, comprehension* generators)"""
|
|
777
668
|
if sys.version_info >= (3, 10):
|
|
778
669
|
__match_args__ = ("key", "value", "generators")
|
|
779
670
|
key: expr
|
|
@@ -787,7 +678,6 @@ class DictComp(expr):
|
|
|
787
678
|
def __init__(self, key: expr, value: expr, generators: list[comprehension], **kwargs: Unpack[_Attributes]) -> None: ...
|
|
788
679
|
|
|
789
680
|
class GeneratorExp(expr):
|
|
790
|
-
"""GeneratorExp(expr elt, comprehension* generators)"""
|
|
791
681
|
if sys.version_info >= (3, 10):
|
|
792
682
|
__match_args__ = ("elt", "generators")
|
|
793
683
|
elt: expr
|
|
@@ -798,28 +688,24 @@ class GeneratorExp(expr):
|
|
|
798
688
|
def __init__(self, elt: expr, generators: list[comprehension], **kwargs: Unpack[_Attributes]) -> None: ...
|
|
799
689
|
|
|
800
690
|
class Await(expr):
|
|
801
|
-
"""Await(expr value)"""
|
|
802
691
|
if sys.version_info >= (3, 10):
|
|
803
692
|
__match_args__ = ("value",)
|
|
804
693
|
value: expr
|
|
805
694
|
def __init__(self, value: expr, **kwargs: Unpack[_Attributes]) -> None: ...
|
|
806
695
|
|
|
807
696
|
class Yield(expr):
|
|
808
|
-
"""Yield(expr? value)"""
|
|
809
697
|
if sys.version_info >= (3, 10):
|
|
810
698
|
__match_args__ = ("value",)
|
|
811
699
|
value: expr | None
|
|
812
700
|
def __init__(self, value: expr | None = None, **kwargs: Unpack[_Attributes]) -> None: ...
|
|
813
701
|
|
|
814
702
|
class YieldFrom(expr):
|
|
815
|
-
"""YieldFrom(expr value)"""
|
|
816
703
|
if sys.version_info >= (3, 10):
|
|
817
704
|
__match_args__ = ("value",)
|
|
818
705
|
value: expr
|
|
819
706
|
def __init__(self, value: expr, **kwargs: Unpack[_Attributes]) -> None: ...
|
|
820
707
|
|
|
821
708
|
class Compare(expr):
|
|
822
|
-
"""Compare(expr left, cmpop* ops, expr* comparators)"""
|
|
823
709
|
if sys.version_info >= (3, 10):
|
|
824
710
|
__match_args__ = ("left", "ops", "comparators")
|
|
825
711
|
left: expr
|
|
@@ -833,7 +719,6 @@ class Compare(expr):
|
|
|
833
719
|
def __init__(self, left: expr, ops: list[cmpop], comparators: list[expr], **kwargs: Unpack[_Attributes]) -> None: ...
|
|
834
720
|
|
|
835
721
|
class Call(expr):
|
|
836
|
-
"""Call(expr func, expr* args, keyword* keywords)"""
|
|
837
722
|
if sys.version_info >= (3, 10):
|
|
838
723
|
__match_args__ = ("func", "args", "keywords")
|
|
839
724
|
func: expr
|
|
@@ -847,7 +732,6 @@ class Call(expr):
|
|
|
847
732
|
def __init__(self, func: expr, args: list[expr], keywords: list[keyword], **kwargs: Unpack[_Attributes]) -> None: ...
|
|
848
733
|
|
|
849
734
|
class FormattedValue(expr):
|
|
850
|
-
"""FormattedValue(expr value, int? conversion, expr? format_spec)"""
|
|
851
735
|
if sys.version_info >= (3, 10):
|
|
852
736
|
__match_args__ = ("value", "conversion", "format_spec")
|
|
853
737
|
value: expr
|
|
@@ -856,7 +740,6 @@ class FormattedValue(expr):
|
|
|
856
740
|
def __init__(self, value: expr, conversion: int, format_spec: expr | None = None, **kwargs: Unpack[_Attributes]) -> None: ...
|
|
857
741
|
|
|
858
742
|
class JoinedStr(expr):
|
|
859
|
-
"""JoinedStr(expr* values)"""
|
|
860
743
|
if sys.version_info >= (3, 10):
|
|
861
744
|
__match_args__ = ("values",)
|
|
862
745
|
values: list[expr]
|
|
@@ -866,7 +749,6 @@ class JoinedStr(expr):
|
|
|
866
749
|
def __init__(self, values: list[expr], **kwargs: Unpack[_Attributes]) -> None: ...
|
|
867
750
|
|
|
868
751
|
class Constant(expr):
|
|
869
|
-
"""Constant(constant value, string? kind)"""
|
|
870
752
|
if sys.version_info >= (3, 10):
|
|
871
753
|
__match_args__ = ("value", "kind")
|
|
872
754
|
value: Any # None, str, bytes, bool, int, float, complex, Ellipsis
|
|
@@ -877,7 +759,6 @@ class Constant(expr):
|
|
|
877
759
|
def __init__(self, value: Any, kind: str | None = None, **kwargs: Unpack[_Attributes]) -> None: ...
|
|
878
760
|
|
|
879
761
|
class NamedExpr(expr):
|
|
880
|
-
"""NamedExpr(expr target, expr value)"""
|
|
881
762
|
if sys.version_info >= (3, 10):
|
|
882
763
|
__match_args__ = ("target", "value")
|
|
883
764
|
target: Name
|
|
@@ -885,7 +766,6 @@ class NamedExpr(expr):
|
|
|
885
766
|
def __init__(self, target: Name, value: expr, **kwargs: Unpack[_Attributes]) -> None: ...
|
|
886
767
|
|
|
887
768
|
class Attribute(expr):
|
|
888
|
-
"""Attribute(expr value, identifier attr, expr_context ctx)"""
|
|
889
769
|
if sys.version_info >= (3, 10):
|
|
890
770
|
__match_args__ = ("value", "attr", "ctx")
|
|
891
771
|
value: expr
|
|
@@ -903,7 +783,6 @@ else:
|
|
|
903
783
|
class _SliceAttributes(TypedDict): ...
|
|
904
784
|
|
|
905
785
|
class Slice(_Slice):
|
|
906
|
-
"""Slice(expr? lower, expr? upper, expr? step)"""
|
|
907
786
|
if sys.version_info >= (3, 10):
|
|
908
787
|
__match_args__ = ("lower", "upper", "step")
|
|
909
788
|
lower: expr | None
|
|
@@ -923,7 +802,6 @@ if sys.version_info < (3, 9):
|
|
|
923
802
|
def __init__(self, value: expr, **kwargs: Unpack[_SliceAttributes]) -> None: ...
|
|
924
803
|
|
|
925
804
|
class Subscript(expr):
|
|
926
|
-
"""Subscript(expr value, expr slice, expr_context ctx)"""
|
|
927
805
|
if sys.version_info >= (3, 10):
|
|
928
806
|
__match_args__ = ("value", "slice", "ctx")
|
|
929
807
|
value: expr
|
|
@@ -932,7 +810,6 @@ class Subscript(expr):
|
|
|
932
810
|
def __init__(self, value: expr, slice: _Slice, ctx: expr_context = ..., **kwargs: Unpack[_Attributes]) -> None: ...
|
|
933
811
|
|
|
934
812
|
class Starred(expr):
|
|
935
|
-
"""Starred(expr value, expr_context ctx)"""
|
|
936
813
|
if sys.version_info >= (3, 10):
|
|
937
814
|
__match_args__ = ("value", "ctx")
|
|
938
815
|
value: expr
|
|
@@ -940,7 +817,6 @@ class Starred(expr):
|
|
|
940
817
|
def __init__(self, value: expr, ctx: expr_context = ..., **kwargs: Unpack[_Attributes]) -> None: ...
|
|
941
818
|
|
|
942
819
|
class Name(expr):
|
|
943
|
-
"""Name(identifier id, expr_context ctx)"""
|
|
944
820
|
if sys.version_info >= (3, 10):
|
|
945
821
|
__match_args__ = ("id", "ctx")
|
|
946
822
|
id: _Identifier
|
|
@@ -948,7 +824,6 @@ class Name(expr):
|
|
|
948
824
|
def __init__(self, id: _Identifier, ctx: expr_context = ..., **kwargs: Unpack[_Attributes]) -> None: ...
|
|
949
825
|
|
|
950
826
|
class List(expr):
|
|
951
|
-
"""List(expr* elts, expr_context ctx)"""
|
|
952
827
|
if sys.version_info >= (3, 10):
|
|
953
828
|
__match_args__ = ("elts", "ctx")
|
|
954
829
|
elts: list[expr]
|
|
@@ -959,7 +834,6 @@ class List(expr):
|
|
|
959
834
|
def __init__(self, elts: list[expr], ctx: expr_context = ..., **kwargs: Unpack[_Attributes]) -> None: ...
|
|
960
835
|
|
|
961
836
|
class Tuple(expr):
|
|
962
|
-
"""Tuple(expr* elts, expr_context ctx)"""
|
|
963
837
|
if sys.version_info >= (3, 10):
|
|
964
838
|
__match_args__ = ("elts", "ctx")
|
|
965
839
|
elts: list[expr]
|
|
@@ -971,9 +845,7 @@ class Tuple(expr):
|
|
|
971
845
|
else:
|
|
972
846
|
def __init__(self, elts: list[expr], ctx: expr_context = ..., **kwargs: Unpack[_Attributes]) -> None: ...
|
|
973
847
|
|
|
974
|
-
class expr_context(AST):
|
|
975
|
-
"""expr_context = Load | Store | Del"""
|
|
976
|
-
...
|
|
848
|
+
class expr_context(AST): ...
|
|
977
849
|
|
|
978
850
|
if sys.version_info < (3, 9):
|
|
979
851
|
class AugLoad(expr_context): ...
|
|
@@ -984,117 +856,44 @@ if sys.version_info < (3, 9):
|
|
|
984
856
|
body: list[stmt]
|
|
985
857
|
def __init__(self, body: list[stmt]) -> None: ...
|
|
986
858
|
|
|
987
|
-
class Del(expr_context):
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
class
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
class
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
class
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
class
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
class
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
class operator
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
class
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
class
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
class
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
class
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
class
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
class FloorDiv(operator):
|
|
1024
|
-
"""FloorDiv"""
|
|
1025
|
-
...
|
|
1026
|
-
class LShift(operator):
|
|
1027
|
-
"""LShift"""
|
|
1028
|
-
...
|
|
1029
|
-
class Mod(operator):
|
|
1030
|
-
"""Mod"""
|
|
1031
|
-
...
|
|
1032
|
-
class Mult(operator):
|
|
1033
|
-
"""Mult"""
|
|
1034
|
-
...
|
|
1035
|
-
class MatMult(operator):
|
|
1036
|
-
"""MatMult"""
|
|
1037
|
-
...
|
|
1038
|
-
class Pow(operator):
|
|
1039
|
-
"""Pow"""
|
|
1040
|
-
...
|
|
1041
|
-
class RShift(operator):
|
|
1042
|
-
"""RShift"""
|
|
1043
|
-
...
|
|
1044
|
-
class Sub(operator):
|
|
1045
|
-
"""Sub"""
|
|
1046
|
-
...
|
|
1047
|
-
class unaryop(AST):
|
|
1048
|
-
"""unaryop = Invert | Not | UAdd | USub"""
|
|
1049
|
-
...
|
|
1050
|
-
class Invert(unaryop):
|
|
1051
|
-
"""Invert"""
|
|
1052
|
-
...
|
|
1053
|
-
class Not(unaryop):
|
|
1054
|
-
"""Not"""
|
|
1055
|
-
...
|
|
1056
|
-
class UAdd(unaryop):
|
|
1057
|
-
"""UAdd"""
|
|
1058
|
-
...
|
|
1059
|
-
class USub(unaryop):
|
|
1060
|
-
"""USub"""
|
|
1061
|
-
...
|
|
1062
|
-
class cmpop(AST):
|
|
1063
|
-
"""cmpop = Eq | NotEq | Lt | LtE | Gt | GtE | Is | IsNot | In | NotIn"""
|
|
1064
|
-
...
|
|
1065
|
-
class Eq(cmpop):
|
|
1066
|
-
"""Eq"""
|
|
1067
|
-
...
|
|
1068
|
-
class Gt(cmpop):
|
|
1069
|
-
"""Gt"""
|
|
1070
|
-
...
|
|
1071
|
-
class GtE(cmpop):
|
|
1072
|
-
"""GtE"""
|
|
1073
|
-
...
|
|
1074
|
-
class In(cmpop):
|
|
1075
|
-
"""In"""
|
|
1076
|
-
...
|
|
1077
|
-
class Is(cmpop):
|
|
1078
|
-
"""Is"""
|
|
1079
|
-
...
|
|
1080
|
-
class IsNot(cmpop):
|
|
1081
|
-
"""IsNot"""
|
|
1082
|
-
...
|
|
1083
|
-
class Lt(cmpop):
|
|
1084
|
-
"""Lt"""
|
|
1085
|
-
...
|
|
1086
|
-
class LtE(cmpop):
|
|
1087
|
-
"""LtE"""
|
|
1088
|
-
...
|
|
1089
|
-
class NotEq(cmpop):
|
|
1090
|
-
"""NotEq"""
|
|
1091
|
-
...
|
|
1092
|
-
class NotIn(cmpop):
|
|
1093
|
-
"""NotIn"""
|
|
1094
|
-
...
|
|
859
|
+
class Del(expr_context): ...
|
|
860
|
+
class Load(expr_context): ...
|
|
861
|
+
class Store(expr_context): ...
|
|
862
|
+
class boolop(AST): ...
|
|
863
|
+
class And(boolop): ...
|
|
864
|
+
class Or(boolop): ...
|
|
865
|
+
class operator(AST): ...
|
|
866
|
+
class Add(operator): ...
|
|
867
|
+
class BitAnd(operator): ...
|
|
868
|
+
class BitOr(operator): ...
|
|
869
|
+
class BitXor(operator): ...
|
|
870
|
+
class Div(operator): ...
|
|
871
|
+
class FloorDiv(operator): ...
|
|
872
|
+
class LShift(operator): ...
|
|
873
|
+
class Mod(operator): ...
|
|
874
|
+
class Mult(operator): ...
|
|
875
|
+
class MatMult(operator): ...
|
|
876
|
+
class Pow(operator): ...
|
|
877
|
+
class RShift(operator): ...
|
|
878
|
+
class Sub(operator): ...
|
|
879
|
+
class unaryop(AST): ...
|
|
880
|
+
class Invert(unaryop): ...
|
|
881
|
+
class Not(unaryop): ...
|
|
882
|
+
class UAdd(unaryop): ...
|
|
883
|
+
class USub(unaryop): ...
|
|
884
|
+
class cmpop(AST): ...
|
|
885
|
+
class Eq(cmpop): ...
|
|
886
|
+
class Gt(cmpop): ...
|
|
887
|
+
class GtE(cmpop): ...
|
|
888
|
+
class In(cmpop): ...
|
|
889
|
+
class Is(cmpop): ...
|
|
890
|
+
class IsNot(cmpop): ...
|
|
891
|
+
class Lt(cmpop): ...
|
|
892
|
+
class LtE(cmpop): ...
|
|
893
|
+
class NotEq(cmpop): ...
|
|
894
|
+
class NotIn(cmpop): ...
|
|
1095
895
|
|
|
1096
896
|
class comprehension(AST):
|
|
1097
|
-
"""comprehension(expr target, expr iter, expr* ifs, int is_async)"""
|
|
1098
897
|
if sys.version_info >= (3, 10):
|
|
1099
898
|
__match_args__ = ("target", "iter", "ifs", "is_async")
|
|
1100
899
|
target: expr
|
|
@@ -1110,7 +909,6 @@ class comprehension(AST):
|
|
|
1110
909
|
def __init__(self, target: expr, iter: expr, ifs: list[expr], is_async: int) -> None: ...
|
|
1111
910
|
|
|
1112
911
|
class excepthandler(AST):
|
|
1113
|
-
"""excepthandler = ExceptHandler(expr? type, identifier? name, stmt* body)"""
|
|
1114
912
|
lineno: int
|
|
1115
913
|
col_offset: int
|
|
1116
914
|
end_lineno: int | None
|
|
@@ -1118,7 +916,6 @@ class excepthandler(AST):
|
|
|
1118
916
|
def __init__(self, **kwargs: Unpack[_Attributes]) -> None: ...
|
|
1119
917
|
|
|
1120
918
|
class ExceptHandler(excepthandler):
|
|
1121
|
-
"""ExceptHandler(expr? type, identifier? name, stmt* body)"""
|
|
1122
919
|
if sys.version_info >= (3, 10):
|
|
1123
920
|
__match_args__ = ("type", "name", "body")
|
|
1124
921
|
type: expr | None
|
|
@@ -1139,7 +936,6 @@ class ExceptHandler(excepthandler):
|
|
|
1139
936
|
) -> None: ...
|
|
1140
937
|
|
|
1141
938
|
class arguments(AST):
|
|
1142
|
-
"""arguments(arg* posonlyargs, arg* args, arg? vararg, arg* kwonlyargs, expr* kw_defaults, arg? kwarg, expr* defaults)"""
|
|
1143
939
|
if sys.version_info >= (3, 10):
|
|
1144
940
|
__match_args__ = ("posonlyargs", "args", "vararg", "kwonlyargs", "kw_defaults", "kwarg", "defaults")
|
|
1145
941
|
posonlyargs: list[arg]
|
|
@@ -1198,7 +994,6 @@ class arguments(AST):
|
|
|
1198
994
|
) -> None: ...
|
|
1199
995
|
|
|
1200
996
|
class arg(AST):
|
|
1201
|
-
"""arg(identifier arg, expr? annotation, string? type_comment)"""
|
|
1202
997
|
lineno: int
|
|
1203
998
|
col_offset: int
|
|
1204
999
|
end_lineno: int | None
|
|
@@ -1213,7 +1008,6 @@ class arg(AST):
|
|
|
1213
1008
|
) -> None: ...
|
|
1214
1009
|
|
|
1215
1010
|
class keyword(AST):
|
|
1216
|
-
"""keyword(identifier? arg, expr value)"""
|
|
1217
1011
|
lineno: int
|
|
1218
1012
|
col_offset: int
|
|
1219
1013
|
end_lineno: int | None
|
|
@@ -1228,7 +1022,6 @@ class keyword(AST):
|
|
|
1228
1022
|
def __init__(self, arg: _Identifier | None = None, *, value: expr, **kwargs: Unpack[_Attributes]) -> None: ...
|
|
1229
1023
|
|
|
1230
1024
|
class alias(AST):
|
|
1231
|
-
"""alias(identifier name, identifier? asname)"""
|
|
1232
1025
|
lineno: int
|
|
1233
1026
|
col_offset: int
|
|
1234
1027
|
end_lineno: int | None
|
|
@@ -1240,7 +1033,6 @@ class alias(AST):
|
|
|
1240
1033
|
def __init__(self, name: str, asname: _Identifier | None = None, **kwargs: Unpack[_Attributes]) -> None: ...
|
|
1241
1034
|
|
|
1242
1035
|
class withitem(AST):
|
|
1243
|
-
"""withitem(expr context_expr, expr? optional_vars)"""
|
|
1244
1036
|
if sys.version_info >= (3, 10):
|
|
1245
1037
|
__match_args__ = ("context_expr", "optional_vars")
|
|
1246
1038
|
context_expr: expr
|
|
@@ -1249,7 +1041,6 @@ class withitem(AST):
|
|
|
1249
1041
|
|
|
1250
1042
|
if sys.version_info >= (3, 10):
|
|
1251
1043
|
class Match(stmt):
|
|
1252
|
-
"""Match(expr subject, match_case* cases)"""
|
|
1253
1044
|
__match_args__ = ("subject", "cases")
|
|
1254
1045
|
subject: expr
|
|
1255
1046
|
cases: list[match_case]
|
|
@@ -1259,16 +1050,6 @@ if sys.version_info >= (3, 10):
|
|
|
1259
1050
|
def __init__(self, subject: expr, cases: list[match_case], **kwargs: Unpack[_Attributes]) -> None: ...
|
|
1260
1051
|
|
|
1261
1052
|
class pattern(AST):
|
|
1262
|
-
"""
|
|
1263
|
-
pattern = MatchValue(expr value)
|
|
1264
|
-
| MatchSingleton(constant value)
|
|
1265
|
-
| MatchSequence(pattern* patterns)
|
|
1266
|
-
| MatchMapping(expr* keys, pattern* patterns, identifier? rest)
|
|
1267
|
-
| MatchClass(expr cls, pattern* patterns, identifier* kwd_attrs, pattern* kwd_patterns)
|
|
1268
|
-
| MatchStar(identifier? name)
|
|
1269
|
-
| MatchAs(pattern? pattern, identifier? name)
|
|
1270
|
-
| MatchOr(pattern* patterns)
|
|
1271
|
-
"""
|
|
1272
1053
|
lineno: int
|
|
1273
1054
|
col_offset: int
|
|
1274
1055
|
end_lineno: int
|
|
@@ -1279,7 +1060,6 @@ if sys.version_info >= (3, 10):
|
|
|
1279
1060
|
_Pattern: typing_extensions.TypeAlias = pattern
|
|
1280
1061
|
|
|
1281
1062
|
class match_case(AST):
|
|
1282
|
-
"""match_case(pattern pattern, expr? guard, stmt* body)"""
|
|
1283
1063
|
__match_args__ = ("pattern", "guard", "body")
|
|
1284
1064
|
pattern: _Pattern
|
|
1285
1065
|
guard: expr | None
|
|
@@ -1293,19 +1073,16 @@ if sys.version_info >= (3, 10):
|
|
|
1293
1073
|
def __init__(self, pattern: _Pattern, guard: expr | None = None, *, body: list[stmt]) -> None: ...
|
|
1294
1074
|
|
|
1295
1075
|
class MatchValue(pattern):
|
|
1296
|
-
"""MatchValue(expr value)"""
|
|
1297
1076
|
__match_args__ = ("value",)
|
|
1298
1077
|
value: expr
|
|
1299
1078
|
def __init__(self, value: expr, **kwargs: Unpack[_Attributes[int]]) -> None: ...
|
|
1300
1079
|
|
|
1301
1080
|
class MatchSingleton(pattern):
|
|
1302
|
-
"""MatchSingleton(constant value)"""
|
|
1303
1081
|
__match_args__ = ("value",)
|
|
1304
1082
|
value: Literal[True, False] | None
|
|
1305
1083
|
def __init__(self, value: Literal[True, False] | None, **kwargs: Unpack[_Attributes[int]]) -> None: ...
|
|
1306
1084
|
|
|
1307
1085
|
class MatchSequence(pattern):
|
|
1308
|
-
"""MatchSequence(pattern* patterns)"""
|
|
1309
1086
|
__match_args__ = ("patterns",)
|
|
1310
1087
|
patterns: list[pattern]
|
|
1311
1088
|
if sys.version_info >= (3, 13):
|
|
@@ -1314,13 +1091,11 @@ if sys.version_info >= (3, 10):
|
|
|
1314
1091
|
def __init__(self, patterns: list[pattern], **kwargs: Unpack[_Attributes[int]]) -> None: ...
|
|
1315
1092
|
|
|
1316
1093
|
class MatchStar(pattern):
|
|
1317
|
-
"""MatchStar(identifier? name)"""
|
|
1318
1094
|
__match_args__ = ("name",)
|
|
1319
1095
|
name: _Identifier | None
|
|
1320
1096
|
def __init__(self, name: _Identifier | None, **kwargs: Unpack[_Attributes[int]]) -> None: ...
|
|
1321
1097
|
|
|
1322
1098
|
class MatchMapping(pattern):
|
|
1323
|
-
"""MatchMapping(expr* keys, pattern* patterns, identifier? rest)"""
|
|
1324
1099
|
__match_args__ = ("keys", "patterns", "rest")
|
|
1325
1100
|
keys: list[expr]
|
|
1326
1101
|
patterns: list[pattern]
|
|
@@ -1343,7 +1118,6 @@ if sys.version_info >= (3, 10):
|
|
|
1343
1118
|
) -> None: ...
|
|
1344
1119
|
|
|
1345
1120
|
class MatchClass(pattern):
|
|
1346
|
-
"""MatchClass(expr cls, pattern* patterns, identifier* kwd_attrs, pattern* kwd_patterns)"""
|
|
1347
1121
|
__match_args__ = ("cls", "patterns", "kwd_attrs", "kwd_patterns")
|
|
1348
1122
|
cls: expr
|
|
1349
1123
|
patterns: list[pattern]
|
|
@@ -1369,7 +1143,6 @@ if sys.version_info >= (3, 10):
|
|
|
1369
1143
|
) -> None: ...
|
|
1370
1144
|
|
|
1371
1145
|
class MatchAs(pattern):
|
|
1372
|
-
"""MatchAs(pattern? pattern, identifier? name)"""
|
|
1373
1146
|
__match_args__ = ("pattern", "name")
|
|
1374
1147
|
pattern: _Pattern | None
|
|
1375
1148
|
name: _Identifier | None
|
|
@@ -1378,7 +1151,6 @@ if sys.version_info >= (3, 10):
|
|
|
1378
1151
|
) -> None: ...
|
|
1379
1152
|
|
|
1380
1153
|
class MatchOr(pattern):
|
|
1381
|
-
"""MatchOr(pattern* patterns)"""
|
|
1382
1154
|
__match_args__ = ("patterns",)
|
|
1383
1155
|
patterns: list[pattern]
|
|
1384
1156
|
if sys.version_info >= (3, 13):
|
|
@@ -1388,11 +1160,6 @@ if sys.version_info >= (3, 10):
|
|
|
1388
1160
|
|
|
1389
1161
|
if sys.version_info >= (3, 12):
|
|
1390
1162
|
class type_param(AST):
|
|
1391
|
-
"""
|
|
1392
|
-
type_param = TypeVar(identifier name, expr? bound)
|
|
1393
|
-
| ParamSpec(identifier name)
|
|
1394
|
-
| TypeVarTuple(identifier name)
|
|
1395
|
-
"""
|
|
1396
1163
|
lineno: int
|
|
1397
1164
|
col_offset: int
|
|
1398
1165
|
end_lineno: int
|
|
@@ -1400,7 +1167,6 @@ if sys.version_info >= (3, 12):
|
|
|
1400
1167
|
def __init__(self, **kwargs: Unpack[_Attributes[int]]) -> None: ...
|
|
1401
1168
|
|
|
1402
1169
|
class TypeVar(type_param):
|
|
1403
|
-
"""TypeVar(identifier name, expr? bound)"""
|
|
1404
1170
|
if sys.version_info >= (3, 13):
|
|
1405
1171
|
__match_args__ = ("name", "bound", "default_value")
|
|
1406
1172
|
else:
|
|
@@ -1420,7 +1186,6 @@ if sys.version_info >= (3, 12):
|
|
|
1420
1186
|
def __init__(self, name: _Identifier, bound: expr | None = None, **kwargs: Unpack[_Attributes[int]]) -> None: ...
|
|
1421
1187
|
|
|
1422
1188
|
class ParamSpec(type_param):
|
|
1423
|
-
"""ParamSpec(identifier name)"""
|
|
1424
1189
|
if sys.version_info >= (3, 13):
|
|
1425
1190
|
__match_args__ = ("name", "default_value")
|
|
1426
1191
|
else:
|
|
@@ -1435,7 +1200,6 @@ if sys.version_info >= (3, 12):
|
|
|
1435
1200
|
def __init__(self, name: _Identifier, **kwargs: Unpack[_Attributes[int]]) -> None: ...
|
|
1436
1201
|
|
|
1437
1202
|
class TypeVarTuple(type_param):
|
|
1438
|
-
"""TypeVarTuple(identifier name)"""
|
|
1439
1203
|
if sys.version_info >= (3, 13):
|
|
1440
1204
|
__match_args__ = ("name", "default_value")
|
|
1441
1205
|
else:
|
|
@@ -1450,7 +1214,6 @@ if sys.version_info >= (3, 12):
|
|
|
1450
1214
|
def __init__(self, name: _Identifier, **kwargs: Unpack[_Attributes[int]]) -> None: ...
|
|
1451
1215
|
|
|
1452
1216
|
class TypeAlias(stmt):
|
|
1453
|
-
"""TypeAlias(expr name, type_param* type_params, expr value)"""
|
|
1454
1217
|
__match_args__ = ("name", "type_params", "value")
|
|
1455
1218
|
name: Name
|
|
1456
1219
|
type_params: list[type_param]
|