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 +1 @@
|
|
|
1
|
-
|
|
1
|
+
2ccc53bb6716463680fcf1d204642c46299b7f88
|
|
@@ -33,6 +33,7 @@ _contextvars: 3.7-
|
|
|
33
33
|
_csv: 3.0-
|
|
34
34
|
_ctypes: 3.0-
|
|
35
35
|
_curses: 3.0-
|
|
36
|
+
_curses_panel: 3.0-
|
|
36
37
|
_dbm: 3.0-
|
|
37
38
|
_decimal: 3.3-
|
|
38
39
|
_dummy_thread: 3.0-3.8
|
|
@@ -40,6 +41,7 @@ _dummy_threading: 3.0-3.8
|
|
|
40
41
|
_frozen_importlib: 3.0-
|
|
41
42
|
_frozen_importlib_external: 3.5-
|
|
42
43
|
_gdbm: 3.0-
|
|
44
|
+
_hashlib: 3.0-
|
|
43
45
|
_heapq: 3.0-
|
|
44
46
|
_imp: 3.0-
|
|
45
47
|
_interpchannels: 3.13-
|
|
@@ -52,6 +54,7 @@ _lsprof: 3.0-
|
|
|
52
54
|
_lzma: 3.3-
|
|
53
55
|
_markupbase: 3.0-
|
|
54
56
|
_msi: 3.0-3.12
|
|
57
|
+
_multibytecodec: 3.0-
|
|
55
58
|
_operator: 3.4-
|
|
56
59
|
_osx_support: 3.0-
|
|
57
60
|
_posixsubprocess: 3.2-
|
|
@@ -139,6 +142,12 @@ doctest: 3.0-
|
|
|
139
142
|
dummy_threading: 3.0-3.8
|
|
140
143
|
email: 3.0-
|
|
141
144
|
encodings: 3.0-
|
|
145
|
+
encodings.cp1125: 3.4-
|
|
146
|
+
encodings.cp273: 3.4-
|
|
147
|
+
encodings.cp858: 3.2-
|
|
148
|
+
encodings.koi8_t: 3.5-
|
|
149
|
+
encodings.kz1048: 3.5-
|
|
150
|
+
encodings.mac_centeuro: 3.0-3.8
|
|
142
151
|
ensurepip: 3.0-
|
|
143
152
|
enum: 3.4-
|
|
144
153
|
errno: 3.0-
|
|
@@ -2,10 +2,13 @@ import codecs
|
|
|
2
2
|
import sys
|
|
3
3
|
from _typeshed import ReadableBuffer
|
|
4
4
|
from collections.abc import Callable
|
|
5
|
-
from typing import Literal, overload
|
|
5
|
+
from typing import Literal, final, overload, type_check_only
|
|
6
6
|
from typing_extensions import TypeAlias
|
|
7
7
|
|
|
8
8
|
# This type is not exposed; it is defined in unicodeobject.c
|
|
9
|
+
# At runtime it calls itself builtins.EncodingMap
|
|
10
|
+
@final
|
|
11
|
+
@type_check_only
|
|
9
12
|
class _EncodingMap:
|
|
10
13
|
def size(self) -> int: ...
|
|
11
14
|
|
|
@@ -75,6 +75,9 @@ class dict_keys(KeysView[_KT_co], Generic[_KT_co, _VT_co]): # undocumented
|
|
|
75
75
|
def __eq__(self, value: object, /) -> bool:
|
|
76
76
|
"""Return self==value."""
|
|
77
77
|
...
|
|
78
|
+
def __reversed__(self) -> Iterator[_KT_co]:
|
|
79
|
+
"""Return a reverse iterator over the dict keys."""
|
|
80
|
+
...
|
|
78
81
|
if sys.version_info >= (3, 13):
|
|
79
82
|
def isdisjoint(self, other: Iterable[_KT_co], /) -> bool:
|
|
80
83
|
"""Return True if the view and the given iterable have a null intersection."""
|
|
@@ -87,6 +90,9 @@ class dict_keys(KeysView[_KT_co], Generic[_KT_co, _VT_co]): # undocumented
|
|
|
87
90
|
|
|
88
91
|
@final
|
|
89
92
|
class dict_values(ValuesView[_VT_co], Generic[_KT_co, _VT_co]): # undocumented
|
|
93
|
+
def __reversed__(self) -> Iterator[_VT_co]:
|
|
94
|
+
"""Return a reverse iterator over the dict values."""
|
|
95
|
+
...
|
|
90
96
|
if sys.version_info >= (3, 10):
|
|
91
97
|
@property
|
|
92
98
|
def mapping(self) -> MappingProxyType[_KT_co, _VT_co]:
|
|
@@ -98,6 +104,9 @@ class dict_items(ItemsView[_KT_co, _VT_co]): # undocumented
|
|
|
98
104
|
def __eq__(self, value: object, /) -> bool:
|
|
99
105
|
"""Return self==value."""
|
|
100
106
|
...
|
|
107
|
+
def __reversed__(self) -> Iterator[tuple[_KT_co, _VT_co]]:
|
|
108
|
+
"""Return a reverse iterator over the dict items."""
|
|
109
|
+
...
|
|
101
110
|
if sys.version_info >= (3, 13):
|
|
102
111
|
def isdisjoint(self, other: Iterable[tuple[_KT_co, _VT_co]], /) -> bool:
|
|
103
112
|
"""Return True if the view and the given iterable have a null intersection."""
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
import csv
|
|
4
4
|
import sys
|
|
5
5
|
from _typeshed import SupportsWrite
|
|
6
|
-
from collections.abc import Iterable
|
|
7
|
-
from typing import Any, Final
|
|
8
|
-
from typing_extensions import TypeAlias
|
|
6
|
+
from collections.abc import Iterable
|
|
7
|
+
from typing import Any, Final, type_check_only
|
|
8
|
+
from typing_extensions import Self, TypeAlias
|
|
9
9
|
|
|
10
10
|
__version__: Final[str]
|
|
11
11
|
|
|
@@ -52,17 +52,91 @@ class Dialect:
|
|
|
52
52
|
strict: bool = False,
|
|
53
53
|
) -> None: ...
|
|
54
54
|
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
55
|
+
if sys.version_info >= (3, 10):
|
|
56
|
+
# This class calls itself _csv.reader.
|
|
57
|
+
class Reader:
|
|
58
|
+
"""
|
|
59
|
+
CSV reader
|
|
60
|
+
|
|
61
|
+
Reader objects are responsible for reading and parsing tabular data
|
|
62
|
+
in CSV format.
|
|
63
|
+
"""
|
|
64
|
+
@property
|
|
65
|
+
def dialect(self) -> Dialect: ...
|
|
66
|
+
line_num: int
|
|
67
|
+
def __iter__(self) -> Self:
|
|
68
|
+
"""Implement iter(self)."""
|
|
69
|
+
...
|
|
70
|
+
def __next__(self) -> list[str]:
|
|
71
|
+
"""Implement next(self)."""
|
|
72
|
+
...
|
|
73
|
+
|
|
74
|
+
# This class calls itself _csv.writer.
|
|
75
|
+
class Writer:
|
|
76
|
+
"""
|
|
77
|
+
CSV writer
|
|
78
|
+
|
|
79
|
+
Writer objects are responsible for generating tabular data
|
|
80
|
+
in CSV format from sequence input.
|
|
81
|
+
"""
|
|
82
|
+
@property
|
|
83
|
+
def dialect(self) -> Dialect: ...
|
|
84
|
+
if sys.version_info >= (3, 13):
|
|
85
|
+
def writerow(self, row: Iterable[Any], /) -> Any:
|
|
86
|
+
"""
|
|
87
|
+
writerow(iterable)
|
|
88
|
+
|
|
89
|
+
Construct and write a CSV record from an iterable of fields. Non-string
|
|
90
|
+
elements will be converted to string.
|
|
91
|
+
"""
|
|
92
|
+
...
|
|
93
|
+
def writerows(self, rows: Iterable[Iterable[Any]], /) -> None:
|
|
94
|
+
"""
|
|
95
|
+
writerows(iterable of iterables)
|
|
96
|
+
|
|
97
|
+
Construct and write a series of iterables to a csv file. Non-string
|
|
98
|
+
elements will be converted to string.
|
|
99
|
+
"""
|
|
100
|
+
...
|
|
101
|
+
else:
|
|
102
|
+
def writerow(self, row: Iterable[Any]) -> Any:
|
|
103
|
+
"""
|
|
104
|
+
writerow(iterable)
|
|
105
|
+
|
|
106
|
+
Construct and write a CSV record from an iterable of fields. Non-string
|
|
107
|
+
elements will be converted to string.
|
|
108
|
+
"""
|
|
109
|
+
...
|
|
110
|
+
def writerows(self, rows: Iterable[Iterable[Any]]) -> None:
|
|
111
|
+
"""
|
|
112
|
+
writerows(iterable of iterables)
|
|
113
|
+
|
|
114
|
+
Construct and write a series of iterables to a csv file. Non-string
|
|
115
|
+
elements will be converted to string.
|
|
116
|
+
"""
|
|
117
|
+
...
|
|
118
|
+
|
|
119
|
+
# For the return types below.
|
|
120
|
+
# These aliases can be removed when typeshed drops support for 3.9.
|
|
121
|
+
_reader = Reader
|
|
122
|
+
_writer = Writer
|
|
123
|
+
else:
|
|
124
|
+
# This class is not exposed. It calls itself _csv.reader.
|
|
125
|
+
@type_check_only
|
|
126
|
+
class _reader:
|
|
127
|
+
@property
|
|
128
|
+
def dialect(self) -> Dialect: ...
|
|
129
|
+
line_num: int
|
|
130
|
+
def __iter__(self) -> Self: ...
|
|
131
|
+
def __next__(self) -> list[str]: ...
|
|
132
|
+
|
|
133
|
+
# This class is not exposed. It calls itself _csv.writer.
|
|
134
|
+
@type_check_only
|
|
135
|
+
class _writer:
|
|
136
|
+
@property
|
|
137
|
+
def dialect(self) -> Dialect: ...
|
|
138
|
+
def writerow(self, row: Iterable[Any]) -> Any: ...
|
|
139
|
+
def writerows(self, rows: Iterable[Iterable[Any]]) -> None: ...
|
|
66
140
|
|
|
67
141
|
def writer(
|
|
68
142
|
csvfile: SupportsWrite[str],
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
"""Create and manipulate C compatible data types in Python."""
|
|
2
2
|
|
|
3
|
+
import _typeshed
|
|
3
4
|
import sys
|
|
4
|
-
from _typeshed import ReadableBuffer, WriteableBuffer
|
|
5
|
+
from _typeshed import ReadableBuffer, StrOrBytesPath, WriteableBuffer
|
|
5
6
|
from abc import abstractmethod
|
|
6
7
|
from collections.abc import Callable, Iterable, Iterator, Mapping, Sequence
|
|
7
8
|
from ctypes import CDLL, ArgumentError as ArgumentError, c_void_p
|
|
8
|
-
from typing import Any, ClassVar, Generic, TypeVar, overload
|
|
9
|
+
from typing import Any, ClassVar, Generic, TypeVar, final, overload, type_check_only
|
|
9
10
|
from typing_extensions import Self, TypeAlias
|
|
10
11
|
|
|
11
12
|
if sys.version_info >= (3, 9):
|
|
@@ -49,47 +50,86 @@ if sys.platform == "win32":
|
|
|
49
50
|
def LoadLibrary(name: str, load_flags: int = 0, /) -> int: ...
|
|
50
51
|
def FreeLibrary(handle: int, /) -> None: ...
|
|
51
52
|
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
def
|
|
53
|
+
else:
|
|
54
|
+
def dlclose(handle: int, /) -> None:
|
|
55
|
+
"""dlclose a library"""
|
|
56
|
+
...
|
|
57
|
+
# The default for flag is RTLD_GLOBAL|RTLD_LOCAL, which is platform dependent.
|
|
58
|
+
def dlopen(name: StrOrBytesPath, flag: int = ..., /) -> int:
|
|
59
|
+
"""dlopen(name, flag={RTLD_GLOBAL|RTLD_LOCAL}) open a shared library"""
|
|
60
|
+
...
|
|
61
|
+
def dlsym(handle: int, name: str, /) -> int:
|
|
62
|
+
"""find symbol in shared library"""
|
|
63
|
+
...
|
|
64
|
+
|
|
65
|
+
if sys.version_info >= (3, 13):
|
|
66
|
+
# This class is not exposed. It calls itself _ctypes.CType_Type.
|
|
67
|
+
@type_check_only
|
|
68
|
+
class _CType_Type(type):
|
|
69
|
+
# By default mypy complains about the following two methods, because strictly speaking cls
|
|
70
|
+
# might not be a Type[_CT]. However this doesn't happen because this is only a
|
|
71
|
+
# metaclass for subclasses of _CData.
|
|
72
|
+
def __mul__(cls: type[_CT], other: int) -> type[Array[_CT]]: ... # type: ignore[misc] # pyright: ignore[reportGeneralTypeIssues]
|
|
73
|
+
def __rmul__(cls: type[_CT], other: int) -> type[Array[_CT]]: ... # type: ignore[misc] # pyright: ignore[reportGeneralTypeIssues]
|
|
58
74
|
|
|
59
|
-
|
|
75
|
+
_CTypeBaseType = _CType_Type
|
|
76
|
+
|
|
77
|
+
else:
|
|
78
|
+
_CTypeBaseType = type
|
|
79
|
+
|
|
80
|
+
# This class is not exposed.
|
|
81
|
+
@type_check_only
|
|
82
|
+
class _CData:
|
|
60
83
|
_b_base_: int
|
|
61
84
|
_b_needsfree_: bool
|
|
62
85
|
_objects: Mapping[Any, int] | None
|
|
63
|
-
# At runtime the following classmethods are available only on classes, not
|
|
64
|
-
# on instances. This can't be reflected properly in the type system:
|
|
65
|
-
#
|
|
66
|
-
# Structure.from_buffer(...) # valid at runtime
|
|
67
|
-
# Structure(...).from_buffer(...) # invalid at runtime
|
|
68
|
-
#
|
|
69
|
-
@classmethod
|
|
70
|
-
def from_buffer(cls, source: WriteableBuffer, offset: int = ...) -> Self: ...
|
|
71
|
-
@classmethod
|
|
72
|
-
def from_buffer_copy(cls, source: ReadableBuffer, offset: int = ...) -> Self: ...
|
|
73
|
-
@classmethod
|
|
74
|
-
def from_address(cls, address: int) -> Self: ...
|
|
75
|
-
@classmethod
|
|
76
|
-
def from_param(cls, value: Any, /) -> Self | _CArgObject: ...
|
|
77
|
-
@classmethod
|
|
78
|
-
def in_dll(cls, library: CDLL, name: str) -> Self: ...
|
|
79
86
|
def __buffer__(self, flags: int, /) -> memoryview: ...
|
|
80
|
-
def
|
|
81
|
-
|
|
82
|
-
|
|
87
|
+
def __ctypes_from_outparam__(self, /) -> Self: ...
|
|
88
|
+
|
|
89
|
+
# this is a union of all the subclasses of _CData, which is useful because of
|
|
90
|
+
# the methods that are present on each of those subclasses which are not present
|
|
91
|
+
# on _CData itself.
|
|
92
|
+
_CDataType: TypeAlias = _SimpleCData[Any] | _Pointer[Any] | CFuncPtr | Union | Structure | Array[Any]
|
|
93
|
+
|
|
94
|
+
# This class is not exposed. It calls itself _ctypes.PyCSimpleType.
|
|
95
|
+
@type_check_only
|
|
96
|
+
class _PyCSimpleType(_CTypeBaseType):
|
|
97
|
+
def from_address(self: type[_typeshed.Self], value: int, /) -> _typeshed.Self: ...
|
|
98
|
+
def from_buffer(self: type[_typeshed.Self], obj: WriteableBuffer, offset: int = 0, /) -> _typeshed.Self: ...
|
|
99
|
+
def from_buffer_copy(self: type[_typeshed.Self], buffer: ReadableBuffer, offset: int = 0, /) -> _typeshed.Self: ...
|
|
100
|
+
def from_param(self: type[_typeshed.Self], value: Any, /) -> _typeshed.Self | _CArgObject: ...
|
|
101
|
+
def in_dll(self: type[_typeshed.Self], dll: CDLL, name: str, /) -> _typeshed.Self: ...
|
|
102
|
+
if sys.version_info < (3, 13):
|
|
103
|
+
# Inherited from CType_Type starting on 3.13
|
|
104
|
+
def __mul__(self: type[_CT], value: int, /) -> type[Array[_CT]]: ... # type: ignore[misc] # pyright: ignore[reportGeneralTypeIssues]
|
|
105
|
+
def __rmul__(self: type[_CT], value: int, /) -> type[Array[_CT]]: ... # type: ignore[misc] # pyright: ignore[reportGeneralTypeIssues]
|
|
106
|
+
|
|
107
|
+
class _SimpleCData(_CData, Generic[_T], metaclass=_PyCSimpleType):
|
|
83
108
|
"""XXX to be provided"""
|
|
84
109
|
value: _T
|
|
85
110
|
# The TypeVar can be unsolved here,
|
|
86
111
|
# but we can't use overloads without creating many, many mypy false-positive errors
|
|
87
112
|
def __init__(self, value: _T = ...) -> None: ... # pyright: ignore[reportInvalidTypeVarUse]
|
|
113
|
+
def __ctypes_from_outparam__(self, /) -> _T: ... # type: ignore[override]
|
|
88
114
|
|
|
89
115
|
class _CanCastTo(_CData): ...
|
|
90
116
|
class _PointerLike(_CanCastTo): ...
|
|
91
117
|
|
|
92
|
-
|
|
118
|
+
# This type is not exposed. It calls itself _ctypes.PyCPointerType.
|
|
119
|
+
@type_check_only
|
|
120
|
+
class _PyCPointerType(_CTypeBaseType):
|
|
121
|
+
def from_address(self: type[_typeshed.Self], value: int, /) -> _typeshed.Self: ...
|
|
122
|
+
def from_buffer(self: type[_typeshed.Self], obj: WriteableBuffer, offset: int = 0, /) -> _typeshed.Self: ...
|
|
123
|
+
def from_buffer_copy(self: type[_typeshed.Self], buffer: ReadableBuffer, offset: int = 0, /) -> _typeshed.Self: ...
|
|
124
|
+
def from_param(self: type[_typeshed.Self], value: Any, /) -> _typeshed.Self | _CArgObject: ...
|
|
125
|
+
def in_dll(self: type[_typeshed.Self], dll: CDLL, name: str, /) -> _typeshed.Self: ...
|
|
126
|
+
def set_type(self, type: Any, /) -> None: ...
|
|
127
|
+
if sys.version_info < (3, 13):
|
|
128
|
+
# Inherited from CType_Type starting on 3.13
|
|
129
|
+
def __mul__(cls: type[_CT], other: int) -> type[Array[_CT]]: ... # type: ignore[misc] # pyright: ignore[reportGeneralTypeIssues]
|
|
130
|
+
def __rmul__(cls: type[_CT], other: int) -> type[Array[_CT]]: ... # type: ignore[misc] # pyright: ignore[reportGeneralTypeIssues]
|
|
131
|
+
|
|
132
|
+
class _Pointer(_PointerLike, _CData, Generic[_CT], metaclass=_PyCPointerType):
|
|
93
133
|
"""XXX to be provided"""
|
|
94
134
|
_type_: type[_CT]
|
|
95
135
|
contents: _CT
|
|
@@ -143,9 +183,12 @@ def pointer(obj: _CT, /) -> _Pointer[_CT]:
|
|
|
143
183
|
"""
|
|
144
184
|
...
|
|
145
185
|
|
|
186
|
+
# This class is not exposed. It calls itself _ctypes.CArgObject.
|
|
187
|
+
@final
|
|
188
|
+
@type_check_only
|
|
146
189
|
class _CArgObject: ...
|
|
147
190
|
|
|
148
|
-
def byref(obj: _CData, offset: int = ...) -> _CArgObject:
|
|
191
|
+
def byref(obj: _CData | _CDataType, offset: int = ...) -> _CArgObject:
|
|
149
192
|
"""
|
|
150
193
|
byref(C instance[, offset=0]) -> byref-object
|
|
151
194
|
Return a pointer lookalike to a C instance, only usable
|
|
@@ -153,13 +196,26 @@ def byref(obj: _CData, offset: int = ...) -> _CArgObject:
|
|
|
153
196
|
"""
|
|
154
197
|
...
|
|
155
198
|
|
|
156
|
-
_ECT: TypeAlias = Callable[[_CData | None, CFuncPtr, tuple[_CData, ...]],
|
|
199
|
+
_ECT: TypeAlias = Callable[[_CData | _CDataType | None, CFuncPtr, tuple[_CData | _CDataType, ...]], _CDataType]
|
|
157
200
|
_PF: TypeAlias = tuple[int] | tuple[int, str | None] | tuple[int, str | None, Any]
|
|
158
201
|
|
|
159
|
-
class
|
|
202
|
+
# This class is not exposed. It calls itself _ctypes.PyCFuncPtrType.
|
|
203
|
+
@type_check_only
|
|
204
|
+
class _PyCFuncPtrType(_CTypeBaseType):
|
|
205
|
+
def from_address(self: type[_typeshed.Self], value: int, /) -> _typeshed.Self: ...
|
|
206
|
+
def from_buffer(self: type[_typeshed.Self], obj: WriteableBuffer, offset: int = 0, /) -> _typeshed.Self: ...
|
|
207
|
+
def from_buffer_copy(self: type[_typeshed.Self], buffer: ReadableBuffer, offset: int = 0, /) -> _typeshed.Self: ...
|
|
208
|
+
def from_param(self: type[_typeshed.Self], value: Any, /) -> _typeshed.Self | _CArgObject: ...
|
|
209
|
+
def in_dll(self: type[_typeshed.Self], dll: CDLL, name: str, /) -> _typeshed.Self: ...
|
|
210
|
+
if sys.version_info < (3, 13):
|
|
211
|
+
# Inherited from CType_Type starting on 3.13
|
|
212
|
+
def __mul__(cls: type[_CT], other: int) -> type[Array[_CT]]: ... # type: ignore[misc] # pyright: ignore[reportGeneralTypeIssues]
|
|
213
|
+
def __rmul__(cls: type[_CT], other: int) -> type[Array[_CT]]: ... # type: ignore[misc] # pyright: ignore[reportGeneralTypeIssues]
|
|
214
|
+
|
|
215
|
+
class CFuncPtr(_PointerLike, _CData, metaclass=_PyCFuncPtrType):
|
|
160
216
|
"""Function Pointer"""
|
|
161
|
-
restype: type[
|
|
162
|
-
argtypes: Sequence[type[
|
|
217
|
+
restype: type[_CDataType] | Callable[[int], Any] | None
|
|
218
|
+
argtypes: Sequence[type[_CDataType]]
|
|
163
219
|
errcheck: _ECT
|
|
164
220
|
# Abstract attribute that must be defined on subclasses
|
|
165
221
|
_flags_: ClassVar[int]
|
|
@@ -174,7 +230,7 @@ class CFuncPtr(_PointerLike, _CData):
|
|
|
174
230
|
if sys.platform == "win32":
|
|
175
231
|
@overload
|
|
176
232
|
def __init__(
|
|
177
|
-
self, vtbl_index: int, name: str, paramflags: tuple[_PF, ...] | None = ..., iid: _CData | None = ..., /
|
|
233
|
+
self, vtbl_index: int, name: str, paramflags: tuple[_PF, ...] | None = ..., iid: _CData | _CDataType | None = ..., /
|
|
178
234
|
) -> None: ...
|
|
179
235
|
|
|
180
236
|
def __call__(self, *args: Any, **kwargs: Any) -> Any:
|
|
@@ -184,34 +240,101 @@ class CFuncPtr(_PointerLike, _CData):
|
|
|
184
240
|
_GetT = TypeVar("_GetT")
|
|
185
241
|
_SetT = TypeVar("_SetT")
|
|
186
242
|
|
|
243
|
+
# This class is not exposed. It calls itself _ctypes.CField.
|
|
244
|
+
@final
|
|
245
|
+
@type_check_only
|
|
187
246
|
class _CField(Generic[_CT, _GetT, _SetT]):
|
|
188
247
|
offset: int
|
|
189
248
|
size: int
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
249
|
+
if sys.version_info >= (3, 10):
|
|
250
|
+
@overload
|
|
251
|
+
def __get__(self, instance: None, owner: type[Any] | None = None, /) -> Self: ...
|
|
252
|
+
@overload
|
|
253
|
+
def __get__(self, instance: Any, owner: type[Any] | None = None, /) -> _GetT: ...
|
|
254
|
+
else:
|
|
255
|
+
@overload
|
|
256
|
+
def __get__(self, instance: None, owner: type[Any] | None, /) -> Self: ...
|
|
257
|
+
@overload
|
|
258
|
+
def __get__(self, instance: Any, owner: type[Any] | None, /) -> _GetT: ...
|
|
259
|
+
|
|
194
260
|
def __set__(self, instance: Any, value: _SetT, /) -> None: ...
|
|
195
261
|
|
|
196
|
-
class
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
262
|
+
# This class is not exposed. It calls itself _ctypes.UnionType.
|
|
263
|
+
@type_check_only
|
|
264
|
+
class _UnionType(_CTypeBaseType):
|
|
265
|
+
def from_address(self: type[_typeshed.Self], value: int, /) -> _typeshed.Self: ...
|
|
266
|
+
def from_buffer(self: type[_typeshed.Self], obj: WriteableBuffer, offset: int = 0, /) -> _typeshed.Self: ...
|
|
267
|
+
def from_buffer_copy(self: type[_typeshed.Self], buffer: ReadableBuffer, offset: int = 0, /) -> _typeshed.Self: ...
|
|
268
|
+
def from_param(self: type[_typeshed.Self], value: Any, /) -> _typeshed.Self | _CArgObject: ...
|
|
269
|
+
def in_dll(self: type[_typeshed.Self], dll: CDLL, name: str, /) -> _typeshed.Self: ...
|
|
270
|
+
# At runtime, various attributes are created on a Union subclass based
|
|
271
|
+
# on its _fields_. This method doesn't exist, but represents those
|
|
272
|
+
# dynamically created attributes.
|
|
200
273
|
def __getattr__(self, name: str) -> _CField[Any, Any, Any]: ...
|
|
274
|
+
if sys.version_info < (3, 13):
|
|
275
|
+
# Inherited from CType_Type starting on 3.13
|
|
276
|
+
def __mul__(cls: type[_CT], other: int) -> type[Array[_CT]]: ... # type: ignore[misc] # pyright: ignore[reportGeneralTypeIssues]
|
|
277
|
+
def __rmul__(cls: type[_CT], other: int) -> type[Array[_CT]]: ... # type: ignore[misc] # pyright: ignore[reportGeneralTypeIssues]
|
|
278
|
+
|
|
279
|
+
class Union(_CData, metaclass=_UnionType):
|
|
280
|
+
"""Union base class"""
|
|
281
|
+
_fields_: ClassVar[Sequence[tuple[str, type[_CDataType]] | tuple[str, type[_CDataType], int]]]
|
|
282
|
+
_pack_: ClassVar[int]
|
|
283
|
+
_anonymous_: ClassVar[Sequence[str]]
|
|
284
|
+
if sys.version_info >= (3, 13):
|
|
285
|
+
_align_: ClassVar[int]
|
|
201
286
|
|
|
202
|
-
class _StructUnionBase(_CData, metaclass=_StructUnionMeta):
|
|
203
287
|
def __init__(self, *args: Any, **kw: Any) -> None: ...
|
|
204
288
|
def __getattr__(self, name: str) -> Any: ...
|
|
205
|
-
def __setattr__(self, name: str, value: Any) -> None:
|
|
289
|
+
def __setattr__(self, name: str, value: Any) -> None:
|
|
290
|
+
"""Implement setattr(self, name, value)."""
|
|
291
|
+
...
|
|
206
292
|
|
|
207
|
-
class
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
293
|
+
# This class is not exposed. It calls itself _ctypes.PyCStructType.
|
|
294
|
+
@type_check_only
|
|
295
|
+
class _PyCStructType(_CTypeBaseType):
|
|
296
|
+
def from_address(self: type[_typeshed.Self], value: int, /) -> _typeshed.Self: ...
|
|
297
|
+
def from_buffer(self: type[_typeshed.Self], obj: WriteableBuffer, offset: int = 0, /) -> _typeshed.Self: ...
|
|
298
|
+
def from_buffer_copy(self: type[_typeshed.Self], buffer: ReadableBuffer, offset: int = 0, /) -> _typeshed.Self: ...
|
|
299
|
+
def from_param(self: type[_typeshed.Self], value: Any, /) -> _typeshed.Self | _CArgObject: ...
|
|
300
|
+
def in_dll(self: type[_typeshed.Self], dll: CDLL, name: str, /) -> _typeshed.Self: ...
|
|
301
|
+
# At runtime, various attributes are created on a Structure subclass based
|
|
302
|
+
# on its _fields_. This method doesn't exist, but represents those
|
|
303
|
+
# dynamically created attributes.
|
|
304
|
+
def __getattr__(self, name: str) -> _CField[Any, Any, Any]: ...
|
|
305
|
+
if sys.version_info < (3, 13):
|
|
306
|
+
# Inherited from CType_Type starting on 3.13
|
|
307
|
+
def __mul__(cls: type[_CT], other: int) -> type[Array[_CT]]: ... # type: ignore[misc] # pyright: ignore[reportGeneralTypeIssues]
|
|
308
|
+
def __rmul__(cls: type[_CT], other: int) -> type[Array[_CT]]: ... # type: ignore[misc] # pyright: ignore[reportGeneralTypeIssues]
|
|
309
|
+
|
|
310
|
+
class Structure(_CData, metaclass=_PyCStructType):
|
|
211
311
|
"""Structure base class"""
|
|
212
|
-
|
|
312
|
+
_fields_: ClassVar[Sequence[tuple[str, type[_CDataType]] | tuple[str, type[_CDataType], int]]]
|
|
313
|
+
_pack_: ClassVar[int]
|
|
314
|
+
_anonymous_: ClassVar[Sequence[str]]
|
|
315
|
+
if sys.version_info >= (3, 13):
|
|
316
|
+
_align_: ClassVar[int]
|
|
317
|
+
|
|
318
|
+
def __init__(self, *args: Any, **kw: Any) -> None: ...
|
|
319
|
+
def __getattr__(self, name: str) -> Any: ...
|
|
320
|
+
def __setattr__(self, name: str, value: Any) -> None:
|
|
321
|
+
"""Implement setattr(self, name, value)."""
|
|
322
|
+
...
|
|
213
323
|
|
|
214
|
-
class
|
|
324
|
+
# This class is not exposed. It calls itself _ctypes.PyCArrayType.
|
|
325
|
+
@type_check_only
|
|
326
|
+
class _PyCArrayType(_CTypeBaseType):
|
|
327
|
+
def from_address(self: type[_typeshed.Self], value: int, /) -> _typeshed.Self: ...
|
|
328
|
+
def from_buffer(self: type[_typeshed.Self], obj: WriteableBuffer, offset: int = 0, /) -> _typeshed.Self: ...
|
|
329
|
+
def from_buffer_copy(self: type[_typeshed.Self], buffer: ReadableBuffer, offset: int = 0, /) -> _typeshed.Self: ...
|
|
330
|
+
def from_param(self: type[_typeshed.Self], value: Any, /) -> _typeshed.Self | _CArgObject: ...
|
|
331
|
+
def in_dll(self: type[_typeshed.Self], dll: CDLL, name: str, /) -> _typeshed.Self: ...
|
|
332
|
+
if sys.version_info < (3, 13):
|
|
333
|
+
# Inherited from CType_Type starting on 3.13
|
|
334
|
+
def __mul__(cls: type[_CT], other: int) -> type[Array[_CT]]: ... # type: ignore[misc] # pyright: ignore[reportGeneralTypeIssues]
|
|
335
|
+
def __rmul__(cls: type[_CT], other: int) -> type[Array[_CT]]: ... # type: ignore[misc] # pyright: ignore[reportGeneralTypeIssues]
|
|
336
|
+
|
|
337
|
+
class Array(_CData, Generic[_CT], metaclass=_PyCArrayType):
|
|
215
338
|
"""
|
|
216
339
|
Abstract base class for arrays.
|
|
217
340
|
|
|
@@ -277,13 +400,13 @@ class Array(_CData, Generic[_CT]):
|
|
|
277
400
|
"""See PEP 585"""
|
|
278
401
|
...
|
|
279
402
|
|
|
280
|
-
def addressof(obj: _CData, /) -> int:
|
|
403
|
+
def addressof(obj: _CData | _CDataType, /) -> int:
|
|
281
404
|
"""
|
|
282
405
|
addressof(C instance) -> integer
|
|
283
406
|
Return the address of the C instance internal buffer
|
|
284
407
|
"""
|
|
285
408
|
...
|
|
286
|
-
def alignment(obj_or_type: _CData | type[_CData], /) -> int:
|
|
409
|
+
def alignment(obj_or_type: _CData | _CDataType | type[_CData | _CDataType], /) -> int:
|
|
287
410
|
"""
|
|
288
411
|
alignment(C type) -> integer
|
|
289
412
|
alignment(C instance) -> integer
|
|
@@ -291,14 +414,22 @@ def alignment(obj_or_type: _CData | type[_CData], /) -> int:
|
|
|
291
414
|
"""
|
|
292
415
|
...
|
|
293
416
|
def get_errno() -> int: ...
|
|
294
|
-
def resize(obj: _CData, size: int, /) -> None:
|
|
417
|
+
def resize(obj: _CData | _CDataType, size: int, /) -> None:
|
|
295
418
|
"""Resize the memory buffer of a ctypes instance"""
|
|
296
419
|
...
|
|
297
420
|
def set_errno(value: int, /) -> int: ...
|
|
298
|
-
def sizeof(obj_or_type: _CData | type[_CData], /) -> int:
|
|
421
|
+
def sizeof(obj_or_type: _CData | _CDataType | type[_CData | _CDataType], /) -> int:
|
|
299
422
|
"""
|
|
300
423
|
sizeof(C type) -> integer
|
|
301
424
|
sizeof(C instance) -> integer
|
|
302
425
|
Return the size in bytes of a C instance
|
|
303
426
|
"""
|
|
304
427
|
...
|
|
428
|
+
def PyObj_FromPtr(address: int, /) -> Any: ...
|
|
429
|
+
def Py_DECREF(o: _T, /) -> _T: ...
|
|
430
|
+
def Py_INCREF(o: _T, /) -> _T: ...
|
|
431
|
+
def buffer_info(o: _CData | _CDataType | type[_CData | _CDataType], /) -> tuple[str, int, tuple[int, ...]]:
|
|
432
|
+
"""Return buffer interface information"""
|
|
433
|
+
...
|
|
434
|
+
def call_cdeclfunction(address: int, arguments: tuple[Any, ...], /) -> Any: ...
|
|
435
|
+
def call_function(address: int, arguments: tuple[Any, ...], /) -> Any: ...
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import sys
|
|
2
2
|
from _typeshed import ReadOnlyBuffer, SupportsRead
|
|
3
|
-
from
|
|
3
|
+
from curses import _ncurses_version
|
|
4
|
+
from typing import IO, Any, final, overload
|
|
4
5
|
from typing_extensions import TypeAlias
|
|
5
6
|
|
|
6
7
|
# NOTE: This module is ordinarily only available on Unix, but the windows-curses
|
|
@@ -1890,9 +1891,4 @@ class window: # undocumented
|
|
|
1890
1891
|
"""
|
|
1891
1892
|
...
|
|
1892
1893
|
|
|
1893
|
-
class _ncurses_version(NamedTuple):
|
|
1894
|
-
major: int
|
|
1895
|
-
minor: int
|
|
1896
|
-
patch: int
|
|
1897
|
-
|
|
1898
1894
|
ncurses_version: _ncurses_version
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
from _curses import window
|
|
2
|
+
from typing import final
|
|
3
|
+
|
|
4
|
+
__version__: str
|
|
5
|
+
version: str
|
|
6
|
+
|
|
7
|
+
class error(Exception): ...
|
|
8
|
+
|
|
9
|
+
@final
|
|
10
|
+
class panel:
|
|
11
|
+
def above(self) -> panel:
|
|
12
|
+
"""Return the panel above the current panel."""
|
|
13
|
+
...
|
|
14
|
+
def below(self) -> panel:
|
|
15
|
+
"""Return the panel below the current panel."""
|
|
16
|
+
...
|
|
17
|
+
def bottom(self) -> None:
|
|
18
|
+
"""Push the panel to the bottom of the stack."""
|
|
19
|
+
...
|
|
20
|
+
def hidden(self) -> bool:
|
|
21
|
+
"""Return True if the panel is hidden (not visible), False otherwise."""
|
|
22
|
+
...
|
|
23
|
+
def hide(self) -> None:
|
|
24
|
+
"""
|
|
25
|
+
Hide the panel.
|
|
26
|
+
|
|
27
|
+
This does not delete the object, it just makes the window on screen invisible.
|
|
28
|
+
"""
|
|
29
|
+
...
|
|
30
|
+
def move(self, y: int, x: int, /) -> None:
|
|
31
|
+
"""Move the panel to the screen coordinates (y, x)."""
|
|
32
|
+
...
|
|
33
|
+
def replace(self, win: window, /) -> None:
|
|
34
|
+
"""Change the window associated with the panel to the window win."""
|
|
35
|
+
...
|
|
36
|
+
def set_userptr(self, obj: object, /) -> None:
|
|
37
|
+
"""Set the panel's user pointer to obj."""
|
|
38
|
+
...
|
|
39
|
+
def show(self) -> None:
|
|
40
|
+
"""Display the panel (which might have been hidden)."""
|
|
41
|
+
...
|
|
42
|
+
def top(self) -> None:
|
|
43
|
+
"""Push panel to the top of the stack."""
|
|
44
|
+
...
|
|
45
|
+
def userptr(self) -> object:
|
|
46
|
+
"""Return the user pointer for the panel."""
|
|
47
|
+
...
|
|
48
|
+
def window(self) -> window:
|
|
49
|
+
"""Return the window object associated with the panel."""
|
|
50
|
+
...
|
|
51
|
+
|
|
52
|
+
def bottom_panel() -> panel:
|
|
53
|
+
"""Return the bottom panel in the panel stack."""
|
|
54
|
+
...
|
|
55
|
+
def new_panel(win: window, /) -> panel:
|
|
56
|
+
"""Return a panel object, associating it with the given window win."""
|
|
57
|
+
...
|
|
58
|
+
def top_panel() -> panel:
|
|
59
|
+
"""Return the top panel in the panel stack."""
|
|
60
|
+
...
|
|
61
|
+
def update_panels() -> panel:
|
|
62
|
+
"""
|
|
63
|
+
Updates the virtual screen after changes in the panel stack.
|
|
64
|
+
|
|
65
|
+
This does not call curses.doupdate(), so you'll have to do this yourself.
|
|
66
|
+
"""
|
|
67
|
+
...
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import sys
|
|
2
2
|
from _typeshed import ReadOnlyBuffer, StrOrBytesPath
|
|
3
3
|
from types import TracebackType
|
|
4
|
-
from typing import TypeVar, overload
|
|
4
|
+
from typing import TypeVar, final, overload, type_check_only
|
|
5
5
|
from typing_extensions import Self, TypeAlias
|
|
6
6
|
|
|
7
7
|
if sys.platform != "win32":
|
|
@@ -13,6 +13,8 @@ if sys.platform != "win32":
|
|
|
13
13
|
library: str
|
|
14
14
|
|
|
15
15
|
# Actual typename dbm, not exposed by the implementation
|
|
16
|
+
@final
|
|
17
|
+
@type_check_only
|
|
16
18
|
class _dbm:
|
|
17
19
|
def close(self) -> None: ...
|
|
18
20
|
if sys.version_info >= (3, 13):
|
|
@@ -22,18 +24,17 @@ if sys.platform != "win32":
|
|
|
22
24
|
def __setitem__(self, key: _KeyType, value: _ValueType) -> None: ...
|
|
23
25
|
def __delitem__(self, key: _KeyType) -> None: ...
|
|
24
26
|
def __len__(self) -> int: ...
|
|
25
|
-
def __del__(self) -> None: ...
|
|
26
27
|
def __enter__(self) -> Self: ...
|
|
27
28
|
def __exit__(
|
|
28
29
|
self, exc_type: type[BaseException] | None, exc_val: BaseException | None, exc_tb: TracebackType | None
|
|
29
30
|
) -> None: ...
|
|
30
31
|
@overload
|
|
31
|
-
def get(self, k: _KeyType) -> bytes | None: ...
|
|
32
|
+
def get(self, k: _KeyType, /) -> bytes | None: ...
|
|
32
33
|
@overload
|
|
33
|
-
def get(self, k: _KeyType, default: _T) -> bytes | _T: ...
|
|
34
|
+
def get(self, k: _KeyType, default: _T, /) -> bytes | _T: ...
|
|
34
35
|
def keys(self) -> list[bytes]: ...
|
|
35
|
-
def setdefault(self, k: _KeyType, default: _ValueType =
|
|
36
|
-
#
|
|
36
|
+
def setdefault(self, k: _KeyType, default: _ValueType = ..., /) -> bytes: ...
|
|
37
|
+
# This isn't true, but the class can't be instantiated. See #13024
|
|
37
38
|
__new__: None # type: ignore[assignment]
|
|
38
39
|
__init__: None # type: ignore[assignment]
|
|
39
40
|
|