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
|
@@ -10,13 +10,11 @@ from _ctypes import (
|
|
|
10
10
|
_CanCastTo as _CanCastTo,
|
|
11
11
|
_CArgObject as _CArgObject,
|
|
12
12
|
_CData as _CData,
|
|
13
|
-
|
|
13
|
+
_CDataType as _CDataType,
|
|
14
14
|
_CField as _CField,
|
|
15
15
|
_Pointer as _Pointer,
|
|
16
16
|
_PointerLike as _PointerLike,
|
|
17
17
|
_SimpleCData as _SimpleCData,
|
|
18
|
-
_StructUnionBase as _StructUnionBase,
|
|
19
|
-
_StructUnionMeta as _StructUnionMeta,
|
|
20
18
|
addressof as addressof,
|
|
21
19
|
alignment as alignment,
|
|
22
20
|
byref as byref,
|
|
@@ -28,7 +26,7 @@ from _ctypes import (
|
|
|
28
26
|
)
|
|
29
27
|
from ctypes._endian import BigEndianStructure as BigEndianStructure, LittleEndianStructure as LittleEndianStructure
|
|
30
28
|
from typing import Any, ClassVar, Generic, TypeVar
|
|
31
|
-
from typing_extensions import TypeAlias
|
|
29
|
+
from typing_extensions import Self, TypeAlias, deprecated
|
|
32
30
|
|
|
33
31
|
if sys.platform == "win32":
|
|
34
32
|
from _ctypes import FormatError as FormatError, get_last_error as get_last_error, set_last_error as set_last_error
|
|
@@ -41,6 +39,7 @@ if sys.version_info >= (3, 9):
|
|
|
41
39
|
|
|
42
40
|
_T = TypeVar("_T")
|
|
43
41
|
_DLLT = TypeVar("_DLLT", bound=CDLL)
|
|
42
|
+
_CT = TypeVar("_CT", bound=_CData)
|
|
44
43
|
|
|
45
44
|
DEFAULT_MODE: int
|
|
46
45
|
|
|
@@ -48,7 +47,7 @@ class ArgumentError(Exception): ...
|
|
|
48
47
|
|
|
49
48
|
class CDLL:
|
|
50
49
|
_func_flags_: ClassVar[int]
|
|
51
|
-
_func_restype_: ClassVar[
|
|
50
|
+
_func_restype_: ClassVar[_CDataType]
|
|
52
51
|
_name: str
|
|
53
52
|
_handle: int
|
|
54
53
|
_FuncPtr: type[_FuncPointer]
|
|
@@ -97,15 +96,21 @@ class _NamedFuncPointer(_FuncPointer):
|
|
|
97
96
|
__name__: str
|
|
98
97
|
|
|
99
98
|
def CFUNCTYPE(
|
|
100
|
-
restype: type[_CData] | None,
|
|
99
|
+
restype: type[_CData | _CDataType] | None,
|
|
100
|
+
*argtypes: type[_CData | _CDataType],
|
|
101
|
+
use_errno: bool = ...,
|
|
102
|
+
use_last_error: bool = ...,
|
|
101
103
|
) -> type[_FuncPointer]: ...
|
|
102
104
|
|
|
103
105
|
if sys.platform == "win32":
|
|
104
106
|
def WINFUNCTYPE(
|
|
105
|
-
restype: type[_CData] | None,
|
|
107
|
+
restype: type[_CData | _CDataType] | None,
|
|
108
|
+
*argtypes: type[_CData | _CDataType],
|
|
109
|
+
use_errno: bool = ...,
|
|
110
|
+
use_last_error: bool = ...,
|
|
106
111
|
) -> type[_FuncPointer]: ...
|
|
107
112
|
|
|
108
|
-
def PYFUNCTYPE(restype: type[_CData] | None, *argtypes: type[_CData]) -> type[_FuncPointer]: ...
|
|
113
|
+
def PYFUNCTYPE(restype: type[_CData | _CDataType] | None, *argtypes: type[_CData | _CDataType]) -> type[_FuncPointer]: ...
|
|
109
114
|
|
|
110
115
|
# Any type that can be implicitly converted to c_void_p when passed as a C function argument.
|
|
111
116
|
# (bytes is not included here, see below.)
|
|
@@ -118,12 +123,17 @@ _CVoidConstPLike: TypeAlias = _CVoidPLike | bytes
|
|
|
118
123
|
|
|
119
124
|
_CastT = TypeVar("_CastT", bound=_CanCastTo)
|
|
120
125
|
|
|
121
|
-
def cast(obj: _CData | _CArgObject | int, typ: type[_CastT]) -> _CastT: ...
|
|
126
|
+
def cast(obj: _CData | _CDataType | _CArgObject | int, typ: type[_CastT]) -> _CastT: ...
|
|
122
127
|
def create_string_buffer(init: int | bytes, size: int | None = None) -> Array[c_char]: ...
|
|
123
128
|
|
|
124
129
|
c_buffer = create_string_buffer
|
|
125
130
|
|
|
126
131
|
def create_unicode_buffer(init: int | str, size: int | None = None) -> Array[c_wchar]: ...
|
|
132
|
+
@deprecated("Deprecated in Python 3.13; removal scheduled for Python 3.15")
|
|
133
|
+
def SetPointerType(
|
|
134
|
+
pointer: type[_Pointer[Any]], cls: Any # noqa: F811 # Redefinition of unused `pointer` from line 22
|
|
135
|
+
) -> None: ...
|
|
136
|
+
def ARRAY(typ: _CT, len: int) -> Array[_CT]: ... # Soft Deprecated, no plans to remove
|
|
127
137
|
|
|
128
138
|
if sys.platform == "win32":
|
|
129
139
|
def DllCanUnloadNow() -> int: ...
|
|
@@ -132,12 +142,12 @@ if sys.platform == "win32":
|
|
|
132
142
|
|
|
133
143
|
def memmove(dst: _CVoidPLike, src: _CVoidConstPLike, count: int) -> int: ...
|
|
134
144
|
def memset(dst: _CVoidPLike, c: int, count: int) -> int: ...
|
|
135
|
-
def string_at(
|
|
145
|
+
def string_at(ptr: _CVoidConstPLike, size: int = -1) -> bytes: ...
|
|
136
146
|
|
|
137
147
|
if sys.platform == "win32":
|
|
138
148
|
def WinError(code: int | None = None, descr: str | None = None) -> OSError: ...
|
|
139
149
|
|
|
140
|
-
def wstring_at(
|
|
150
|
+
def wstring_at(ptr: _CVoidConstPLike, size: int = -1) -> str: ...
|
|
141
151
|
|
|
142
152
|
class c_byte(_SimpleCData[int]): ...
|
|
143
153
|
|
|
@@ -146,6 +156,8 @@ class c_char(_SimpleCData[bytes]):
|
|
|
146
156
|
|
|
147
157
|
class c_char_p(_PointerLike, _SimpleCData[bytes | None]):
|
|
148
158
|
def __init__(self, value: int | bytes | None = ...) -> None: ...
|
|
159
|
+
@classmethod
|
|
160
|
+
def from_param(cls, value: Any, /) -> Self | _CArgObject: ...
|
|
149
161
|
|
|
150
162
|
class c_double(_SimpleCData[float]): ...
|
|
151
163
|
class c_longdouble(_SimpleCData[float]): ... # can be an alias for c_double
|
|
@@ -161,7 +173,13 @@ class c_uint(_SimpleCData[int]): ... # can be an alias for c_ulong
|
|
|
161
173
|
class c_ulong(_SimpleCData[int]): ...
|
|
162
174
|
class c_ulonglong(_SimpleCData[int]): ... # can be an alias for c_ulong
|
|
163
175
|
class c_ushort(_SimpleCData[int]): ...
|
|
164
|
-
|
|
176
|
+
|
|
177
|
+
class c_void_p(_PointerLike, _SimpleCData[int | None]):
|
|
178
|
+
@classmethod
|
|
179
|
+
def from_param(cls, value: Any, /) -> Self | _CArgObject: ...
|
|
180
|
+
|
|
181
|
+
c_voidp = c_void_p # backwards compatibility (to a bug)
|
|
182
|
+
|
|
165
183
|
class c_wchar(_SimpleCData[str]): ...
|
|
166
184
|
|
|
167
185
|
c_int8 = c_byte
|
|
@@ -180,6 +198,8 @@ class c_uint64(_SimpleCData[int]): ...
|
|
|
180
198
|
|
|
181
199
|
class c_wchar_p(_PointerLike, _SimpleCData[str | None]):
|
|
182
200
|
def __init__(self, value: int | str | None = ...) -> None: ...
|
|
201
|
+
@classmethod
|
|
202
|
+
def from_param(cls, value: Any, /) -> Self | _CArgObject: ...
|
|
183
203
|
|
|
184
204
|
class c_bool(_SimpleCData[bool]):
|
|
185
205
|
def __init__(self, value: bool = ...) -> None: ...
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__: str
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
from collections.abc import Mapping
|
|
2
|
+
from ctypes.macholib.dylib import dylib_info as dylib_info
|
|
3
|
+
from ctypes.macholib.framework import framework_info as framework_info
|
|
4
|
+
|
|
5
|
+
__all__ = ["dyld_find", "framework_find", "framework_info", "dylib_info"]
|
|
6
|
+
|
|
7
|
+
def dyld_find(name: str, executable_path: str | None = None, env: Mapping[str, str] | None = None) -> str: ...
|
|
8
|
+
def framework_find(fn: str, executable_path: str | None = None, env: Mapping[str, str] | None = None) -> str: ...
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
from typing import TypedDict, type_check_only
|
|
2
|
+
|
|
3
|
+
__all__ = ["dylib_info"]
|
|
4
|
+
|
|
5
|
+
# Actual result is produced by re.match.groupdict()
|
|
6
|
+
@type_check_only
|
|
7
|
+
class _DylibInfo(TypedDict):
|
|
8
|
+
location: str
|
|
9
|
+
name: str
|
|
10
|
+
shortname: str
|
|
11
|
+
version: str | None
|
|
12
|
+
suffix: str | None
|
|
13
|
+
|
|
14
|
+
def dylib_info(filename: str) -> _DylibInfo | None: ...
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
from typing import TypedDict, type_check_only
|
|
2
|
+
|
|
3
|
+
__all__ = ["framework_info"]
|
|
4
|
+
|
|
5
|
+
# Actual result is produced by re.match.groupdict()
|
|
6
|
+
@type_check_only
|
|
7
|
+
class _FrameworkInfo(TypedDict):
|
|
8
|
+
location: str
|
|
9
|
+
name: str
|
|
10
|
+
shortname: str
|
|
11
|
+
version: str | None
|
|
12
|
+
suffix: str | None
|
|
13
|
+
|
|
14
|
+
def framework_info(filename: str) -> _FrameworkInfo | None: ...
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
+
from _ctypes import _CArgObject, _CField
|
|
1
2
|
from ctypes import (
|
|
2
3
|
Array,
|
|
3
4
|
Structure,
|
|
4
|
-
_CField,
|
|
5
5
|
_Pointer,
|
|
6
6
|
_SimpleCData,
|
|
7
7
|
c_byte,
|
|
@@ -21,8 +21,8 @@ from ctypes import (
|
|
|
21
21
|
c_wchar,
|
|
22
22
|
c_wchar_p,
|
|
23
23
|
)
|
|
24
|
-
from typing import TypeVar
|
|
25
|
-
from typing_extensions import TypeAlias
|
|
24
|
+
from typing import Any, TypeVar
|
|
25
|
+
from typing_extensions import Self, TypeAlias
|
|
26
26
|
|
|
27
27
|
BYTE = c_byte
|
|
28
28
|
WORD = c_ushort
|
|
@@ -241,10 +241,16 @@ LPBYTE = PBYTE
|
|
|
241
241
|
PBOOLEAN = PBYTE
|
|
242
242
|
|
|
243
243
|
# LP_c_char
|
|
244
|
-
class PCHAR(_Pointer[CHAR]):
|
|
244
|
+
class PCHAR(_Pointer[CHAR]):
|
|
245
|
+
# this is inherited from ctypes.c_char_p, kind of.
|
|
246
|
+
@classmethod
|
|
247
|
+
def from_param(cls, value: Any, /) -> Self | _CArgObject: ...
|
|
245
248
|
|
|
246
249
|
# LP_c_wchar
|
|
247
|
-
class PWCHAR(_Pointer[WCHAR]):
|
|
250
|
+
class PWCHAR(_Pointer[WCHAR]):
|
|
251
|
+
# inherited from ctypes.c_wchar_p, kind of
|
|
252
|
+
@classmethod
|
|
253
|
+
def from_param(cls, value: Any, /) -> Self | _CArgObject: ...
|
|
248
254
|
|
|
249
255
|
# LP_c_void_p
|
|
250
256
|
class PHANDLE(_Pointer[HANDLE]): ...
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
+
import sys
|
|
1
2
|
from _curses import *
|
|
2
3
|
from _curses import window as window
|
|
4
|
+
from _typeshed import structseq
|
|
3
5
|
from collections.abc import Callable
|
|
4
|
-
from typing import TypeVar
|
|
6
|
+
from typing import Final, TypeVar, final, type_check_only
|
|
5
7
|
from typing_extensions import Concatenate, ParamSpec
|
|
6
8
|
|
|
7
9
|
# NOTE: The _curses module is ordinarily only available on Unix, but the
|
|
@@ -25,3 +27,19 @@ def wrapper(func: Callable[Concatenate[window, _P], _T], /, *arg: _P.args, **kwd
|
|
|
25
27
|
# it was mapped to the name 'window' in 3.8.
|
|
26
28
|
# Kept here as a legacy alias in case any third-party code is relying on it.
|
|
27
29
|
_CursesWindow = window
|
|
30
|
+
|
|
31
|
+
# At runtime this class is unexposed and calls itself curses.ncurses_version.
|
|
32
|
+
# That name would conflict with the actual curses.ncurses_version, which is
|
|
33
|
+
# an instance of this class.
|
|
34
|
+
@final
|
|
35
|
+
@type_check_only
|
|
36
|
+
class _ncurses_version(structseq[int], tuple[int, int, int]):
|
|
37
|
+
if sys.version_info >= (3, 10):
|
|
38
|
+
__match_args__: Final = ("major", "minor", "patch")
|
|
39
|
+
|
|
40
|
+
@property
|
|
41
|
+
def major(self) -> int: ...
|
|
42
|
+
@property
|
|
43
|
+
def minor(self) -> int: ...
|
|
44
|
+
@property
|
|
45
|
+
def patch(self) -> int: ...
|
|
@@ -1,34 +1 @@
|
|
|
1
|
-
from
|
|
2
|
-
|
|
3
|
-
version: str
|
|
4
|
-
|
|
5
|
-
class _Curses_Panel: # type is <class '_curses_panel.curses panel'> (note the space in the class name)
|
|
6
|
-
def above(self) -> _Curses_Panel: ...
|
|
7
|
-
def below(self) -> _Curses_Panel: ...
|
|
8
|
-
def bottom(self) -> None: ...
|
|
9
|
-
def hidden(self) -> bool: ...
|
|
10
|
-
def hide(self) -> None: ...
|
|
11
|
-
def move(self, y: int, x: int) -> None: ...
|
|
12
|
-
def replace(self, win: window) -> None: ...
|
|
13
|
-
def set_userptr(self, obj: object) -> None: ...
|
|
14
|
-
def show(self) -> None: ...
|
|
15
|
-
def top(self) -> None: ...
|
|
16
|
-
def userptr(self) -> object: ...
|
|
17
|
-
def window(self) -> window: ...
|
|
18
|
-
|
|
19
|
-
def bottom_panel() -> _Curses_Panel:
|
|
20
|
-
"""Return the bottom panel in the panel stack."""
|
|
21
|
-
...
|
|
22
|
-
def new_panel(win: window, /) -> _Curses_Panel:
|
|
23
|
-
"""Return a panel object, associating it with the given window win."""
|
|
24
|
-
...
|
|
25
|
-
def top_panel() -> _Curses_Panel:
|
|
26
|
-
"""Return the top panel in the panel stack."""
|
|
27
|
-
...
|
|
28
|
-
def update_panels() -> _Curses_Panel:
|
|
29
|
-
"""
|
|
30
|
-
Updates the virtual screen after changes in the panel stack.
|
|
31
|
-
|
|
32
|
-
This does not call curses.doupdate(), so you'll have to do this yourself.
|
|
33
|
-
"""
|
|
34
|
-
...
|
|
1
|
+
from _curses_panel import *
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import sys
|
|
2
2
|
from abc import abstractmethod
|
|
3
3
|
from time import struct_time
|
|
4
|
-
from typing import ClassVar, Final,
|
|
5
|
-
from typing_extensions import Self, TypeAlias, deprecated
|
|
4
|
+
from typing import ClassVar, Final, NoReturn, SupportsIndex, final, overload, type_check_only
|
|
5
|
+
from typing_extensions import CapsuleType, Self, TypeAlias, deprecated
|
|
6
6
|
|
|
7
7
|
if sys.version_info >= (3, 11):
|
|
8
8
|
__all__ = ("date", "datetime", "time", "timedelta", "timezone", "tzinfo", "MINYEAR", "MAXYEAR", "UTC")
|
|
@@ -58,10 +58,17 @@ if sys.version_info >= (3, 11):
|
|
|
58
58
|
UTC: timezone
|
|
59
59
|
|
|
60
60
|
if sys.version_info >= (3, 9):
|
|
61
|
-
class
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
61
|
+
# This class calls itself datetime.IsoCalendarDate. It's neither
|
|
62
|
+
# NamedTuple nor structseq.
|
|
63
|
+
@final
|
|
64
|
+
@type_check_only
|
|
65
|
+
class _IsoCalendarDate(tuple[int, int, int]):
|
|
66
|
+
@property
|
|
67
|
+
def year(self) -> int: ...
|
|
68
|
+
@property
|
|
69
|
+
def week(self) -> int: ...
|
|
70
|
+
@property
|
|
71
|
+
def weekday(self) -> int: ...
|
|
65
72
|
|
|
66
73
|
class date:
|
|
67
74
|
min: ClassVar[date]
|
|
@@ -573,3 +580,5 @@ class datetime(date):
|
|
|
573
580
|
def __sub__(self, value: timedelta, /) -> Self:
|
|
574
581
|
"""Return self-value."""
|
|
575
582
|
...
|
|
583
|
+
|
|
584
|
+
datetime_CAPI: CapsuleType
|
|
@@ -2,7 +2,7 @@ import sys
|
|
|
2
2
|
from _typeshed import StrOrBytesPath
|
|
3
3
|
from collections.abc import Iterator, MutableMapping
|
|
4
4
|
from types import TracebackType
|
|
5
|
-
from typing import Literal
|
|
5
|
+
from typing import Literal, type_check_only
|
|
6
6
|
from typing_extensions import Self, TypeAlias
|
|
7
7
|
|
|
8
8
|
__all__ = ["open", "whichdb", "error"]
|
|
@@ -89,6 +89,8 @@ class _Database(MutableMapping[_KeyType, bytes]):
|
|
|
89
89
|
self, exc_type: type[BaseException] | None, exc_val: BaseException | None, exc_tb: TracebackType | None
|
|
90
90
|
) -> None: ...
|
|
91
91
|
|
|
92
|
+
# This class is not exposed. It calls itself dbm.error.
|
|
93
|
+
@type_check_only
|
|
92
94
|
class _error(Exception): ...
|
|
93
95
|
|
|
94
96
|
error: tuple[type[_error], type[OSError]]
|
|
@@ -24,7 +24,8 @@ from _decimal import (
|
|
|
24
24
|
setcontext as setcontext,
|
|
25
25
|
)
|
|
26
26
|
from collections.abc import Container, Sequence
|
|
27
|
-
from
|
|
27
|
+
from types import TracebackType
|
|
28
|
+
from typing import Any, ClassVar, Literal, NamedTuple, final, overload, type_check_only
|
|
28
29
|
from typing_extensions import Self, TypeAlias
|
|
29
30
|
|
|
30
31
|
_Decimal: TypeAlias = Decimal | int
|
|
@@ -35,6 +36,14 @@ _TrapType: TypeAlias = type[DecimalException]
|
|
|
35
36
|
# At runtime, these classes are implemented in C as part of "_decimal".
|
|
36
37
|
# However, they consider themselves to live in "decimal", so we'll put them here.
|
|
37
38
|
|
|
39
|
+
# This type isn't exposed at runtime. It calls itself decimal.ContextManager
|
|
40
|
+
@final
|
|
41
|
+
@type_check_only
|
|
42
|
+
class _ContextManager:
|
|
43
|
+
def __init__(self, new_context: Context) -> None: ...
|
|
44
|
+
def __enter__(self) -> Context: ...
|
|
45
|
+
def __exit__(self, t: type[BaseException] | None, v: BaseException | None, tb: TracebackType | None) -> None: ...
|
|
46
|
+
|
|
38
47
|
class DecimalTuple(NamedTuple):
|
|
39
48
|
sign: int
|
|
40
49
|
digits: tuple[int, ...]
|
|
@@ -165,7 +165,7 @@ class CCompiler:
|
|
|
165
165
|
def execute(
|
|
166
166
|
self, func: Callable[[Unpack[_Ts]], Unused], args: tuple[Unpack[_Ts]], msg: str | None = None, level: int = 1
|
|
167
167
|
) -> None: ...
|
|
168
|
-
def spawn(self, cmd:
|
|
168
|
+
def spawn(self, cmd: Iterable[str]) -> None: ...
|
|
169
169
|
def mkpath(self, name: str, mode: int = 0o777) -> None: ...
|
|
170
170
|
@overload
|
|
171
171
|
def move_file(self, src: StrPath, dst: _StrPathT) -> _StrPathT | str: ...
|
|
@@ -1,6 +1,10 @@
|
|
|
1
|
+
from collections.abc import Iterable
|
|
1
2
|
from typing import Literal
|
|
2
3
|
|
|
3
4
|
def spawn(
|
|
4
|
-
cmd:
|
|
5
|
+
cmd: Iterable[str],
|
|
6
|
+
search_path: bool | Literal[0, 1] = 1,
|
|
7
|
+
verbose: bool | Literal[0, 1] = 0,
|
|
8
|
+
dry_run: bool | Literal[0, 1] = 0,
|
|
5
9
|
) -> None: ...
|
|
6
10
|
def find_executable(executable: str, path: str | None = None) -> str | None: ...
|
|
@@ -3,7 +3,7 @@ import types
|
|
|
3
3
|
import unittest
|
|
4
4
|
from _typeshed import ExcInfo
|
|
5
5
|
from collections.abc import Callable
|
|
6
|
-
from typing import Any,
|
|
6
|
+
from typing import Any, NamedTuple, type_check_only
|
|
7
7
|
from typing_extensions import Self, TypeAlias
|
|
8
8
|
|
|
9
9
|
__all__ = [
|
|
@@ -42,17 +42,15 @@ __all__ = [
|
|
|
42
42
|
"debug",
|
|
43
43
|
]
|
|
44
44
|
|
|
45
|
-
# MyPy errors on conditionals within named tuples.
|
|
46
|
-
|
|
47
45
|
if sys.version_info >= (3, 13):
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
skipped: int
|
|
46
|
+
@type_check_only
|
|
47
|
+
class _TestResultsBase(NamedTuple):
|
|
51
48
|
failed: int
|
|
52
49
|
attempted: int
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
50
|
+
|
|
51
|
+
class TestResults(_TestResultsBase):
|
|
52
|
+
def __new__(cls, failed: int, attempted: int, *, skipped: int = 0) -> Self: ...
|
|
53
|
+
skipped: int
|
|
56
54
|
|
|
57
55
|
else:
|
|
58
56
|
class TestResults(NamedTuple):
|
|
@@ -4,6 +4,29 @@ from email.policy import Policy
|
|
|
4
4
|
from typing import IO
|
|
5
5
|
from typing_extensions import TypeAlias
|
|
6
6
|
|
|
7
|
+
# At runtime, listing submodules in __all__ without them being imported is
|
|
8
|
+
# valid, and causes them to be included in a star import. See #6523
|
|
9
|
+
|
|
10
|
+
__all__ = [ # noqa: F822 # Undefined names in __all__
|
|
11
|
+
"base64mime", # pyright: ignore[reportUnsupportedDunderAll]
|
|
12
|
+
"charset", # pyright: ignore[reportUnsupportedDunderAll]
|
|
13
|
+
"encoders", # pyright: ignore[reportUnsupportedDunderAll]
|
|
14
|
+
"errors", # pyright: ignore[reportUnsupportedDunderAll]
|
|
15
|
+
"feedparser", # pyright: ignore[reportUnsupportedDunderAll]
|
|
16
|
+
"generator", # pyright: ignore[reportUnsupportedDunderAll]
|
|
17
|
+
"header", # pyright: ignore[reportUnsupportedDunderAll]
|
|
18
|
+
"iterators", # pyright: ignore[reportUnsupportedDunderAll]
|
|
19
|
+
"message", # pyright: ignore[reportUnsupportedDunderAll]
|
|
20
|
+
"message_from_file",
|
|
21
|
+
"message_from_binary_file",
|
|
22
|
+
"message_from_string",
|
|
23
|
+
"message_from_bytes",
|
|
24
|
+
"mime", # pyright: ignore[reportUnsupportedDunderAll]
|
|
25
|
+
"parser", # pyright: ignore[reportUnsupportedDunderAll]
|
|
26
|
+
"quoprimime", # pyright: ignore[reportUnsupportedDunderAll]
|
|
27
|
+
"utils", # pyright: ignore[reportUnsupportedDunderAll]
|
|
28
|
+
]
|
|
29
|
+
|
|
7
30
|
# Definitions imported by multiple submodules in typeshed
|
|
8
31
|
_ParamType: TypeAlias = str | tuple[str | None, str | None, str] # noqa: Y047
|
|
9
32
|
_ParamsType: TypeAlias = str | None | tuple[str, str | None, str] # noqa: Y047
|
|
@@ -12,18 +35,3 @@ def message_from_string(s: str, _class: Callable[[], Message] = ..., *, policy:
|
|
|
12
35
|
def message_from_bytes(s: bytes | bytearray, _class: Callable[[], Message] = ..., *, policy: Policy = ...) -> Message: ...
|
|
13
36
|
def message_from_file(fp: IO[str], _class: Callable[[], Message] = ..., *, policy: Policy = ...) -> Message: ...
|
|
14
37
|
def message_from_binary_file(fp: IO[bytes], _class: Callable[[], Message] = ..., *, policy: Policy = ...) -> Message: ...
|
|
15
|
-
|
|
16
|
-
# Names in __all__ with no definition:
|
|
17
|
-
# base64mime
|
|
18
|
-
# charset
|
|
19
|
-
# encoders
|
|
20
|
-
# errors
|
|
21
|
-
# feedparser
|
|
22
|
-
# generator
|
|
23
|
-
# header
|
|
24
|
-
# iterators
|
|
25
|
-
# message
|
|
26
|
-
# mime
|
|
27
|
-
# parser
|
|
28
|
-
# quoprimime
|
|
29
|
-
# utils
|
|
@@ -5,6 +5,8 @@ from email.message import Message
|
|
|
5
5
|
from typing import Generic, Protocol, TypeVar, type_check_only
|
|
6
6
|
from typing_extensions import Self
|
|
7
7
|
|
|
8
|
+
__all__ = ["Policy", "Compat32", "compat32"]
|
|
9
|
+
|
|
8
10
|
_MessageT = TypeVar("_MessageT", bound=Message, default=Message)
|
|
9
11
|
|
|
10
12
|
@type_check_only
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
aliases: dict[str, str]
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import codecs
|
|
2
|
+
from _typeshed import ReadableBuffer
|
|
3
|
+
|
|
4
|
+
class Codec(codecs.Codec):
|
|
5
|
+
# At runtime, this is codecs.ascii_encode
|
|
6
|
+
@staticmethod
|
|
7
|
+
def encode(str: str, errors: str | None = None, /) -> tuple[bytes, int]: ...
|
|
8
|
+
# At runtime, this is codecs.ascii_decode
|
|
9
|
+
@staticmethod
|
|
10
|
+
def decode(data: ReadableBuffer, errors: str | None = None, /) -> tuple[str, int]: ...
|
|
11
|
+
|
|
12
|
+
class IncrementalEncoder(codecs.IncrementalEncoder):
|
|
13
|
+
def encode(self, input: str, final: bool = False) -> bytes: ...
|
|
14
|
+
|
|
15
|
+
class IncrementalDecoder(codecs.IncrementalDecoder):
|
|
16
|
+
def decode(self, input: ReadableBuffer, final: bool = False) -> str: ...
|
|
17
|
+
|
|
18
|
+
class StreamWriter(Codec, codecs.StreamWriter): ...
|
|
19
|
+
class StreamReader(Codec, codecs.StreamReader): ...
|
|
20
|
+
|
|
21
|
+
# Note: encode being a decode function and decode being an encode function is accurate to runtime.
|
|
22
|
+
class StreamConverter(StreamWriter, StreamReader): # type: ignore[misc] # incompatible methods in base classes
|
|
23
|
+
# At runtime, this is codecs.ascii_decode
|
|
24
|
+
@staticmethod
|
|
25
|
+
def encode(data: ReadableBuffer, errors: str | None = None, /) -> tuple[str, int]: ... # type: ignore[override]
|
|
26
|
+
# At runtime, this is codecs.ascii_encode
|
|
27
|
+
@staticmethod
|
|
28
|
+
def decode(str: str, errors: str | None = None, /) -> tuple[bytes, int]: ... # type: ignore[override]
|
|
29
|
+
|
|
30
|
+
def getregentry() -> codecs.CodecInfo: ...
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import codecs
|
|
2
|
+
from _typeshed import ReadableBuffer
|
|
3
|
+
from typing import ClassVar
|
|
4
|
+
|
|
5
|
+
# This codec is bytes to bytes.
|
|
6
|
+
|
|
7
|
+
def base64_encode(input: ReadableBuffer, errors: str = "strict") -> tuple[bytes, int]: ...
|
|
8
|
+
def base64_decode(input: ReadableBuffer, errors: str = "strict") -> tuple[bytes, int]: ...
|
|
9
|
+
|
|
10
|
+
class Codec(codecs.Codec):
|
|
11
|
+
def encode(self, input: ReadableBuffer, errors: str = "strict") -> tuple[bytes, int]: ... # type: ignore[override]
|
|
12
|
+
def decode(self, input: ReadableBuffer, errors: str = "strict") -> tuple[bytes, int]: ... # type: ignore[override]
|
|
13
|
+
|
|
14
|
+
class IncrementalEncoder(codecs.IncrementalEncoder):
|
|
15
|
+
def encode(self, input: ReadableBuffer, final: bool = False) -> bytes: ... # type: ignore[override]
|
|
16
|
+
|
|
17
|
+
class IncrementalDecoder(codecs.IncrementalDecoder):
|
|
18
|
+
def decode(self, input: ReadableBuffer, final: bool = False) -> bytes: ... # type: ignore[override]
|
|
19
|
+
|
|
20
|
+
class StreamWriter(Codec, codecs.StreamWriter):
|
|
21
|
+
charbuffertype: ClassVar[type] = ...
|
|
22
|
+
|
|
23
|
+
class StreamReader(Codec, codecs.StreamReader):
|
|
24
|
+
charbuffertype: ClassVar[type] = ...
|
|
25
|
+
|
|
26
|
+
def getregentry() -> codecs.CodecInfo: ...
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import _multibytecodec as mbc
|
|
2
|
+
import codecs
|
|
3
|
+
from typing import ClassVar
|
|
4
|
+
|
|
5
|
+
codec: mbc._MultibyteCodec
|
|
6
|
+
|
|
7
|
+
class Codec(codecs.Codec):
|
|
8
|
+
encode = codec.encode # type: ignore[assignment] # pyright: ignore[reportAssignmentType]
|
|
9
|
+
decode = codec.decode # type: ignore[assignment] # pyright: ignore[reportAssignmentType]
|
|
10
|
+
|
|
11
|
+
class IncrementalEncoder(mbc.MultibyteIncrementalEncoder, codecs.IncrementalEncoder): # type: ignore[misc]
|
|
12
|
+
codec: ClassVar[mbc._MultibyteCodec] = ...
|
|
13
|
+
|
|
14
|
+
class IncrementalDecoder(mbc.MultibyteIncrementalDecoder, codecs.IncrementalDecoder):
|
|
15
|
+
codec: ClassVar[mbc._MultibyteCodec] = ...
|
|
16
|
+
|
|
17
|
+
class StreamReader(Codec, mbc.MultibyteStreamReader, codecs.StreamReader): # type: ignore[misc]
|
|
18
|
+
codec: ClassVar[mbc._MultibyteCodec] = ...
|
|
19
|
+
|
|
20
|
+
class StreamWriter(Codec, mbc.MultibyteStreamWriter, codecs.StreamWriter):
|
|
21
|
+
codec: ClassVar[mbc._MultibyteCodec] = ...
|
|
22
|
+
|
|
23
|
+
def getregentry() -> codecs.CodecInfo: ...
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import _multibytecodec as mbc
|
|
2
|
+
import codecs
|
|
3
|
+
from typing import ClassVar
|
|
4
|
+
|
|
5
|
+
codec: mbc._MultibyteCodec
|
|
6
|
+
|
|
7
|
+
class Codec(codecs.Codec):
|
|
8
|
+
encode = codec.encode # type: ignore[assignment] # pyright: ignore[reportAssignmentType]
|
|
9
|
+
decode = codec.decode # type: ignore[assignment] # pyright: ignore[reportAssignmentType]
|
|
10
|
+
|
|
11
|
+
class IncrementalEncoder(mbc.MultibyteIncrementalEncoder, codecs.IncrementalEncoder): # type: ignore[misc]
|
|
12
|
+
codec: ClassVar[mbc._MultibyteCodec] = ...
|
|
13
|
+
|
|
14
|
+
class IncrementalDecoder(mbc.MultibyteIncrementalDecoder, codecs.IncrementalDecoder):
|
|
15
|
+
codec: ClassVar[mbc._MultibyteCodec] = ...
|
|
16
|
+
|
|
17
|
+
class StreamReader(Codec, mbc.MultibyteStreamReader, codecs.StreamReader): # type: ignore[misc]
|
|
18
|
+
codec: ClassVar[mbc._MultibyteCodec] = ...
|
|
19
|
+
|
|
20
|
+
class StreamWriter(Codec, mbc.MultibyteStreamWriter, codecs.StreamWriter):
|
|
21
|
+
codec: ClassVar[mbc._MultibyteCodec] = ...
|
|
22
|
+
|
|
23
|
+
def getregentry() -> codecs.CodecInfo: ...
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import codecs
|
|
2
|
+
from _typeshed import ReadableBuffer
|
|
3
|
+
from typing import ClassVar
|
|
4
|
+
|
|
5
|
+
# This codec is bytes to bytes.
|
|
6
|
+
|
|
7
|
+
def bz2_encode(input: ReadableBuffer, errors: str = "strict") -> tuple[bytes, int]: ...
|
|
8
|
+
def bz2_decode(input: ReadableBuffer, errors: str = "strict") -> tuple[bytes, int]: ...
|
|
9
|
+
|
|
10
|
+
class Codec(codecs.Codec):
|
|
11
|
+
def encode(self, input: ReadableBuffer, errors: str = "strict") -> tuple[bytes, int]: ... # type: ignore[override]
|
|
12
|
+
def decode(self, input: ReadableBuffer, errors: str = "strict") -> tuple[bytes, int]: ... # type: ignore[override]
|
|
13
|
+
|
|
14
|
+
class IncrementalEncoder(codecs.IncrementalEncoder):
|
|
15
|
+
def encode(self, input: ReadableBuffer, final: bool = False) -> bytes: ... # type: ignore[override]
|
|
16
|
+
|
|
17
|
+
class IncrementalDecoder(codecs.IncrementalDecoder):
|
|
18
|
+
def decode(self, input: ReadableBuffer, final: bool = False) -> bytes: ... # type: ignore[override]
|
|
19
|
+
|
|
20
|
+
class StreamWriter(Codec, codecs.StreamWriter):
|
|
21
|
+
charbuffertype: ClassVar[type] = ...
|
|
22
|
+
|
|
23
|
+
class StreamReader(Codec, codecs.StreamReader):
|
|
24
|
+
charbuffertype: ClassVar[type] = ...
|
|
25
|
+
|
|
26
|
+
def getregentry() -> codecs.CodecInfo: ...
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import codecs
|
|
2
|
+
from _codecs import _CharMap
|
|
3
|
+
from _typeshed import ReadableBuffer
|
|
4
|
+
|
|
5
|
+
class Codec(codecs.Codec):
|
|
6
|
+
# At runtime, this is codecs.charmap_encode
|
|
7
|
+
@staticmethod
|
|
8
|
+
def encode(str: str, errors: str | None = None, mapping: _CharMap | None = None, /) -> tuple[bytes, int]: ...
|
|
9
|
+
# At runtime, this is codecs.charmap_decode
|
|
10
|
+
@staticmethod
|
|
11
|
+
def decode(data: ReadableBuffer, errors: str | None = None, mapping: _CharMap | None = None, /) -> tuple[str, int]: ...
|
|
12
|
+
|
|
13
|
+
class IncrementalEncoder(codecs.IncrementalEncoder):
|
|
14
|
+
mapping: _CharMap | None
|
|
15
|
+
def __init__(self, errors: str = "strict", mapping: _CharMap | None = None) -> None: ...
|
|
16
|
+
def encode(self, input: str, final: bool = False) -> bytes: ...
|
|
17
|
+
|
|
18
|
+
class IncrementalDecoder(codecs.IncrementalDecoder):
|
|
19
|
+
mapping: _CharMap | None
|
|
20
|
+
def __init__(self, errors: str = "strict", mapping: _CharMap | None = None) -> None: ...
|
|
21
|
+
def decode(self, input: ReadableBuffer, final: bool = False) -> str: ...
|
|
22
|
+
|
|
23
|
+
class StreamWriter(Codec, codecs.StreamWriter):
|
|
24
|
+
mapping: _CharMap | None
|
|
25
|
+
def __init__(self, stream: codecs._WritableStream, errors: str = "strict", mapping: _CharMap | None = None) -> None: ...
|
|
26
|
+
def encode(self, input: str, errors: str = "strict") -> tuple[bytes, int]: ... # type: ignore[override]
|
|
27
|
+
|
|
28
|
+
class StreamReader(Codec, codecs.StreamReader):
|
|
29
|
+
mapping: _CharMap | None
|
|
30
|
+
def __init__(self, stream: codecs._ReadableStream, errors: str = "strict", mapping: _CharMap | None = None) -> None: ...
|
|
31
|
+
def decode(self, input: ReadableBuffer, errors: str = "strict") -> tuple[str, int]: ... # type: ignore[override]
|
|
32
|
+
|
|
33
|
+
def getregentry() -> codecs.CodecInfo: ...
|