basedpyright 1.22.0 → 1.22.1
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/971.js +3 -0
- package/dist/971.js.LICENSE.txt +27 -0
- package/dist/971.js.map +1 -0
- package/dist/pyright-langserver.js +1 -1
- package/dist/pyright-langserver.js.LICENSE.txt +0 -28
- package/dist/pyright-langserver.js.map +1 -1
- package/dist/pyright.js +1 -1
- package/dist/pyright.js.LICENSE.txt +0 -28
- package/dist/pyright.js.map +1 -1
- package/dist/typeshed-fallback/commit.txt +1 -1
- package/dist/typeshed-fallback/stdlib/VERSIONS +9 -0
- package/dist/typeshed-fallback/stdlib/_codecs.pyi +4 -1
- package/dist/typeshed-fallback/stdlib/_collections_abc.pyi +9 -0
- package/dist/typeshed-fallback/stdlib/_csv.pyi +88 -14
- package/dist/typeshed-fallback/stdlib/_ctypes.pyi +186 -55
- package/dist/typeshed-fallback/stdlib/_curses.pyi +2 -6
- package/dist/typeshed-fallback/stdlib/_curses_panel.pyi +67 -0
- package/dist/typeshed-fallback/stdlib/_dbm.pyi +7 -6
- package/dist/typeshed-fallback/stdlib/_decimal.pyi +1 -8
- package/dist/typeshed-fallback/stdlib/_hashlib.pyi +253 -0
- package/dist/typeshed-fallback/stdlib/_json.pyi +7 -0
- package/dist/typeshed-fallback/stdlib/_multibytecodec.pyi +44 -0
- package/dist/typeshed-fallback/stdlib/_posixsubprocess.pyi +0 -1
- package/dist/typeshed-fallback/stdlib/_socket.pyi +92 -42
- package/dist/typeshed-fallback/stdlib/_thread.pyi +16 -0
- package/dist/typeshed-fallback/stdlib/_threading_local.pyi +4 -0
- package/dist/typeshed-fallback/stdlib/builtins.pyi +21 -2
- package/dist/typeshed-fallback/stdlib/bz2.pyi +1 -0
- package/dist/typeshed-fallback/stdlib/codecs.pyi +5 -1
- package/dist/typeshed-fallback/stdlib/configparser.pyi +17 -9
- package/dist/typeshed-fallback/stdlib/contextlib.pyi +9 -3
- package/dist/typeshed-fallback/stdlib/crypt.pyi +9 -2
- package/dist/typeshed-fallback/stdlib/csv.pyi +6 -4
- package/dist/typeshed-fallback/stdlib/ctypes/__init__.pyi +32 -12
- package/dist/typeshed-fallback/stdlib/ctypes/macholib/__init__.pyi +1 -0
- package/dist/typeshed-fallback/stdlib/ctypes/macholib/dyld.pyi +8 -0
- package/dist/typeshed-fallback/stdlib/ctypes/macholib/dylib.pyi +14 -0
- package/dist/typeshed-fallback/stdlib/ctypes/macholib/framework.pyi +14 -0
- package/dist/typeshed-fallback/stdlib/ctypes/util.pyi +2 -0
- package/dist/typeshed-fallback/stdlib/ctypes/wintypes.pyi +11 -5
- package/dist/typeshed-fallback/stdlib/curses/__init__.pyi +19 -1
- package/dist/typeshed-fallback/stdlib/curses/panel.pyi +1 -34
- package/dist/typeshed-fallback/stdlib/datetime.pyi +15 -6
- package/dist/typeshed-fallback/stdlib/dbm/__init__.pyi +3 -1
- package/dist/typeshed-fallback/stdlib/decimal.pyi +10 -1
- package/dist/typeshed-fallback/stdlib/distutils/ccompiler.pyi +1 -1
- package/dist/typeshed-fallback/stdlib/distutils/spawn.pyi +5 -1
- package/dist/typeshed-fallback/stdlib/doctest.pyi +7 -9
- package/dist/typeshed-fallback/stdlib/email/__init__.pyi +23 -15
- package/dist/typeshed-fallback/stdlib/email/_policybase.pyi +2 -0
- package/dist/typeshed-fallback/stdlib/encodings/aliases.pyi +1 -0
- package/dist/typeshed-fallback/stdlib/encodings/ascii.pyi +30 -0
- package/dist/typeshed-fallback/stdlib/encodings/base64_codec.pyi +26 -0
- package/dist/typeshed-fallback/stdlib/encodings/big5.pyi +23 -0
- package/dist/typeshed-fallback/stdlib/encodings/big5hkscs.pyi +23 -0
- package/dist/typeshed-fallback/stdlib/encodings/bz2_codec.pyi +26 -0
- package/dist/typeshed-fallback/stdlib/encodings/charmap.pyi +33 -0
- package/dist/typeshed-fallback/stdlib/encodings/cp037.pyi +21 -0
- package/dist/typeshed-fallback/stdlib/encodings/cp1006.pyi +21 -0
- package/dist/typeshed-fallback/stdlib/encodings/cp1026.pyi +21 -0
- package/dist/typeshed-fallback/stdlib/encodings/cp1125.pyi +21 -0
- package/dist/typeshed-fallback/stdlib/encodings/cp1140.pyi +21 -0
- package/dist/typeshed-fallback/stdlib/encodings/cp1250.pyi +21 -0
- package/dist/typeshed-fallback/stdlib/encodings/cp1251.pyi +21 -0
- package/dist/typeshed-fallback/stdlib/encodings/cp1252.pyi +21 -0
- package/dist/typeshed-fallback/stdlib/encodings/cp1253.pyi +21 -0
- package/dist/typeshed-fallback/stdlib/encodings/cp1254.pyi +21 -0
- package/dist/typeshed-fallback/stdlib/encodings/cp1255.pyi +21 -0
- package/dist/typeshed-fallback/stdlib/encodings/cp1256.pyi +21 -0
- package/dist/typeshed-fallback/stdlib/encodings/cp1257.pyi +21 -0
- package/dist/typeshed-fallback/stdlib/encodings/cp1258.pyi +21 -0
- package/dist/typeshed-fallback/stdlib/encodings/cp273.pyi +21 -0
- package/dist/typeshed-fallback/stdlib/encodings/cp424.pyi +21 -0
- package/dist/typeshed-fallback/stdlib/encodings/cp437.pyi +21 -0
- package/dist/typeshed-fallback/stdlib/encodings/cp500.pyi +21 -0
- package/dist/typeshed-fallback/stdlib/encodings/cp720.pyi +21 -0
- package/dist/typeshed-fallback/stdlib/encodings/cp737.pyi +21 -0
- package/dist/typeshed-fallback/stdlib/encodings/cp775.pyi +21 -0
- package/dist/typeshed-fallback/stdlib/encodings/cp850.pyi +21 -0
- package/dist/typeshed-fallback/stdlib/encodings/cp852.pyi +21 -0
- package/dist/typeshed-fallback/stdlib/encodings/cp855.pyi +21 -0
- package/dist/typeshed-fallback/stdlib/encodings/cp856.pyi +21 -0
- package/dist/typeshed-fallback/stdlib/encodings/cp857.pyi +21 -0
- package/dist/typeshed-fallback/stdlib/encodings/cp858.pyi +21 -0
- package/dist/typeshed-fallback/stdlib/encodings/cp860.pyi +21 -0
- package/dist/typeshed-fallback/stdlib/encodings/cp861.pyi +21 -0
- package/dist/typeshed-fallback/stdlib/encodings/cp862.pyi +21 -0
- package/dist/typeshed-fallback/stdlib/encodings/cp863.pyi +21 -0
- package/dist/typeshed-fallback/stdlib/encodings/cp864.pyi +21 -0
- package/dist/typeshed-fallback/stdlib/encodings/cp865.pyi +21 -0
- package/dist/typeshed-fallback/stdlib/encodings/cp866.pyi +21 -0
- package/dist/typeshed-fallback/stdlib/encodings/cp869.pyi +21 -0
- package/dist/typeshed-fallback/stdlib/encodings/cp874.pyi +21 -0
- package/dist/typeshed-fallback/stdlib/encodings/cp875.pyi +21 -0
- package/dist/typeshed-fallback/stdlib/encodings/cp932.pyi +23 -0
- package/dist/typeshed-fallback/stdlib/encodings/cp949.pyi +23 -0
- package/dist/typeshed-fallback/stdlib/encodings/cp950.pyi +23 -0
- package/dist/typeshed-fallback/stdlib/encodings/euc_jis_2004.pyi +23 -0
- package/dist/typeshed-fallback/stdlib/encodings/euc_jisx0213.pyi +23 -0
- package/dist/typeshed-fallback/stdlib/encodings/euc_jp.pyi +23 -0
- package/dist/typeshed-fallback/stdlib/encodings/euc_kr.pyi +23 -0
- package/dist/typeshed-fallback/stdlib/encodings/gb18030.pyi +23 -0
- package/dist/typeshed-fallback/stdlib/encodings/gb2312.pyi +23 -0
- package/dist/typeshed-fallback/stdlib/encodings/gbk.pyi +23 -0
- package/dist/typeshed-fallback/stdlib/encodings/hex_codec.pyi +26 -0
- package/dist/typeshed-fallback/stdlib/encodings/hp_roman8.pyi +21 -0
- package/dist/typeshed-fallback/stdlib/encodings/hz.pyi +23 -0
- package/dist/typeshed-fallback/stdlib/encodings/idna.pyi +26 -0
- package/dist/typeshed-fallback/stdlib/encodings/iso2022_jp.pyi +23 -0
- package/dist/typeshed-fallback/stdlib/encodings/iso2022_jp_1.pyi +23 -0
- package/dist/typeshed-fallback/stdlib/encodings/iso2022_jp_2.pyi +23 -0
- package/dist/typeshed-fallback/stdlib/encodings/iso2022_jp_2004.pyi +23 -0
- package/dist/typeshed-fallback/stdlib/encodings/iso2022_jp_3.pyi +23 -0
- package/dist/typeshed-fallback/stdlib/encodings/iso2022_jp_ext.pyi +23 -0
- package/dist/typeshed-fallback/stdlib/encodings/iso2022_kr.pyi +23 -0
- package/dist/typeshed-fallback/stdlib/encodings/iso8859_1.pyi +21 -0
- package/dist/typeshed-fallback/stdlib/encodings/iso8859_10.pyi +21 -0
- package/dist/typeshed-fallback/stdlib/encodings/iso8859_11.pyi +21 -0
- package/dist/typeshed-fallback/stdlib/encodings/iso8859_13.pyi +21 -0
- package/dist/typeshed-fallback/stdlib/encodings/iso8859_14.pyi +21 -0
- package/dist/typeshed-fallback/stdlib/encodings/iso8859_15.pyi +21 -0
- package/dist/typeshed-fallback/stdlib/encodings/iso8859_16.pyi +21 -0
- package/dist/typeshed-fallback/stdlib/encodings/iso8859_2.pyi +21 -0
- package/dist/typeshed-fallback/stdlib/encodings/iso8859_3.pyi +21 -0
- package/dist/typeshed-fallback/stdlib/encodings/iso8859_4.pyi +21 -0
- package/dist/typeshed-fallback/stdlib/encodings/iso8859_5.pyi +21 -0
- package/dist/typeshed-fallback/stdlib/encodings/iso8859_6.pyi +21 -0
- package/dist/typeshed-fallback/stdlib/encodings/iso8859_7.pyi +21 -0
- package/dist/typeshed-fallback/stdlib/encodings/iso8859_8.pyi +21 -0
- package/dist/typeshed-fallback/stdlib/encodings/iso8859_9.pyi +21 -0
- package/dist/typeshed-fallback/stdlib/encodings/johab.pyi +23 -0
- package/dist/typeshed-fallback/stdlib/encodings/koi8_r.pyi +21 -0
- package/dist/typeshed-fallback/stdlib/encodings/koi8_t.pyi +21 -0
- package/dist/typeshed-fallback/stdlib/encodings/koi8_u.pyi +21 -0
- package/dist/typeshed-fallback/stdlib/encodings/kz1048.pyi +21 -0
- package/dist/typeshed-fallback/stdlib/encodings/latin_1.pyi +30 -0
- package/dist/typeshed-fallback/stdlib/encodings/mac_arabic.pyi +21 -0
- package/dist/typeshed-fallback/stdlib/encodings/mac_centeuro.pyi +21 -0
- package/dist/typeshed-fallback/stdlib/encodings/mac_croatian.pyi +21 -0
- package/dist/typeshed-fallback/stdlib/encodings/mac_cyrillic.pyi +21 -0
- package/dist/typeshed-fallback/stdlib/encodings/mac_farsi.pyi +21 -0
- package/dist/typeshed-fallback/stdlib/encodings/mac_greek.pyi +21 -0
- package/dist/typeshed-fallback/stdlib/encodings/mac_iceland.pyi +21 -0
- package/dist/typeshed-fallback/stdlib/encodings/mac_latin2.pyi +21 -0
- package/dist/typeshed-fallback/stdlib/encodings/mac_roman.pyi +21 -0
- package/dist/typeshed-fallback/stdlib/encodings/mac_romanian.pyi +21 -0
- package/dist/typeshed-fallback/stdlib/encodings/mac_turkish.pyi +21 -0
- package/dist/typeshed-fallback/stdlib/encodings/mbcs.pyi +28 -0
- package/dist/typeshed-fallback/stdlib/encodings/oem.pyi +28 -0
- package/dist/typeshed-fallback/stdlib/encodings/palmos.pyi +21 -0
- package/dist/typeshed-fallback/stdlib/encodings/ptcp154.pyi +21 -0
- package/dist/typeshed-fallback/stdlib/encodings/punycode.pyi +33 -0
- package/dist/typeshed-fallback/stdlib/encodings/quopri_codec.pyi +26 -0
- package/dist/typeshed-fallback/stdlib/encodings/raw_unicode_escape.pyi +34 -0
- package/dist/typeshed-fallback/stdlib/encodings/rot_13.pyi +23 -0
- package/dist/typeshed-fallback/stdlib/encodings/shift_jis.pyi +23 -0
- package/dist/typeshed-fallback/stdlib/encodings/shift_jis_2004.pyi +23 -0
- package/dist/typeshed-fallback/stdlib/encodings/shift_jisx0213.pyi +23 -0
- package/dist/typeshed-fallback/stdlib/encodings/tis_620.pyi +21 -0
- package/dist/typeshed-fallback/stdlib/encodings/undefined.pyi +20 -0
- package/dist/typeshed-fallback/stdlib/encodings/unicode_escape.pyi +34 -0
- package/dist/typeshed-fallback/stdlib/encodings/utf_16.pyi +20 -0
- package/dist/typeshed-fallback/stdlib/encodings/utf_16_be.pyi +26 -0
- package/dist/typeshed-fallback/stdlib/encodings/utf_16_le.pyi +26 -0
- package/dist/typeshed-fallback/stdlib/encodings/utf_32.pyi +20 -0
- package/dist/typeshed-fallback/stdlib/encodings/utf_32_be.pyi +26 -0
- package/dist/typeshed-fallback/stdlib/encodings/utf_32_le.pyi +26 -0
- package/dist/typeshed-fallback/stdlib/encodings/utf_7.pyi +26 -0
- package/dist/typeshed-fallback/stdlib/encodings/utf_8.pyi +7 -2
- package/dist/typeshed-fallback/stdlib/encodings/uu_codec.pyi +28 -0
- package/dist/typeshed-fallback/stdlib/encodings/zlib_codec.pyi +26 -0
- package/dist/typeshed-fallback/stdlib/fcntl.pyi +3 -1
- package/dist/typeshed-fallback/stdlib/gettext.pyi +2 -0
- package/dist/typeshed-fallback/stdlib/hashlib.pyi +37 -96
- package/dist/typeshed-fallback/stdlib/hmac.pyi +33 -28
- package/dist/typeshed-fallback/stdlib/importlib/resources/abc.pyi +2 -0
- package/dist/typeshed-fallback/stdlib/ipaddress.pyi +175 -21
- package/dist/typeshed-fallback/stdlib/json/scanner.pyi +3 -0
- package/dist/typeshed-fallback/stdlib/modulefinder.pyi +2 -0
- package/dist/typeshed-fallback/stdlib/multiprocessing/context.pyi +2 -1
- package/dist/typeshed-fallback/stdlib/multiprocessing/sharedctypes.pyi +2 -1
- package/dist/typeshed-fallback/stdlib/multiprocessing/synchronize.pyi +9 -5
- package/dist/typeshed-fallback/stdlib/os/__init__.pyi +506 -44
- package/dist/typeshed-fallback/stdlib/platform.pyi +38 -8
- package/dist/typeshed-fallback/stdlib/posix.pyi +30 -10
- package/dist/typeshed-fallback/stdlib/pstats.pyi +29 -11
- package/dist/typeshed-fallback/stdlib/pyexpat/__init__.pyi +3 -1
- package/dist/typeshed-fallback/stdlib/sched.pyi +5 -2
- package/dist/typeshed-fallback/stdlib/socket.pyi +620 -63
- package/dist/typeshed-fallback/stdlib/sqlite3/__init__.pyi +3 -1
- package/dist/typeshed-fallback/stdlib/sqlite3/dump.pyi +2 -0
- package/dist/typeshed-fallback/stdlib/ssl.pyi +3 -1
- package/dist/typeshed-fallback/stdlib/sys/__init__.pyi +111 -9
- package/dist/typeshed-fallback/stdlib/termios.pyi +108 -72
- package/dist/typeshed-fallback/stdlib/tkinter/__init__.pyi +103 -50
- package/dist/typeshed-fallback/stdlib/tkinter/font.pyi +3 -1
- package/dist/typeshed-fallback/stdlib/tokenize.pyi +3 -1
- package/dist/typeshed-fallback/stdlib/turtle.pyi +15 -4
- package/dist/typeshed-fallback/stdlib/typing.pyi +10 -8
- package/dist/typeshed-fallback/stdlib/typing_extensions.pyi +8 -5
- package/dist/typeshed-fallback/stdlib/webbrowser.pyi +1 -0
- package/dist/typeshed-fallback/stdlib/wsgiref/types.pyi +2 -2
- package/dist/typeshed-fallback/stdlib/xml/__init__.pyi +3 -1
- package/dist/typeshed-fallback/stdlib/zipfile/_path.pyi +2 -0
- package/dist/typeshed-fallback/stdlib/zlib.pyi +22 -8
- package/dist/typeshed-fallback/stubs/Deprecated/METADATA.toml +1 -1
- package/dist/typeshed-fallback/stubs/Deprecated/deprecated/classic.pyi +6 -1
- package/dist/typeshed-fallback/stubs/Deprecated/deprecated/sphinx.pyi +1 -0
- package/dist/typeshed-fallback/stubs/bleach/METADATA.toml +1 -1
- package/dist/typeshed-fallback/stubs/docutils/docutils/core.pyi +216 -1
- package/dist/typeshed-fallback/stubs/docutils/docutils/writers/__init__.pyi +60 -2
- package/dist/typeshed-fallback/stubs/gevent/METADATA.toml +1 -1
- package/dist/typeshed-fallback/stubs/gevent/gevent/events.pyi +3 -1
- package/dist/typeshed-fallback/stubs/icalendar/METADATA.toml +6 -2
- package/dist/typeshed-fallback/stubs/icalendar/icalendar/__init__.pyi +14 -0
- package/dist/typeshed-fallback/stubs/icalendar/icalendar/alarms.pyi +54 -0
- package/dist/typeshed-fallback/stubs/icalendar/icalendar/cal.pyi +137 -11
- package/dist/typeshed-fallback/stubs/icalendar/icalendar/prop.pyi +8 -7
- package/dist/typeshed-fallback/stubs/icalendar/icalendar/timezone/__init__.pyi +3 -2
- package/dist/typeshed-fallback/stubs/icalendar/icalendar/timezone/equivalent_timezone_ids.pyi +15 -0
- package/dist/typeshed-fallback/stubs/icalendar/icalendar/timezone/equivalent_timezone_ids_result.pyi +6 -0
- package/dist/typeshed-fallback/stubs/icalendar/icalendar/timezone/tzid.pyi +8 -0
- package/dist/typeshed-fallback/stubs/icalendar/icalendar/timezone/tzp.pyi +2 -2
- package/dist/typeshed-fallback/stubs/icalendar/icalendar/tools.pyi +12 -1
- package/dist/typeshed-fallback/stubs/networkx/METADATA.toml +1 -1
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/components/strongly_connected.pyi +0 -2
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/tree/branchings.pyi +0 -31
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/tree/operations.pyi +1 -1
- package/dist/typeshed-fallback/stubs/networkx/networkx/classes/reportviews.pyi +3 -1
- package/dist/typeshed-fallback/stubs/networkx/networkx/drawing/layout.pyi +4 -0
- package/dist/typeshed-fallback/stubs/networkx/networkx/generators/trees.pyi +0 -4
- package/dist/typeshed-fallback/stubs/networkx/networkx/readwrite/json_graph/node_link.pyi +12 -2
- package/dist/typeshed-fallback/stubs/networkx/networkx/readwrite/text.pyi +1 -4
- package/dist/typeshed-fallback/stubs/networkx/networkx/utils/configs.pyi +20 -2
- package/dist/typeshed-fallback/stubs/openpyxl/openpyxl/__init__.pyi +2 -1
- package/dist/typeshed-fallback/stubs/openpyxl/openpyxl/cell/__init__.pyi +2 -0
- package/dist/typeshed-fallback/stubs/openpyxl/openpyxl/cell/_writer.pyi +4 -2
- package/dist/typeshed-fallback/stubs/openpyxl/openpyxl/cell/cell.pyi +2 -2
- package/dist/typeshed-fallback/stubs/openpyxl/openpyxl/comments/comment_sheet.pyi +2 -1
- package/dist/typeshed-fallback/stubs/openpyxl/openpyxl/workbook/workbook.pyi +2 -2
- package/dist/typeshed-fallback/stubs/openpyxl/openpyxl/worksheet/_read_only.pyi +5 -14
- package/dist/typeshed-fallback/stubs/openpyxl/openpyxl/worksheet/_reader.pyi +2 -3
- package/dist/typeshed-fallback/stubs/openpyxl/openpyxl/worksheet/_writer.pyi +4 -3
- package/dist/typeshed-fallback/stubs/openpyxl/openpyxl/worksheet/merge.pyi +2 -1
- package/dist/typeshed-fallback/stubs/openpyxl/openpyxl/worksheet/worksheet.pyi +30 -19
- package/dist/typeshed-fallback/stubs/peewee/METADATA.toml +1 -1
- package/dist/typeshed-fallback/stubs/peewee/peewee.pyi +3 -1
- package/dist/typeshed-fallback/stubs/pynput/pynput/_util.pyi +2 -2
- package/dist/typeshed-fallback/stubs/pysftp/pysftp/__init__.pyi +2 -2
- package/dist/typeshed-fallback/stubs/pywin32/isapi/install.pyi +98 -0
- package/dist/typeshed-fallback/stubs/pywin32/win32/win32clipboard.pyi +26 -24
- package/dist/typeshed-fallback/stubs/setuptools/METADATA.toml +1 -1
- package/dist/typeshed-fallback/stubs/setuptools/distutils/spawn.pyi +1 -0
- package/dist/typeshed-fallback/stubs/setuptools/setuptools/__init__.pyi +6 -7
- package/dist/typeshed-fallback/stubs/setuptools/setuptools/_distutils/ccompiler.pyi +2 -2
- package/dist/typeshed-fallback/stubs/setuptools/setuptools/_distutils/cmd.pyi +2 -2
- package/dist/typeshed-fallback/stubs/setuptools/setuptools/_distutils/spawn.pyi +7 -0
- package/dist/typeshed-fallback/stubs/setuptools/setuptools/build_meta.pyi +4 -2
- package/dist/typeshed-fallback/stubs/setuptools/setuptools/command/bdist_egg.pyi +9 -8
- package/dist/typeshed-fallback/stubs/setuptools/setuptools/command/bdist_wheel.pyi +3 -5
- package/dist/typeshed-fallback/stubs/setuptools/setuptools/command/build_ext.pyi +2 -1
- package/dist/typeshed-fallback/stubs/setuptools/setuptools/command/build_py.pyi +6 -7
- package/dist/typeshed-fallback/stubs/setuptools/setuptools/command/easy_install.pyi +12 -17
- package/dist/typeshed-fallback/stubs/setuptools/setuptools/command/editable_wheel.pyi +1 -1
- package/dist/typeshed-fallback/stubs/setuptools/setuptools/command/egg_info.pyi +1 -1
- package/dist/typeshed-fallback/stubs/setuptools/setuptools/command/install_egg_info.pyi +1 -1
- package/dist/typeshed-fallback/stubs/setuptools/setuptools/command/sdist.pyi +2 -1
- package/dist/typeshed-fallback/stubs/setuptools/setuptools/command/test.pyi +2 -2
- package/dist/typeshed-fallback/stubs/setuptools/setuptools/config/__init__.pyi +1 -14
- package/dist/typeshed-fallback/stubs/setuptools/setuptools/config/expand.pyi +1 -1
- package/dist/typeshed-fallback/stubs/setuptools/setuptools/config/setupcfg.pyi +7 -5
- package/dist/typeshed-fallback/stubs/setuptools/setuptools/depends.pyi +8 -4
- package/dist/typeshed-fallback/stubs/setuptools/setuptools/dist.pyi +1 -1
- package/dist/typeshed-fallback/stubs/setuptools/setuptools/msvc.pyi +7 -8
- package/dist/typeshed-fallback/stubs/setuptools/setuptools/package_index.pyi +7 -3
- package/dist/typeshed-fallback/stubs/setuptools/setuptools/sandbox.pyi +2 -4
- package/dist/typeshed-fallback/stubs/tqdm/METADATA.toml +2 -1
- package/dist/typeshed-fallback/stubs/tqdm/tqdm/contrib/discord.pyi +14 -3
- package/dist/typeshed-fallback/stubs/waitress/waitress/runner.pyi +1 -5
- package/package.json +1 -1
|
@@ -63,7 +63,7 @@ from sqlite3.dbapi2 import (
|
|
|
63
63
|
version_info as version_info,
|
|
64
64
|
)
|
|
65
65
|
from types import TracebackType
|
|
66
|
-
from typing import Any, Literal, Protocol, SupportsIndex, TypeVar, final, overload
|
|
66
|
+
from typing import Any, Literal, Protocol, SupportsIndex, TypeVar, final, overload, type_check_only
|
|
67
67
|
from typing_extensions import Self, TypeAlias
|
|
68
68
|
|
|
69
69
|
if sys.version_info >= (3, 12):
|
|
@@ -728,7 +728,9 @@ class Row(Sequence[Any]):
|
|
|
728
728
|
"""Return self!=value."""
|
|
729
729
|
...
|
|
730
730
|
|
|
731
|
+
# This class is not exposed. It calls itself sqlite3.Statement.
|
|
731
732
|
@final
|
|
733
|
+
@type_check_only
|
|
732
734
|
class _Statement: ...
|
|
733
735
|
|
|
734
736
|
if sys.version_info >= (3, 11):
|
|
@@ -27,7 +27,7 @@ from _ssl import (
|
|
|
27
27
|
)
|
|
28
28
|
from _typeshed import ReadableBuffer, StrOrBytesPath, WriteableBuffer
|
|
29
29
|
from collections.abc import Callable, Iterable
|
|
30
|
-
from typing import Any, Literal, NamedTuple, TypedDict, overload
|
|
30
|
+
from typing import Any, Literal, NamedTuple, TypedDict, overload, type_check_only
|
|
31
31
|
from typing_extensions import Never, Self, TypeAlias
|
|
32
32
|
|
|
33
33
|
if sys.version_info >= (3, 13):
|
|
@@ -309,6 +309,8 @@ ALERT_DESCRIPTION_UNSUPPORTED_CERTIFICATE: AlertDescription
|
|
|
309
309
|
ALERT_DESCRIPTION_UNSUPPORTED_EXTENSION: AlertDescription
|
|
310
310
|
ALERT_DESCRIPTION_USER_CANCELLED: AlertDescription
|
|
311
311
|
|
|
312
|
+
# This class is not exposed. It calls itself ssl._ASN1Object.
|
|
313
|
+
@type_check_only
|
|
312
314
|
class _ASN1ObjectBase(NamedTuple):
|
|
313
315
|
nid: int
|
|
314
316
|
shortname: str
|
|
@@ -78,14 +78,13 @@ from builtins import object as _object
|
|
|
78
78
|
from collections.abc import AsyncGenerator, Callable, Sequence
|
|
79
79
|
from io import TextIOWrapper
|
|
80
80
|
from types import FrameType, ModuleType, TracebackType
|
|
81
|
-
from typing import Any, Final, Literal, NoReturn, Protocol, TextIO, TypeVar, final
|
|
81
|
+
from typing import Any, Final, Literal, NoReturn, Protocol, TextIO, TypeVar, final, type_check_only
|
|
82
82
|
from typing_extensions import TypeAlias
|
|
83
83
|
|
|
84
84
|
_T = TypeVar("_T")
|
|
85
85
|
|
|
86
86
|
# see https://github.com/python/typeshed/issues/8513#issue-1333671093 for the rationale behind this alias
|
|
87
87
|
_ExitCode: TypeAlias = str | int | None
|
|
88
|
-
_OptExcInfo: TypeAlias = OptExcInfo # noqa: Y047 # TODO: obsolete, remove fall 2022 or later
|
|
89
88
|
|
|
90
89
|
# ----- sys variables -----
|
|
91
90
|
if sys.platform != "win32":
|
|
@@ -163,13 +162,63 @@ _UninstantiableStructseq: TypeAlias = structseq[Any]
|
|
|
163
162
|
|
|
164
163
|
flags: _flags
|
|
165
164
|
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
165
|
+
# This class is not exposed at runtime. It calls itself sys.flags.
|
|
166
|
+
# As a tuple, it can have a length between 15 and 18. We don't model
|
|
167
|
+
# the exact length here because that varies by patch version due to
|
|
168
|
+
# the backported security fix int_max_str_digits. The exact length shouldn't
|
|
169
|
+
# be relied upon. See #13031
|
|
170
|
+
# This can be re-visited when typeshed drops support for 3.10,
|
|
171
|
+
# at which point all supported versions will include int_max_str_digits
|
|
172
|
+
# in all patch versions.
|
|
173
|
+
# 3.8 and 3.9 are 15 or 16-tuple
|
|
174
|
+
# 3.10 is 16 or 17-tuple
|
|
175
|
+
# 3.11+ is an 18-tuple.
|
|
171
176
|
@final
|
|
172
|
-
|
|
177
|
+
@type_check_only
|
|
178
|
+
class _flags(_UninstantiableStructseq, tuple[int, ...]):
|
|
179
|
+
# `safe_path` was added in py311
|
|
180
|
+
if sys.version_info >= (3, 11):
|
|
181
|
+
__match_args__: Final = (
|
|
182
|
+
"debug",
|
|
183
|
+
"inspect",
|
|
184
|
+
"interactive",
|
|
185
|
+
"optimize",
|
|
186
|
+
"dont_write_bytecode",
|
|
187
|
+
"no_user_site",
|
|
188
|
+
"no_site",
|
|
189
|
+
"ignore_environment",
|
|
190
|
+
"verbose",
|
|
191
|
+
"bytes_warning",
|
|
192
|
+
"quiet",
|
|
193
|
+
"hash_randomization",
|
|
194
|
+
"isolated",
|
|
195
|
+
"dev_mode",
|
|
196
|
+
"utf8_mode",
|
|
197
|
+
"warn_default_encoding",
|
|
198
|
+
"safe_path",
|
|
199
|
+
"int_max_str_digits",
|
|
200
|
+
)
|
|
201
|
+
elif sys.version_info >= (3, 10):
|
|
202
|
+
__match_args__: Final = (
|
|
203
|
+
"debug",
|
|
204
|
+
"inspect",
|
|
205
|
+
"interactive",
|
|
206
|
+
"optimize",
|
|
207
|
+
"dont_write_bytecode",
|
|
208
|
+
"no_user_site",
|
|
209
|
+
"no_site",
|
|
210
|
+
"ignore_environment",
|
|
211
|
+
"verbose",
|
|
212
|
+
"bytes_warning",
|
|
213
|
+
"quiet",
|
|
214
|
+
"hash_randomization",
|
|
215
|
+
"isolated",
|
|
216
|
+
"dev_mode",
|
|
217
|
+
"utf8_mode",
|
|
218
|
+
"warn_default_encoding",
|
|
219
|
+
"int_max_str_digits",
|
|
220
|
+
)
|
|
221
|
+
|
|
173
222
|
@property
|
|
174
223
|
def debug(self) -> int: ...
|
|
175
224
|
@property
|
|
@@ -202,15 +251,39 @@ class _flags(_UninstantiableStructseq, _FlagTuple):
|
|
|
202
251
|
def utf8_mode(self) -> int: ...
|
|
203
252
|
if sys.version_info >= (3, 10):
|
|
204
253
|
@property
|
|
205
|
-
def warn_default_encoding(self) -> int: ...
|
|
254
|
+
def warn_default_encoding(self) -> int: ...
|
|
206
255
|
if sys.version_info >= (3, 11):
|
|
207
256
|
@property
|
|
208
257
|
def safe_path(self) -> bool: ...
|
|
258
|
+
# Whether or not this exists on lower versions of Python
|
|
259
|
+
# may depend on which patch release you're using
|
|
260
|
+
# (it was backported to all Python versions on 3.8+ as a security fix)
|
|
261
|
+
# Added in: 3.8.14, 3.9.14, 3.10.7
|
|
262
|
+
# and present in all versions of 3.11 and later.
|
|
263
|
+
@property
|
|
264
|
+
def int_max_str_digits(self) -> int: ...
|
|
209
265
|
|
|
210
266
|
float_info: _float_info
|
|
211
267
|
|
|
268
|
+
# This class is not exposed at runtime. It calls itself sys.float_info.
|
|
212
269
|
@final
|
|
270
|
+
@type_check_only
|
|
213
271
|
class _float_info(structseq[float], tuple[float, int, int, float, int, int, int, int, float, int, int]):
|
|
272
|
+
if sys.version_info >= (3, 10):
|
|
273
|
+
__match_args__: Final = (
|
|
274
|
+
"max",
|
|
275
|
+
"max_exp",
|
|
276
|
+
"max_10_exp",
|
|
277
|
+
"min",
|
|
278
|
+
"min_exp",
|
|
279
|
+
"min_10_exp",
|
|
280
|
+
"dig",
|
|
281
|
+
"mant_dig",
|
|
282
|
+
"epsilon",
|
|
283
|
+
"radix",
|
|
284
|
+
"rounds",
|
|
285
|
+
)
|
|
286
|
+
|
|
214
287
|
@property
|
|
215
288
|
def max(self) -> float: ... # DBL_MAX
|
|
216
289
|
@property
|
|
@@ -236,8 +309,13 @@ class _float_info(structseq[float], tuple[float, int, int, float, int, int, int,
|
|
|
236
309
|
|
|
237
310
|
hash_info: _hash_info
|
|
238
311
|
|
|
312
|
+
# This class is not exposed at runtime. It calls itself sys.hash_info.
|
|
239
313
|
@final
|
|
314
|
+
@type_check_only
|
|
240
315
|
class _hash_info(structseq[Any | int], tuple[int, int, int, int, int, str, int, int, int]):
|
|
316
|
+
if sys.version_info >= (3, 10):
|
|
317
|
+
__match_args__: Final = ("width", "modulus", "inf", "nan", "imag", "algorithm", "hash_bits", "seed_bits", "cutoff")
|
|
318
|
+
|
|
241
319
|
@property
|
|
242
320
|
def width(self) -> int: ...
|
|
243
321
|
@property
|
|
@@ -259,6 +337,9 @@ class _hash_info(structseq[Any | int], tuple[int, int, int, int, int, str, int,
|
|
|
259
337
|
|
|
260
338
|
implementation: _implementation
|
|
261
339
|
|
|
340
|
+
# This class isn't really a thing. At runtime, implementation is an instance
|
|
341
|
+
# of types.SimpleNamespace. This allows for better typing.
|
|
342
|
+
@type_check_only
|
|
262
343
|
class _implementation:
|
|
263
344
|
name: str
|
|
264
345
|
version: _version_info
|
|
@@ -271,8 +352,13 @@ class _implementation:
|
|
|
271
352
|
|
|
272
353
|
int_info: _int_info
|
|
273
354
|
|
|
355
|
+
# This class is not exposed at runtime. It calls itself sys.int_info.
|
|
274
356
|
@final
|
|
357
|
+
@type_check_only
|
|
275
358
|
class _int_info(structseq[int], tuple[int, int, int, int]):
|
|
359
|
+
if sys.version_info >= (3, 10):
|
|
360
|
+
__match_args__: Final = ("bits_per_digit", "sizeof_digit", "default_max_str_digits", "str_digits_check_threshold")
|
|
361
|
+
|
|
276
362
|
@property
|
|
277
363
|
def bits_per_digit(self) -> int: ...
|
|
278
364
|
@property
|
|
@@ -285,8 +371,13 @@ class _int_info(structseq[int], tuple[int, int, int, int]):
|
|
|
285
371
|
_ThreadInfoName: TypeAlias = Literal["nt", "pthread", "pthread-stubs", "solaris"]
|
|
286
372
|
_ThreadInfoLock: TypeAlias = Literal["semaphore", "mutex+cond"] | None
|
|
287
373
|
|
|
374
|
+
# This class is not exposed at runtime. It calls itself sys.thread_info.
|
|
288
375
|
@final
|
|
376
|
+
@type_check_only
|
|
289
377
|
class _thread_info(_UninstantiableStructseq, tuple[_ThreadInfoName, _ThreadInfoLock, str | None]):
|
|
378
|
+
if sys.version_info >= (3, 10):
|
|
379
|
+
__match_args__: Final = ("name", "lock", "version")
|
|
380
|
+
|
|
290
381
|
@property
|
|
291
382
|
def name(self) -> _ThreadInfoName: ...
|
|
292
383
|
@property
|
|
@@ -297,8 +388,13 @@ class _thread_info(_UninstantiableStructseq, tuple[_ThreadInfoName, _ThreadInfoL
|
|
|
297
388
|
thread_info: _thread_info
|
|
298
389
|
_ReleaseLevel: TypeAlias = Literal["alpha", "beta", "candidate", "final"]
|
|
299
390
|
|
|
391
|
+
# This class is not exposed at runtime. It calls itself sys.version_info.
|
|
300
392
|
@final
|
|
393
|
+
@type_check_only
|
|
301
394
|
class _version_info(_UninstantiableStructseq, tuple[int, int, int, _ReleaseLevel, int]):
|
|
395
|
+
if sys.version_info >= (3, 10):
|
|
396
|
+
__match_args__: Final = ("major", "minor", "micro", "releaselevel", "serial")
|
|
397
|
+
|
|
302
398
|
@property
|
|
303
399
|
def major(self) -> int: ...
|
|
304
400
|
@property
|
|
@@ -595,6 +691,7 @@ if sys.version_info < (3, 9):
|
|
|
595
691
|
...
|
|
596
692
|
|
|
597
693
|
# Doesn't exist at runtime, but exported in the stubs so pytest etc. can annotate their code more easily.
|
|
694
|
+
@type_check_only
|
|
598
695
|
class UnraisableHookArgs(Protocol):
|
|
599
696
|
exc_type: type[BaseException]
|
|
600
697
|
exc_value: BaseException | None
|
|
@@ -626,8 +723,13 @@ def audit(event: str, /, *args: Any) -> None:
|
|
|
626
723
|
|
|
627
724
|
_AsyncgenHook: TypeAlias = Callable[[AsyncGenerator[Any, Any]], None] | None
|
|
628
725
|
|
|
726
|
+
# This class is not exposed at runtime. It calls itself builtins.asyncgen_hooks.
|
|
629
727
|
@final
|
|
728
|
+
@type_check_only
|
|
630
729
|
class _asyncgen_hooks(structseq[_AsyncgenHook], tuple[_AsyncgenHook, _AsyncgenHook]):
|
|
730
|
+
if sys.version_info >= (3, 10):
|
|
731
|
+
__match_args__: Final = ("firstiter", "finalizer")
|
|
732
|
+
|
|
631
733
|
@property
|
|
632
734
|
def firstiter(self) -> _AsyncgenHook: ...
|
|
633
735
|
@property
|
|
@@ -21,58 +21,38 @@ _AttrReturn: TypeAlias = list[Any]
|
|
|
21
21
|
|
|
22
22
|
if sys.platform != "win32":
|
|
23
23
|
B0: int
|
|
24
|
-
B1000000: int
|
|
25
24
|
B110: int
|
|
26
25
|
B115200: int
|
|
27
|
-
B1152000: int
|
|
28
26
|
B1200: int
|
|
29
27
|
B134: int
|
|
30
28
|
B150: int
|
|
31
|
-
B1500000: int
|
|
32
29
|
B1800: int
|
|
33
30
|
B19200: int
|
|
34
31
|
B200: int
|
|
35
|
-
B2000000: int
|
|
36
32
|
B230400: int
|
|
37
33
|
B2400: int
|
|
38
|
-
B2500000: int
|
|
39
34
|
B300: int
|
|
40
|
-
B3000000: int
|
|
41
|
-
B3500000: int
|
|
42
35
|
B38400: int
|
|
43
|
-
B4000000: int
|
|
44
|
-
B460800: int
|
|
45
36
|
B4800: int
|
|
46
37
|
B50: int
|
|
47
|
-
B500000: int
|
|
48
38
|
B57600: int
|
|
49
|
-
B576000: int
|
|
50
39
|
B600: int
|
|
51
40
|
B75: int
|
|
52
|
-
B921600: int
|
|
53
41
|
B9600: int
|
|
54
42
|
BRKINT: int
|
|
55
43
|
BS0: int
|
|
56
44
|
BS1: int
|
|
57
45
|
BSDLY: int
|
|
58
|
-
CBAUD: int
|
|
59
|
-
CBAUDEX: int
|
|
60
|
-
CDEL: int
|
|
61
46
|
CDSUSP: int
|
|
62
47
|
CEOF: int
|
|
63
48
|
CEOL: int
|
|
64
|
-
CEOL2: int
|
|
65
49
|
CEOT: int
|
|
66
50
|
CERASE: int
|
|
67
|
-
CESC: int
|
|
68
51
|
CFLUSH: int
|
|
69
|
-
CIBAUD: int
|
|
70
52
|
CINTR: int
|
|
71
53
|
CKILL: int
|
|
72
54
|
CLNEXT: int
|
|
73
55
|
CLOCAL: int
|
|
74
|
-
CNUL: int
|
|
75
|
-
COMMON: int
|
|
76
56
|
CQUIT: int
|
|
77
57
|
CR0: int
|
|
78
58
|
CR1: int
|
|
@@ -91,7 +71,6 @@ if sys.platform != "win32":
|
|
|
91
71
|
CSTOP: int
|
|
92
72
|
CSTOPB: int
|
|
93
73
|
CSUSP: int
|
|
94
|
-
CSWTCH: int
|
|
95
74
|
CWERASE: int
|
|
96
75
|
ECHO: int
|
|
97
76
|
ECHOCTL: int
|
|
@@ -112,7 +91,6 @@ if sys.platform != "win32":
|
|
|
112
91
|
FIONREAD: int
|
|
113
92
|
FLUSHO: int
|
|
114
93
|
HUPCL: int
|
|
115
|
-
IBSHIFT: int
|
|
116
94
|
ICANON: int
|
|
117
95
|
ICRNL: int
|
|
118
96
|
IEXTEN: int
|
|
@@ -120,33 +98,21 @@ if sys.platform != "win32":
|
|
|
120
98
|
IGNCR: int
|
|
121
99
|
IGNPAR: int
|
|
122
100
|
IMAXBEL: int
|
|
123
|
-
INIT_C_CC: int
|
|
124
101
|
INLCR: int
|
|
125
102
|
INPCK: int
|
|
126
|
-
IOCSIZE_MASK: int
|
|
127
|
-
IOCSIZE_SHIFT: int
|
|
128
103
|
ISIG: int
|
|
129
104
|
ISTRIP: int
|
|
130
|
-
IUCLC: int
|
|
131
105
|
IXANY: int
|
|
132
106
|
IXOFF: int
|
|
133
107
|
IXON: int
|
|
134
|
-
N_MOUSE: int
|
|
135
|
-
N_PPP: int
|
|
136
|
-
N_SLIP: int
|
|
137
|
-
N_STRIP: int
|
|
138
|
-
N_TTY: int
|
|
139
|
-
NCC: int
|
|
140
108
|
NCCS: int
|
|
141
109
|
NL0: int
|
|
142
110
|
NL1: int
|
|
143
111
|
NLDLY: int
|
|
144
112
|
NOFLSH: int
|
|
145
|
-
NSWTCH: int
|
|
146
113
|
OCRNL: int
|
|
147
114
|
OFDEL: int
|
|
148
115
|
OFILL: int
|
|
149
|
-
OLCUC: int
|
|
150
116
|
ONLCR: int
|
|
151
117
|
ONLRET: int
|
|
152
118
|
ONOCR: int
|
|
@@ -160,9 +126,6 @@ if sys.platform != "win32":
|
|
|
160
126
|
TAB2: int
|
|
161
127
|
TAB3: int
|
|
162
128
|
TABDLY: int
|
|
163
|
-
TCFLSH: int
|
|
164
|
-
TCGETA: int
|
|
165
|
-
TCGETS: int
|
|
166
129
|
TCIFLUSH: int
|
|
167
130
|
TCIOFF: int
|
|
168
131
|
TCIOFLUSH: int
|
|
@@ -173,28 +136,11 @@ if sys.platform != "win32":
|
|
|
173
136
|
TCSADRAIN: int
|
|
174
137
|
TCSAFLUSH: int
|
|
175
138
|
TCSANOW: int
|
|
176
|
-
TCSASOFT: int
|
|
177
|
-
TCSBRK: int
|
|
178
|
-
TCSBRKP: int
|
|
179
|
-
TCSETA: int
|
|
180
|
-
TCSETAF: int
|
|
181
|
-
TCSETAW: int
|
|
182
|
-
TCSETS: int
|
|
183
|
-
TCSETSF: int
|
|
184
|
-
TCSETSW: int
|
|
185
|
-
TCXONC: int
|
|
186
139
|
TIOCCONS: int
|
|
187
140
|
TIOCEXCL: int
|
|
188
141
|
TIOCGETD: int
|
|
189
|
-
TIOCGICOUNT: int
|
|
190
|
-
TIOCGLCKTRMIOS: int
|
|
191
142
|
TIOCGPGRP: int
|
|
192
|
-
TIOCGSERIAL: int
|
|
193
|
-
TIOCGSIZE: int
|
|
194
|
-
TIOCGSOFTCAR: int
|
|
195
143
|
TIOCGWINSZ: int
|
|
196
|
-
TIOCINQ: int
|
|
197
|
-
TIOCLINUX: int
|
|
198
144
|
TIOCM_CAR: int
|
|
199
145
|
TIOCM_CD: int
|
|
200
146
|
TIOCM_CTS: int
|
|
@@ -209,7 +155,6 @@ if sys.platform != "win32":
|
|
|
209
155
|
TIOCMBIC: int
|
|
210
156
|
TIOCMBIS: int
|
|
211
157
|
TIOCMGET: int
|
|
212
|
-
TIOCMIWAIT: int
|
|
213
158
|
TIOCMSET: int
|
|
214
159
|
TIOCNOTTY: int
|
|
215
160
|
TIOCNXCL: int
|
|
@@ -223,23 +168,10 @@ if sys.platform != "win32":
|
|
|
223
168
|
TIOCPKT_STOP: int
|
|
224
169
|
TIOCPKT: int
|
|
225
170
|
TIOCSCTTY: int
|
|
226
|
-
TIOCSER_TEMT: int
|
|
227
|
-
TIOCSERCONFIG: int
|
|
228
|
-
TIOCSERGETLSR: int
|
|
229
|
-
TIOCSERGETMULTI: int
|
|
230
|
-
TIOCSERGSTRUCT: int
|
|
231
|
-
TIOCSERGWILD: int
|
|
232
|
-
TIOCSERSETMULTI: int
|
|
233
|
-
TIOCSERSWILD: int
|
|
234
171
|
TIOCSETD: int
|
|
235
|
-
TIOCSLCKTRMIOS: int
|
|
236
172
|
TIOCSPGRP: int
|
|
237
|
-
TIOCSSERIAL: int
|
|
238
|
-
TIOCSSIZE: int
|
|
239
|
-
TIOCSSOFTCAR: int
|
|
240
173
|
TIOCSTI: int
|
|
241
174
|
TIOCSWINSZ: int
|
|
242
|
-
TIOCTTYGSTRUCT: int
|
|
243
175
|
TOSTOP: int
|
|
244
176
|
VDISCARD: int
|
|
245
177
|
VEOF: int
|
|
@@ -255,15 +187,119 @@ if sys.platform != "win32":
|
|
|
255
187
|
VSTART: int
|
|
256
188
|
VSTOP: int
|
|
257
189
|
VSUSP: int
|
|
258
|
-
VSWTC: int
|
|
259
|
-
VSWTCH: int
|
|
260
190
|
VT0: int
|
|
261
191
|
VT1: int
|
|
262
192
|
VTDLY: int
|
|
263
193
|
VTIME: int
|
|
264
194
|
VWERASE: int
|
|
265
|
-
|
|
266
|
-
|
|
195
|
+
|
|
196
|
+
if sys.version_info >= (3, 13):
|
|
197
|
+
EXTPROC: int
|
|
198
|
+
IUTF8: int
|
|
199
|
+
|
|
200
|
+
if sys.platform == "darwin" and sys.version_info >= (3, 13):
|
|
201
|
+
ALTWERASE: int
|
|
202
|
+
B14400: int
|
|
203
|
+
B28800: int
|
|
204
|
+
B7200: int
|
|
205
|
+
B76800: int
|
|
206
|
+
CCAR_OFLOW: int
|
|
207
|
+
CCTS_OFLOW: int
|
|
208
|
+
CDSR_OFLOW: int
|
|
209
|
+
CDTR_IFLOW: int
|
|
210
|
+
CIGNORE: int
|
|
211
|
+
CRTS_IFLOW: int
|
|
212
|
+
MDMBUF: int
|
|
213
|
+
NL2: int
|
|
214
|
+
NL3: int
|
|
215
|
+
NOKERNINFO: int
|
|
216
|
+
ONOEOT: int
|
|
217
|
+
OXTABS: int
|
|
218
|
+
VDSUSP: int
|
|
219
|
+
VSTATUS: int
|
|
220
|
+
|
|
221
|
+
if sys.platform == "darwin" and sys.version_info >= (3, 11):
|
|
222
|
+
TIOCGSIZE: int
|
|
223
|
+
TIOCSSIZE: int
|
|
224
|
+
|
|
225
|
+
if sys.platform == "linux":
|
|
226
|
+
B1152000: int
|
|
227
|
+
B576000: int
|
|
228
|
+
CBAUD: int
|
|
229
|
+
CBAUDEX: int
|
|
230
|
+
CIBAUD: int
|
|
231
|
+
IOCSIZE_MASK: int
|
|
232
|
+
IOCSIZE_SHIFT: int
|
|
233
|
+
IUCLC: int
|
|
234
|
+
N_MOUSE: int
|
|
235
|
+
N_PPP: int
|
|
236
|
+
N_SLIP: int
|
|
237
|
+
N_STRIP: int
|
|
238
|
+
N_TTY: int
|
|
239
|
+
NCC: int
|
|
240
|
+
OLCUC: int
|
|
241
|
+
TCFLSH: int
|
|
242
|
+
TCGETA: int
|
|
243
|
+
TCGETS: int
|
|
244
|
+
TCSBRK: int
|
|
245
|
+
TCSBRKP: int
|
|
246
|
+
TCSETA: int
|
|
247
|
+
TCSETAF: int
|
|
248
|
+
TCSETAW: int
|
|
249
|
+
TCSETS: int
|
|
250
|
+
TCSETSF: int
|
|
251
|
+
TCSETSW: int
|
|
252
|
+
TCXONC: int
|
|
253
|
+
TIOCGICOUNT: int
|
|
254
|
+
TIOCGLCKTRMIOS: int
|
|
255
|
+
TIOCGSERIAL: int
|
|
256
|
+
TIOCGSOFTCAR: int
|
|
257
|
+
TIOCINQ: int
|
|
258
|
+
TIOCLINUX: int
|
|
259
|
+
TIOCMIWAIT: int
|
|
260
|
+
TIOCTTYGSTRUCT: int
|
|
261
|
+
TIOCSER_TEMT: int
|
|
262
|
+
TIOCSERCONFIG: int
|
|
263
|
+
TIOCSERGETLSR: int
|
|
264
|
+
TIOCSERGETMULTI: int
|
|
265
|
+
TIOCSERGSTRUCT: int
|
|
266
|
+
TIOCSERGWILD: int
|
|
267
|
+
TIOCSERSETMULTI: int
|
|
268
|
+
TIOCSERSWILD: int
|
|
269
|
+
TIOCSLCKTRMIOS: int
|
|
270
|
+
TIOCSSERIAL: int
|
|
271
|
+
TIOCSSOFTCAR: int
|
|
272
|
+
VSWTC: int
|
|
273
|
+
VSWTCH: int
|
|
274
|
+
XCASE: int
|
|
275
|
+
XTABS: int
|
|
276
|
+
|
|
277
|
+
if sys.platform != "darwin":
|
|
278
|
+
B1000000: int
|
|
279
|
+
B1500000: int
|
|
280
|
+
B2000000: int
|
|
281
|
+
B2500000: int
|
|
282
|
+
B3000000: int
|
|
283
|
+
B3500000: int
|
|
284
|
+
B4000000: int
|
|
285
|
+
B460800: int
|
|
286
|
+
B500000: int
|
|
287
|
+
B921600: int
|
|
288
|
+
|
|
289
|
+
if sys.platform != "linux":
|
|
290
|
+
TCSASOFT: int
|
|
291
|
+
|
|
292
|
+
if sys.platform != "darwin" and sys.platform != "linux":
|
|
293
|
+
# not available on FreeBSD either.
|
|
294
|
+
CDEL: int
|
|
295
|
+
CEOL2: int
|
|
296
|
+
CESC: int
|
|
297
|
+
CNUL: int
|
|
298
|
+
COMMON: int
|
|
299
|
+
CSWTCH: int
|
|
300
|
+
IBSHIFT: int
|
|
301
|
+
INIT_C_CC: int
|
|
302
|
+
NSWTCH: int
|
|
267
303
|
|
|
268
304
|
def tcgetattr(fd: FileDescriptorLike, /) -> _AttrReturn:
|
|
269
305
|
"""
|