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
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import codecs
|
|
2
|
+
from _typeshed import ReadableBuffer
|
|
3
|
+
|
|
4
|
+
encode = codecs.utf_7_encode
|
|
5
|
+
|
|
6
|
+
def decode(input: ReadableBuffer, errors: str | None = "strict") -> tuple[str, int]: ...
|
|
7
|
+
|
|
8
|
+
class IncrementalEncoder(codecs.IncrementalEncoder):
|
|
9
|
+
def encode(self, input: str, final: bool = False) -> bytes: ...
|
|
10
|
+
|
|
11
|
+
class IncrementalDecoder(codecs.BufferedIncrementalDecoder):
|
|
12
|
+
# At runtime, this is codecs.utf_7_decode
|
|
13
|
+
@staticmethod
|
|
14
|
+
def _buffer_decode(data: ReadableBuffer, errors: str | None = None, final: bool = False, /) -> tuple[str, int]: ...
|
|
15
|
+
|
|
16
|
+
class StreamWriter(codecs.StreamWriter):
|
|
17
|
+
# At runtime, this is codecs.utf_7_encode
|
|
18
|
+
@staticmethod
|
|
19
|
+
def encode(str: str, errors: str | None = None, /) -> tuple[bytes, int]: ...
|
|
20
|
+
|
|
21
|
+
class StreamReader(codecs.StreamReader):
|
|
22
|
+
# At runtime, this is codecs.utf_7_decode
|
|
23
|
+
@staticmethod
|
|
24
|
+
def decode(data: ReadableBuffer, errors: str | None = None, final: bool = False, /) -> tuple[str, int]: ...
|
|
25
|
+
|
|
26
|
+
def getregentry() -> codecs.CodecInfo: ...
|
|
@@ -1,21 +1,26 @@
|
|
|
1
1
|
import codecs
|
|
2
2
|
from _typeshed import ReadableBuffer
|
|
3
3
|
|
|
4
|
+
encode = codecs.utf_8_encode
|
|
5
|
+
|
|
6
|
+
def decode(input: ReadableBuffer, errors: str | None = "strict") -> tuple[str, int]: ...
|
|
7
|
+
|
|
4
8
|
class IncrementalEncoder(codecs.IncrementalEncoder):
|
|
5
9
|
def encode(self, input: str, final: bool = False) -> bytes: ...
|
|
6
10
|
|
|
7
11
|
class IncrementalDecoder(codecs.BufferedIncrementalDecoder):
|
|
12
|
+
# At runtime, this is codecs.utf_8_decode
|
|
8
13
|
@staticmethod
|
|
9
14
|
def _buffer_decode(data: ReadableBuffer, errors: str | None = None, final: bool = False, /) -> tuple[str, int]: ...
|
|
10
15
|
|
|
11
16
|
class StreamWriter(codecs.StreamWriter):
|
|
17
|
+
# At runtime, this is codecs.utf_8_encode
|
|
12
18
|
@staticmethod
|
|
13
19
|
def encode(str: str, errors: str | None = None, /) -> tuple[bytes, int]: ...
|
|
14
20
|
|
|
15
21
|
class StreamReader(codecs.StreamReader):
|
|
22
|
+
# At runtime, this is codecs.utf_8_decode
|
|
16
23
|
@staticmethod
|
|
17
24
|
def decode(data: ReadableBuffer, errors: str | None = None, final: bool = False, /) -> tuple[str, int]: ...
|
|
18
25
|
|
|
19
26
|
def getregentry() -> codecs.CodecInfo: ...
|
|
20
|
-
def encode(str: str, errors: str | None = None, /) -> tuple[bytes, int]: ...
|
|
21
|
-
def decode(input: ReadableBuffer, errors: str | None = "strict") -> tuple[str, int]: ...
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import codecs
|
|
2
|
+
from _typeshed import ReadableBuffer
|
|
3
|
+
from typing import ClassVar
|
|
4
|
+
|
|
5
|
+
# This codec is bytes to bytes.
|
|
6
|
+
|
|
7
|
+
def uu_encode(
|
|
8
|
+
input: ReadableBuffer, errors: str = "strict", filename: str = "<data>", mode: int = 0o666
|
|
9
|
+
) -> tuple[bytes, int]: ...
|
|
10
|
+
def uu_decode(input: ReadableBuffer, errors: str = "strict") -> tuple[bytes, int]: ...
|
|
11
|
+
|
|
12
|
+
class Codec(codecs.Codec):
|
|
13
|
+
def encode(self, input: ReadableBuffer, errors: str = "strict") -> tuple[bytes, int]: ... # type: ignore[override]
|
|
14
|
+
def decode(self, input: ReadableBuffer, errors: str = "strict") -> tuple[bytes, int]: ... # type: ignore[override]
|
|
15
|
+
|
|
16
|
+
class IncrementalEncoder(codecs.IncrementalEncoder):
|
|
17
|
+
def encode(self, input: ReadableBuffer, final: bool = False) -> bytes: ... # type: ignore[override]
|
|
18
|
+
|
|
19
|
+
class IncrementalDecoder(codecs.IncrementalDecoder):
|
|
20
|
+
def decode(self, input: ReadableBuffer, final: bool = False) -> bytes: ... # type: ignore[override]
|
|
21
|
+
|
|
22
|
+
class StreamWriter(Codec, codecs.StreamWriter):
|
|
23
|
+
charbuffertype: ClassVar[type] = ...
|
|
24
|
+
|
|
25
|
+
class StreamReader(Codec, codecs.StreamReader):
|
|
26
|
+
charbuffertype: ClassVar[type] = ...
|
|
27
|
+
|
|
28
|
+
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 zlib_encode(input: ReadableBuffer, errors: str = "strict") -> tuple[bytes, int]: ...
|
|
8
|
+
def zlib_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: ...
|
|
@@ -77,8 +77,10 @@ if sys.platform != "win32":
|
|
|
77
77
|
LOCK_RW: int
|
|
78
78
|
LOCK_WRITE: int
|
|
79
79
|
|
|
80
|
-
# These are highly problematic, they might be present or not, depends on the specific OS.
|
|
81
80
|
if sys.platform == "linux":
|
|
81
|
+
# Constants for the POSIX STREAMS interface. Present in glibc until 2.29 (released February 2019).
|
|
82
|
+
# Never implemented on BSD, and considered "obsolescent" starting in POSIX 2008.
|
|
83
|
+
# Probably still used on Solaris.
|
|
82
84
|
I_ATMARK: int
|
|
83
85
|
I_CANPUT: int
|
|
84
86
|
I_CKBAND: int
|
|
@@ -1,9 +1,19 @@
|
|
|
1
1
|
import sys
|
|
2
2
|
from _blake2 import blake2b as blake2b, blake2s as blake2s
|
|
3
|
+
from _hashlib import (
|
|
4
|
+
HASH,
|
|
5
|
+
openssl_md5 as md5,
|
|
6
|
+
openssl_sha1 as sha1,
|
|
7
|
+
openssl_sha224 as sha224,
|
|
8
|
+
openssl_sha256 as sha256,
|
|
9
|
+
openssl_sha384 as sha384,
|
|
10
|
+
openssl_sha512 as sha512,
|
|
11
|
+
pbkdf2_hmac as pbkdf2_hmac,
|
|
12
|
+
scrypt as scrypt,
|
|
13
|
+
)
|
|
3
14
|
from _typeshed import ReadableBuffer
|
|
4
15
|
from collections.abc import Callable, Set as AbstractSet
|
|
5
|
-
from typing import Protocol
|
|
6
|
-
from typing_extensions import Self
|
|
16
|
+
from typing import Protocol, type_check_only
|
|
7
17
|
|
|
8
18
|
if sys.version_info >= (3, 11):
|
|
9
19
|
__all__ = (
|
|
@@ -49,107 +59,35 @@ else:
|
|
|
49
59
|
"pbkdf2_hmac",
|
|
50
60
|
)
|
|
51
61
|
|
|
52
|
-
class _Hash:
|
|
53
|
-
@property
|
|
54
|
-
def digest_size(self) -> int: ...
|
|
55
|
-
@property
|
|
56
|
-
def block_size(self) -> int: ...
|
|
57
|
-
@property
|
|
58
|
-
def name(self) -> str: ...
|
|
59
|
-
def copy(self) -> Self: ...
|
|
60
|
-
def digest(self) -> bytes: ...
|
|
61
|
-
def hexdigest(self) -> str: ...
|
|
62
|
-
def update(self, data: ReadableBuffer, /) -> None: ...
|
|
63
|
-
|
|
64
|
-
class _VarLenHash:
|
|
65
|
-
digest_size: int
|
|
66
|
-
block_size: int
|
|
67
|
-
name: str
|
|
68
|
-
def copy(self) -> _VarLenHash: ...
|
|
69
|
-
def digest(self, length: int, /) -> bytes: ...
|
|
70
|
-
def hexdigest(self, length: int, /) -> str: ...
|
|
71
|
-
def update(self, data: ReadableBuffer, /) -> None: ...
|
|
72
|
-
|
|
73
62
|
if sys.version_info >= (3, 9):
|
|
74
|
-
def new(name: str, data: ReadableBuffer = b"", *, usedforsecurity: bool = ...) ->
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
...
|
|
84
|
-
def sha256(string: ReadableBuffer = b"", *, usedforsecurity: bool = True) -> _Hash:
|
|
85
|
-
"""Returns a sha256 hash object; optionally initialized with a string"""
|
|
86
|
-
...
|
|
87
|
-
def sha384(string: ReadableBuffer = b"", *, usedforsecurity: bool = True) -> _Hash:
|
|
88
|
-
"""Returns a sha384 hash object; optionally initialized with a string"""
|
|
89
|
-
...
|
|
90
|
-
def sha512(string: ReadableBuffer = b"", *, usedforsecurity: bool = True) -> _Hash:
|
|
91
|
-
"""Returns a sha512 hash object; optionally initialized with a string"""
|
|
92
|
-
...
|
|
93
|
-
def sha3_224(string: ReadableBuffer = b"", *, usedforsecurity: bool = True) -> _Hash:
|
|
94
|
-
"""Returns a sha3-224 hash object; optionally initialized with a string"""
|
|
95
|
-
...
|
|
96
|
-
def sha3_256(string: ReadableBuffer = b"", *, usedforsecurity: bool = True) -> _Hash:
|
|
97
|
-
"""Returns a sha3-256 hash object; optionally initialized with a string"""
|
|
98
|
-
...
|
|
99
|
-
def sha3_384(string: ReadableBuffer = b"", *, usedforsecurity: bool = True) -> _Hash:
|
|
100
|
-
"""Returns a sha3-384 hash object; optionally initialized with a string"""
|
|
101
|
-
...
|
|
102
|
-
def sha3_512(string: ReadableBuffer = b"", *, usedforsecurity: bool = True) -> _Hash:
|
|
103
|
-
"""Returns a sha3-512 hash object; optionally initialized with a string"""
|
|
104
|
-
...
|
|
105
|
-
def shake_128(string: ReadableBuffer = b"", *, usedforsecurity: bool = True) -> _VarLenHash:
|
|
106
|
-
"""Returns a shake-128 variable hash object; optionally initialized with a string"""
|
|
107
|
-
...
|
|
108
|
-
def shake_256(string: ReadableBuffer = b"", *, usedforsecurity: bool = True) -> _VarLenHash:
|
|
109
|
-
"""Returns a shake-256 variable hash object; optionally initialized with a string"""
|
|
110
|
-
...
|
|
63
|
+
def new(name: str, data: ReadableBuffer = b"", *, usedforsecurity: bool = ...) -> HASH: ...
|
|
64
|
+
from _hashlib import (
|
|
65
|
+
openssl_sha3_224 as sha3_224,
|
|
66
|
+
openssl_sha3_256 as sha3_256,
|
|
67
|
+
openssl_sha3_384 as sha3_384,
|
|
68
|
+
openssl_sha3_512 as sha3_512,
|
|
69
|
+
openssl_shake_128 as shake_128,
|
|
70
|
+
openssl_shake_256 as shake_256,
|
|
71
|
+
)
|
|
111
72
|
|
|
112
73
|
else:
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
...
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
def
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
def
|
|
124
|
-
"""Returns a sha256 hash object; optionally initialized with a string"""
|
|
125
|
-
...
|
|
126
|
-
def sha384(string: ReadableBuffer = b"") -> _Hash:
|
|
127
|
-
"""Returns a sha384 hash object; optionally initialized with a string"""
|
|
128
|
-
...
|
|
129
|
-
def sha512(string: ReadableBuffer = b"") -> _Hash:
|
|
130
|
-
"""Returns a sha512 hash object; optionally initialized with a string"""
|
|
131
|
-
...
|
|
132
|
-
def sha3_224(string: ReadableBuffer = b"") -> _Hash: ...
|
|
133
|
-
def sha3_256(string: ReadableBuffer = b"") -> _Hash: ...
|
|
134
|
-
def sha3_384(string: ReadableBuffer = b"") -> _Hash: ...
|
|
135
|
-
def sha3_512(string: ReadableBuffer = b"") -> _Hash: ...
|
|
74
|
+
@type_check_only
|
|
75
|
+
class _VarLenHash(HASH):
|
|
76
|
+
def digest(self, length: int) -> bytes: ... # type: ignore[override]
|
|
77
|
+
def hexdigest(self, length: int) -> str: ... # type: ignore[override]
|
|
78
|
+
|
|
79
|
+
def new(name: str, data: ReadableBuffer = b"") -> HASH: ...
|
|
80
|
+
# At runtime these aren't functions but classes imported from _sha3
|
|
81
|
+
def sha3_224(string: ReadableBuffer = b"") -> HASH: ...
|
|
82
|
+
def sha3_256(string: ReadableBuffer = b"") -> HASH: ...
|
|
83
|
+
def sha3_384(string: ReadableBuffer = b"") -> HASH: ...
|
|
84
|
+
def sha3_512(string: ReadableBuffer = b"") -> HASH: ...
|
|
136
85
|
def shake_128(string: ReadableBuffer = b"") -> _VarLenHash: ...
|
|
137
86
|
def shake_256(string: ReadableBuffer = b"") -> _VarLenHash: ...
|
|
138
87
|
|
|
139
88
|
algorithms_guaranteed: AbstractSet[str]
|
|
140
89
|
algorithms_available: AbstractSet[str]
|
|
141
90
|
|
|
142
|
-
def pbkdf2_hmac(
|
|
143
|
-
hash_name: str, password: ReadableBuffer, salt: ReadableBuffer, iterations: int, dklen: int | None = None
|
|
144
|
-
) -> bytes:
|
|
145
|
-
"""Password based key derivation function 2 (PKCS #5 v2.0) with HMAC as pseudorandom function."""
|
|
146
|
-
...
|
|
147
|
-
def scrypt(
|
|
148
|
-
password: ReadableBuffer, *, salt: ReadableBuffer, n: int, r: int, p: int, maxmem: int = 0, dklen: int = 64
|
|
149
|
-
) -> bytes:
|
|
150
|
-
"""scrypt password-based key derivation function."""
|
|
151
|
-
...
|
|
152
|
-
|
|
153
91
|
if sys.version_info >= (3, 11):
|
|
154
92
|
class _BytesIOLike(Protocol):
|
|
155
93
|
def getbuffer(self) -> ReadableBuffer: ...
|
|
@@ -159,5 +97,8 @@ if sys.version_info >= (3, 11):
|
|
|
159
97
|
def readable(self) -> bool: ...
|
|
160
98
|
|
|
161
99
|
def file_digest(
|
|
162
|
-
fileobj: _BytesIOLike | _FileDigestFileObj, digest: str | Callable[[],
|
|
163
|
-
) ->
|
|
100
|
+
fileobj: _BytesIOLike | _FileDigestFileObj, digest: str | Callable[[], HASH], /, *, _bufsize: int = 262144
|
|
101
|
+
) -> HASH: ...
|
|
102
|
+
|
|
103
|
+
# Legacy typing-only alias
|
|
104
|
+
_Hash = HASH
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import sys
|
|
2
|
+
from _hashlib import HASH as _HashlibHash
|
|
1
3
|
from _typeshed import ReadableBuffer, SizedBuffer
|
|
2
4
|
from collections.abc import Callable
|
|
3
|
-
from hashlib import _Hash as _HashlibHash
|
|
4
5
|
from types import ModuleType
|
|
5
6
|
from typing import AnyStr, overload
|
|
6
7
|
from typing_extensions import TypeAlias
|
|
@@ -30,36 +31,40 @@ class HMAC:
|
|
|
30
31
|
def hexdigest(self) -> str: ...
|
|
31
32
|
def copy(self) -> HMAC: ...
|
|
32
33
|
|
|
33
|
-
|
|
34
|
-
def compare_digest(a: ReadableBuffer, b: ReadableBuffer, /) -> bool:
|
|
35
|
-
"""
|
|
36
|
-
Return 'a == b'.
|
|
34
|
+
def digest(key: SizedBuffer, msg: ReadableBuffer, digest: _DigestMod) -> bytes: ...
|
|
37
35
|
|
|
38
|
-
|
|
39
|
-
|
|
36
|
+
if sys.version_info >= (3, 9):
|
|
37
|
+
from _hashlib import compare_digest as compare_digest
|
|
38
|
+
else:
|
|
39
|
+
@overload
|
|
40
|
+
def compare_digest(a: ReadableBuffer, b: ReadableBuffer, /) -> bool:
|
|
41
|
+
"""
|
|
42
|
+
Return 'a == b'.
|
|
40
43
|
|
|
41
|
-
|
|
42
|
-
|
|
44
|
+
This function uses an approach designed to prevent
|
|
45
|
+
timing analysis, making it appropriate for cryptography.
|
|
43
46
|
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
types and lengths of a and b--but not their values.
|
|
47
|
-
"""
|
|
48
|
-
...
|
|
49
|
-
@overload
|
|
50
|
-
def compare_digest(a: AnyStr, b: AnyStr, /) -> bool:
|
|
51
|
-
"""
|
|
52
|
-
Return 'a == b'.
|
|
47
|
+
a and b must both be of the same type: either str (ASCII only),
|
|
48
|
+
or any bytes-like object.
|
|
53
49
|
|
|
54
|
-
|
|
55
|
-
|
|
50
|
+
Note: If a and b are of different lengths, or if an error occurs,
|
|
51
|
+
a timing attack could theoretically reveal information about the
|
|
52
|
+
types and lengths of a and b--but not their values.
|
|
53
|
+
"""
|
|
54
|
+
...
|
|
55
|
+
@overload
|
|
56
|
+
def compare_digest(a: AnyStr, b: AnyStr, /) -> bool:
|
|
57
|
+
"""
|
|
58
|
+
Return 'a == b'.
|
|
56
59
|
|
|
57
|
-
|
|
58
|
-
|
|
60
|
+
This function uses an approach designed to prevent
|
|
61
|
+
timing analysis, making it appropriate for cryptography.
|
|
59
62
|
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
63
|
+
a and b must both be of the same type: either str (ASCII only),
|
|
64
|
+
or any bytes-like object.
|
|
65
|
+
|
|
66
|
+
Note: If a and b are of different lengths, or if an error occurs,
|
|
67
|
+
a timing attack could theoretically reveal information about the
|
|
68
|
+
types and lengths of a and b--but not their values.
|
|
69
|
+
"""
|
|
70
|
+
...
|
|
@@ -63,25 +63,6 @@ class _BaseAddress(_IPAddressBase):
|
|
|
63
63
|
def __gt__(self, other: Self, NotImplemented: Any = ...) -> bool: ...
|
|
64
64
|
def __le__(self, other: Self, NotImplemented: Any = ...) -> bool: ...
|
|
65
65
|
|
|
66
|
-
@property
|
|
67
|
-
def is_global(self) -> bool: ...
|
|
68
|
-
@property
|
|
69
|
-
def is_link_local(self) -> bool: ...
|
|
70
|
-
@property
|
|
71
|
-
def is_loopback(self) -> bool: ...
|
|
72
|
-
@property
|
|
73
|
-
def is_multicast(self) -> bool: ...
|
|
74
|
-
@property
|
|
75
|
-
def is_private(self) -> bool: ...
|
|
76
|
-
@property
|
|
77
|
-
def is_reserved(self) -> bool: ...
|
|
78
|
-
@property
|
|
79
|
-
def is_unspecified(self) -> bool: ...
|
|
80
|
-
@property
|
|
81
|
-
def max_prefixlen(self) -> int: ...
|
|
82
|
-
@property
|
|
83
|
-
def packed(self) -> bytes: ...
|
|
84
|
-
|
|
85
66
|
class _BaseNetwork(_IPAddressBase, Generic[_A]):
|
|
86
67
|
network_address: _A
|
|
87
68
|
netmask: _A
|
|
@@ -176,8 +157,6 @@ class _BaseNetwork(_IPAddressBase, Generic[_A]):
|
|
|
176
157
|
"""
|
|
177
158
|
...
|
|
178
159
|
@property
|
|
179
|
-
def max_prefixlen(self) -> int: ...
|
|
180
|
-
@property
|
|
181
160
|
def num_addresses(self) -> int:
|
|
182
161
|
"""Number of hosts in the current subnet."""
|
|
183
162
|
...
|
|
@@ -204,6 +183,93 @@ class _BaseV4:
|
|
|
204
183
|
def max_prefixlen(self) -> Literal[32]: ...
|
|
205
184
|
|
|
206
185
|
class IPv4Address(_BaseV4, _BaseAddress):
|
|
186
|
+
@property
|
|
187
|
+
def is_global(self) -> bool:
|
|
188
|
+
"""
|
|
189
|
+
``True`` if the address is defined as globally reachable by
|
|
190
|
+
iana-ipv4-special-registry_ (for IPv4) or iana-ipv6-special-registry_
|
|
191
|
+
(for IPv6) with the following exception:
|
|
192
|
+
|
|
193
|
+
For IPv4-mapped IPv6-addresses the ``is_private`` value is determined by the
|
|
194
|
+
semantics of the underlying IPv4 addresses and the following condition holds
|
|
195
|
+
(see :attr:`IPv6Address.ipv4_mapped`)::
|
|
196
|
+
|
|
197
|
+
address.is_global == address.ipv4_mapped.is_global
|
|
198
|
+
|
|
199
|
+
``is_global`` has value opposite to :attr:`is_private`, except for the ``100.64.0.0/10``
|
|
200
|
+
IPv4 range where they are both ``False``.
|
|
201
|
+
"""
|
|
202
|
+
...
|
|
203
|
+
@property
|
|
204
|
+
def is_link_local(self) -> bool:
|
|
205
|
+
"""
|
|
206
|
+
Test if the address is reserved for link-local.
|
|
207
|
+
|
|
208
|
+
Returns:
|
|
209
|
+
A boolean, True if the address is link-local per RFC 3927.
|
|
210
|
+
"""
|
|
211
|
+
...
|
|
212
|
+
@property
|
|
213
|
+
def is_loopback(self) -> bool:
|
|
214
|
+
"""
|
|
215
|
+
Test if the address is a loopback address.
|
|
216
|
+
|
|
217
|
+
Returns:
|
|
218
|
+
A boolean, True if the address is a loopback per RFC 3330.
|
|
219
|
+
"""
|
|
220
|
+
...
|
|
221
|
+
@property
|
|
222
|
+
def is_multicast(self) -> bool:
|
|
223
|
+
"""
|
|
224
|
+
Test if the address is reserved for multicast use.
|
|
225
|
+
|
|
226
|
+
Returns:
|
|
227
|
+
A boolean, True if the address is multicast.
|
|
228
|
+
See RFC 3171 for details.
|
|
229
|
+
"""
|
|
230
|
+
...
|
|
231
|
+
@property
|
|
232
|
+
def is_private(self) -> bool:
|
|
233
|
+
"""
|
|
234
|
+
``True`` if the address is defined as not globally reachable by
|
|
235
|
+
iana-ipv4-special-registry_ (for IPv4) or iana-ipv6-special-registry_
|
|
236
|
+
(for IPv6) with the following exceptions:
|
|
237
|
+
|
|
238
|
+
* ``is_private`` is ``False`` for ``100.64.0.0/10``
|
|
239
|
+
* For IPv4-mapped IPv6-addresses the ``is_private`` value is determined by the
|
|
240
|
+
semantics of the underlying IPv4 addresses and the following condition holds
|
|
241
|
+
(see :attr:`IPv6Address.ipv4_mapped`)::
|
|
242
|
+
|
|
243
|
+
address.is_private == address.ipv4_mapped.is_private
|
|
244
|
+
|
|
245
|
+
``is_private`` has value opposite to :attr:`is_global`, except for the ``100.64.0.0/10``
|
|
246
|
+
IPv4 range where they are both ``False``.
|
|
247
|
+
"""
|
|
248
|
+
...
|
|
249
|
+
@property
|
|
250
|
+
def is_reserved(self) -> bool:
|
|
251
|
+
"""
|
|
252
|
+
Test if the address is otherwise IETF reserved.
|
|
253
|
+
|
|
254
|
+
Returns:
|
|
255
|
+
A boolean, True if the address is within the
|
|
256
|
+
reserved IPv4 Network range.
|
|
257
|
+
"""
|
|
258
|
+
...
|
|
259
|
+
@property
|
|
260
|
+
def is_unspecified(self) -> bool:
|
|
261
|
+
"""
|
|
262
|
+
Test if the address is unspecified.
|
|
263
|
+
|
|
264
|
+
Returns:
|
|
265
|
+
A boolean, True if this is the unspecified address as defined in
|
|
266
|
+
RFC 5735 3.
|
|
267
|
+
"""
|
|
268
|
+
...
|
|
269
|
+
@property
|
|
270
|
+
def packed(self) -> bytes:
|
|
271
|
+
"""The binary representation of this address."""
|
|
272
|
+
...
|
|
207
273
|
if sys.version_info >= (3, 13):
|
|
208
274
|
@property
|
|
209
275
|
def ipv6_mapped(self) -> IPv6Address:
|
|
@@ -241,6 +307,94 @@ class _BaseV6:
|
|
|
241
307
|
|
|
242
308
|
class IPv6Address(_BaseV6, _BaseAddress):
|
|
243
309
|
@property
|
|
310
|
+
def is_global(self) -> bool:
|
|
311
|
+
"""
|
|
312
|
+
``True`` if the address is defined as globally reachable by
|
|
313
|
+
iana-ipv4-special-registry_ (for IPv4) or iana-ipv6-special-registry_
|
|
314
|
+
(for IPv6) with the following exception:
|
|
315
|
+
|
|
316
|
+
For IPv4-mapped IPv6-addresses the ``is_private`` value is determined by the
|
|
317
|
+
semantics of the underlying IPv4 addresses and the following condition holds
|
|
318
|
+
(see :attr:`IPv6Address.ipv4_mapped`)::
|
|
319
|
+
|
|
320
|
+
address.is_global == address.ipv4_mapped.is_global
|
|
321
|
+
|
|
322
|
+
``is_global`` has value opposite to :attr:`is_private`, except for the ``100.64.0.0/10``
|
|
323
|
+
IPv4 range where they are both ``False``.
|
|
324
|
+
"""
|
|
325
|
+
...
|
|
326
|
+
@property
|
|
327
|
+
def is_link_local(self) -> bool:
|
|
328
|
+
"""
|
|
329
|
+
Test if the address is reserved for link-local.
|
|
330
|
+
|
|
331
|
+
Returns:
|
|
332
|
+
A boolean, True if the address is reserved per RFC 4291.
|
|
333
|
+
"""
|
|
334
|
+
...
|
|
335
|
+
@property
|
|
336
|
+
def is_loopback(self) -> bool:
|
|
337
|
+
"""
|
|
338
|
+
Test if the address is a loopback address.
|
|
339
|
+
|
|
340
|
+
Returns:
|
|
341
|
+
A boolean, True if the address is a loopback address as defined in
|
|
342
|
+
RFC 2373 2.5.3.
|
|
343
|
+
"""
|
|
344
|
+
...
|
|
345
|
+
@property
|
|
346
|
+
def is_multicast(self) -> bool:
|
|
347
|
+
"""
|
|
348
|
+
Test if the address is reserved for multicast use.
|
|
349
|
+
|
|
350
|
+
Returns:
|
|
351
|
+
A boolean, True if the address is a multicast address.
|
|
352
|
+
See RFC 2373 2.7 for details.
|
|
353
|
+
"""
|
|
354
|
+
...
|
|
355
|
+
@property
|
|
356
|
+
def is_private(self) -> bool:
|
|
357
|
+
"""
|
|
358
|
+
``True`` if the address is defined as not globally reachable by
|
|
359
|
+
iana-ipv4-special-registry_ (for IPv4) or iana-ipv6-special-registry_
|
|
360
|
+
(for IPv6) with the following exceptions:
|
|
361
|
+
|
|
362
|
+
* ``is_private`` is ``False`` for ``100.64.0.0/10``
|
|
363
|
+
* For IPv4-mapped IPv6-addresses the ``is_private`` value is determined by the
|
|
364
|
+
semantics of the underlying IPv4 addresses and the following condition holds
|
|
365
|
+
(see :attr:`IPv6Address.ipv4_mapped`)::
|
|
366
|
+
|
|
367
|
+
address.is_private == address.ipv4_mapped.is_private
|
|
368
|
+
|
|
369
|
+
``is_private`` has value opposite to :attr:`is_global`, except for the ``100.64.0.0/10``
|
|
370
|
+
IPv4 range where they are both ``False``.
|
|
371
|
+
"""
|
|
372
|
+
...
|
|
373
|
+
@property
|
|
374
|
+
def is_reserved(self) -> bool:
|
|
375
|
+
"""
|
|
376
|
+
Test if the address is otherwise IETF reserved.
|
|
377
|
+
|
|
378
|
+
Returns:
|
|
379
|
+
A boolean, True if the address is within one of the
|
|
380
|
+
reserved IPv6 Network ranges.
|
|
381
|
+
"""
|
|
382
|
+
...
|
|
383
|
+
@property
|
|
384
|
+
def is_unspecified(self) -> bool:
|
|
385
|
+
"""
|
|
386
|
+
Test if the address is unspecified.
|
|
387
|
+
|
|
388
|
+
Returns:
|
|
389
|
+
A boolean, True if this is the unspecified address as defined in
|
|
390
|
+
RFC 2373 2.5.2.
|
|
391
|
+
"""
|
|
392
|
+
...
|
|
393
|
+
@property
|
|
394
|
+
def packed(self) -> bytes:
|
|
395
|
+
"""The binary representation of this address."""
|
|
396
|
+
...
|
|
397
|
+
@property
|
|
244
398
|
def ipv4_mapped(self) -> IPv4Address | None:
|
|
245
399
|
"""
|
|
246
400
|
Return the IPv4 mapped address.
|
|
@@ -64,3 +64,5 @@ class ModuleFinder:
|
|
|
64
64
|
def any_missing(self) -> list[str]: ... # undocumented
|
|
65
65
|
def any_missing_maybe(self) -> tuple[list[str], list[str]]: ... # undocumented
|
|
66
66
|
def replace_paths_in_code(self, co: CodeType) -> CodeType: ... # undocumented
|
|
67
|
+
|
|
68
|
+
def test() -> ModuleFinder | None: ... # undocumented
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import ctypes
|
|
2
2
|
import sys
|
|
3
|
+
from _ctypes import _CData
|
|
3
4
|
from collections.abc import Callable, Iterable, Sequence
|
|
4
|
-
from ctypes import
|
|
5
|
+
from ctypes import _SimpleCData, c_char
|
|
5
6
|
from logging import Logger, _Level as _LoggingLevel
|
|
6
7
|
from multiprocessing import popen_fork, popen_forkserver, popen_spawn_posix, popen_spawn_win32, queues, synchronize
|
|
7
8
|
from multiprocessing.managers import SyncManager
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import ctypes
|
|
2
|
+
from _ctypes import _CData
|
|
2
3
|
from collections.abc import Callable, Iterable, Sequence
|
|
3
|
-
from ctypes import
|
|
4
|
+
from ctypes import _SimpleCData, c_char
|
|
4
5
|
from multiprocessing.context import BaseContext
|
|
5
6
|
from multiprocessing.synchronize import _LockLike
|
|
6
7
|
from types import TracebackType
|