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
|
@@ -19,20 +19,13 @@ from decimal import (
|
|
|
19
19
|
Rounded as Rounded,
|
|
20
20
|
Subnormal as Subnormal,
|
|
21
21
|
Underflow as Underflow,
|
|
22
|
+
_ContextManager,
|
|
22
23
|
)
|
|
23
|
-
from types import TracebackType
|
|
24
24
|
from typing import Final
|
|
25
25
|
from typing_extensions import TypeAlias
|
|
26
26
|
|
|
27
27
|
_TrapType: TypeAlias = type[DecimalException]
|
|
28
28
|
|
|
29
|
-
class _ContextManager:
|
|
30
|
-
new_context: Context
|
|
31
|
-
saved_context: Context
|
|
32
|
-
def __init__(self, new_context: Context) -> None: ...
|
|
33
|
-
def __enter__(self) -> Context: ...
|
|
34
|
-
def __exit__(self, t: type[BaseException] | None, v: BaseException | None, tb: TracebackType | None) -> None: ...
|
|
35
|
-
|
|
36
29
|
__version__: Final[str]
|
|
37
30
|
__libmpdec_version__: Final[str]
|
|
38
31
|
|
|
@@ -0,0 +1,253 @@
|
|
|
1
|
+
"""OpenSSL interface for hashlib module"""
|
|
2
|
+
|
|
3
|
+
import sys
|
|
4
|
+
from _typeshed import ReadableBuffer
|
|
5
|
+
from collections.abc import Callable
|
|
6
|
+
from types import ModuleType
|
|
7
|
+
from typing import AnyStr, final, overload
|
|
8
|
+
from typing_extensions import Self, TypeAlias
|
|
9
|
+
|
|
10
|
+
_DigestMod: TypeAlias = str | Callable[[], HASH] | ModuleType | None
|
|
11
|
+
|
|
12
|
+
openssl_md_meth_names: frozenset[str]
|
|
13
|
+
|
|
14
|
+
class HASH:
|
|
15
|
+
"""
|
|
16
|
+
A hash is an object used to calculate a checksum of a string of information.
|
|
17
|
+
|
|
18
|
+
Methods:
|
|
19
|
+
|
|
20
|
+
update() -- updates the current digest with an additional string
|
|
21
|
+
digest() -- return the current digest value
|
|
22
|
+
hexdigest() -- return the current digest as a string of hexadecimal digits
|
|
23
|
+
copy() -- return a copy of the current hash object
|
|
24
|
+
|
|
25
|
+
Attributes:
|
|
26
|
+
|
|
27
|
+
name -- the hash algorithm being used by this object
|
|
28
|
+
digest_size -- number of bytes in this hashes output
|
|
29
|
+
"""
|
|
30
|
+
@property
|
|
31
|
+
def digest_size(self) -> int: ...
|
|
32
|
+
@property
|
|
33
|
+
def block_size(self) -> int: ...
|
|
34
|
+
@property
|
|
35
|
+
def name(self) -> str: ...
|
|
36
|
+
def copy(self) -> Self:
|
|
37
|
+
"""Return a copy of the hash object."""
|
|
38
|
+
...
|
|
39
|
+
def digest(self) -> bytes:
|
|
40
|
+
"""Return the digest value as a bytes object."""
|
|
41
|
+
...
|
|
42
|
+
def hexdigest(self) -> str:
|
|
43
|
+
"""Return the digest value as a string of hexadecimal digits."""
|
|
44
|
+
...
|
|
45
|
+
def update(self, obj: ReadableBuffer, /) -> None:
|
|
46
|
+
"""Update this hash object's state with the provided string."""
|
|
47
|
+
...
|
|
48
|
+
|
|
49
|
+
if sys.version_info >= (3, 10):
|
|
50
|
+
class UnsupportedDigestmodError(ValueError): ...
|
|
51
|
+
|
|
52
|
+
if sys.version_info >= (3, 9):
|
|
53
|
+
class HASHXOF(HASH):
|
|
54
|
+
"""
|
|
55
|
+
A hash is an object used to calculate a checksum of a string of information.
|
|
56
|
+
|
|
57
|
+
Methods:
|
|
58
|
+
|
|
59
|
+
update() -- updates the current digest with an additional string
|
|
60
|
+
digest(length) -- return the current digest value
|
|
61
|
+
hexdigest(length) -- return the current digest as a string of hexadecimal digits
|
|
62
|
+
copy() -- return a copy of the current hash object
|
|
63
|
+
|
|
64
|
+
Attributes:
|
|
65
|
+
|
|
66
|
+
name -- the hash algorithm being used by this object
|
|
67
|
+
digest_size -- number of bytes in this hashes output
|
|
68
|
+
"""
|
|
69
|
+
def digest(self, length: int) -> bytes:
|
|
70
|
+
"""Return the digest value as a bytes object."""
|
|
71
|
+
...
|
|
72
|
+
def hexdigest(self, length: int) -> str:
|
|
73
|
+
"""Return the digest value as a string of hexadecimal digits."""
|
|
74
|
+
...
|
|
75
|
+
|
|
76
|
+
@final
|
|
77
|
+
class HMAC:
|
|
78
|
+
"""
|
|
79
|
+
The object used to calculate HMAC of a message.
|
|
80
|
+
|
|
81
|
+
Methods:
|
|
82
|
+
|
|
83
|
+
update() -- updates the current digest with an additional string
|
|
84
|
+
digest() -- return the current digest value
|
|
85
|
+
hexdigest() -- return the current digest as a string of hexadecimal digits
|
|
86
|
+
copy() -- return a copy of the current hash object
|
|
87
|
+
|
|
88
|
+
Attributes:
|
|
89
|
+
|
|
90
|
+
name -- the name, including the hash algorithm used by this object
|
|
91
|
+
digest_size -- number of bytes in digest() output
|
|
92
|
+
"""
|
|
93
|
+
@property
|
|
94
|
+
def digest_size(self) -> int: ...
|
|
95
|
+
@property
|
|
96
|
+
def block_size(self) -> int: ...
|
|
97
|
+
@property
|
|
98
|
+
def name(self) -> str: ...
|
|
99
|
+
def copy(self) -> Self:
|
|
100
|
+
"""Return a copy ("clone") of the HMAC object."""
|
|
101
|
+
...
|
|
102
|
+
def digest(self) -> bytes:
|
|
103
|
+
"""Return the digest of the bytes passed to the update() method so far."""
|
|
104
|
+
...
|
|
105
|
+
def hexdigest(self) -> str:
|
|
106
|
+
"""
|
|
107
|
+
Return hexadecimal digest of the bytes passed to the update() method so far.
|
|
108
|
+
|
|
109
|
+
This may be used to exchange the value safely in email or other non-binary
|
|
110
|
+
environments.
|
|
111
|
+
"""
|
|
112
|
+
...
|
|
113
|
+
def update(self, msg: ReadableBuffer) -> None:
|
|
114
|
+
"""Update the HMAC object with msg."""
|
|
115
|
+
...
|
|
116
|
+
|
|
117
|
+
@overload
|
|
118
|
+
def compare_digest(a: ReadableBuffer, b: ReadableBuffer, /) -> bool:
|
|
119
|
+
"""
|
|
120
|
+
Return 'a == b'.
|
|
121
|
+
|
|
122
|
+
This function uses an approach designed to prevent
|
|
123
|
+
timing analysis, making it appropriate for cryptography.
|
|
124
|
+
|
|
125
|
+
a and b must both be of the same type: either str (ASCII only),
|
|
126
|
+
or any bytes-like object.
|
|
127
|
+
|
|
128
|
+
Note: If a and b are of different lengths, or if an error occurs,
|
|
129
|
+
a timing attack could theoretically reveal information about the
|
|
130
|
+
types and lengths of a and b--but not their values.
|
|
131
|
+
"""
|
|
132
|
+
...
|
|
133
|
+
@overload
|
|
134
|
+
def compare_digest(a: AnyStr, b: AnyStr, /) -> bool:
|
|
135
|
+
"""
|
|
136
|
+
Return 'a == b'.
|
|
137
|
+
|
|
138
|
+
This function uses an approach designed to prevent
|
|
139
|
+
timing analysis, making it appropriate for cryptography.
|
|
140
|
+
|
|
141
|
+
a and b must both be of the same type: either str (ASCII only),
|
|
142
|
+
or any bytes-like object.
|
|
143
|
+
|
|
144
|
+
Note: If a and b are of different lengths, or if an error occurs,
|
|
145
|
+
a timing attack could theoretically reveal information about the
|
|
146
|
+
types and lengths of a and b--but not their values.
|
|
147
|
+
"""
|
|
148
|
+
...
|
|
149
|
+
def get_fips_mode() -> int:
|
|
150
|
+
"""
|
|
151
|
+
Determine the OpenSSL FIPS mode of operation.
|
|
152
|
+
|
|
153
|
+
For OpenSSL 3.0.0 and newer it returns the state of the default provider
|
|
154
|
+
in the default OSSL context. It's not quite the same as FIPS_mode() but good
|
|
155
|
+
enough for unittests.
|
|
156
|
+
|
|
157
|
+
Effectively any non-zero return value indicates FIPS mode;
|
|
158
|
+
values other than 1 may have additional significance.
|
|
159
|
+
"""
|
|
160
|
+
...
|
|
161
|
+
def hmac_new(key: bytes | bytearray, msg: ReadableBuffer = b"", digestmod: _DigestMod = None) -> HMAC:
|
|
162
|
+
"""Return a new hmac object."""
|
|
163
|
+
...
|
|
164
|
+
def new(name: str, string: ReadableBuffer = b"", *, usedforsecurity: bool = True) -> HASH:
|
|
165
|
+
"""
|
|
166
|
+
Return a new hash object using the named algorithm.
|
|
167
|
+
|
|
168
|
+
An optional string argument may be provided and will be
|
|
169
|
+
automatically hashed.
|
|
170
|
+
|
|
171
|
+
The MD5 and SHA1 algorithms are always supported.
|
|
172
|
+
"""
|
|
173
|
+
...
|
|
174
|
+
def openssl_md5(string: ReadableBuffer = b"", *, usedforsecurity: bool = True) -> HASH:
|
|
175
|
+
"""Returns a md5 hash object; optionally initialized with a string"""
|
|
176
|
+
...
|
|
177
|
+
def openssl_sha1(string: ReadableBuffer = b"", *, usedforsecurity: bool = True) -> HASH:
|
|
178
|
+
"""Returns a sha1 hash object; optionally initialized with a string"""
|
|
179
|
+
...
|
|
180
|
+
def openssl_sha224(string: ReadableBuffer = b"", *, usedforsecurity: bool = True) -> HASH:
|
|
181
|
+
"""Returns a sha224 hash object; optionally initialized with a string"""
|
|
182
|
+
...
|
|
183
|
+
def openssl_sha256(string: ReadableBuffer = b"", *, usedforsecurity: bool = True) -> HASH:
|
|
184
|
+
"""Returns a sha256 hash object; optionally initialized with a string"""
|
|
185
|
+
...
|
|
186
|
+
def openssl_sha384(string: ReadableBuffer = b"", *, usedforsecurity: bool = True) -> HASH:
|
|
187
|
+
"""Returns a sha384 hash object; optionally initialized with a string"""
|
|
188
|
+
...
|
|
189
|
+
def openssl_sha512(string: ReadableBuffer = b"", *, usedforsecurity: bool = True) -> HASH:
|
|
190
|
+
"""Returns a sha512 hash object; optionally initialized with a string"""
|
|
191
|
+
...
|
|
192
|
+
def openssl_sha3_224(string: ReadableBuffer = b"", *, usedforsecurity: bool = True) -> HASH:
|
|
193
|
+
"""Returns a sha3-224 hash object; optionally initialized with a string"""
|
|
194
|
+
...
|
|
195
|
+
def openssl_sha3_256(string: ReadableBuffer = b"", *, usedforsecurity: bool = True) -> HASH:
|
|
196
|
+
"""Returns a sha3-256 hash object; optionally initialized with a string"""
|
|
197
|
+
...
|
|
198
|
+
def openssl_sha3_384(string: ReadableBuffer = b"", *, usedforsecurity: bool = True) -> HASH:
|
|
199
|
+
"""Returns a sha3-384 hash object; optionally initialized with a string"""
|
|
200
|
+
...
|
|
201
|
+
def openssl_sha3_512(string: ReadableBuffer = b"", *, usedforsecurity: bool = True) -> HASH:
|
|
202
|
+
"""Returns a sha3-512 hash object; optionally initialized with a string"""
|
|
203
|
+
...
|
|
204
|
+
def openssl_shake_128(string: ReadableBuffer = b"", *, usedforsecurity: bool = True) -> HASHXOF:
|
|
205
|
+
"""Returns a shake-128 variable hash object; optionally initialized with a string"""
|
|
206
|
+
...
|
|
207
|
+
def openssl_shake_256(string: ReadableBuffer = b"", *, usedforsecurity: bool = True) -> HASHXOF:
|
|
208
|
+
"""Returns a shake-256 variable hash object; optionally initialized with a string"""
|
|
209
|
+
...
|
|
210
|
+
|
|
211
|
+
else:
|
|
212
|
+
def new(name: str, string: ReadableBuffer = b"") -> HASH:
|
|
213
|
+
"""
|
|
214
|
+
Return a new hash object using the named algorithm.
|
|
215
|
+
|
|
216
|
+
An optional string argument may be provided and will be
|
|
217
|
+
automatically hashed.
|
|
218
|
+
|
|
219
|
+
The MD5 and SHA1 algorithms are always supported.
|
|
220
|
+
"""
|
|
221
|
+
...
|
|
222
|
+
def openssl_md5(string: ReadableBuffer = b"") -> HASH:
|
|
223
|
+
"""Returns a md5 hash object; optionally initialized with a string"""
|
|
224
|
+
...
|
|
225
|
+
def openssl_sha1(string: ReadableBuffer = b"") -> HASH:
|
|
226
|
+
"""Returns a sha1 hash object; optionally initialized with a string"""
|
|
227
|
+
...
|
|
228
|
+
def openssl_sha224(string: ReadableBuffer = b"") -> HASH:
|
|
229
|
+
"""Returns a sha224 hash object; optionally initialized with a string"""
|
|
230
|
+
...
|
|
231
|
+
def openssl_sha256(string: ReadableBuffer = b"") -> HASH:
|
|
232
|
+
"""Returns a sha256 hash object; optionally initialized with a string"""
|
|
233
|
+
...
|
|
234
|
+
def openssl_sha384(string: ReadableBuffer = b"") -> HASH:
|
|
235
|
+
"""Returns a sha384 hash object; optionally initialized with a string"""
|
|
236
|
+
...
|
|
237
|
+
def openssl_sha512(string: ReadableBuffer = b"") -> HASH:
|
|
238
|
+
"""Returns a sha512 hash object; optionally initialized with a string"""
|
|
239
|
+
...
|
|
240
|
+
|
|
241
|
+
def hmac_digest(key: bytes | bytearray, msg: ReadableBuffer, digest: str) -> bytes:
|
|
242
|
+
"""Single-shot HMAC."""
|
|
243
|
+
...
|
|
244
|
+
def pbkdf2_hmac(
|
|
245
|
+
hash_name: str, password: ReadableBuffer, salt: ReadableBuffer, iterations: int, dklen: int | None = None
|
|
246
|
+
) -> bytes:
|
|
247
|
+
"""Password based key derivation function 2 (PKCS #5 v2.0) with HMAC as pseudorandom function."""
|
|
248
|
+
...
|
|
249
|
+
def scrypt(
|
|
250
|
+
password: ReadableBuffer, *, salt: ReadableBuffer, n: int, r: int, p: int, maxmem: int = 0, dklen: int = 64
|
|
251
|
+
) -> bytes:
|
|
252
|
+
"""scrypt password-based key derivation function."""
|
|
253
|
+
...
|
|
@@ -69,6 +69,13 @@ class make_scanner:
|
|
|
69
69
|
"""Call self as a function."""
|
|
70
70
|
...
|
|
71
71
|
|
|
72
|
+
def encode_basestring(s: str, /) -> str:
|
|
73
|
+
"""
|
|
74
|
+
encode_basestring(string) -> string
|
|
75
|
+
|
|
76
|
+
Return a JSON representation of a Python string
|
|
77
|
+
"""
|
|
78
|
+
...
|
|
72
79
|
def encode_basestring_ascii(s: str, /) -> str:
|
|
73
80
|
"""
|
|
74
81
|
encode_basestring_ascii(string) -> string
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
from _typeshed import ReadableBuffer
|
|
2
|
+
from codecs import _ReadableStream, _WritableStream
|
|
3
|
+
from collections.abc import Iterable
|
|
4
|
+
from typing import final, type_check_only
|
|
5
|
+
|
|
6
|
+
# This class is not exposed. It calls itself _multibytecodec.MultibyteCodec.
|
|
7
|
+
@final
|
|
8
|
+
@type_check_only
|
|
9
|
+
class _MultibyteCodec:
|
|
10
|
+
def decode(self, input: ReadableBuffer, errors: str | None = None) -> str: ...
|
|
11
|
+
def encode(self, input: str, errors: str | None = None) -> bytes: ...
|
|
12
|
+
|
|
13
|
+
class MultibyteIncrementalDecoder:
|
|
14
|
+
errors: str
|
|
15
|
+
def __init__(self, errors: str = "strict") -> None: ...
|
|
16
|
+
def decode(self, input: ReadableBuffer, final: bool = False) -> str: ...
|
|
17
|
+
def getstate(self) -> tuple[bytes, int]: ...
|
|
18
|
+
def reset(self) -> None: ...
|
|
19
|
+
def setstate(self, state: tuple[bytes, int], /) -> None: ...
|
|
20
|
+
|
|
21
|
+
class MultibyteIncrementalEncoder:
|
|
22
|
+
errors: str
|
|
23
|
+
def __init__(self, errors: str = "strict") -> None: ...
|
|
24
|
+
def encode(self, input: str, final: bool = False) -> bytes: ...
|
|
25
|
+
def getstate(self) -> int: ...
|
|
26
|
+
def reset(self) -> None: ...
|
|
27
|
+
def setstate(self, state: int, /) -> None: ...
|
|
28
|
+
|
|
29
|
+
class MultibyteStreamReader:
|
|
30
|
+
errors: str
|
|
31
|
+
stream: _ReadableStream
|
|
32
|
+
def __init__(self, stream: _ReadableStream, errors: str = "strict") -> None: ...
|
|
33
|
+
def read(self, sizeobj: int | None = None, /) -> str: ...
|
|
34
|
+
def readline(self, sizeobj: int | None = None, /) -> str: ...
|
|
35
|
+
def readlines(self, sizehintobj: int | None = None, /) -> list[str]: ...
|
|
36
|
+
def reset(self) -> None: ...
|
|
37
|
+
|
|
38
|
+
class MultibyteStreamWriter:
|
|
39
|
+
errors: str
|
|
40
|
+
stream: _WritableStream
|
|
41
|
+
def __init__(self, stream: _WritableStream, errors: str = "strict") -> None: ...
|
|
42
|
+
def reset(self) -> None: ...
|
|
43
|
+
def write(self, strobj: str, /) -> None: ...
|
|
44
|
+
def writelines(self, lines: Iterable[str], /) -> None: ...
|