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
|
@@ -1,13 +1,18 @@
|
|
|
1
1
|
import _tkinter
|
|
2
2
|
import sys
|
|
3
|
-
from _typeshed import Incomplete, MaybeNone,
|
|
3
|
+
from _typeshed import Incomplete, MaybeNone, StrOrBytesPath
|
|
4
4
|
from collections.abc import Callable, Iterable, Mapping, Sequence
|
|
5
5
|
from tkinter.constants import *
|
|
6
6
|
from tkinter.font import _FontDescription
|
|
7
7
|
from types import TracebackType
|
|
8
|
-
from typing import Any, Generic, Literal, NamedTuple, TypedDict, TypeVar, overload, type_check_only
|
|
8
|
+
from typing import Any, Generic, Literal, NamedTuple, Protocol, TypedDict, TypeVar, overload, type_check_only
|
|
9
9
|
from typing_extensions import TypeAlias, TypeVarTuple, Unpack, deprecated
|
|
10
10
|
|
|
11
|
+
if sys.version_info >= (3, 11):
|
|
12
|
+
from enum import StrEnum
|
|
13
|
+
else:
|
|
14
|
+
from enum import Enum
|
|
15
|
+
|
|
11
16
|
if sys.version_info >= (3, 9):
|
|
12
17
|
__all__ = [
|
|
13
18
|
"TclError",
|
|
@@ -186,53 +191,99 @@ _XYScrollCommand: TypeAlias = str | Callable[[float, float], object]
|
|
|
186
191
|
_TakeFocusValue: TypeAlias = bool | Literal[0, 1, ""] | Callable[[str], bool | None] # -takefocus in manual page named 'options'
|
|
187
192
|
|
|
188
193
|
if sys.version_info >= (3, 11):
|
|
189
|
-
|
|
194
|
+
@type_check_only
|
|
195
|
+
class _VersionInfoTypeBase(NamedTuple):
|
|
190
196
|
major: int
|
|
191
197
|
minor: int
|
|
192
198
|
micro: int
|
|
193
199
|
releaselevel: str
|
|
194
200
|
serial: int
|
|
195
201
|
|
|
196
|
-
class
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
202
|
+
class _VersionInfoType(_VersionInfoTypeBase): ...
|
|
203
|
+
|
|
204
|
+
if sys.version_info >= (3, 11):
|
|
205
|
+
class EventType(StrEnum):
|
|
206
|
+
Activate = "36"
|
|
207
|
+
ButtonPress = "4"
|
|
208
|
+
Button = ButtonPress
|
|
209
|
+
ButtonRelease = "5"
|
|
210
|
+
Circulate = "26"
|
|
211
|
+
CirculateRequest = "27"
|
|
212
|
+
ClientMessage = "33"
|
|
213
|
+
Colormap = "32"
|
|
214
|
+
Configure = "22"
|
|
215
|
+
ConfigureRequest = "23"
|
|
216
|
+
Create = "16"
|
|
217
|
+
Deactivate = "37"
|
|
218
|
+
Destroy = "17"
|
|
219
|
+
Enter = "7"
|
|
220
|
+
Expose = "12"
|
|
221
|
+
FocusIn = "9"
|
|
222
|
+
FocusOut = "10"
|
|
223
|
+
GraphicsExpose = "13"
|
|
224
|
+
Gravity = "24"
|
|
225
|
+
KeyPress = "2"
|
|
226
|
+
Key = "2"
|
|
227
|
+
KeyRelease = "3"
|
|
228
|
+
Keymap = "11"
|
|
229
|
+
Leave = "8"
|
|
230
|
+
Map = "19"
|
|
231
|
+
MapRequest = "20"
|
|
232
|
+
Mapping = "34"
|
|
233
|
+
Motion = "6"
|
|
234
|
+
MouseWheel = "38"
|
|
235
|
+
NoExpose = "14"
|
|
236
|
+
Property = "28"
|
|
237
|
+
Reparent = "21"
|
|
238
|
+
ResizeRequest = "25"
|
|
239
|
+
Selection = "31"
|
|
240
|
+
SelectionClear = "29"
|
|
241
|
+
SelectionRequest = "30"
|
|
242
|
+
Unmap = "18"
|
|
243
|
+
VirtualEvent = "35"
|
|
244
|
+
Visibility = "15"
|
|
245
|
+
|
|
246
|
+
else:
|
|
247
|
+
class EventType(str, Enum):
|
|
248
|
+
Activate = "36"
|
|
249
|
+
ButtonPress = "4"
|
|
250
|
+
Button = ButtonPress
|
|
251
|
+
ButtonRelease = "5"
|
|
252
|
+
Circulate = "26"
|
|
253
|
+
CirculateRequest = "27"
|
|
254
|
+
ClientMessage = "33"
|
|
255
|
+
Colormap = "32"
|
|
256
|
+
Configure = "22"
|
|
257
|
+
ConfigureRequest = "23"
|
|
258
|
+
Create = "16"
|
|
259
|
+
Deactivate = "37"
|
|
260
|
+
Destroy = "17"
|
|
261
|
+
Enter = "7"
|
|
262
|
+
Expose = "12"
|
|
263
|
+
FocusIn = "9"
|
|
264
|
+
FocusOut = "10"
|
|
265
|
+
GraphicsExpose = "13"
|
|
266
|
+
Gravity = "24"
|
|
267
|
+
KeyPress = "2"
|
|
268
|
+
Key = "2"
|
|
269
|
+
KeyRelease = "3"
|
|
270
|
+
Keymap = "11"
|
|
271
|
+
Leave = "8"
|
|
272
|
+
Map = "19"
|
|
273
|
+
MapRequest = "20"
|
|
274
|
+
Mapping = "34"
|
|
275
|
+
Motion = "6"
|
|
276
|
+
MouseWheel = "38"
|
|
277
|
+
NoExpose = "14"
|
|
278
|
+
Property = "28"
|
|
279
|
+
Reparent = "21"
|
|
280
|
+
ResizeRequest = "25"
|
|
281
|
+
Selection = "31"
|
|
282
|
+
SelectionClear = "29"
|
|
283
|
+
SelectionRequest = "30"
|
|
284
|
+
Unmap = "18"
|
|
285
|
+
VirtualEvent = "35"
|
|
286
|
+
Visibility = "15"
|
|
236
287
|
|
|
237
288
|
_W = TypeVar("_W", bound=Misc)
|
|
238
289
|
# Events considered covariant because you should never assign to event.widget.
|
|
@@ -578,7 +629,8 @@ class Misc:
|
|
|
578
629
|
def __getitem__(self, key: str) -> Any: ...
|
|
579
630
|
def cget(self, key: str) -> Any: ...
|
|
580
631
|
def configure(self, cnf: Any = None) -> Any: ...
|
|
581
|
-
# TODO: config is an alias of configure, but adding that here creates
|
|
632
|
+
# TODO: config is an alias of configure, but adding that here creates
|
|
633
|
+
# conflict with the type of config in the subclasses. See #13149
|
|
582
634
|
|
|
583
635
|
class CallWrapper:
|
|
584
636
|
func: Incomplete
|
|
@@ -3405,11 +3457,14 @@ class OptionMenu(Menubutton):
|
|
|
3405
3457
|
# configure, config, cget are inherited from Menubutton
|
|
3406
3458
|
# destroy and __getitem__ are overridden, signature does not change
|
|
3407
3459
|
|
|
3408
|
-
#
|
|
3409
|
-
#
|
|
3410
|
-
# not
|
|
3460
|
+
# This matches tkinter's image classes (PhotoImage and BitmapImage)
|
|
3461
|
+
# and PIL's tkinter-compatible class (PIL.ImageTk.PhotoImage),
|
|
3462
|
+
# but not a plain PIL image that isn't tkinter compatible.
|
|
3463
|
+
# The reason is that PIL has width and height attributes, not methods.
|
|
3411
3464
|
@type_check_only
|
|
3412
|
-
class _Image:
|
|
3465
|
+
class _Image(Protocol):
|
|
3466
|
+
def width(self) -> int: ...
|
|
3467
|
+
def height(self) -> int: ...
|
|
3413
3468
|
|
|
3414
3469
|
@type_check_only
|
|
3415
3470
|
class _BitmapImageLike(_Image): ...
|
|
@@ -3428,9 +3483,7 @@ class Image(_Image):
|
|
|
3428
3483
|
def __getitem__(self, key): ...
|
|
3429
3484
|
configure: Incomplete
|
|
3430
3485
|
config: Incomplete
|
|
3431
|
-
def height(self) -> int: ...
|
|
3432
3486
|
def type(self): ...
|
|
3433
|
-
def width(self) -> int: ...
|
|
3434
3487
|
|
|
3435
3488
|
class PhotoImage(Image, _PhotoImageLike):
|
|
3436
3489
|
# This should be kept in sync with PIL.ImageTK.PhotoImage.__init__()
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import _tkinter
|
|
2
|
+
import itertools
|
|
2
3
|
import sys
|
|
3
4
|
import tkinter
|
|
4
|
-
from typing import Any, Final, Literal, TypedDict, overload
|
|
5
|
+
from typing import Any, ClassVar, Final, Literal, TypedDict, overload
|
|
5
6
|
from typing_extensions import TypeAlias
|
|
6
7
|
|
|
7
8
|
if sys.version_info >= (3, 9):
|
|
@@ -40,6 +41,7 @@ class _MetricsDict(TypedDict):
|
|
|
40
41
|
class Font:
|
|
41
42
|
name: str
|
|
42
43
|
delete_font: bool
|
|
44
|
+
counter: ClassVar[itertools.count[int]] # undocumented
|
|
43
45
|
def __init__(
|
|
44
46
|
self,
|
|
45
47
|
# In tkinter, 'root' refers to tkinter.Tk by convention, but the code
|
|
@@ -4,7 +4,7 @@ from collections.abc import Callable, Generator, Iterable, Sequence
|
|
|
4
4
|
from re import Pattern
|
|
5
5
|
from token import *
|
|
6
6
|
from token import EXACT_TOKEN_TYPES as EXACT_TOKEN_TYPES
|
|
7
|
-
from typing import Any, NamedTuple, TextIO
|
|
7
|
+
from typing import Any, NamedTuple, TextIO, type_check_only
|
|
8
8
|
from typing_extensions import TypeAlias
|
|
9
9
|
|
|
10
10
|
__all__ = [
|
|
@@ -98,6 +98,8 @@ blank_re: Pattern[bytes]
|
|
|
98
98
|
|
|
99
99
|
_Position: TypeAlias = tuple[int, int]
|
|
100
100
|
|
|
101
|
+
# This class is not exposed. It calls itself tokenize.TokenInfo.
|
|
102
|
+
@type_check_only
|
|
101
103
|
class _TokenInfo(NamedTuple):
|
|
102
104
|
type: int
|
|
103
105
|
string: str
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import sys
|
|
2
2
|
from collections.abc import Callable, Sequence
|
|
3
3
|
from tkinter import Canvas, Frame, Misc, PhotoImage, Scrollbar
|
|
4
|
-
from typing import Any, ClassVar, overload
|
|
4
|
+
from typing import Any, ClassVar, Literal, TypedDict, overload
|
|
5
5
|
from typing_extensions import Self, TypeAlias
|
|
6
6
|
|
|
7
7
|
__all__ = [
|
|
@@ -141,8 +141,18 @@ if sys.version_info < (3, 13):
|
|
|
141
141
|
_Color: TypeAlias = str | tuple[float, float, float]
|
|
142
142
|
_AnyColor: TypeAlias = Any
|
|
143
143
|
|
|
144
|
-
|
|
145
|
-
|
|
144
|
+
class _PenState(TypedDict):
|
|
145
|
+
shown: bool
|
|
146
|
+
pendown: bool
|
|
147
|
+
pencolor: _Color
|
|
148
|
+
fillcolor: _Color
|
|
149
|
+
pensize: int
|
|
150
|
+
speed: int
|
|
151
|
+
resizemode: Literal["auto", "user", "noresize"]
|
|
152
|
+
stretchfactor: tuple[float, float]
|
|
153
|
+
shearfactor: float
|
|
154
|
+
outline: int
|
|
155
|
+
tilt: float
|
|
146
156
|
|
|
147
157
|
_Speed: TypeAlias = str | float
|
|
148
158
|
_PolygonCoords: TypeAlias = Sequence[tuple[float, float]]
|
|
@@ -283,6 +293,7 @@ class TNavigator:
|
|
|
283
293
|
def heading(self) -> float: ...
|
|
284
294
|
def setheading(self, to_angle: float) -> None: ...
|
|
285
295
|
def circle(self, radius: float, extent: float | None = None, steps: int | None = None) -> None: ...
|
|
296
|
+
def speed(self, s: int | None = 0) -> int | None: ...
|
|
286
297
|
fd = forward
|
|
287
298
|
bk = back
|
|
288
299
|
backward = back
|
|
@@ -363,7 +374,7 @@ class TPen:
|
|
|
363
374
|
st = showturtle
|
|
364
375
|
ht = hideturtle
|
|
365
376
|
|
|
366
|
-
class RawTurtle(TPen, TNavigator):
|
|
377
|
+
class RawTurtle(TPen, TNavigator): # type: ignore[misc] # Conflicting methods in base classes
|
|
367
378
|
screen: TurtleScreen
|
|
368
379
|
screens: ClassVar[list[TurtleScreen]]
|
|
369
380
|
def __init__(
|
|
@@ -133,6 +133,8 @@ if sys.version_info >= (3, 13):
|
|
|
133
133
|
|
|
134
134
|
Any = object()
|
|
135
135
|
|
|
136
|
+
class _Final: ...
|
|
137
|
+
|
|
136
138
|
def final(f: _T) -> _T: ...
|
|
137
139
|
@final
|
|
138
140
|
class TypeVar:
|
|
@@ -195,7 +197,7 @@ _promote = object()
|
|
|
195
197
|
|
|
196
198
|
# N.B. Keep this definition in sync with typing_extensions._SpecialForm
|
|
197
199
|
@final
|
|
198
|
-
class _SpecialForm:
|
|
200
|
+
class _SpecialForm(_Final):
|
|
199
201
|
def __getitem__(self, parameters: Any) -> object: ...
|
|
200
202
|
if sys.version_info >= (3, 10):
|
|
201
203
|
def __or__(self, other: Any) -> _SpecialForm: ...
|
|
@@ -215,8 +217,7 @@ Tuple: _SpecialForm
|
|
|
215
217
|
Final: _SpecialForm
|
|
216
218
|
|
|
217
219
|
Literal: _SpecialForm
|
|
218
|
-
|
|
219
|
-
TypedDict: object
|
|
220
|
+
TypedDict: _SpecialForm
|
|
220
221
|
|
|
221
222
|
if sys.version_info >= (3, 11):
|
|
222
223
|
Self: _SpecialForm
|
|
@@ -492,7 +493,11 @@ class Generator(Iterator[_YieldT_co], Generic[_YieldT_co, _SendT_contra, _Return
|
|
|
492
493
|
@overload
|
|
493
494
|
@abstractmethod
|
|
494
495
|
def throw(self, typ: BaseException, val: None = None, tb: TracebackType | None = None, /) -> _YieldT_co: ...
|
|
495
|
-
|
|
496
|
+
if sys.version_info >= (3, 13):
|
|
497
|
+
def close(self) -> _ReturnT_co | None: ...
|
|
498
|
+
else:
|
|
499
|
+
def close(self) -> None: ...
|
|
500
|
+
|
|
496
501
|
def __iter__(self) -> Generator[_YieldT_co, _SendT_contra, _ReturnT_co]: ...
|
|
497
502
|
@property
|
|
498
503
|
def gi_code(self) -> CodeType: ...
|
|
@@ -716,7 +721,6 @@ class ItemsView(MappingView, AbstractSet[tuple[_KT_co, _VT_co]], Generic[_KT_co,
|
|
|
716
721
|
def __rand__(self, other: Iterable[_T]) -> set[_T]: ...
|
|
717
722
|
def __contains__(self, item: object) -> bool: ...
|
|
718
723
|
def __iter__(self) -> Iterator[tuple[_KT_co, _VT_co]]: ...
|
|
719
|
-
def __reversed__(self) -> Iterator[tuple[_KT_co, _VT_co]]: ...
|
|
720
724
|
def __or__(self, other: Iterable[_T]) -> set[tuple[_KT_co, _VT_co] | _T]: ...
|
|
721
725
|
def __ror__(self, other: Iterable[_T]) -> set[tuple[_KT_co, _VT_co] | _T]: ...
|
|
722
726
|
def __sub__(self, other: Iterable[Any]) -> set[tuple[_KT_co, _VT_co]]: ...
|
|
@@ -731,7 +735,6 @@ class KeysView(MappingView, AbstractSet[_KT_co]):
|
|
|
731
735
|
def __rand__(self, other: Iterable[_T]) -> set[_T]: ...
|
|
732
736
|
def __contains__(self, key: object) -> bool: ...
|
|
733
737
|
def __iter__(self) -> Iterator[_KT_co]: ...
|
|
734
|
-
def __reversed__(self) -> Iterator[_KT_co]: ...
|
|
735
738
|
def __or__(self, other: Iterable[_T]) -> set[_KT_co | _T]: ...
|
|
736
739
|
def __ror__(self, other: Iterable[_T]) -> set[_KT_co | _T]: ...
|
|
737
740
|
def __sub__(self, other: Iterable[Any]) -> set[_KT_co]: ...
|
|
@@ -744,7 +747,6 @@ class ValuesView(MappingView, Collection[_VT_co]):
|
|
|
744
747
|
def __init__(self, mapping: Mapping[Any, _VT_co]) -> None: ... # undocumented
|
|
745
748
|
def __contains__(self, value: object) -> bool: ...
|
|
746
749
|
def __iter__(self) -> Iterator[_VT_co]: ...
|
|
747
|
-
def __reversed__(self) -> Iterator[_VT_co]: ...
|
|
748
750
|
|
|
749
751
|
class Mapping(Collection[_KT], Generic[_KT, _VT_co]):
|
|
750
752
|
"""A generic version of collections.abc.Mapping."""
|
|
@@ -1048,7 +1050,7 @@ class _TypedDict(Mapping[str, object], metaclass=ABCMeta):
|
|
|
1048
1050
|
def __ior__(self, value: typing_extensions.Self, /) -> typing_extensions.Self: ... # type: ignore[misc]
|
|
1049
1051
|
|
|
1050
1052
|
@final
|
|
1051
|
-
class ForwardRef:
|
|
1053
|
+
class ForwardRef(_Final):
|
|
1052
1054
|
__forward_arg__: str
|
|
1053
1055
|
__forward_code__: CodeType
|
|
1054
1056
|
__forward_evaluated__: bool
|
|
@@ -58,6 +58,7 @@ from typing import ( # noqa: Y022,Y037,Y038,Y039
|
|
|
58
58
|
TextIO as TextIO,
|
|
59
59
|
Tuple as Tuple,
|
|
60
60
|
Type as Type,
|
|
61
|
+
TypedDict as TypedDict,
|
|
61
62
|
Union as Union,
|
|
62
63
|
ValuesView as ValuesView,
|
|
63
64
|
_Alias,
|
|
@@ -190,8 +191,10 @@ _T = typing.TypeVar("_T")
|
|
|
190
191
|
_F = typing.TypeVar("_F", bound=Callable[..., Any])
|
|
191
192
|
_TC = typing.TypeVar("_TC", bound=type[object])
|
|
192
193
|
|
|
194
|
+
class _Final: ... # This should be imported from typing but that breaks pytype
|
|
195
|
+
|
|
193
196
|
# unfortunately we have to duplicate this class definition from typing.pyi or we break pytype
|
|
194
|
-
class _SpecialForm:
|
|
197
|
+
class _SpecialForm(_Final):
|
|
195
198
|
def __getitem__(self, parameters: Any) -> object: ...
|
|
196
199
|
if sys.version_info >= (3, 10):
|
|
197
200
|
def __or__(self, other: Any) -> _SpecialForm: ...
|
|
@@ -253,9 +256,6 @@ class _TypedDict(Mapping[str, object], metaclass=abc.ABCMeta):
|
|
|
253
256
|
# supposedly incompatible definitions of `__ior__` and `__or__`:
|
|
254
257
|
def __ior__(self, value: Self, /) -> Self: ... # type: ignore[misc]
|
|
255
258
|
|
|
256
|
-
# TypedDict is a (non-subscriptable) special form.
|
|
257
|
-
TypedDict: object
|
|
258
|
-
|
|
259
259
|
OrderedDict = _Alias()
|
|
260
260
|
|
|
261
261
|
def get_type_hints(
|
|
@@ -413,8 +413,11 @@ else:
|
|
|
413
413
|
def __or__(self, right: Any) -> _SpecialForm: ...
|
|
414
414
|
def __ror__(self, left: Any) -> _SpecialForm: ...
|
|
415
415
|
|
|
416
|
+
# mypy and pyright object to this being both ABC and Protocol.
|
|
417
|
+
# At runtime it inherits from ABC and is not a Protocol, but it is on the
|
|
418
|
+
# allowlist for use as a Protocol.
|
|
416
419
|
@runtime_checkable
|
|
417
|
-
class Buffer(Protocol):
|
|
420
|
+
class Buffer(Protocol, abc.ABC): # type: ignore[misc] # pyright: ignore[reportGeneralTypeIssues]
|
|
418
421
|
# Not actually a Protocol at runtime; see
|
|
419
422
|
# https://github.com/python/typeshed/issues/10224 for why we're defining it this way
|
|
420
423
|
def __buffer__(self, flags: int, /) -> memoryview: ...
|
|
@@ -66,6 +66,7 @@ if sys.platform == "darwin":
|
|
|
66
66
|
if sys.version_info < (3, 13):
|
|
67
67
|
@deprecated("Deprecated in 3.11, to be removed in 3.13.")
|
|
68
68
|
class MacOSX(BaseBrowser):
|
|
69
|
+
def __init__(self, name: str) -> None: ...
|
|
69
70
|
def open(self, url: str, new: int = 0, autoraise: bool = True) -> bool: ...
|
|
70
71
|
|
|
71
72
|
class MacOSXOSAScript(BaseBrowser): # In runtime this class does not have `name` and `basename`
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
from _typeshed import OptExcInfo
|
|
1
2
|
from collections.abc import Callable, Iterable, Iterator
|
|
2
|
-
from sys import _OptExcInfo
|
|
3
3
|
from typing import Any, Protocol
|
|
4
4
|
from typing_extensions import TypeAlias
|
|
5
5
|
|
|
@@ -7,7 +7,7 @@ __all__ = ["StartResponse", "WSGIEnvironment", "WSGIApplication", "InputStream",
|
|
|
7
7
|
|
|
8
8
|
class StartResponse(Protocol):
|
|
9
9
|
def __call__(
|
|
10
|
-
self, status: str, headers: list[tuple[str, str]], exc_info:
|
|
10
|
+
self, status: str, headers: list[tuple[str, str]], exc_info: OptExcInfo | None = ..., /
|
|
11
11
|
) -> Callable[[bytes], object]: ...
|
|
12
12
|
|
|
13
13
|
WSGIEnvironment: TypeAlias = dict[str, Any]
|
|
@@ -1 +1,3 @@
|
|
|
1
|
-
|
|
1
|
+
# At runtime, listing submodules in __all__ without them being imported is
|
|
2
|
+
# valid, and causes them to be included in a star import. See #6523
|
|
3
|
+
__all__ = ["dom", "parsers", "sax", "etree"] # noqa: F822 # pyright: ignore[reportUnsupportedDunderAll]
|
|
@@ -12,6 +12,8 @@ _ReadWriteBinaryMode: TypeAlias = Literal["r", "w", "rb", "wb"]
|
|
|
12
12
|
_ZF = TypeVar("_ZF", bound=ZipFile)
|
|
13
13
|
|
|
14
14
|
if sys.version_info >= (3, 12):
|
|
15
|
+
__all__ = ["Path"]
|
|
16
|
+
|
|
15
17
|
class InitializedState:
|
|
16
18
|
def __init__(self, *args: object, **kwargs: object) -> None: ...
|
|
17
19
|
def __getstate__(self) -> tuple[list[object], dict[object, object]]: ...
|
|
@@ -16,7 +16,8 @@ objects support decompress() and flush().
|
|
|
16
16
|
|
|
17
17
|
import sys
|
|
18
18
|
from _typeshed import ReadableBuffer
|
|
19
|
-
from typing import Final
|
|
19
|
+
from typing import Any, Final, final, type_check_only
|
|
20
|
+
from typing_extensions import Self
|
|
20
21
|
|
|
21
22
|
DEFLATED: Final = 8
|
|
22
23
|
DEF_MEM_LEVEL: int # can change
|
|
@@ -43,17 +44,30 @@ Z_TREES: Final = 6
|
|
|
43
44
|
|
|
44
45
|
class error(Exception): ...
|
|
45
46
|
|
|
47
|
+
# This class is not exposed at runtime. It calls itself zlib.Compress.
|
|
48
|
+
@final
|
|
49
|
+
@type_check_only
|
|
46
50
|
class _Compress:
|
|
47
|
-
def
|
|
48
|
-
def
|
|
51
|
+
def __copy__(self) -> Self: ...
|
|
52
|
+
def __deepcopy__(self, memo: Any, /) -> Self: ...
|
|
53
|
+
def compress(self, data: ReadableBuffer, /) -> bytes: ...
|
|
54
|
+
def flush(self, mode: int = 4, /) -> bytes: ...
|
|
49
55
|
def copy(self) -> _Compress: ...
|
|
50
56
|
|
|
57
|
+
# This class is not exposed at runtime. It calls itself zlib.Decompress.
|
|
58
|
+
@final
|
|
59
|
+
@type_check_only
|
|
51
60
|
class _Decompress:
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
def
|
|
56
|
-
|
|
61
|
+
@property
|
|
62
|
+
def unused_data(self) -> bytes: ...
|
|
63
|
+
@property
|
|
64
|
+
def unconsumed_tail(self) -> bytes: ...
|
|
65
|
+
@property
|
|
66
|
+
def eof(self) -> bool: ...
|
|
67
|
+
def __copy__(self) -> Self: ...
|
|
68
|
+
def __deepcopy__(self, memo: Any, /) -> Self: ...
|
|
69
|
+
def decompress(self, data: ReadableBuffer, /, max_length: int = 0) -> bytes: ...
|
|
70
|
+
def flush(self, length: int = 16384, /) -> bytes: ...
|
|
57
71
|
def copy(self) -> _Decompress: ...
|
|
58
72
|
|
|
59
73
|
def adler32(data: ReadableBuffer, value: int = 1, /) -> int:
|
|
@@ -13,7 +13,12 @@ class ClassicAdapter:
|
|
|
13
13
|
action: _Actions | None
|
|
14
14
|
category: type[Warning]
|
|
15
15
|
def __init__(
|
|
16
|
-
self,
|
|
16
|
+
self,
|
|
17
|
+
reason: str = "",
|
|
18
|
+
version: str = "",
|
|
19
|
+
action: _Actions | None = None,
|
|
20
|
+
category: type[Warning] = ...,
|
|
21
|
+
extra_stacklevel: int = 0,
|
|
17
22
|
) -> None: ...
|
|
18
23
|
def get_deprecated_msg(self, wrapped: Callable[..., Any], instance: object) -> str: ...
|
|
19
24
|
def __call__(self, wrapped: _F) -> Callable[[_F], _F]: ...
|
|
@@ -18,6 +18,7 @@ class SphinxAdapter(ClassicAdapter):
|
|
|
18
18
|
version: str = "",
|
|
19
19
|
action: _Actions | None = None,
|
|
20
20
|
category: type[Warning] = ...,
|
|
21
|
+
extra_stacklevel: int = 0,
|
|
21
22
|
line_length: int = 70,
|
|
22
23
|
) -> None: ...
|
|
23
24
|
def __call__(self, wrapped: _F) -> Callable[[_F], _F]: ...
|