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
|
@@ -9,7 +9,7 @@ from _typeshed import ReadableBuffer, WriteableBuffer
|
|
|
9
9
|
from collections.abc import Iterable
|
|
10
10
|
from socket import error as error, gaierror as gaierror, herror as herror, timeout as timeout
|
|
11
11
|
from typing import Any, SupportsIndex, overload
|
|
12
|
-
from typing_extensions import TypeAlias
|
|
12
|
+
from typing_extensions import CapsuleType, TypeAlias
|
|
13
13
|
|
|
14
14
|
_CMSG: TypeAlias = tuple[int, int, bytes]
|
|
15
15
|
_CMSGArg: TypeAlias = tuple[int, int, ReadableBuffer]
|
|
@@ -78,7 +78,8 @@ SO_SNDBUF: int
|
|
|
78
78
|
SO_SNDLOWAT: int
|
|
79
79
|
SO_SNDTIMEO: int
|
|
80
80
|
SO_TYPE: int
|
|
81
|
-
|
|
81
|
+
if sys.platform != "linux":
|
|
82
|
+
SO_USELOOPBACK: int
|
|
82
83
|
if sys.platform == "win32":
|
|
83
84
|
SO_EXCLUSIVEADDRUSE: int
|
|
84
85
|
if sys.platform != "win32":
|
|
@@ -93,7 +94,10 @@ if sys.platform != "win32" and sys.platform != "darwin":
|
|
|
93
94
|
SO_PEERSEC: int
|
|
94
95
|
SO_PRIORITY: int
|
|
95
96
|
SO_PROTOCOL: int
|
|
97
|
+
if sys.platform != "win32" and sys.platform != "darwin" and sys.platform != "linux":
|
|
96
98
|
SO_SETFIB: int
|
|
99
|
+
if sys.platform == "linux" and sys.version_info >= (3, 13):
|
|
100
|
+
SO_BINDTOIFINDEX: int
|
|
97
101
|
|
|
98
102
|
SOMAXCONN: int
|
|
99
103
|
|
|
@@ -105,27 +109,32 @@ MSG_TRUNC: int
|
|
|
105
109
|
MSG_WAITALL: int
|
|
106
110
|
if sys.platform != "win32":
|
|
107
111
|
MSG_DONTWAIT: int
|
|
108
|
-
MSG_EOF: int
|
|
109
112
|
MSG_EOR: int
|
|
110
113
|
MSG_NOSIGNAL: int # Sometimes this exists on darwin, sometimes not
|
|
111
114
|
if sys.platform != "darwin":
|
|
112
|
-
MSG_BCAST: int
|
|
113
115
|
MSG_ERRQUEUE: int
|
|
116
|
+
if sys.platform == "win32":
|
|
117
|
+
MSG_BCAST: int
|
|
114
118
|
MSG_MCAST: int
|
|
115
119
|
if sys.platform != "win32" and sys.platform != "darwin":
|
|
116
|
-
MSG_BTAG: int
|
|
117
120
|
MSG_CMSG_CLOEXEC: int
|
|
118
121
|
MSG_CONFIRM: int
|
|
119
|
-
MSG_ETAG: int
|
|
120
122
|
MSG_FASTOPEN: int
|
|
121
123
|
MSG_MORE: int
|
|
124
|
+
if sys.platform != "win32" and sys.platform != "linux":
|
|
125
|
+
MSG_EOF: int
|
|
126
|
+
if sys.platform != "win32" and sys.platform != "linux" and sys.platform != "darwin":
|
|
122
127
|
MSG_NOTIFICATION: int
|
|
128
|
+
MSG_BTAG: int # Not FreeBSD either
|
|
129
|
+
MSG_ETAG: int # Not FreeBSD either
|
|
123
130
|
|
|
124
131
|
SOL_IP: int
|
|
125
132
|
SOL_SOCKET: int
|
|
126
133
|
SOL_TCP: int
|
|
127
134
|
SOL_UDP: int
|
|
128
135
|
if sys.platform != "win32" and sys.platform != "darwin":
|
|
136
|
+
# Defined in socket.h for Linux, but these aren't always present for
|
|
137
|
+
# some reason.
|
|
129
138
|
SOL_ATALK: int
|
|
130
139
|
SOL_AX25: int
|
|
131
140
|
SOL_HCI: int
|
|
@@ -134,10 +143,11 @@ if sys.platform != "win32" and sys.platform != "darwin":
|
|
|
134
143
|
SOL_ROSE: int
|
|
135
144
|
|
|
136
145
|
if sys.platform != "win32":
|
|
137
|
-
SCM_CREDS: int
|
|
138
146
|
SCM_RIGHTS: int
|
|
139
147
|
if sys.platform != "win32" and sys.platform != "darwin":
|
|
140
148
|
SCM_CREDENTIALS: int
|
|
149
|
+
if sys.platform != "win32" and sys.platform != "linux":
|
|
150
|
+
SCM_CREDS: int
|
|
141
151
|
|
|
142
152
|
IPPROTO_ICMP: int
|
|
143
153
|
IPPROTO_IP: int
|
|
@@ -149,21 +159,22 @@ IPPROTO_DSTOPTS: int
|
|
|
149
159
|
IPPROTO_EGP: int
|
|
150
160
|
IPPROTO_ESP: int
|
|
151
161
|
IPPROTO_FRAGMENT: int
|
|
152
|
-
IPPROTO_GGP: int
|
|
153
162
|
IPPROTO_HOPOPTS: int
|
|
154
163
|
IPPROTO_ICMPV6: int
|
|
155
164
|
IPPROTO_IDP: int
|
|
156
165
|
IPPROTO_IGMP: int
|
|
157
|
-
IPPROTO_IPV4: int
|
|
158
166
|
IPPROTO_IPV6: int
|
|
159
|
-
IPPROTO_MAX: int
|
|
160
|
-
IPPROTO_ND: int
|
|
161
167
|
IPPROTO_NONE: int
|
|
162
168
|
IPPROTO_PIM: int
|
|
163
169
|
IPPROTO_PUP: int
|
|
164
170
|
IPPROTO_ROUTING: int
|
|
165
171
|
IPPROTO_SCTP: int
|
|
166
|
-
if sys.platform != "
|
|
172
|
+
if sys.platform != "linux":
|
|
173
|
+
IPPROTO_GGP: int
|
|
174
|
+
IPPROTO_IPV4: int
|
|
175
|
+
IPPROTO_MAX: int
|
|
176
|
+
IPPROTO_ND: int
|
|
177
|
+
if sys.platform == "win32":
|
|
167
178
|
IPPROTO_CBT: int
|
|
168
179
|
IPPROTO_ICLFXBM: int
|
|
169
180
|
IPPROTO_IGP: int
|
|
@@ -172,18 +183,19 @@ if sys.platform != "darwin":
|
|
|
172
183
|
IPPROTO_RDP: int
|
|
173
184
|
IPPROTO_ST: int
|
|
174
185
|
if sys.platform != "win32":
|
|
175
|
-
IPPROTO_EON: int
|
|
176
186
|
IPPROTO_GRE: int
|
|
177
|
-
IPPROTO_HELLO: int
|
|
178
|
-
IPPROTO_IPCOMP: int
|
|
179
187
|
IPPROTO_IPIP: int
|
|
180
188
|
IPPROTO_RSVP: int
|
|
181
189
|
IPPROTO_TP: int
|
|
190
|
+
if sys.platform != "win32" and sys.platform != "linux":
|
|
191
|
+
IPPROTO_EON: int
|
|
192
|
+
IPPROTO_HELLO: int
|
|
193
|
+
IPPROTO_IPCOMP: int
|
|
182
194
|
IPPROTO_XTP: int
|
|
183
|
-
if sys.platform != "win32" and sys.platform != "darwin":
|
|
184
|
-
IPPROTO_BIP: int
|
|
185
|
-
IPPROTO_MOBILE: int
|
|
186
|
-
IPPROTO_VRRP: int
|
|
195
|
+
if sys.platform != "win32" and sys.platform != "darwin" and sys.platform != "linux":
|
|
196
|
+
IPPROTO_BIP: int # Not FreeBSD either
|
|
197
|
+
IPPROTO_MOBILE: int # Not FreeBSD either
|
|
198
|
+
IPPROTO_VRRP: int # Not FreeBSD either
|
|
187
199
|
if sys.version_info >= (3, 9) and sys.platform == "linux":
|
|
188
200
|
# Availability: Linux >= 2.6.20, FreeBSD >= 10.1
|
|
189
201
|
IPPROTO_UDPLITE: int
|
|
@@ -208,11 +220,10 @@ IP_MULTICAST_IF: int
|
|
|
208
220
|
IP_MULTICAST_LOOP: int
|
|
209
221
|
IP_MULTICAST_TTL: int
|
|
210
222
|
IP_OPTIONS: int
|
|
211
|
-
|
|
223
|
+
if sys.platform != "linux":
|
|
224
|
+
IP_RECVDSTADDR: int
|
|
212
225
|
if sys.version_info >= (3, 10):
|
|
213
226
|
IP_RECVTOS: int
|
|
214
|
-
elif sys.platform != "win32" and sys.platform != "darwin":
|
|
215
|
-
IP_RECVTOS: int
|
|
216
227
|
IP_TOS: int
|
|
217
228
|
IP_TTL: int
|
|
218
229
|
if sys.platform != "win32":
|
|
@@ -224,6 +235,7 @@ if sys.platform != "win32":
|
|
|
224
235
|
IP_RETOPTS: int
|
|
225
236
|
if sys.platform != "win32" and sys.platform != "darwin":
|
|
226
237
|
IP_TRANSPARENT: int
|
|
238
|
+
if sys.platform != "win32" and sys.platform != "darwin" and sys.version_info >= (3, 11):
|
|
227
239
|
IP_BIND_ADDRESS_NO_PORT: int
|
|
228
240
|
if sys.version_info >= (3, 12):
|
|
229
241
|
IP_ADD_SOURCE_MEMBERSHIP: int
|
|
@@ -261,6 +273,9 @@ if sys.platform != "win32":
|
|
|
261
273
|
IPV6_RECVPATHMTU: int
|
|
262
274
|
IPV6_RECVPKTINFO: int
|
|
263
275
|
IPV6_RTHDRDSTOPTS: int
|
|
276
|
+
|
|
277
|
+
if sys.platform != "win32" and sys.platform != "linux":
|
|
278
|
+
if sys.version_info >= (3, 9) or sys.platform != "darwin":
|
|
264
279
|
IPV6_USE_MIN_MTU: int
|
|
265
280
|
|
|
266
281
|
EAI_AGAIN: int
|
|
@@ -274,11 +289,12 @@ EAI_SERVICE: int
|
|
|
274
289
|
EAI_SOCKTYPE: int
|
|
275
290
|
if sys.platform != "win32":
|
|
276
291
|
EAI_ADDRFAMILY: int
|
|
292
|
+
EAI_OVERFLOW: int
|
|
293
|
+
EAI_SYSTEM: int
|
|
294
|
+
if sys.platform != "win32" and sys.platform != "linux":
|
|
277
295
|
EAI_BADHINTS: int
|
|
278
296
|
EAI_MAX: int
|
|
279
|
-
EAI_OVERFLOW: int
|
|
280
297
|
EAI_PROTOCOL: int
|
|
281
|
-
EAI_SYSTEM: int
|
|
282
298
|
|
|
283
299
|
AI_ADDRCONFIG: int
|
|
284
300
|
AI_ALL: int
|
|
@@ -287,7 +303,7 @@ AI_NUMERICHOST: int
|
|
|
287
303
|
AI_NUMERICSERV: int
|
|
288
304
|
AI_PASSIVE: int
|
|
289
305
|
AI_V4MAPPED: int
|
|
290
|
-
if sys.platform != "win32":
|
|
306
|
+
if sys.platform != "win32" and sys.platform != "linux":
|
|
291
307
|
AI_DEFAULT: int
|
|
292
308
|
AI_MASK: int
|
|
293
309
|
AI_V4MAPPED_CFG: int
|
|
@@ -299,6 +315,8 @@ NI_NAMEREQD: int
|
|
|
299
315
|
NI_NOFQDN: int
|
|
300
316
|
NI_NUMERICHOST: int
|
|
301
317
|
NI_NUMERICSERV: int
|
|
318
|
+
if sys.platform == "linux" and sys.version_info >= (3, 13):
|
|
319
|
+
NI_IDN: int
|
|
302
320
|
|
|
303
321
|
TCP_FASTOPEN: int
|
|
304
322
|
TCP_KEEPCNT: int
|
|
@@ -324,6 +342,27 @@ if sys.platform != "win32" and sys.platform != "darwin":
|
|
|
324
342
|
TCP_SYNCNT: int
|
|
325
343
|
TCP_USER_TIMEOUT: int
|
|
326
344
|
TCP_WINDOW_CLAMP: int
|
|
345
|
+
if sys.platform == "linux" and sys.version_info >= (3, 12):
|
|
346
|
+
TCP_CC_INFO: int
|
|
347
|
+
TCP_FASTOPEN_CONNECT: int
|
|
348
|
+
TCP_FASTOPEN_KEY: int
|
|
349
|
+
TCP_FASTOPEN_NO_COOKIE: int
|
|
350
|
+
TCP_INQ: int
|
|
351
|
+
TCP_MD5SIG: int
|
|
352
|
+
TCP_MD5SIG_EXT: int
|
|
353
|
+
TCP_QUEUE_SEQ: int
|
|
354
|
+
TCP_REPAIR: int
|
|
355
|
+
TCP_REPAIR_OPTIONS: int
|
|
356
|
+
TCP_REPAIR_QUEUE: int
|
|
357
|
+
TCP_REPAIR_WINDOW: int
|
|
358
|
+
TCP_SAVED_SYN: int
|
|
359
|
+
TCP_SAVE_SYN: int
|
|
360
|
+
TCP_THIN_DUPACK: int
|
|
361
|
+
TCP_THIN_LINEAR_TIMEOUTS: int
|
|
362
|
+
TCP_TIMESTAMP: int
|
|
363
|
+
TCP_TX_DELAY: int
|
|
364
|
+
TCP_ULP: int
|
|
365
|
+
TCP_ZEROCOPY_RECEIVE: int
|
|
327
366
|
|
|
328
367
|
# --------------------
|
|
329
368
|
# Specifically documented constants
|
|
@@ -340,12 +379,13 @@ if sys.platform == "linux":
|
|
|
340
379
|
CAN_ERR_FLAG: int
|
|
341
380
|
CAN_ERR_MASK: int
|
|
342
381
|
CAN_RAW: int
|
|
343
|
-
CAN_RAW_ERR_FILTER: int
|
|
344
382
|
CAN_RAW_FILTER: int
|
|
345
383
|
CAN_RAW_LOOPBACK: int
|
|
346
384
|
CAN_RAW_RECV_OWN_MSGS: int
|
|
347
385
|
CAN_RTR_FLAG: int
|
|
348
386
|
CAN_SFF_MASK: int
|
|
387
|
+
if sys.version_info < (3, 11):
|
|
388
|
+
CAN_RAW_ERR_FILTER: int
|
|
349
389
|
|
|
350
390
|
if sys.platform == "linux":
|
|
351
391
|
# Availability: Linux >= 2.6.25
|
|
@@ -443,12 +483,13 @@ if sys.platform == "linux":
|
|
|
443
483
|
AF_RDS: int
|
|
444
484
|
PF_RDS: int
|
|
445
485
|
SOL_RDS: int
|
|
486
|
+
# These are present in include/linux/rds.h but don't always show up
|
|
487
|
+
# here.
|
|
446
488
|
RDS_CANCEL_SENT_TO: int
|
|
447
489
|
RDS_CMSG_RDMA_ARGS: int
|
|
448
490
|
RDS_CMSG_RDMA_DEST: int
|
|
449
491
|
RDS_CMSG_RDMA_MAP: int
|
|
450
492
|
RDS_CMSG_RDMA_STATUS: int
|
|
451
|
-
RDS_CMSG_RDMA_UPDATE: int
|
|
452
493
|
RDS_CONG_MONITOR: int
|
|
453
494
|
RDS_FREE_MR: int
|
|
454
495
|
RDS_GET_MR: int
|
|
@@ -462,6 +503,10 @@ if sys.platform == "linux":
|
|
|
462
503
|
RDS_RDMA_USE_ONCE: int
|
|
463
504
|
RDS_RECVERR: int
|
|
464
505
|
|
|
506
|
+
# This is supported by CPython but doesn't seem to be a real thing.
|
|
507
|
+
# The closest existing constant in rds.h is RDS_CMSG_CONG_UPDATE
|
|
508
|
+
# RDS_CMSG_RDMA_UPDATE: int
|
|
509
|
+
|
|
465
510
|
if sys.platform == "win32":
|
|
466
511
|
SIO_RCVALL: int
|
|
467
512
|
SIO_KEEPALIVE_VALS: int
|
|
@@ -528,16 +573,17 @@ if sys.platform == "linux":
|
|
|
528
573
|
if sys.platform != "win32" or sys.version_info >= (3, 9):
|
|
529
574
|
# Documented as only available on BSD, macOS, but empirically sometimes
|
|
530
575
|
# available on Windows
|
|
531
|
-
|
|
576
|
+
if sys.platform != "linux":
|
|
577
|
+
AF_LINK: int
|
|
532
578
|
|
|
533
579
|
has_ipv6: bool
|
|
534
580
|
|
|
535
|
-
if sys.platform != "darwin":
|
|
581
|
+
if sys.platform != "darwin" and sys.platform != "linux":
|
|
536
582
|
if sys.platform != "win32" or sys.version_info >= (3, 9):
|
|
537
583
|
BDADDR_ANY: str
|
|
538
584
|
BDADDR_LOCAL: str
|
|
539
585
|
|
|
540
|
-
if sys.platform != "win32" and sys.platform != "darwin":
|
|
586
|
+
if sys.platform != "win32" and sys.platform != "darwin" and sys.platform != "linux":
|
|
541
587
|
HCI_FILTER: int # not in NetBSD or DragonFlyBSD
|
|
542
588
|
HCI_TIME_STAMP: int # not in FreeBSD, NetBSD, or DragonFlyBSD
|
|
543
589
|
HCI_DATA_DIR: int # not in FreeBSD, NetBSD, or DragonFlyBSD
|
|
@@ -586,36 +632,37 @@ if sys.version_info >= (3, 12):
|
|
|
586
632
|
if sys.platform == "linux":
|
|
587
633
|
# Netlink is defined by Linux
|
|
588
634
|
AF_NETLINK: int
|
|
589
|
-
NETLINK_ARPD: int
|
|
590
635
|
NETLINK_CRYPTO: int
|
|
591
636
|
NETLINK_DNRTMSG: int
|
|
592
637
|
NETLINK_FIREWALL: int
|
|
593
638
|
NETLINK_IP6_FW: int
|
|
594
639
|
NETLINK_NFLOG: int
|
|
595
|
-
NETLINK_ROUTE6: int
|
|
596
640
|
NETLINK_ROUTE: int
|
|
597
|
-
NETLINK_SKIP: int
|
|
598
|
-
NETLINK_TAPBASE: int
|
|
599
|
-
NETLINK_TCPDIAG: int
|
|
600
641
|
NETLINK_USERSOCK: int
|
|
601
|
-
NETLINK_W1: int
|
|
602
642
|
NETLINK_XFRM: int
|
|
643
|
+
# Technically still supported by CPython
|
|
644
|
+
# NETLINK_ARPD: int # linux 2.0 to 2.6.12 (EOL August 2005)
|
|
645
|
+
# NETLINK_ROUTE6: int # linux 2.2 to 2.6.12 (EOL August 2005)
|
|
646
|
+
# NETLINK_SKIP: int # linux 2.0 to 2.6.12 (EOL August 2005)
|
|
647
|
+
# NETLINK_TAPBASE: int # linux 2.2 to 2.6.12 (EOL August 2005)
|
|
648
|
+
# NETLINK_TCPDIAG: int # linux 2.6.0 to 2.6.13 (EOL December 2005)
|
|
649
|
+
# NETLINK_W1: int # linux 2.6.13 to 2.6.17 (EOL October 2006)
|
|
603
650
|
|
|
604
651
|
if sys.platform == "darwin":
|
|
605
652
|
PF_SYSTEM: int
|
|
606
653
|
SYSPROTO_CONTROL: int
|
|
607
654
|
|
|
608
|
-
if sys.platform != "darwin":
|
|
655
|
+
if sys.platform != "darwin" and sys.platform != "linux":
|
|
609
656
|
if sys.version_info >= (3, 9) or sys.platform != "win32":
|
|
610
657
|
AF_BLUETOOTH: int
|
|
611
658
|
|
|
612
|
-
if sys.platform != "win32" and sys.platform != "darwin":
|
|
659
|
+
if sys.platform != "win32" and sys.platform != "darwin" and sys.platform != "linux":
|
|
613
660
|
# Linux and some BSD support is explicit in the docs
|
|
614
661
|
# Windows and macOS do not support in practice
|
|
615
662
|
BTPROTO_HCI: int
|
|
616
663
|
BTPROTO_L2CAP: int
|
|
617
664
|
BTPROTO_SCO: int # not in FreeBSD
|
|
618
|
-
if sys.platform != "darwin":
|
|
665
|
+
if sys.platform != "darwin" and sys.platform != "linux":
|
|
619
666
|
if sys.version_info >= (3, 9) or sys.platform != "win32":
|
|
620
667
|
BTPROTO_RFCOMM: int
|
|
621
668
|
|
|
@@ -642,13 +689,14 @@ AF_SNA: int
|
|
|
642
689
|
|
|
643
690
|
if sys.platform != "win32":
|
|
644
691
|
AF_ROUTE: int
|
|
692
|
+
|
|
693
|
+
if sys.platform == "darwin":
|
|
645
694
|
AF_SYSTEM: int
|
|
646
695
|
|
|
647
696
|
if sys.platform != "darwin":
|
|
648
697
|
AF_IRDA: int
|
|
649
698
|
|
|
650
699
|
if sys.platform != "win32" and sys.platform != "darwin":
|
|
651
|
-
AF_AAL5: int
|
|
652
700
|
AF_ASH: int
|
|
653
701
|
AF_ATMPVC: int
|
|
654
702
|
AF_ATMSVC: int
|
|
@@ -667,10 +715,12 @@ if sys.platform != "win32" and sys.platform != "darwin":
|
|
|
667
715
|
|
|
668
716
|
# Miscellaneous undocumented
|
|
669
717
|
|
|
670
|
-
if sys.platform != "win32":
|
|
718
|
+
if sys.platform != "win32" and sys.platform != "linux":
|
|
671
719
|
LOCAL_PEERCRED: int
|
|
672
720
|
|
|
673
721
|
if sys.platform != "win32" and sys.platform != "darwin":
|
|
722
|
+
# Defined in linux socket.h, but this isn't always present for
|
|
723
|
+
# some reason.
|
|
674
724
|
IPX_TYPE: int
|
|
675
725
|
|
|
676
726
|
# ===== Classes =====
|
|
@@ -1314,4 +1364,4 @@ def if_indextoname(index: int, /) -> str:
|
|
|
1314
1364
|
"""
|
|
1315
1365
|
...
|
|
1316
1366
|
|
|
1317
|
-
CAPI:
|
|
1367
|
+
CAPI: CapsuleType
|
|
@@ -132,6 +132,16 @@ def start_new_thread(function: Callable[..., object], args: tuple[Any, ...], kwa
|
|
|
132
132
|
"""
|
|
133
133
|
...
|
|
134
134
|
|
|
135
|
+
# Obsolete synonym for start_new_thread()
|
|
136
|
+
@overload
|
|
137
|
+
def start_new(function: Callable[[Unpack[_Ts]], object], args: tuple[Unpack[_Ts]], /) -> int:
|
|
138
|
+
"""An obsolete synonym of start_new_thread()."""
|
|
139
|
+
...
|
|
140
|
+
@overload
|
|
141
|
+
def start_new(function: Callable[..., object], args: tuple[Any, ...], kwargs: dict[str, Any], /) -> int:
|
|
142
|
+
"""An obsolete synonym of start_new_thread()."""
|
|
143
|
+
...
|
|
144
|
+
|
|
135
145
|
if sys.version_info >= (3, 10):
|
|
136
146
|
def interrupt_main(signum: signal.Signals = ..., /) -> None:
|
|
137
147
|
"""
|
|
@@ -160,12 +170,18 @@ def exit() -> NoReturn:
|
|
|
160
170
|
thread to exit silently unless the exception is caught.
|
|
161
171
|
"""
|
|
162
172
|
...
|
|
173
|
+
def exit_thread() -> NoReturn:
|
|
174
|
+
"""An obsolete synonym of exit()."""
|
|
175
|
+
...
|
|
163
176
|
def allocate_lock() -> LockType:
|
|
164
177
|
"""
|
|
165
178
|
Create a new lock object. See help(type(threading.Lock())) for
|
|
166
179
|
information about locks.
|
|
167
180
|
"""
|
|
168
181
|
...
|
|
182
|
+
def allocate() -> LockType:
|
|
183
|
+
"""An obsolete synonym of allocate_lock()."""
|
|
184
|
+
...
|
|
169
185
|
def get_ident() -> int:
|
|
170
186
|
"""
|
|
171
187
|
Return a non-zero integer that uniquely identifies the current thread
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
from threading import RLock
|
|
1
2
|
from typing import Any
|
|
2
3
|
from typing_extensions import Self, TypeAlias
|
|
3
4
|
from weakref import ReferenceType
|
|
@@ -8,6 +9,9 @@ _LocalDict: TypeAlias = dict[Any, Any]
|
|
|
8
9
|
class _localimpl:
|
|
9
10
|
key: str
|
|
10
11
|
dicts: dict[int, tuple[ReferenceType[Any], _LocalDict]]
|
|
12
|
+
# Keep localargs in sync with the *args, **kwargs annotation on local.__new__
|
|
13
|
+
localargs: tuple[list[Any], dict[str, Any]]
|
|
14
|
+
locallock: RLock
|
|
11
15
|
def get_dict(self) -> _LocalDict: ...
|
|
12
16
|
def create_dict(self) -> _LocalDict: ...
|
|
13
17
|
|
|
@@ -129,7 +129,7 @@ class object:
|
|
|
129
129
|
"""the object's class"""
|
|
130
130
|
...
|
|
131
131
|
@__class__.setter
|
|
132
|
-
def __class__(self, type: type[
|
|
132
|
+
def __class__(self, type: type[Self], /) -> None:
|
|
133
133
|
"""the object's class"""
|
|
134
134
|
...
|
|
135
135
|
def __init__(self) -> None:
|
|
@@ -6295,14 +6295,33 @@ class StopAsyncIteration(Exception):
|
|
|
6295
6295
|
class SyntaxError(Exception):
|
|
6296
6296
|
"""Invalid syntax."""
|
|
6297
6297
|
msg: str
|
|
6298
|
+
filename: str | None
|
|
6298
6299
|
lineno: int | None
|
|
6299
6300
|
offset: int | None
|
|
6300
6301
|
text: str | None
|
|
6301
|
-
|
|
6302
|
+
# Errors are displayed differently if this attribute exists on the exception.
|
|
6303
|
+
# The value is always None.
|
|
6304
|
+
print_file_and_line: None
|
|
6302
6305
|
if sys.version_info >= (3, 10):
|
|
6303
6306
|
end_lineno: int | None
|
|
6304
6307
|
end_offset: int | None
|
|
6305
6308
|
|
|
6309
|
+
@overload
|
|
6310
|
+
def __init__(self) -> None: ...
|
|
6311
|
+
@overload
|
|
6312
|
+
def __init__(self, msg: object, /) -> None: ...
|
|
6313
|
+
# Second argument is the tuple (filename, lineno, offset, text)
|
|
6314
|
+
@overload
|
|
6315
|
+
def __init__(self, msg: str, info: tuple[str | None, int | None, int | None, str | None], /) -> None: ...
|
|
6316
|
+
if sys.version_info >= (3, 10):
|
|
6317
|
+
# end_lineno and end_offset must both be provided if one is.
|
|
6318
|
+
@overload
|
|
6319
|
+
def __init__(
|
|
6320
|
+
self, msg: str, info: tuple[str | None, int | None, int | None, str | None, int | None, int | None], /
|
|
6321
|
+
) -> None: ...
|
|
6322
|
+
# If you provide more than two arguments, it still creates the SyntaxError, but
|
|
6323
|
+
# the arguments from the info tuple are not parsed. This form is omitted.
|
|
6324
|
+
|
|
6306
6325
|
class SystemError(Exception):
|
|
6307
6326
|
"""
|
|
6308
6327
|
Internal error in the Python interpreter.
|
|
@@ -126,6 +126,7 @@ class BZ2File(BaseStream, IO[bytes]):
|
|
|
126
126
|
def readline(self, size: SupportsIndex = -1) -> bytes: ... # type: ignore[override]
|
|
127
127
|
def readinto(self, b: WriteableBuffer) -> int: ...
|
|
128
128
|
def readlines(self, size: SupportsIndex = -1) -> list[bytes]: ...
|
|
129
|
+
def peek(self, n: int = 0) -> bytes: ...
|
|
129
130
|
def seek(self, offset: int, whence: int = 0) -> int: ...
|
|
130
131
|
def write(self, data: ReadableBuffer) -> int: ...
|
|
131
132
|
def writelines(self, seq: Iterable[ReadableBuffer]) -> None: ...
|
|
@@ -3,7 +3,7 @@ from _codecs import *
|
|
|
3
3
|
from _typeshed import ReadableBuffer
|
|
4
4
|
from abc import abstractmethod
|
|
5
5
|
from collections.abc import Callable, Generator, Iterable
|
|
6
|
-
from typing import Any, BinaryIO, Final, Literal, Protocol, TextIO
|
|
6
|
+
from typing import Any, BinaryIO, ClassVar, Final, Literal, Protocol, TextIO
|
|
7
7
|
from typing_extensions import Self
|
|
8
8
|
|
|
9
9
|
__all__ = [
|
|
@@ -214,6 +214,7 @@ class StreamWriter(Codec):
|
|
|
214
214
|
def write(self, object: str) -> None: ...
|
|
215
215
|
def writelines(self, list: Iterable[str]) -> None: ...
|
|
216
216
|
def reset(self) -> None: ...
|
|
217
|
+
def seek(self, offset: int, whence: int = 0) -> None: ...
|
|
217
218
|
def __enter__(self) -> Self: ...
|
|
218
219
|
def __exit__(self, type: type[BaseException] | None, value: BaseException | None, tb: types.TracebackType | None) -> None: ...
|
|
219
220
|
def __getattr__(self, name: str, getattr: Callable[[Any, str], Any] = ...) -> Any: ...
|
|
@@ -221,11 +222,14 @@ class StreamWriter(Codec):
|
|
|
221
222
|
class StreamReader(Codec):
|
|
222
223
|
stream: _ReadableStream
|
|
223
224
|
errors: str
|
|
225
|
+
# This is set to str, but some subclasses set to bytes instead.
|
|
226
|
+
charbuffertype: ClassVar[type] = ...
|
|
224
227
|
def __init__(self, stream: _ReadableStream, errors: str = "strict") -> None: ...
|
|
225
228
|
def read(self, size: int = -1, chars: int = -1, firstline: bool = False) -> str: ...
|
|
226
229
|
def readline(self, size: int | None = None, keepends: bool = True) -> str: ...
|
|
227
230
|
def readlines(self, sizehint: int | None = None, keepends: bool = True) -> list[str]: ...
|
|
228
231
|
def reset(self) -> None: ...
|
|
232
|
+
def seek(self, offset: int, whence: int = 0) -> None: ...
|
|
229
233
|
def __enter__(self) -> Self: ...
|
|
230
234
|
def __exit__(self, type: type[BaseException] | None, value: BaseException | None, tb: types.TracebackType | None) -> None: ...
|
|
231
235
|
def __iter__(self) -> Self: ...
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import sys
|
|
2
|
-
from _typeshed import StrOrBytesPath, SupportsWrite
|
|
2
|
+
from _typeshed import MaybeNone, StrOrBytesPath, SupportsWrite
|
|
3
3
|
from collections.abc import Callable, ItemsView, Iterable, Iterator, Mapping, MutableMapping, Sequence
|
|
4
4
|
from re import Pattern
|
|
5
5
|
from typing import Any, ClassVar, Final, Literal, TypeVar, overload
|
|
@@ -263,11 +263,11 @@ class RawConfigParser(_Parser):
|
|
|
263
263
|
) -> _T: ...
|
|
264
264
|
# This is incompatible with MutableMapping so we ignore the type
|
|
265
265
|
@overload # type: ignore[override]
|
|
266
|
-
def get(self, section: str, option: str, *, raw: bool = False, vars: _Section | None = None) -> str |
|
|
266
|
+
def get(self, section: str, option: str, *, raw: bool = False, vars: _Section | None = None) -> str | MaybeNone: ...
|
|
267
267
|
@overload
|
|
268
268
|
def get(
|
|
269
269
|
self, section: str, option: str, *, raw: bool = False, vars: _Section | None = None, fallback: _T
|
|
270
|
-
) -> str | _T |
|
|
270
|
+
) -> str | _T | MaybeNone: ...
|
|
271
271
|
@overload
|
|
272
272
|
def items(self, *, raw: bool = False, vars: _Section | None = None) -> ItemsView[str, SectionProxy]: ...
|
|
273
273
|
@overload
|
|
@@ -277,6 +277,8 @@ class RawConfigParser(_Parser):
|
|
|
277
277
|
def remove_option(self, section: str, option: str) -> bool: ...
|
|
278
278
|
def remove_section(self, section: str) -> bool: ...
|
|
279
279
|
def optionxform(self, optionstr: str) -> str: ...
|
|
280
|
+
@property
|
|
281
|
+
def converters(self) -> ConverterMapping: ...
|
|
280
282
|
|
|
281
283
|
class ConfigParser(RawConfigParser):
|
|
282
284
|
# This is incompatible with MutableMapping so we ignore the type
|
|
@@ -300,28 +302,34 @@ class SectionProxy(MutableMapping[str, str]):
|
|
|
300
302
|
def parser(self) -> RawConfigParser: ...
|
|
301
303
|
@property
|
|
302
304
|
def name(self) -> str: ...
|
|
303
|
-
|
|
305
|
+
# This is incompatible with MutableMapping so we ignore the type
|
|
306
|
+
@overload # type: ignore[override]
|
|
307
|
+
def get(
|
|
308
|
+
self, option: str, *, raw: bool = False, vars: _Section | None = None, _impl: Any | None = None, **kwargs: Any
|
|
309
|
+
) -> str | None: ...
|
|
310
|
+
@overload
|
|
311
|
+
def get(
|
|
304
312
|
self,
|
|
305
313
|
option: str,
|
|
306
|
-
fallback:
|
|
314
|
+
fallback: _T,
|
|
307
315
|
*,
|
|
308
316
|
raw: bool = False,
|
|
309
317
|
vars: _Section | None = None,
|
|
310
318
|
_impl: Any | None = None,
|
|
311
319
|
**kwargs: Any,
|
|
312
|
-
) -> str |
|
|
320
|
+
) -> str | _T: ...
|
|
313
321
|
# These are partially-applied version of the methods with the same names in
|
|
314
322
|
# RawConfigParser; the stubs should be kept updated together
|
|
315
323
|
@overload
|
|
316
|
-
def getint(self, option: str, *, raw: bool = ..., vars: _Section | None = ...) -> int: ...
|
|
324
|
+
def getint(self, option: str, *, raw: bool = ..., vars: _Section | None = ...) -> int | None: ...
|
|
317
325
|
@overload
|
|
318
326
|
def getint(self, option: str, fallback: _T = ..., *, raw: bool = ..., vars: _Section | None = ...) -> int | _T: ...
|
|
319
327
|
@overload
|
|
320
|
-
def getfloat(self, option: str, *, raw: bool = ..., vars: _Section | None = ...) -> float: ...
|
|
328
|
+
def getfloat(self, option: str, *, raw: bool = ..., vars: _Section | None = ...) -> float | None: ...
|
|
321
329
|
@overload
|
|
322
330
|
def getfloat(self, option: str, fallback: _T = ..., *, raw: bool = ..., vars: _Section | None = ...) -> float | _T: ...
|
|
323
331
|
@overload
|
|
324
|
-
def getboolean(self, option: str, *, raw: bool = ..., vars: _Section | None = ...) -> bool: ...
|
|
332
|
+
def getboolean(self, option: str, *, raw: bool = ..., vars: _Section | None = ...) -> bool | None: ...
|
|
325
333
|
@overload
|
|
326
334
|
def getboolean(self, option: str, fallback: _T = ..., *, raw: bool = ..., vars: _Section | None = ...) -> bool | _T: ...
|
|
327
335
|
# SectionProxy can have arbitrary attributes when custom converters are used
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import abc
|
|
2
2
|
import sys
|
|
3
3
|
from _typeshed import FileDescriptorOrPath, Unused
|
|
4
|
-
from abc import abstractmethod
|
|
4
|
+
from abc import ABC, abstractmethod
|
|
5
5
|
from collections.abc import AsyncGenerator, AsyncIterator, Awaitable, Callable, Generator, Iterator
|
|
6
6
|
from types import TracebackType
|
|
7
7
|
from typing import IO, Any, Generic, Protocol, TypeVar, overload, runtime_checkable
|
|
@@ -38,16 +38,22 @@ _P = ParamSpec("_P")
|
|
|
38
38
|
_ExitFunc: TypeAlias = Callable[[type[BaseException] | None, BaseException | None, TracebackType | None], bool | None]
|
|
39
39
|
_CM_EF = TypeVar("_CM_EF", bound=AbstractContextManager[Any, Any] | _ExitFunc)
|
|
40
40
|
|
|
41
|
+
# mypy and pyright object to this being both ABC and Protocol.
|
|
42
|
+
# At runtime it inherits from ABC and is not a Protocol, but it is on the
|
|
43
|
+
# allowlist for use as a Protocol.
|
|
41
44
|
@runtime_checkable
|
|
42
|
-
class AbstractContextManager(Protocol[_T_co, _ExitT_co]):
|
|
45
|
+
class AbstractContextManager(ABC, Protocol[_T_co, _ExitT_co]): # type: ignore[misc] # pyright: ignore[reportGeneralTypeIssues]
|
|
43
46
|
def __enter__(self) -> _T_co: ...
|
|
44
47
|
@abstractmethod
|
|
45
48
|
def __exit__(
|
|
46
49
|
self, exc_type: type[BaseException] | None, exc_value: BaseException | None, traceback: TracebackType | None, /
|
|
47
50
|
) -> _ExitT_co: ...
|
|
48
51
|
|
|
52
|
+
# mypy and pyright object to this being both ABC and Protocol.
|
|
53
|
+
# At runtime it inherits from ABC and is not a Protocol, but it is on the
|
|
54
|
+
# allowlist for use as a Protocol.
|
|
49
55
|
@runtime_checkable
|
|
50
|
-
class AbstractAsyncContextManager(Protocol[_T_co, _ExitT_co]):
|
|
56
|
+
class AbstractAsyncContextManager(ABC, Protocol[_T_co, _ExitT_co]): # type: ignore[misc] # pyright: ignore[reportGeneralTypeIssues]
|
|
51
57
|
async def __aenter__(self) -> _T_co: ...
|
|
52
58
|
@abstractmethod
|
|
53
59
|
async def __aexit__(
|
|
@@ -1,8 +1,15 @@
|
|
|
1
1
|
import sys
|
|
2
|
-
from typing import Final
|
|
2
|
+
from typing import Final, NamedTuple, type_check_only
|
|
3
3
|
|
|
4
4
|
if sys.platform != "win32":
|
|
5
|
-
|
|
5
|
+
@type_check_only
|
|
6
|
+
class _MethodBase(NamedTuple):
|
|
7
|
+
name: str
|
|
8
|
+
ident: str | None
|
|
9
|
+
salt_chars: int
|
|
10
|
+
total_size: int
|
|
11
|
+
|
|
12
|
+
class _Method(_MethodBase): ...
|
|
6
13
|
METHOD_CRYPT: Final[_Method]
|
|
7
14
|
METHOD_MD5: Final[_Method]
|
|
8
15
|
METHOD_SHA256: Final[_Method]
|
|
@@ -8,8 +8,6 @@ from _csv import (
|
|
|
8
8
|
__version__ as __version__,
|
|
9
9
|
_DialectLike,
|
|
10
10
|
_QuotingType,
|
|
11
|
-
_reader,
|
|
12
|
-
_writer,
|
|
13
11
|
field_size_limit as field_size_limit,
|
|
14
12
|
get_dialect as get_dialect,
|
|
15
13
|
list_dialects as list_dialects,
|
|
@@ -21,6 +19,10 @@ from _csv import (
|
|
|
21
19
|
|
|
22
20
|
if sys.version_info >= (3, 12):
|
|
23
21
|
from _csv import QUOTE_NOTNULL as QUOTE_NOTNULL, QUOTE_STRINGS as QUOTE_STRINGS
|
|
22
|
+
if sys.version_info >= (3, 10):
|
|
23
|
+
from _csv import Reader, Writer
|
|
24
|
+
else:
|
|
25
|
+
from _csv import _reader as Reader, _writer as Writer
|
|
24
26
|
|
|
25
27
|
from _typeshed import SupportsWrite
|
|
26
28
|
from collections.abc import Collection, Iterable, Mapping, Sequence
|
|
@@ -77,7 +79,7 @@ class DictReader(Generic[_T]):
|
|
|
77
79
|
fieldnames: Sequence[_T] | None
|
|
78
80
|
restkey: _T | None
|
|
79
81
|
restval: str | Any | None
|
|
80
|
-
reader:
|
|
82
|
+
reader: Reader
|
|
81
83
|
dialect: _DialectLike
|
|
82
84
|
line_num: int
|
|
83
85
|
@overload
|
|
@@ -131,7 +133,7 @@ class DictWriter(Generic[_T]):
|
|
|
131
133
|
fieldnames: Collection[_T]
|
|
132
134
|
restval: Any | None
|
|
133
135
|
extrasaction: Literal["raise", "ignore"]
|
|
134
|
-
writer:
|
|
136
|
+
writer: Writer
|
|
135
137
|
def __init__(
|
|
136
138
|
self,
|
|
137
139
|
f: SupportsWrite[str],
|