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,98 @@
|
|
|
1
|
+
from _typeshed import Incomplete
|
|
2
|
+
|
|
3
|
+
this_dir: Incomplete
|
|
4
|
+
|
|
5
|
+
class FilterParameters:
|
|
6
|
+
Name: Incomplete
|
|
7
|
+
Description: Incomplete
|
|
8
|
+
Path: Incomplete
|
|
9
|
+
Server: Incomplete
|
|
10
|
+
AddExtensionFile: bool
|
|
11
|
+
AddExtensionFile_Enabled: bool
|
|
12
|
+
AddExtensionFile_GroupID: Incomplete
|
|
13
|
+
AddExtensionFile_CanDelete: bool
|
|
14
|
+
AddExtensionFile_Description: Incomplete
|
|
15
|
+
def __init__(self, **kw) -> None: ...
|
|
16
|
+
|
|
17
|
+
class VirtualDirParameters:
|
|
18
|
+
Name: Incomplete
|
|
19
|
+
Description: Incomplete
|
|
20
|
+
AppProtection: Incomplete
|
|
21
|
+
Headers: Incomplete
|
|
22
|
+
Path: Incomplete
|
|
23
|
+
Type: Incomplete
|
|
24
|
+
AccessExecute: Incomplete
|
|
25
|
+
AccessRead: Incomplete
|
|
26
|
+
AccessWrite: Incomplete
|
|
27
|
+
AccessScript: Incomplete
|
|
28
|
+
ContentIndexed: Incomplete
|
|
29
|
+
EnableDirBrowsing: Incomplete
|
|
30
|
+
EnableDefaultDoc: Incomplete
|
|
31
|
+
DefaultDoc: Incomplete
|
|
32
|
+
ScriptMaps: list[ScriptMapParams]
|
|
33
|
+
ScriptMapUpdate: str
|
|
34
|
+
Server: Incomplete
|
|
35
|
+
def __init__(self, **kw) -> None: ...
|
|
36
|
+
def is_root(self): ...
|
|
37
|
+
def split_path(self): ...
|
|
38
|
+
|
|
39
|
+
class ScriptMapParams:
|
|
40
|
+
Extension: Incomplete
|
|
41
|
+
Module: Incomplete
|
|
42
|
+
Flags: int
|
|
43
|
+
Verbs: str
|
|
44
|
+
AddExtensionFile: bool
|
|
45
|
+
AddExtensionFile_Enabled: bool
|
|
46
|
+
AddExtensionFile_GroupID: Incomplete
|
|
47
|
+
AddExtensionFile_CanDelete: bool
|
|
48
|
+
AddExtensionFile_Description: Incomplete
|
|
49
|
+
def __init__(self, **kw) -> None: ...
|
|
50
|
+
|
|
51
|
+
class ISAPIParameters:
|
|
52
|
+
ServerName: Incomplete
|
|
53
|
+
Filters: list[FilterParameters]
|
|
54
|
+
VirtualDirs: list[VirtualDirParameters]
|
|
55
|
+
def __init__(self, **kw) -> None: ...
|
|
56
|
+
|
|
57
|
+
verbose: int
|
|
58
|
+
|
|
59
|
+
def log(level, what) -> None: ...
|
|
60
|
+
|
|
61
|
+
class InstallationError(Exception): ...
|
|
62
|
+
class ItemNotFound(InstallationError): ...
|
|
63
|
+
class ConfigurationError(InstallationError): ...
|
|
64
|
+
|
|
65
|
+
def FindPath(options, server, name): ...
|
|
66
|
+
def LocateWebServerPath(description): ...
|
|
67
|
+
def GetWebServer(description: Incomplete | None = None): ...
|
|
68
|
+
def LoadWebServer(path): ...
|
|
69
|
+
def FindWebServer(options, server_desc): ...
|
|
70
|
+
def split_path(path): ...
|
|
71
|
+
def CreateDirectory(params, options): ...
|
|
72
|
+
def AssignScriptMaps(script_maps, target, update: str = "replace") -> None: ...
|
|
73
|
+
def get_unique_items(sequence, reference): ...
|
|
74
|
+
def CreateISAPIFilter(filterParams, options): ...
|
|
75
|
+
def DeleteISAPIFilter(filterParams, options) -> None: ...
|
|
76
|
+
def AddExtensionFiles(params, options) -> None: ...
|
|
77
|
+
def DeleteExtensionFileRecords(params, options) -> None: ...
|
|
78
|
+
def CheckLoaderModule(dll_name) -> None: ...
|
|
79
|
+
def Install(params, options) -> None: ...
|
|
80
|
+
def RemoveDirectory(params, options) -> None: ...
|
|
81
|
+
def RemoveScriptMaps(vd_params, options) -> None: ...
|
|
82
|
+
def Uninstall(params, options) -> None: ...
|
|
83
|
+
def GetLoaderModuleName(mod_name, check_module: Incomplete | None = None): ...
|
|
84
|
+
def InstallModule(conf_module_name, params, options, log=...) -> None: ...
|
|
85
|
+
def UninstallModule(conf_module_name, params, options, log=...) -> None: ...
|
|
86
|
+
|
|
87
|
+
standard_arguments: Incomplete
|
|
88
|
+
|
|
89
|
+
def build_usage(handler_map): ...
|
|
90
|
+
def MergeStandardOptions(options, params) -> None: ...
|
|
91
|
+
def HandleCommandLine(
|
|
92
|
+
params,
|
|
93
|
+
argv: Incomplete | None = None,
|
|
94
|
+
conf_module_name: Incomplete | None = None,
|
|
95
|
+
default_arg: str = "install",
|
|
96
|
+
opt_parser: Incomplete | None = None,
|
|
97
|
+
custom_arg_handlers={},
|
|
98
|
+
) -> None: ...
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
from typing import Any, Final
|
|
2
|
+
|
|
1
3
|
from win32.lib.pywintypes import error as error
|
|
2
4
|
|
|
3
5
|
def ChangeClipboardChain(hWndRemove: int, hWndNewNext: int, /): ...
|
|
@@ -5,7 +7,7 @@ def CloseClipboard(): ...
|
|
|
5
7
|
def CountClipboardFormats(): ...
|
|
6
8
|
def EmptyClipboard(): ...
|
|
7
9
|
def EnumClipboardFormats(_format: int = ..., /): ...
|
|
8
|
-
def GetClipboardData(_format, /) ->
|
|
10
|
+
def GetClipboardData(_format, /) -> Any: ... # str or bytes depending on the dib format
|
|
9
11
|
def GetClipboardDataHandle(_format, /): ...
|
|
10
12
|
def GetClipboardFormatName(_format, /) -> str: ...
|
|
11
13
|
def GetClipboardOwner(): ...
|
|
@@ -21,27 +23,27 @@ def SetClipboardData(_format, hMem, /): ...
|
|
|
21
23
|
def SetClipboardText(text, _format, /): ...
|
|
22
24
|
def SetClipboardViewer(hWndNewViewer: int, /) -> int: ...
|
|
23
25
|
|
|
24
|
-
CF_BITMAP: int
|
|
25
|
-
CF_DIB: int
|
|
26
|
-
CF_DIBV5: int
|
|
27
|
-
CF_DIF: int
|
|
28
|
-
CF_DSPBITMAP: int
|
|
29
|
-
CF_DSPENHMETAFILE: int
|
|
30
|
-
CF_DSPMETAFILEPICT: int
|
|
31
|
-
CF_DSPTEXT: int
|
|
32
|
-
CF_ENHMETAFILE: int
|
|
33
|
-
CF_HDROP: int
|
|
34
|
-
CF_LOCALE: int
|
|
35
|
-
CF_MAX: int
|
|
36
|
-
CF_METAFILEPICT: int
|
|
37
|
-
CF_OEMTEXT: int
|
|
38
|
-
CF_OWNERDISPLAY: int
|
|
39
|
-
CF_PALETTE: int
|
|
40
|
-
CF_PENDATA: int
|
|
41
|
-
CF_RIFF: int
|
|
42
|
-
CF_SYLK: int
|
|
43
|
-
CF_TEXT: int
|
|
44
|
-
CF_TIFF: int
|
|
45
|
-
CF_UNICODETEXT: int
|
|
46
|
-
CF_WAVE: int
|
|
26
|
+
CF_BITMAP: Final[int]
|
|
27
|
+
CF_DIB: Final[int]
|
|
28
|
+
CF_DIBV5: Final[int]
|
|
29
|
+
CF_DIF: Final[int]
|
|
30
|
+
CF_DSPBITMAP: Final[int]
|
|
31
|
+
CF_DSPENHMETAFILE: Final[int]
|
|
32
|
+
CF_DSPMETAFILEPICT: Final[int]
|
|
33
|
+
CF_DSPTEXT: Final[int]
|
|
34
|
+
CF_ENHMETAFILE: Final[int]
|
|
35
|
+
CF_HDROP: Final[int]
|
|
36
|
+
CF_LOCALE: Final[int]
|
|
37
|
+
CF_MAX: Final[int]
|
|
38
|
+
CF_METAFILEPICT: Final[int]
|
|
39
|
+
CF_OEMTEXT: Final[int]
|
|
40
|
+
CF_OWNERDISPLAY: Final[int]
|
|
41
|
+
CF_PALETTE: Final[int]
|
|
42
|
+
CF_PENDATA: Final[int]
|
|
43
|
+
CF_RIFF: Final[int]
|
|
44
|
+
CF_SYLK: Final[int]
|
|
45
|
+
CF_TEXT: Final[int]
|
|
46
|
+
CF_TIFF: Final[int]
|
|
47
|
+
CF_UNICODETEXT: Final[int]
|
|
48
|
+
CF_WAVE: Final[int]
|
|
47
49
|
UNICODE: bool
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
from setuptools._distutils.spawn import *
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
from _typeshed import Incomplete
|
|
1
|
+
from _typeshed import Incomplete
|
|
2
2
|
from abc import abstractmethod
|
|
3
|
-
from collections.abc import
|
|
3
|
+
from collections.abc import Mapping, Sequence
|
|
4
4
|
from typing import Any, Literal, TypedDict, TypeVar, overload, type_check_only
|
|
5
5
|
from typing_extensions import NotRequired
|
|
6
6
|
|
|
@@ -27,6 +27,7 @@ from .command.saveopts import saveopts
|
|
|
27
27
|
from .command.sdist import sdist
|
|
28
28
|
from .command.setopt import setopt
|
|
29
29
|
from .depends import Require as Require
|
|
30
|
+
from .discovery import _Finder
|
|
30
31
|
from .dist import Distribution as Distribution
|
|
31
32
|
from .extension import Extension as Extension
|
|
32
33
|
from .warnings import SetuptoolsDeprecationWarning as SetuptoolsDeprecationWarning
|
|
@@ -54,11 +55,9 @@ class _BuildInfo(TypedDict):
|
|
|
54
55
|
include_dirs: NotRequired[list[str]]
|
|
55
56
|
cflags: NotRequired[list[str]]
|
|
56
57
|
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
def find_packages(where: StrPath = ".", exclude: Iterable[str] = (), include: Iterable[str] = ("*",)) -> list[str]: ...
|
|
61
|
-
def find_namespace_packages(where: StrPath = ".", exclude: Iterable[str] = (), include: Iterable[str] = ("*",)) -> list[str]: ...
|
|
58
|
+
find_packages = _Finder.find
|
|
59
|
+
find_namespace_packages = _Finder.find
|
|
60
|
+
|
|
62
61
|
def setup(
|
|
63
62
|
*,
|
|
64
63
|
name: str = ...,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
from _typeshed import BytesPath, StrPath, Unused
|
|
2
|
-
from collections.abc import Callable, Iterable, Sequence
|
|
2
|
+
from collections.abc import Callable, Iterable, MutableSequence, Sequence
|
|
3
3
|
from typing import ClassVar, Literal, TypeVar, overload
|
|
4
4
|
from typing_extensions import TypeAlias, TypeVarTuple, Unpack
|
|
5
5
|
|
|
@@ -169,7 +169,7 @@ class CCompiler:
|
|
|
169
169
|
def execute(
|
|
170
170
|
self, func: Callable[[Unpack[_Ts]], Unused], args: tuple[Unpack[_Ts]], msg: str | None = None, level: int = 1
|
|
171
171
|
) -> None: ...
|
|
172
|
-
def spawn(self, cmd:
|
|
172
|
+
def spawn(self, cmd: MutableSequence[str]) -> None: ...
|
|
173
173
|
def mkpath(self, name: str, mode: int = 0o777) -> None: ...
|
|
174
174
|
@overload
|
|
175
175
|
def move_file(self, src: StrPath, dst: _StrPathT) -> _StrPathT | str: ...
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
from _typeshed import BytesPath, StrOrBytesPath, StrPath, Unused
|
|
2
2
|
from abc import abstractmethod
|
|
3
|
-
from collections.abc import Callable,
|
|
3
|
+
from collections.abc import Callable, MutableSequence
|
|
4
4
|
from typing import Any, ClassVar, TypeVar, overload
|
|
5
5
|
from typing_extensions import TypeVarTuple, Unpack
|
|
6
6
|
|
|
@@ -79,7 +79,7 @@ class Command:
|
|
|
79
79
|
def move_file(self, src: StrPath, dst: _StrPathT, level: Unused = 1) -> _StrPathT | str: ...
|
|
80
80
|
@overload
|
|
81
81
|
def move_file(self, src: BytesPath, dst: _BytesPathT, level: Unused = 1) -> _BytesPathT | bytes: ...
|
|
82
|
-
def spawn(self, cmd:
|
|
82
|
+
def spawn(self, cmd: MutableSequence[str], search_path: bool = True, level: Unused = 1) -> None: ...
|
|
83
83
|
@overload
|
|
84
84
|
def make_archive(
|
|
85
85
|
self,
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
from collections.abc import MutableSequence
|
|
2
|
+
from subprocess import _ENV
|
|
3
|
+
|
|
4
|
+
def spawn(
|
|
5
|
+
cmd: MutableSequence[str], search_path: bool = True, verbose: bool = False, dry_run: bool = False, env: _ENV | None = None
|
|
6
|
+
) -> None: ...
|
|
7
|
+
def find_executable(executable: str, path: str | None = None) -> str | None: ...
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
from _typeshed import Incomplete, StrPath
|
|
2
2
|
from collections.abc import Mapping
|
|
3
|
+
from contextlib import _GeneratorContextManager
|
|
4
|
+
from typing import NoReturn
|
|
3
5
|
from typing_extensions import TypeAlias
|
|
4
6
|
|
|
5
7
|
from . import dist
|
|
@@ -24,9 +26,9 @@ class SetupRequirementsError(BaseException):
|
|
|
24
26
|
def __init__(self, specifiers) -> None: ...
|
|
25
27
|
|
|
26
28
|
class Distribution(dist.Distribution):
|
|
27
|
-
def fetch_build_eggs(self, specifiers) ->
|
|
29
|
+
def fetch_build_eggs(self, specifiers) -> NoReturn: ...
|
|
28
30
|
@classmethod
|
|
29
|
-
def patch(cls) -> None: ...
|
|
31
|
+
def patch(cls) -> _GeneratorContextManager[None]: ...
|
|
30
32
|
|
|
31
33
|
class _BuildMetaBackend:
|
|
32
34
|
def run_setup(self, setup_script: str = "setup.py") -> None: ...
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
from _typeshed import Incomplete, StrPath
|
|
2
|
-
from collections.abc import
|
|
3
|
-
from
|
|
1
|
+
from _typeshed import GenericPath, Incomplete, StrPath
|
|
2
|
+
from collections.abc import Iterator
|
|
3
|
+
from types import CodeType
|
|
4
|
+
from typing import AnyStr, ClassVar, Final, Literal, TypeVar
|
|
4
5
|
from zipfile import _ZipFileMode
|
|
5
6
|
|
|
6
7
|
from .. import Command
|
|
@@ -8,7 +9,7 @@ from .. import Command
|
|
|
8
9
|
_StrPathT = TypeVar("_StrPathT", bound=StrPath)
|
|
9
10
|
|
|
10
11
|
def strip_module(filename): ...
|
|
11
|
-
def sorted_walk(dir) ->
|
|
12
|
+
def sorted_walk(dir: GenericPath[AnyStr]) -> Iterator[tuple[AnyStr, list[AnyStr], list[AnyStr]]]: ...
|
|
12
13
|
def write_stub(resource, pyfile) -> None: ...
|
|
13
14
|
|
|
14
15
|
class bdist_egg(Command):
|
|
@@ -32,21 +33,21 @@ class bdist_egg(Command):
|
|
|
32
33
|
def run(self) -> None: ...
|
|
33
34
|
def zap_pyfiles(self) -> None: ...
|
|
34
35
|
def zip_safe(self): ...
|
|
35
|
-
def gen_header(self): ...
|
|
36
|
+
def gen_header(self) -> Literal["w"]: ...
|
|
36
37
|
def copy_metadata_to(self, target_dir) -> None: ...
|
|
37
38
|
def get_ext_outputs(self): ...
|
|
38
39
|
|
|
39
40
|
NATIVE_EXTENSIONS: Final[dict[str, None]]
|
|
40
41
|
|
|
41
|
-
def walk_egg(egg_dir) ->
|
|
42
|
+
def walk_egg(egg_dir: StrPath) -> Iterator[tuple[str, list[str], list[str]]]: ...
|
|
42
43
|
def analyze_egg(egg_dir, stubs): ...
|
|
43
44
|
def write_safety_flag(egg_dir, safe) -> None: ...
|
|
44
45
|
|
|
45
46
|
safety_flags: Incomplete
|
|
46
47
|
|
|
47
48
|
def scan_module(egg_dir, base, name, stubs): ...
|
|
48
|
-
def iter_symbols(code) ->
|
|
49
|
-
def can_scan(): ...
|
|
49
|
+
def iter_symbols(code: CodeType) -> Iterator[str]: ...
|
|
50
|
+
def can_scan() -> bool: ...
|
|
50
51
|
|
|
51
52
|
INSTALL_DIRECTORY_ATTRS: Final[list[str]]
|
|
52
53
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
from _typeshed import
|
|
2
|
-
from collections.abc import
|
|
1
|
+
from _typeshed import Incomplete
|
|
2
|
+
from collections.abc import Iterable
|
|
3
3
|
from typing import ClassVar, Final, Literal
|
|
4
4
|
|
|
5
5
|
from setuptools import Command
|
|
@@ -17,8 +17,6 @@ def get_flag(var: str, fallback: bool, expected: bool = True, warn: bool = True)
|
|
|
17
17
|
def get_abi_tag() -> str | None: ...
|
|
18
18
|
def safer_name(name: str) -> str: ...
|
|
19
19
|
def safer_version(version: str) -> str: ...
|
|
20
|
-
def remove_readonly(func: Callable[[str], Unused], path: str, excinfo: ExcInfo) -> None: ...
|
|
21
|
-
def remove_readonly_exc(func: Callable[[str], Unused], path: str, exc: BaseException) -> None: ...
|
|
22
20
|
|
|
23
21
|
class bdist_wheel(Command):
|
|
24
22
|
description: ClassVar[str]
|
|
@@ -27,7 +25,7 @@ class bdist_wheel(Command):
|
|
|
27
25
|
boolean_options: ClassVar[list[str]]
|
|
28
26
|
|
|
29
27
|
bdist_dir: str | None
|
|
30
|
-
data_dir: str
|
|
28
|
+
data_dir: str
|
|
31
29
|
plat_name: str | None
|
|
32
30
|
plat_tag: str | None
|
|
33
31
|
format: str
|
|
@@ -30,7 +30,8 @@ class build_ext(_build_ext):
|
|
|
30
30
|
compiler: Incomplete
|
|
31
31
|
def build_extension(self, ext) -> None: ...
|
|
32
32
|
def links_to_dynamic(self, ext): ...
|
|
33
|
-
def
|
|
33
|
+
def get_source_files(self) -> list[str]: ...
|
|
34
|
+
def get_outputs(self) -> list[str]: ...
|
|
34
35
|
def get_output_mapping(self) -> dict[str, str]: ...
|
|
35
36
|
def write_stub(self, output_dir, ext, compile: bool = False) -> None: ...
|
|
36
37
|
|
|
@@ -24,21 +24,20 @@ class build_py(orig.build_py):
|
|
|
24
24
|
level: Unused = 1,
|
|
25
25
|
) -> tuple[_StrPathT | str, bool]: ...
|
|
26
26
|
def run(self) -> None: ...
|
|
27
|
-
data_files: list[tuple[
|
|
27
|
+
data_files: list[tuple[str, str, str, list[str]]]
|
|
28
28
|
def __getattr__(self, attr: str): ...
|
|
29
|
-
def
|
|
30
|
-
def
|
|
31
|
-
def find_data_files(self, package, src_dir): ...
|
|
29
|
+
def get_data_files_without_manifest(self) -> list[tuple[str, str, str, list[str]]]: ...
|
|
30
|
+
def find_data_files(self, package, src_dir) -> list[str]: ...
|
|
32
31
|
def get_outputs(self, include_bytecode: bool = True) -> list[str]: ... # type: ignore[override] # Using a real boolean instead of 0|1
|
|
33
32
|
def build_package_data(self) -> None: ...
|
|
34
|
-
manifest_files: dict[
|
|
33
|
+
manifest_files: dict[str, list[str]]
|
|
35
34
|
def get_output_mapping(self) -> dict[str, str]: ...
|
|
36
35
|
def analyze_manifest(self) -> None: ...
|
|
37
36
|
def get_data_files(self) -> None: ...
|
|
38
37
|
def check_package(self, package, package_dir): ...
|
|
39
|
-
packages_checked: dict[Incomplete, Incomplete]
|
|
40
38
|
def initialize_options(self) -> None: ...
|
|
41
|
-
|
|
39
|
+
packages_checked: dict[Incomplete, Incomplete]
|
|
40
|
+
def get_package_dir(self, package: str) -> str: ...
|
|
42
41
|
def exclude_data_files(self, package, src_dir, files): ...
|
|
43
42
|
|
|
44
43
|
def assert_relative(path): ...
|
|
@@ -1,16 +1,14 @@
|
|
|
1
1
|
from _typeshed import Incomplete
|
|
2
|
-
from collections.abc import
|
|
3
|
-
from typing import Any, ClassVar, Literal,
|
|
2
|
+
from collections.abc import Iterable, Iterator
|
|
3
|
+
from typing import Any, ClassVar, Literal, NoReturn, TypedDict
|
|
4
4
|
from typing_extensions import Self
|
|
5
5
|
|
|
6
|
-
from pkg_resources import Environment
|
|
6
|
+
from pkg_resources import Distribution, Environment
|
|
7
7
|
from setuptools.package_index import PackageIndex
|
|
8
8
|
|
|
9
9
|
from .. import Command, SetuptoolsDeprecationWarning
|
|
10
10
|
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
__all__ = ["easy_install", "PthDistributions", "extract_wininst_cfg", "get_exe_prefixes"]
|
|
11
|
+
__all__ = ["PthDistributions", "easy_install", "extract_wininst_cfg", "get_exe_prefixes"]
|
|
14
12
|
|
|
15
13
|
class easy_install(Command):
|
|
16
14
|
description: str
|
|
@@ -54,7 +52,7 @@ class easy_install(Command):
|
|
|
54
52
|
all_site_dirs: list[str]
|
|
55
53
|
shadow_path: list[str]
|
|
56
54
|
local_index: Environment
|
|
57
|
-
outputs: list[
|
|
55
|
+
outputs: list[str]
|
|
58
56
|
def finalize_options(self) -> None: ...
|
|
59
57
|
def expand_basedirs(self) -> None: ...
|
|
60
58
|
def expand_dirs(self) -> None: ...
|
|
@@ -62,28 +60,28 @@ class easy_install(Command):
|
|
|
62
60
|
def pseudo_tempname(self): ...
|
|
63
61
|
def warn_deprecated_options(self) -> None: ...
|
|
64
62
|
def check_site_dir(self) -> None: ...
|
|
65
|
-
def cant_write_to_target(self) ->
|
|
63
|
+
def cant_write_to_target(self) -> NoReturn: ...
|
|
66
64
|
def check_pth_processing(self): ...
|
|
67
65
|
def install_egg_scripts(self, dist) -> None: ...
|
|
68
66
|
def add_output(self, path) -> None: ...
|
|
69
67
|
def not_editable(self, spec) -> None: ...
|
|
70
68
|
def check_editable(self, spec) -> None: ...
|
|
71
|
-
def easy_install(self, spec, deps: bool = False): ...
|
|
72
|
-
def install_item(self, spec, download, tmpdir, deps, install_needed: bool = False): ...
|
|
69
|
+
def easy_install(self, spec, deps: bool = False) -> Distribution | None: ...
|
|
70
|
+
def install_item(self, spec, download, tmpdir, deps, install_needed: bool = False) -> Distribution | None: ...
|
|
73
71
|
def select_scheme(self, name) -> None: ...
|
|
74
72
|
def process_distribution(self, requirement, dist, deps: bool = True, *info) -> None: ...
|
|
75
|
-
def should_unzip(self, dist): ...
|
|
73
|
+
def should_unzip(self, dist) -> bool: ...
|
|
76
74
|
def maybe_move(self, spec, dist_filename, setup_base): ...
|
|
77
75
|
def install_wrapper_scripts(self, dist) -> None: ...
|
|
78
76
|
def install_script(self, dist, script_name, script_text, dev_path: Incomplete | None = None) -> None: ...
|
|
79
77
|
def write_script(self, script_name, contents, mode: str = "t", blockers=()) -> None: ...
|
|
80
|
-
def install_eggs(self, spec, dist_filename, tmpdir): ...
|
|
78
|
+
def install_eggs(self, spec, dist_filename, tmpdir) -> list[Distribution]: ...
|
|
81
79
|
def egg_distribution(self, egg_path): ...
|
|
82
80
|
def install_egg(self, egg_path, tmpdir): ...
|
|
83
81
|
def install_exe(self, dist_filename, tmpdir): ...
|
|
84
|
-
def exe_to_egg(self, dist_filename, egg_tmp): ...
|
|
82
|
+
def exe_to_egg(self, dist_filename, egg_tmp) -> None: ...
|
|
85
83
|
def install_wheel(self, wheel_path, tmpdir): ...
|
|
86
|
-
def installation_report(self, req, dist, what: str = "Installed"): ...
|
|
84
|
+
def installation_report(self, req, dist, what: str = "Installed") -> str: ...
|
|
87
85
|
def report_editable(self, spec, setup_script): ...
|
|
88
86
|
def run_setup(self, setup_script, setup_base, args) -> None: ...
|
|
89
87
|
def build_and_install(self, setup_script, setup_base): ...
|
|
@@ -114,9 +112,6 @@ class RewritePthDistributions(PthDistributions):
|
|
|
114
112
|
prelude: str
|
|
115
113
|
postlude: str
|
|
116
114
|
|
|
117
|
-
# Must match shutil._OnExcCallback
|
|
118
|
-
def auto_chmod(func: Callable[..., _T], arg: str, exc: BaseException) -> _T: ...
|
|
119
|
-
@type_check_only
|
|
120
115
|
class _SplitArgs(TypedDict, total=False):
|
|
121
116
|
comments: bool
|
|
122
117
|
posix: bool
|
|
@@ -71,7 +71,7 @@ class _NamespaceInstaller(namespaces.Installer):
|
|
|
71
71
|
src_root: Incomplete
|
|
72
72
|
installation_dir: Incomplete
|
|
73
73
|
editable_name: Incomplete
|
|
74
|
-
outputs: list[
|
|
74
|
+
outputs: list[str]
|
|
75
75
|
dry_run: bool
|
|
76
76
|
def __init__(self, distribution, installation_dir, editable_name, src_root) -> None: ...
|
|
77
77
|
|
|
@@ -30,7 +30,7 @@ class egg_info(InfoCommon, Command):
|
|
|
30
30
|
egg_version: Incomplete
|
|
31
31
|
def initialize_options(self) -> None: ...
|
|
32
32
|
@property
|
|
33
|
-
def tag_svn_revision(self) -> None: ...
|
|
33
|
+
def tag_svn_revision(self) -> int | None: ...
|
|
34
34
|
@tag_svn_revision.setter
|
|
35
35
|
def tag_svn_revision(self, value) -> None: ...
|
|
36
36
|
def save_version_info(self, filename) -> None: ...
|
|
@@ -10,7 +10,7 @@ class install_egg_info(namespaces.Installer, Command):
|
|
|
10
10
|
def initialize_options(self) -> None: ...
|
|
11
11
|
source: Incomplete
|
|
12
12
|
target: str
|
|
13
|
-
outputs: list[
|
|
13
|
+
outputs: list[str]
|
|
14
14
|
def finalize_options(self) -> None: ...
|
|
15
15
|
def run(self) -> None: ...
|
|
16
16
|
def get_outputs(self): ...
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
from _typeshed import Incomplete
|
|
2
|
+
from collections.abc import Iterator
|
|
2
3
|
from typing import ClassVar
|
|
3
4
|
|
|
4
5
|
from setuptools.dist import Distribution
|
|
5
6
|
|
|
6
7
|
from .._distutils.command import sdist as orig
|
|
7
8
|
|
|
8
|
-
def walk_revctrl(dirname: str = "") ->
|
|
9
|
+
def walk_revctrl(dirname: str = "") -> Iterator[Incomplete]: ...
|
|
9
10
|
|
|
10
11
|
class sdist(orig.sdist):
|
|
11
12
|
distribution: Distribution # override distutils.dist.Distribution with setuptools.dist.Distribution
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
from typing import ClassVar
|
|
1
|
+
from typing import ClassVar, NoReturn
|
|
2
2
|
from typing_extensions import deprecated
|
|
3
3
|
|
|
4
4
|
from .. import Command
|
|
@@ -14,4 +14,4 @@ class test(Command):
|
|
|
14
14
|
user_options: ClassVar[list[tuple[str, str, str]]]
|
|
15
15
|
def initialize_options(self) -> None: ...
|
|
16
16
|
def finalize_options(self) -> None: ...
|
|
17
|
-
def run(self) ->
|
|
17
|
+
def run(self) -> NoReturn: ...
|
|
@@ -1,16 +1,3 @@
|
|
|
1
|
-
from
|
|
2
|
-
from collections.abc import Callable
|
|
3
|
-
from typing import TypeVar
|
|
1
|
+
from .setupcfg import parse_configuration as parse_configuration, read_configuration as read_configuration
|
|
4
2
|
|
|
5
|
-
from setuptools.config.setupcfg import AllCommandOptions, ConfigMetadataHandler, ConfigOptionsHandler
|
|
6
|
-
from setuptools.dist import Distribution
|
|
7
|
-
|
|
8
|
-
Fn = TypeVar("Fn", bound=Callable[..., Incomplete]) # noqa: Y001 # Exists at runtime
|
|
9
3
|
__all__ = ("parse_configuration", "read_configuration")
|
|
10
|
-
|
|
11
|
-
def read_configuration(
|
|
12
|
-
filepath: StrPath, find_others: bool = False, ignore_option_errors: bool = False
|
|
13
|
-
) -> dict[Incomplete, Incomplete]: ...
|
|
14
|
-
def parse_configuration(
|
|
15
|
-
distribution: Distribution, command_options: AllCommandOptions, ignore_option_errors: bool = False
|
|
16
|
-
) -> tuple[ConfigMetadataHandler, ConfigOptionsHandler]: ...
|
|
@@ -41,7 +41,7 @@ class EnsurePackagesDiscovered:
|
|
|
41
41
|
self, exc_type: type[BaseException] | None, exc_value: BaseException | None, traceback: TracebackType | None
|
|
42
42
|
) -> None: ...
|
|
43
43
|
@property
|
|
44
|
-
def package_dir(self) ->
|
|
44
|
+
def package_dir(self) -> LazyMappingProxy[str, str]: ...
|
|
45
45
|
|
|
46
46
|
class LazyMappingProxy(Mapping[_K, _V_co]):
|
|
47
47
|
def __init__(self, obtain_mapping_value: Callable[[], Mapping[_K, _V_co]]) -> None: ...
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
from _typeshed import Incomplete, StrPath
|
|
2
|
-
from
|
|
2
|
+
from abc import abstractmethod
|
|
3
|
+
from collections.abc import Callable, Iterable
|
|
3
4
|
from typing import Any, ClassVar, Generic, TypeVar
|
|
4
5
|
from typing_extensions import TypeAlias
|
|
5
6
|
|
|
@@ -38,7 +39,8 @@ class ConfigHandler(Generic[Target]):
|
|
|
38
39
|
ensure_discovered: expand.EnsurePackagesDiscovered,
|
|
39
40
|
) -> None: ...
|
|
40
41
|
@property
|
|
41
|
-
|
|
42
|
+
@abstractmethod
|
|
43
|
+
def parsers(self) -> dict[str, Callable[..., Incomplete]]: ...
|
|
42
44
|
def __setitem__(self, option_name, value): ...
|
|
43
45
|
def parse_section(self, section_options) -> None: ...
|
|
44
46
|
def parse(self) -> None: ...
|
|
@@ -59,7 +61,7 @@ class ConfigMetadataHandler(ConfigHandler[DistributionMetadata]):
|
|
|
59
61
|
root_dir: StrPath | None = ".",
|
|
60
62
|
) -> None: ...
|
|
61
63
|
@property
|
|
62
|
-
def parsers(self): ...
|
|
64
|
+
def parsers(self) -> dict[str, Callable[..., Incomplete]]: ...
|
|
63
65
|
|
|
64
66
|
class ConfigOptionsHandler(ConfigHandler[Distribution]):
|
|
65
67
|
section_prefix: str
|
|
@@ -73,10 +75,10 @@ class ConfigOptionsHandler(ConfigHandler[Distribution]):
|
|
|
73
75
|
ensure_discovered: expand.EnsurePackagesDiscovered,
|
|
74
76
|
) -> None: ...
|
|
75
77
|
@property
|
|
76
|
-
def parsers(self): ...
|
|
78
|
+
def parsers(self) -> dict[str, Callable[..., Incomplete]]: ...
|
|
77
79
|
def parse_section_packages__find(self, section_options): ...
|
|
78
80
|
def parse_section_entry_points(self, section_options) -> None: ...
|
|
79
81
|
def parse_section_package_data(self, section_options) -> None: ...
|
|
80
82
|
def parse_section_exclude_package_data(self, section_options) -> None: ...
|
|
81
|
-
def parse_section_extras_require(self, section_options): ...
|
|
83
|
+
def parse_section_extras_require(self, section_options) -> None: ...
|
|
82
84
|
def parse_section_data_files(self, section_options) -> None: ...
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
from _typeshed import Incomplete
|
|
2
|
-
from typing import IO, Any, Literal
|
|
2
|
+
from typing import IO, Any, Literal, TypeVar
|
|
3
|
+
|
|
4
|
+
_T = TypeVar("_T")
|
|
3
5
|
|
|
4
6
|
__all__ = ["Require", "find_module", "get_module_constant", "extract_constant"]
|
|
5
7
|
|
|
@@ -19,9 +21,11 @@ class Require:
|
|
|
19
21
|
) -> None: ...
|
|
20
22
|
def full_name(self): ...
|
|
21
23
|
def version_ok(self, version): ...
|
|
22
|
-
def get_version(
|
|
24
|
+
def get_version(
|
|
25
|
+
self, paths: Incomplete | None = None, default: _T | Literal["unknown"] = "unknown"
|
|
26
|
+
) -> _T | Literal["unknown"] | None | Any: ...
|
|
23
27
|
def is_present(self, paths: Incomplete | None = None): ...
|
|
24
28
|
def is_current(self, paths: Incomplete | None = None): ...
|
|
25
29
|
|
|
26
|
-
def get_module_constant(module, symbol, default:
|
|
27
|
-
def extract_constant(code, symbol, default:
|
|
30
|
+
def get_module_constant(module, symbol, default: _T | int = -1, paths: Incomplete | None = None) -> _T | int | None | Any: ...
|
|
31
|
+
def extract_constant(code, symbol, default: _T | int = -1) -> _T | int | None | Any: ...
|
|
@@ -187,7 +187,7 @@ class Distribution(_Distribution):
|
|
|
187
187
|
def reinitialize_command(self, command: _CommandT, reinit_subcommands: bool = False) -> _CommandT: ...
|
|
188
188
|
def include(self, **attrs) -> None: ...
|
|
189
189
|
def exclude_package(self, package: str) -> None: ...
|
|
190
|
-
def has_contents_for(self, package: str) -> bool
|
|
190
|
+
def has_contents_for(self, package: str) -> bool: ...
|
|
191
191
|
def exclude(self, **attrs) -> None: ...
|
|
192
192
|
def get_cmdline_options(self) -> dict[str, dict[str, str | None]]: ...
|
|
193
193
|
def iter_distribution_names(self) -> Iterator[str]: ...
|