basedpyright 1.1.389 → 1.1.392
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/README.md +3 -3
- package/dist/pyright-langserver.js +1 -1
- package/dist/pyright-langserver.js.LICENSE.txt +42 -0
- package/dist/pyright-langserver.js.map +1 -1
- package/dist/pyright.js +1 -1
- 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/__future__.pyi +36 -36
- package/dist/typeshed-fallback/stdlib/__main__.pyi +3 -3
- package/dist/typeshed-fallback/stdlib/_ast.pyi +149 -149
- package/dist/typeshed-fallback/stdlib/_asyncio.pyi +320 -342
- package/dist/typeshed-fallback/stdlib/_bisect.pyi +189 -229
- package/dist/typeshed-fallback/stdlib/_blake2.pyi +137 -137
- package/dist/typeshed-fallback/stdlib/_bootlocale.pyi +1 -1
- package/dist/typeshed-fallback/stdlib/_bz2.pyi +71 -71
- package/dist/typeshed-fallback/stdlib/_codecs.pyi +247 -244
- package/dist/typeshed-fallback/stdlib/_collections_abc.pyi +124 -115
- package/dist/typeshed-fallback/stdlib/_compat_pickle.pyi +8 -8
- package/dist/typeshed-fallback/stdlib/_compression.pyi +25 -25
- package/dist/typeshed-fallback/stdlib/_contextvars.pyi +146 -146
- package/dist/typeshed-fallback/stdlib/_csv.pyi +232 -172
- package/dist/typeshed-fallback/stdlib/_ctypes.pyi +435 -304
- 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 +8 -19
- package/dist/typeshed-fallback/stdlib/_decimal.pyi +80 -94
- package/dist/typeshed-fallback/stdlib/_dummy_thread.pyi +33 -33
- package/dist/typeshed-fallback/stdlib/_dummy_threading.pyi +164 -180
- package/dist/typeshed-fallback/stdlib/_frozen_importlib.pyi +114 -114
- package/dist/typeshed-fallback/stdlib/_frozen_importlib_external.pyi +178 -178
- package/dist/typeshed-fallback/stdlib/_gdbm.pyi +2 -65
- package/dist/typeshed-fallback/stdlib/_hashlib.pyi +232 -0
- package/dist/typeshed-fallback/stdlib/_heapq.pyi +67 -67
- package/dist/typeshed-fallback/stdlib/_imp.pyi +81 -83
- package/dist/typeshed-fallback/stdlib/_io.pyi +719 -719
- package/dist/typeshed-fallback/stdlib/_json.pyi +99 -92
- package/dist/typeshed-fallback/stdlib/_locale.pyi +155 -155
- package/dist/typeshed-fallback/stdlib/_lsprof.pyi +94 -94
- package/dist/typeshed-fallback/stdlib/_lzma.pyi +158 -158
- package/dist/typeshed-fallback/stdlib/_markupbase.pyi +16 -16
- package/dist/typeshed-fallback/stdlib/_msi.pyi +92 -94
- package/dist/typeshed-fallback/stdlib/_multibytecodec.pyi +44 -0
- package/dist/typeshed-fallback/stdlib/_operator.pyi +261 -261
- package/dist/typeshed-fallback/stdlib/_osx_support.pyi +34 -34
- package/dist/typeshed-fallback/stdlib/_posixsubprocess.pyi +0 -1
- package/dist/typeshed-fallback/stdlib/_py_abc.pyi +14 -14
- package/dist/typeshed-fallback/stdlib/_pydecimal.pyi +43 -43
- package/dist/typeshed-fallback/stdlib/_queue.pyi +67 -67
- package/dist/typeshed-fallback/stdlib/_random.pyi +30 -30
- package/dist/typeshed-fallback/stdlib/_sitebuiltins.pyi +16 -16
- package/dist/typeshed-fallback/stdlib/_socket.pyi +1367 -1317
- package/dist/typeshed-fallback/stdlib/_sqlite3.pyi +360 -402
- package/dist/typeshed-fallback/stdlib/_ssl.pyi +399 -406
- package/dist/typeshed-fallback/stdlib/_stat.pyi +257 -257
- package/dist/typeshed-fallback/stdlib/_struct.pyi +147 -147
- package/dist/typeshed-fallback/stdlib/_thread.pyi +266 -257
- package/dist/typeshed-fallback/stdlib/_threading_local.pyi +22 -18
- package/dist/typeshed-fallback/stdlib/_tkinter.pyi +165 -165
- package/dist/typeshed-fallback/stdlib/_tracemalloc.pyi +78 -78
- package/dist/typeshed-fallback/stdlib/_warnings.pyi +98 -102
- package/dist/typeshed-fallback/stdlib/_weakref.pyi +35 -35
- package/dist/typeshed-fallback/stdlib/_weakrefset.pyi +57 -57
- package/dist/typeshed-fallback/stdlib/abc.pyi +59 -59
- package/dist/typeshed-fallback/stdlib/argparse.pyi +769 -769
- package/dist/typeshed-fallback/stdlib/array.pyi +267 -281
- package/dist/typeshed-fallback/stdlib/ast.pyi +2049 -2049
- package/dist/typeshed-fallback/stdlib/asynchat.pyi +21 -21
- package/dist/typeshed-fallback/stdlib/asyncio/__init__.pyi +41 -41
- package/dist/typeshed-fallback/stdlib/asyncio/base_events.pyi +488 -488
- package/dist/typeshed-fallback/stdlib/asyncio/base_futures.pyi +19 -19
- package/dist/typeshed-fallback/stdlib/asyncio/base_subprocess.pyi +63 -63
- package/dist/typeshed-fallback/stdlib/asyncio/base_tasks.pyi +9 -9
- package/dist/typeshed-fallback/stdlib/asyncio/constants.pyi +20 -20
- package/dist/typeshed-fallback/stdlib/asyncio/coroutines.pyi +26 -26
- package/dist/typeshed-fallback/stdlib/asyncio/events.pyi +653 -653
- package/dist/typeshed-fallback/stdlib/asyncio/exceptions.pyi +43 -43
- package/dist/typeshed-fallback/stdlib/asyncio/format_helpers.pyi +31 -31
- package/dist/typeshed-fallback/stdlib/asyncio/futures.pyi +16 -16
- package/dist/typeshed-fallback/stdlib/asyncio/locks.pyi +127 -127
- package/dist/typeshed-fallback/stdlib/asyncio/log.pyi +3 -3
- package/dist/typeshed-fallback/stdlib/asyncio/mixins.pyi +9 -9
- package/dist/typeshed-fallback/stdlib/asyncio/proactor_events.pyi +64 -64
- package/dist/typeshed-fallback/stdlib/asyncio/protocols.pyi +34 -34
- package/dist/typeshed-fallback/stdlib/asyncio/queues.pyi +64 -64
- package/dist/typeshed-fallback/stdlib/asyncio/runners.pyi +32 -32
- package/dist/typeshed-fallback/stdlib/asyncio/selector_events.pyi +8 -8
- package/dist/typeshed-fallback/stdlib/asyncio/sslproto.pyi +165 -184
- package/dist/typeshed-fallback/stdlib/asyncio/staggered.pyi +10 -10
- package/dist/typeshed-fallback/stdlib/asyncio/streams.pyi +157 -157
- package/dist/typeshed-fallback/stdlib/asyncio/subprocess.pyi +229 -229
- package/dist/typeshed-fallback/stdlib/asyncio/taskgroups.pyi +25 -25
- package/dist/typeshed-fallback/stdlib/asyncio/tasks.pyi +459 -459
- package/dist/typeshed-fallback/stdlib/asyncio/threads.pyi +9 -9
- package/dist/typeshed-fallback/stdlib/asyncio/timeouts.pyi +19 -19
- package/dist/typeshed-fallback/stdlib/asyncio/transports.pyi +47 -47
- package/dist/typeshed-fallback/stdlib/asyncio/trsock.pyi +94 -94
- package/dist/typeshed-fallback/stdlib/asyncore.pyi +90 -90
- package/dist/typeshed-fallback/stdlib/atexit.pyi +46 -46
- package/dist/typeshed-fallback/stdlib/audioop.pyi +26 -78
- package/dist/typeshed-fallback/stdlib/base64.pyi +65 -65
- package/dist/typeshed-fallback/stdlib/bdb.pyi +114 -114
- package/dist/typeshed-fallback/stdlib/binascii.pyi +113 -123
- package/dist/typeshed-fallback/stdlib/binhex.pyi +45 -45
- package/dist/typeshed-fallback/stdlib/bisect.pyi +4 -4
- package/dist/typeshed-fallback/stdlib/builtins.pyi +6481 -6560
- package/dist/typeshed-fallback/stdlib/bz2.pyi +132 -131
- package/dist/typeshed-fallback/stdlib/cProfile.pyi +31 -31
- package/dist/typeshed-fallback/stdlib/calendar.pyi +208 -208
- package/dist/typeshed-fallback/stdlib/cmath.pyi +112 -112
- package/dist/typeshed-fallback/stdlib/cmd.pyi +46 -46
- package/dist/typeshed-fallback/stdlib/code.pyi +56 -56
- package/dist/typeshed-fallback/stdlib/codecs.pyi +301 -297
- package/dist/typeshed-fallback/stdlib/codeop.pyi +13 -13
- package/dist/typeshed-fallback/stdlib/collections/__init__.pyi +650 -650
- package/dist/typeshed-fallback/stdlib/collections/abc.pyi +2 -2
- package/dist/typeshed-fallback/stdlib/colorsys.pyi +13 -13
- package/dist/typeshed-fallback/stdlib/compileall.pyi +111 -111
- package/dist/typeshed-fallback/stdlib/concurrent/futures/__init__.pyi +51 -51
- package/dist/typeshed-fallback/stdlib/concurrent/futures/_base.pyi +132 -132
- package/dist/typeshed-fallback/stdlib/concurrent/futures/process.pyi +234 -234
- package/dist/typeshed-fallback/stdlib/concurrent/futures/thread.pyi +86 -86
- package/dist/typeshed-fallback/stdlib/configparser.pyi +412 -404
- package/dist/typeshed-fallback/stdlib/contextlib.pyi +219 -213
- package/dist/typeshed-fallback/stdlib/contextvars.pyi +3 -3
- package/dist/typeshed-fallback/stdlib/copy.pyi +27 -27
- package/dist/typeshed-fallback/stdlib/copyreg.pyi +21 -21
- package/dist/typeshed-fallback/stdlib/crypt.pyi +9 -2
- package/dist/typeshed-fallback/stdlib/csv.pyi +169 -167
- package/dist/typeshed-fallback/stdlib/ctypes/__init__.pyi +218 -198
- package/dist/typeshed-fallback/stdlib/ctypes/_endian.pyi +16 -16
- 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 +8 -6
- package/dist/typeshed-fallback/stdlib/ctypes/wintypes.pyi +304 -298
- 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/dataclasses.pyi +322 -322
- package/dist/typeshed-fallback/stdlib/datetime.pyi +576 -575
- package/dist/typeshed-fallback/stdlib/dbm/__init__.pyi +104 -102
- package/dist/typeshed-fallback/stdlib/dbm/dumb.pyi +37 -37
- package/dist/typeshed-fallback/stdlib/decimal.pyi +849 -840
- package/dist/typeshed-fallback/stdlib/difflib.pyi +146 -146
- package/dist/typeshed-fallback/stdlib/dis.pyi +248 -248
- package/dist/typeshed-fallback/stdlib/distutils/__init__.pyi +5 -5
- package/dist/typeshed-fallback/stdlib/distutils/_msvccompiler.pyi +13 -13
- package/dist/typeshed-fallback/stdlib/distutils/archive_util.pyi +35 -35
- package/dist/typeshed-fallback/stdlib/distutils/bcppcompiler.pyi +3 -3
- package/dist/typeshed-fallback/stdlib/distutils/ccompiler.pyi +176 -176
- package/dist/typeshed-fallback/stdlib/distutils/cmd.pyi +229 -229
- package/dist/typeshed-fallback/stdlib/distutils/command/__init__.pyi +48 -48
- package/dist/typeshed-fallback/stdlib/distutils/command/bdist.pyi +27 -27
- package/dist/typeshed-fallback/stdlib/distutils/command/bdist_dumb.pyi +22 -22
- package/dist/typeshed-fallback/stdlib/distutils/command/bdist_msi.pyi +46 -46
- package/dist/typeshed-fallback/stdlib/distutils/command/bdist_rpm.pyi +53 -53
- package/dist/typeshed-fallback/stdlib/distutils/command/bdist_wininst.pyi +16 -16
- package/dist/typeshed-fallback/stdlib/distutils/command/build.pyi +34 -34
- package/dist/typeshed-fallback/stdlib/distutils/command/build_clib.pyi +29 -29
- package/dist/typeshed-fallback/stdlib/distutils/command/build_ext.pyi +52 -52
- package/dist/typeshed-fallback/stdlib/distutils/command/build_py.pyi +45 -45
- package/dist/typeshed-fallback/stdlib/distutils/command/build_scripts.pyi +25 -25
- package/dist/typeshed-fallback/stdlib/distutils/command/check.pyi +40 -40
- package/dist/typeshed-fallback/stdlib/distutils/command/clean.pyi +18 -18
- package/dist/typeshed-fallback/stdlib/distutils/command/config.pyi +84 -84
- package/dist/typeshed-fallback/stdlib/distutils/command/install.pyi +71 -71
- package/dist/typeshed-fallback/stdlib/distutils/command/install_data.pyi +20 -20
- package/dist/typeshed-fallback/stdlib/distutils/command/install_egg_info.pyi +19 -19
- package/dist/typeshed-fallback/stdlib/distutils/command/install_headers.pyi +17 -17
- package/dist/typeshed-fallback/stdlib/distutils/command/install_lib.pyi +26 -26
- package/dist/typeshed-fallback/stdlib/distutils/command/install_scripts.pyi +19 -19
- package/dist/typeshed-fallback/stdlib/distutils/command/register.pyi +21 -21
- package/dist/typeshed-fallback/stdlib/distutils/command/sdist.pyi +45 -45
- package/dist/typeshed-fallback/stdlib/distutils/command/upload.pyi +18 -18
- package/dist/typeshed-fallback/stdlib/distutils/config.pyi +17 -17
- package/dist/typeshed-fallback/stdlib/distutils/core.pyi +58 -58
- package/dist/typeshed-fallback/stdlib/distutils/cygwinccompiler.pyi +20 -20
- package/dist/typeshed-fallback/stdlib/distutils/debug.pyi +3 -3
- package/dist/typeshed-fallback/stdlib/distutils/dep_util.pyi +14 -14
- package/dist/typeshed-fallback/stdlib/distutils/dir_util.pyi +23 -23
- package/dist/typeshed-fallback/stdlib/distutils/dist.pyi +317 -317
- package/dist/typeshed-fallback/stdlib/distutils/errors.pyi +19 -19
- package/dist/typeshed-fallback/stdlib/distutils/extension.pyi +36 -36
- package/dist/typeshed-fallback/stdlib/distutils/fancy_getopt.pyi +34 -34
- package/dist/typeshed-fallback/stdlib/distutils/file_util.pyi +38 -38
- package/dist/typeshed-fallback/stdlib/distutils/filelist.pyi +58 -58
- package/dist/typeshed-fallback/stdlib/distutils/log.pyi +26 -26
- package/dist/typeshed-fallback/stdlib/distutils/msvccompiler.pyi +3 -3
- package/dist/typeshed-fallback/stdlib/distutils/spawn.pyi +10 -6
- package/dist/typeshed-fallback/stdlib/distutils/sysconfig.pyi +33 -33
- package/dist/typeshed-fallback/stdlib/distutils/text_file.pyi +21 -21
- package/dist/typeshed-fallback/stdlib/distutils/unixccompiler.pyi +3 -3
- package/dist/typeshed-fallback/stdlib/distutils/util.pyi +53 -53
- package/dist/typeshed-fallback/stdlib/distutils/version.pyi +36 -38
- package/dist/typeshed-fallback/stdlib/doctest.pyi +262 -264
- package/dist/typeshed-fallback/stdlib/dummy_threading.pyi +2 -2
- package/dist/typeshed-fallback/stdlib/email/__init__.pyi +37 -29
- package/dist/typeshed-fallback/stdlib/email/_header_value_parser.pyi +398 -398
- package/dist/typeshed-fallback/stdlib/email/_policybase.pyi +77 -75
- package/dist/typeshed-fallback/stdlib/email/base64mime.pyi +13 -13
- package/dist/typeshed-fallback/stdlib/email/charset.pyi +36 -36
- package/dist/typeshed-fallback/stdlib/email/contentmanager.pyi +11 -11
- package/dist/typeshed-fallback/stdlib/email/encoders.pyi +8 -8
- package/dist/typeshed-fallback/stdlib/email/errors.pyi +42 -42
- package/dist/typeshed-fallback/stdlib/email/feedparser.pyi +23 -23
- package/dist/typeshed-fallback/stdlib/email/generator.pyi +77 -77
- package/dist/typeshed-fallback/stdlib/email/header.pyi +33 -33
- package/dist/typeshed-fallback/stdlib/email/headerregistry.pyi +183 -183
- package/dist/typeshed-fallback/stdlib/email/iterators.pyi +12 -12
- package/dist/typeshed-fallback/stdlib/email/message.pyi +172 -172
- package/dist/typeshed-fallback/stdlib/email/mime/application.pyi +17 -17
- package/dist/typeshed-fallback/stdlib/email/mime/audio.pyi +17 -17
- package/dist/typeshed-fallback/stdlib/email/mime/base.pyi +8 -8
- package/dist/typeshed-fallback/stdlib/email/mime/image.pyi +17 -17
- package/dist/typeshed-fallback/stdlib/email/mime/message.pyi +8 -8
- package/dist/typeshed-fallback/stdlib/email/mime/multipart.pyi +18 -18
- package/dist/typeshed-fallback/stdlib/email/mime/nonmultipart.pyi +5 -5
- package/dist/typeshed-fallback/stdlib/email/mime/text.pyi +9 -9
- package/dist/typeshed-fallback/stdlib/email/parser.pyi +38 -38
- package/dist/typeshed-fallback/stdlib/email/policy.pyi +77 -77
- package/dist/typeshed-fallback/stdlib/email/quoprimime.pyi +28 -28
- package/dist/typeshed-fallback/stdlib/email/utils.pyi +78 -78
- package/dist/typeshed-fallback/stdlib/encodings/__init__.pyi +10 -10
- 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 +26 -21
- package/dist/typeshed-fallback/stdlib/encodings/utf_8_sig.pyi +22 -22
- 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/ensurepip/__init__.pyi +12 -12
- package/dist/typeshed-fallback/stdlib/enum.pyi +348 -348
- package/dist/typeshed-fallback/stdlib/errno.pyi +237 -237
- package/dist/typeshed-fallback/stdlib/faulthandler.pyi +34 -34
- package/dist/typeshed-fallback/stdlib/fcntl.pyi +3 -1
- package/dist/typeshed-fallback/stdlib/filecmp.pyi +74 -74
- package/dist/typeshed-fallback/stdlib/fileinput.pyi +219 -219
- package/dist/typeshed-fallback/stdlib/fnmatch.pyi +9 -9
- package/dist/typeshed-fallback/stdlib/formatter.pyi +88 -88
- package/dist/typeshed-fallback/stdlib/fractions.pyi +162 -162
- package/dist/typeshed-fallback/stdlib/ftplib.pyi +178 -178
- package/dist/typeshed-fallback/stdlib/functools.pyi +270 -270
- package/dist/typeshed-fallback/stdlib/gc.pyi +144 -144
- package/dist/typeshed-fallback/stdlib/genericpath.pyi +59 -59
- package/dist/typeshed-fallback/stdlib/getopt.pyi +15 -15
- package/dist/typeshed-fallback/stdlib/getpass.pyi +8 -8
- package/dist/typeshed-fallback/stdlib/gettext.pyi +171 -169
- package/dist/typeshed-fallback/stdlib/glob.pyi +50 -50
- package/dist/typeshed-fallback/stdlib/graphlib.pyi +34 -34
- package/dist/typeshed-fallback/stdlib/gzip.pyi +162 -162
- package/dist/typeshed-fallback/stdlib/hashlib.pyi +104 -163
- package/dist/typeshed-fallback/stdlib/heapq.pyi +19 -19
- package/dist/typeshed-fallback/stdlib/hmac.pyi +42 -65
- package/dist/typeshed-fallback/stdlib/html/__init__.pyi +6 -6
- package/dist/typeshed-fallback/stdlib/html/entities.pyi +6 -6
- package/dist/typeshed-fallback/stdlib/html/parser.pyi +34 -34
- package/dist/typeshed-fallback/stdlib/http/__init__.pyi +112 -112
- package/dist/typeshed-fallback/stdlib/http/client.pyi +246 -246
- package/dist/typeshed-fallback/stdlib/http/cookiejar.pyi +159 -159
- package/dist/typeshed-fallback/stdlib/http/cookies.pyi +66 -66
- package/dist/typeshed-fallback/stdlib/http/server.pyi +83 -83
- package/dist/typeshed-fallback/stdlib/imaplib.pyi +168 -168
- package/dist/typeshed-fallback/stdlib/imp.pyi +62 -62
- package/dist/typeshed-fallback/stdlib/importlib/__init__.pyi +15 -15
- package/dist/typeshed-fallback/stdlib/importlib/_abc.pyi +15 -15
- package/dist/typeshed-fallback/stdlib/importlib/_bootstrap.pyi +2 -2
- package/dist/typeshed-fallback/stdlib/importlib/_bootstrap_external.pyi +2 -2
- package/dist/typeshed-fallback/stdlib/importlib/abc.pyi +175 -175
- package/dist/typeshed-fallback/stdlib/importlib/machinery.pyi +20 -20
- package/dist/typeshed-fallback/stdlib/importlib/metadata/__init__.pyi +342 -371
- package/dist/typeshed-fallback/stdlib/importlib/metadata/_meta.pyi +65 -65
- package/dist/typeshed-fallback/stdlib/importlib/readers.pyi +68 -68
- package/dist/typeshed-fallback/stdlib/importlib/resources/__init__.pyi +70 -70
- package/dist/typeshed-fallback/stdlib/importlib/resources/_common.pyi +42 -42
- package/dist/typeshed-fallback/stdlib/importlib/resources/abc.pyi +14 -12
- package/dist/typeshed-fallback/stdlib/importlib/resources/readers.pyi +14 -14
- package/dist/typeshed-fallback/stdlib/importlib/resources/simple.pyi +58 -58
- package/dist/typeshed-fallback/stdlib/importlib/simple.pyi +11 -11
- package/dist/typeshed-fallback/stdlib/importlib/util.pyi +33 -33
- package/dist/typeshed-fallback/stdlib/inspect.pyi +642 -642
- package/dist/typeshed-fallback/stdlib/io.pyi +60 -60
- package/dist/typeshed-fallback/stdlib/ipaddress.pyi +509 -355
- package/dist/typeshed-fallback/stdlib/itertools.pyi +574 -574
- package/dist/typeshed-fallback/stdlib/json/__init__.pyi +61 -61
- package/dist/typeshed-fallback/stdlib/json/decoder.pyi +32 -32
- package/dist/typeshed-fallback/stdlib/json/encoder.pyi +52 -52
- package/dist/typeshed-fallback/stdlib/json/scanner.pyi +3 -0
- package/dist/typeshed-fallback/stdlib/json/tool.pyi +1 -1
- package/dist/typeshed-fallback/stdlib/keyword.pyi +25 -25
- package/dist/typeshed-fallback/stdlib/lib2to3/pytree.pyi +2 -12
- package/dist/typeshed-fallback/stdlib/linecache.pyi +23 -23
- package/dist/typeshed-fallback/stdlib/locale.pyi +156 -156
- package/dist/typeshed-fallback/stdlib/logging/__init__.pyi +698 -698
- package/dist/typeshed-fallback/stdlib/logging/config.pyi +134 -134
- package/dist/typeshed-fallback/stdlib/logging/handlers.pyi +277 -277
- package/dist/typeshed-fallback/stdlib/lzma.pyi +174 -174
- package/dist/typeshed-fallback/stdlib/mailbox.pyi +276 -276
- package/dist/typeshed-fallback/stdlib/marshal.pyi +128 -176
- package/dist/typeshed-fallback/stdlib/math.pyi +438 -442
- package/dist/typeshed-fallback/stdlib/mimetypes.pyi +56 -56
- package/dist/typeshed-fallback/stdlib/mmap.pyi +185 -185
- package/dist/typeshed-fallback/stdlib/modulefinder.pyi +68 -66
- package/dist/typeshed-fallback/stdlib/msilib/__init__.pyi +177 -177
- package/dist/typeshed-fallback/stdlib/msilib/schema.pyi +94 -94
- package/dist/typeshed-fallback/stdlib/msilib/sequence.pyi +13 -13
- package/dist/typeshed-fallback/stdlib/msilib/text.pyi +7 -7
- package/dist/typeshed-fallback/stdlib/multiprocessing/__init__.pyi +90 -90
- package/dist/typeshed-fallback/stdlib/multiprocessing/connection.pyi +89 -89
- package/dist/typeshed-fallback/stdlib/multiprocessing/context.pyi +216 -215
- package/dist/typeshed-fallback/stdlib/multiprocessing/dummy/__init__.pyi +79 -79
- package/dist/typeshed-fallback/stdlib/multiprocessing/dummy/connection.pyi +39 -39
- package/dist/typeshed-fallback/stdlib/multiprocessing/forkserver.pyi +31 -31
- package/dist/typeshed-fallback/stdlib/multiprocessing/heap.pyi +36 -36
- package/dist/typeshed-fallback/stdlib/multiprocessing/managers.pyi +266 -266
- package/dist/typeshed-fallback/stdlib/multiprocessing/pool.pyi +109 -109
- package/dist/typeshed-fallback/stdlib/multiprocessing/process.pyi +50 -50
- package/dist/typeshed-fallback/stdlib/multiprocessing/queues.pyi +53 -53
- package/dist/typeshed-fallback/stdlib/multiprocessing/reduction.pyi +87 -87
- package/dist/typeshed-fallback/stdlib/multiprocessing/resource_sharer.pyi +20 -20
- package/dist/typeshed-fallback/stdlib/multiprocessing/resource_tracker.pyi +18 -18
- package/dist/typeshed-fallback/stdlib/multiprocessing/shared_memory.pyi +58 -58
- package/dist/typeshed-fallback/stdlib/multiprocessing/sharedctypes.pyi +129 -128
- package/dist/typeshed-fallback/stdlib/multiprocessing/spawn.pyi +32 -32
- package/dist/typeshed-fallback/stdlib/multiprocessing/synchronize.pyi +59 -55
- package/dist/typeshed-fallback/stdlib/multiprocessing/util.pyi +98 -98
- package/dist/typeshed-fallback/stdlib/netrc.pyi +23 -23
- package/dist/typeshed-fallback/stdlib/nis.pyi +4 -31
- package/dist/typeshed-fallback/stdlib/ntpath.pyi +126 -126
- package/dist/typeshed-fallback/stdlib/nturl2path.pyi +2 -2
- package/dist/typeshed-fallback/stdlib/numbers.pyi +229 -229
- package/dist/typeshed-fallback/stdlib/opcode.pyi +65 -65
- package/dist/typeshed-fallback/stdlib/operator.pyi +221 -221
- package/dist/typeshed-fallback/stdlib/optparse.pyi +257 -257
- package/dist/typeshed-fallback/stdlib/os/__init__.pyi +2946 -2491
- package/dist/typeshed-fallback/stdlib/os/path.pyi +8 -8
- package/dist/typeshed-fallback/stdlib/parser.pyi +24 -55
- package/dist/typeshed-fallback/stdlib/pathlib.pyi +329 -329
- package/dist/typeshed-fallback/stdlib/pdb.pyi +206 -206
- package/dist/typeshed-fallback/stdlib/pickle.pyi +459 -459
- package/dist/typeshed-fallback/stdlib/pickletools.pyi +167 -167
- package/dist/typeshed-fallback/stdlib/pkgutil.pyi +53 -53
- package/dist/typeshed-fallback/stdlib/platform.pyi +97 -67
- package/dist/typeshed-fallback/stdlib/plistlib.pyi +113 -113
- package/dist/typeshed-fallback/stdlib/poplib.pyi +72 -72
- package/dist/typeshed-fallback/stdlib/posix.pyi +30 -10
- package/dist/typeshed-fallback/stdlib/posixpath.pyi +182 -182
- package/dist/typeshed-fallback/stdlib/pprint.pyi +112 -112
- package/dist/typeshed-fallback/stdlib/profile.pyi +31 -31
- package/dist/typeshed-fallback/stdlib/pstats.pyi +98 -80
- package/dist/typeshed-fallback/stdlib/py_compile.pyi +34 -34
- package/dist/typeshed-fallback/stdlib/pyclbr.pyi +74 -74
- package/dist/typeshed-fallback/stdlib/pydoc.pyi +333 -333
- package/dist/typeshed-fallback/stdlib/pydoc_data/topics.pyi +1 -1
- package/dist/typeshed-fallback/stdlib/pyexpat/__init__.pyi +131 -129
- package/dist/typeshed-fallback/stdlib/pyexpat/errors.pyi +53 -53
- package/dist/typeshed-fallback/stdlib/pyexpat/model.pyi +15 -15
- package/dist/typeshed-fallback/stdlib/queue.pyi +63 -63
- package/dist/typeshed-fallback/stdlib/quopri.pyi +11 -11
- package/dist/typeshed-fallback/stdlib/random.pyi +141 -141
- package/dist/typeshed-fallback/stdlib/re.pyi +476 -476
- package/dist/typeshed-fallback/stdlib/readline.pyi +1 -7
- package/dist/typeshed-fallback/stdlib/reprlib.pyi +65 -65
- package/dist/typeshed-fallback/stdlib/rlcompleter.pyi +9 -9
- package/dist/typeshed-fallback/stdlib/runpy.pyi +24 -24
- package/dist/typeshed-fallback/stdlib/sched.pyi +52 -49
- package/dist/typeshed-fallback/stdlib/secrets.pyi +15 -15
- package/dist/typeshed-fallback/stdlib/select.pyi +247 -247
- package/dist/typeshed-fallback/stdlib/selectors.pyi +67 -67
- package/dist/typeshed-fallback/stdlib/shelve.pyi +59 -59
- package/dist/typeshed-fallback/stdlib/shlex.pyi +63 -63
- package/dist/typeshed-fallback/stdlib/shutil.pyi +230 -230
- package/dist/typeshed-fallback/stdlib/signal.pyi +263 -263
- package/dist/typeshed-fallback/stdlib/site.pyi +36 -36
- package/dist/typeshed-fallback/stdlib/smtpd.pyi +91 -91
- package/dist/typeshed-fallback/stdlib/smtplib.pyi +204 -204
- package/dist/typeshed-fallback/stdlib/socket.pyi +1413 -856
- package/dist/typeshed-fallback/stdlib/socketserver.pyi +169 -169
- package/dist/typeshed-fallback/stdlib/spwd.pyi +13 -66
- package/dist/typeshed-fallback/stdlib/sqlite3/__init__.pyi +785 -787
- package/dist/typeshed-fallback/stdlib/sqlite3/dbapi2.pyi +241 -241
- package/dist/typeshed-fallback/stdlib/sqlite3/dump.pyi +2 -0
- package/dist/typeshed-fallback/stdlib/sre_compile.pyi +11 -11
- package/dist/typeshed-fallback/stdlib/sre_constants.pyi +124 -124
- package/dist/typeshed-fallback/stdlib/sre_parse.pyi +104 -104
- package/dist/typeshed-fallback/stdlib/ssl.pyi +558 -560
- package/dist/typeshed-fallback/stdlib/stat.pyi +7 -7
- package/dist/typeshed-fallback/stdlib/statistics.pyi +176 -176
- package/dist/typeshed-fallback/stdlib/string.pyi +83 -83
- package/dist/typeshed-fallback/stdlib/stringprep.pyi +27 -27
- package/dist/typeshed-fallback/stdlib/struct.pyi +5 -5
- package/dist/typeshed-fallback/stdlib/subprocess.pyi +2640 -2640
- package/dist/typeshed-fallback/stdlib/symbol.pyi +93 -93
- package/dist/typeshed-fallback/stdlib/symtable.pyi +90 -90
- package/dist/typeshed-fallback/stdlib/sys/__init__.pyi +773 -707
- package/dist/typeshed-fallback/stdlib/sysconfig.pyi +48 -48
- package/dist/typeshed-fallback/stdlib/tabnanny.pyi +16 -16
- package/dist/typeshed-fallback/stdlib/tarfile.pyi +593 -593
- package/dist/typeshed-fallback/stdlib/tempfile.pyi +497 -497
- package/dist/typeshed-fallback/stdlib/termios.pyi +108 -72
- package/dist/typeshed-fallback/stdlib/textwrap.pyi +103 -103
- package/dist/typeshed-fallback/stdlib/threading.pyi +279 -279
- package/dist/typeshed-fallback/stdlib/time.pyi +380 -380
- package/dist/typeshed-fallback/stdlib/timeit.pyi +32 -32
- package/dist/typeshed-fallback/stdlib/tkinter/__init__.pyi +3900 -3847
- package/dist/typeshed-fallback/stdlib/tkinter/colorchooser.pyi +20 -20
- package/dist/typeshed-fallback/stdlib/tkinter/commondialog.pyi +14 -14
- package/dist/typeshed-fallback/stdlib/tkinter/constants.pyi +80 -80
- package/dist/typeshed-fallback/stdlib/tkinter/dialog.pyi +16 -16
- package/dist/typeshed-fallback/stdlib/tkinter/dnd.pyi +20 -20
- package/dist/typeshed-fallback/stdlib/tkinter/filedialog.pyi +151 -151
- package/dist/typeshed-fallback/stdlib/tkinter/font.pyi +118 -116
- package/dist/typeshed-fallback/stdlib/tkinter/messagebox.pyi +44 -44
- package/dist/typeshed-fallback/stdlib/tkinter/scrolledtext.pyi +9 -9
- package/dist/typeshed-fallback/stdlib/tkinter/simpledialog.pyi +54 -54
- package/dist/typeshed-fallback/stdlib/tkinter/ttk.pyi +1207 -1207
- package/dist/typeshed-fallback/stdlib/token.pyi +160 -160
- package/dist/typeshed-fallback/stdlib/tokenize.pyi +186 -184
- package/dist/typeshed-fallback/stdlib/tomllib.pyi +10 -10
- package/dist/typeshed-fallback/stdlib/trace.pyi +90 -90
- package/dist/typeshed-fallback/stdlib/traceback.pyi +300 -300
- package/dist/typeshed-fallback/stdlib/tracemalloc.pyi +124 -124
- package/dist/typeshed-fallback/stdlib/turtle.pyi +732 -721
- package/dist/typeshed-fallback/stdlib/types.pyi +909 -913
- package/dist/typeshed-fallback/stdlib/typing.pyi +1145 -1147
- package/dist/typeshed-fallback/stdlib/typing_extensions.pyi +19 -47
- package/dist/typeshed-fallback/stdlib/unicodedata.pyi +303 -303
- package/dist/typeshed-fallback/stdlib/unittest/__init__.pyi +63 -68
- package/dist/typeshed-fallback/stdlib/unittest/_log.pyi +27 -27
- package/dist/typeshed-fallback/stdlib/unittest/async_case.pyi +25 -25
- package/dist/typeshed-fallback/stdlib/unittest/case.pyi +361 -361
- package/dist/typeshed-fallback/stdlib/unittest/loader.pyi +55 -55
- package/dist/typeshed-fallback/stdlib/unittest/main.pyi +73 -73
- package/dist/typeshed-fallback/stdlib/unittest/mock.pyi +468 -468
- package/dist/typeshed-fallback/stdlib/unittest/result.pyi +47 -47
- package/dist/typeshed-fallback/stdlib/unittest/runner.pyi +92 -92
- package/dist/typeshed-fallback/stdlib/unittest/signals.pyi +15 -15
- package/dist/typeshed-fallback/stdlib/unittest/suite.pyi +22 -22
- package/dist/typeshed-fallback/stdlib/unittest/util.pyi +23 -23
- package/dist/typeshed-fallback/stdlib/urllib/error.pyi +23 -23
- package/dist/typeshed-fallback/stdlib/urllib/parse.pyi +258 -258
- package/dist/typeshed-fallback/stdlib/urllib/request.pyi +408 -408
- package/dist/typeshed-fallback/stdlib/urllib/response.pyi +43 -43
- package/dist/typeshed-fallback/stdlib/urllib/robotparser.pyi +20 -20
- package/dist/typeshed-fallback/stdlib/uuid.pyi +100 -100
- package/dist/typeshed-fallback/stdlib/venv/__init__.pyi +107 -107
- package/dist/typeshed-fallback/stdlib/warnings.pyi +127 -127
- package/dist/typeshed-fallback/stdlib/wave.pyi +85 -85
- package/dist/typeshed-fallback/stdlib/weakref.pyi +198 -198
- package/dist/typeshed-fallback/stdlib/webbrowser.pyi +78 -77
- package/dist/typeshed-fallback/stdlib/wsgiref/handlers.pyi +91 -91
- package/dist/typeshed-fallback/stdlib/wsgiref/headers.pyi +26 -26
- package/dist/typeshed-fallback/stdlib/wsgiref/simple_server.pyi +37 -37
- package/dist/typeshed-fallback/stdlib/wsgiref/types.pyi +32 -32
- package/dist/typeshed-fallback/stdlib/wsgiref/util.pyi +26 -26
- package/dist/typeshed-fallback/stdlib/wsgiref/validate.pyi +50 -50
- package/dist/typeshed-fallback/stdlib/xml/__init__.pyi +3 -1
- package/dist/typeshed-fallback/stdlib/xml/dom/NodeFilter.pyi +19 -19
- package/dist/typeshed-fallback/stdlib/xml/dom/__init__.pyi +69 -69
- package/dist/typeshed-fallback/stdlib/xml/dom/domreg.pyi +8 -8
- package/dist/typeshed-fallback/stdlib/xml/dom/expatbuilder.pyi +100 -100
- package/dist/typeshed-fallback/stdlib/xml/dom/minicompat.pyi +26 -26
- package/dist/typeshed-fallback/stdlib/xml/dom/minidom.pyi +426 -426
- package/dist/typeshed-fallback/stdlib/xml/dom/pulldom.pyi +94 -94
- package/dist/typeshed-fallback/stdlib/xml/dom/xmlbuilder.pyi +108 -108
- package/dist/typeshed-fallback/stdlib/xml/etree/ElementInclude.pyi +29 -29
- package/dist/typeshed-fallback/stdlib/xml/etree/ElementPath.pyi +34 -34
- package/dist/typeshed-fallback/stdlib/xml/etree/ElementTree.pyi +347 -347
- package/dist/typeshed-fallback/stdlib/xml/etree/cElementTree.pyi +1 -1
- package/dist/typeshed-fallback/stdlib/xml/parsers/__init__.pyi +1 -1
- package/dist/typeshed-fallback/stdlib/xml/parsers/expat/__init__.pyi +7 -7
- package/dist/typeshed-fallback/stdlib/xml/parsers/expat/errors.pyi +3 -3
- package/dist/typeshed-fallback/stdlib/xml/parsers/expat/model.pyi +3 -3
- package/dist/typeshed-fallback/stdlib/xml/sax/__init__.pyi +25 -25
- package/dist/typeshed-fallback/stdlib/xml/sax/_exceptions.pyi +19 -19
- package/dist/typeshed-fallback/stdlib/xml/sax/handler.pyi +55 -55
- package/dist/typeshed-fallback/stdlib/xml/sax/saxutils.pyi +60 -60
- package/dist/typeshed-fallback/stdlib/xml/sax/xmlreader.pyi +87 -87
- package/dist/typeshed-fallback/stdlib/xmlrpc/client.pyi +296 -296
- package/dist/typeshed-fallback/stdlib/xmlrpc/server.pyi +144 -144
- package/dist/typeshed-fallback/stdlib/xxlimited.pyi +1 -3
- package/dist/typeshed-fallback/stdlib/zipapp.pyi +20 -20
- package/dist/typeshed-fallback/stdlib/zipfile/__init__.pyi +384 -384
- package/dist/typeshed-fallback/stdlib/zipfile/_path.pyi +103 -101
- package/dist/typeshed-fallback/stdlib/zipimport.pyi +41 -70
- package/dist/typeshed-fallback/stdlib/zlib.pyi +162 -157
- package/dist/typeshed-fallback/stdlib/zoneinfo/__init__.pyi +41 -47
- package/dist/typeshed-fallback/stdlib/zoneinfo/_common.pyi +13 -13
- package/dist/typeshed-fallback/stdlib/zoneinfo/_tzpath.pyi +13 -13
- 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 +5 -3
|
@@ -1,2640 +1,2640 @@
|
|
|
1
|
-
import sys
|
|
2
|
-
from _typeshed import MaybeNone, ReadableBuffer, StrOrBytesPath
|
|
3
|
-
from collections.abc import Callable, Collection, Iterable, Mapping, Sequence
|
|
4
|
-
from types import TracebackType
|
|
5
|
-
from typing import IO, Any, AnyStr, Final, Generic, Literal, TypeVar, overload
|
|
6
|
-
from typing_extensions import Self, TypeAlias
|
|
7
|
-
|
|
8
|
-
if sys.version_info >= (3, 9):
|
|
9
|
-
from types import GenericAlias
|
|
10
|
-
|
|
11
|
-
__all__ = [
|
|
12
|
-
"Popen",
|
|
13
|
-
"PIPE",
|
|
14
|
-
"STDOUT",
|
|
15
|
-
"call",
|
|
16
|
-
"check_call",
|
|
17
|
-
"getstatusoutput",
|
|
18
|
-
"getoutput",
|
|
19
|
-
"check_output",
|
|
20
|
-
"run",
|
|
21
|
-
"CalledProcessError",
|
|
22
|
-
"DEVNULL",
|
|
23
|
-
"SubprocessError",
|
|
24
|
-
"TimeoutExpired",
|
|
25
|
-
"CompletedProcess",
|
|
26
|
-
]
|
|
27
|
-
|
|
28
|
-
if sys.platform == "win32":
|
|
29
|
-
__all__ += [
|
|
30
|
-
"CREATE_NEW_CONSOLE",
|
|
31
|
-
"CREATE_NEW_PROCESS_GROUP",
|
|
32
|
-
"STARTF_USESHOWWINDOW",
|
|
33
|
-
"STARTF_USESTDHANDLES",
|
|
34
|
-
"STARTUPINFO",
|
|
35
|
-
"STD_ERROR_HANDLE",
|
|
36
|
-
"STD_INPUT_HANDLE",
|
|
37
|
-
"STD_OUTPUT_HANDLE",
|
|
38
|
-
"SW_HIDE",
|
|
39
|
-
"ABOVE_NORMAL_PRIORITY_CLASS",
|
|
40
|
-
"BELOW_NORMAL_PRIORITY_CLASS",
|
|
41
|
-
"CREATE_BREAKAWAY_FROM_JOB",
|
|
42
|
-
"CREATE_DEFAULT_ERROR_MODE",
|
|
43
|
-
"CREATE_NO_WINDOW",
|
|
44
|
-
"DETACHED_PROCESS",
|
|
45
|
-
"HIGH_PRIORITY_CLASS",
|
|
46
|
-
"IDLE_PRIORITY_CLASS",
|
|
47
|
-
"NORMAL_PRIORITY_CLASS",
|
|
48
|
-
"REALTIME_PRIORITY_CLASS",
|
|
49
|
-
]
|
|
50
|
-
|
|
51
|
-
# We prefer to annotate inputs to methods (eg subprocess.check_call) with these
|
|
52
|
-
# union types.
|
|
53
|
-
# For outputs we use laborious literal based overloads to try to determine
|
|
54
|
-
# which specific return types to use, and prefer to fall back to Any when
|
|
55
|
-
# this does not work, so the caller does not have to use an assertion to confirm
|
|
56
|
-
# which type.
|
|
57
|
-
#
|
|
58
|
-
# For example:
|
|
59
|
-
#
|
|
60
|
-
# try:
|
|
61
|
-
# x = subprocess.check_output(["ls", "-l"])
|
|
62
|
-
# reveal_type(x) # bytes, based on the overloads
|
|
63
|
-
# except TimeoutError as e:
|
|
64
|
-
# reveal_type(e.cmd) # Any, but morally is _CMD
|
|
65
|
-
_FILE: TypeAlias = None | int | IO[Any]
|
|
66
|
-
_InputString: TypeAlias = ReadableBuffer | str
|
|
67
|
-
_CMD: TypeAlias = StrOrBytesPath | Sequence[StrOrBytesPath]
|
|
68
|
-
if sys.platform == "win32":
|
|
69
|
-
_ENV: TypeAlias = Mapping[str, str]
|
|
70
|
-
else:
|
|
71
|
-
_ENV: TypeAlias = Mapping[bytes, StrOrBytesPath] | Mapping[str, StrOrBytesPath]
|
|
72
|
-
|
|
73
|
-
_T = TypeVar("_T")
|
|
74
|
-
|
|
75
|
-
# These two are private but documented
|
|
76
|
-
if sys.version_info >= (3, 11):
|
|
77
|
-
_USE_VFORK: Final[bool]
|
|
78
|
-
_USE_POSIX_SPAWN: Final[bool]
|
|
79
|
-
|
|
80
|
-
class CompletedProcess(Generic[_T]):
|
|
81
|
-
# morally: _CMD
|
|
82
|
-
args: Any
|
|
83
|
-
returncode: int
|
|
84
|
-
# These can both be None, but requiring checks for None would be tedious
|
|
85
|
-
# and writing all the overloads would be horrific.
|
|
86
|
-
stdout: _T
|
|
87
|
-
stderr: _T
|
|
88
|
-
def __init__(self, args: _CMD, returncode: int, stdout: _T | None = None, stderr: _T | None = None) -> None: ...
|
|
89
|
-
def check_returncode(self) -> None: ...
|
|
90
|
-
if sys.version_info >= (3, 9):
|
|
91
|
-
def __class_getitem__(cls, item: Any, /) -> GenericAlias:
|
|
92
|
-
"""
|
|
93
|
-
Represent a PEP 585 generic type
|
|
94
|
-
|
|
95
|
-
E.g. for t = list[int], t.__origin__ is list and t.__args__ is (int,).
|
|
96
|
-
"""
|
|
97
|
-
...
|
|
98
|
-
|
|
99
|
-
if sys.version_info >= (3, 11):
|
|
100
|
-
# 3.11 adds "process_group" argument
|
|
101
|
-
@overload
|
|
102
|
-
def run(
|
|
103
|
-
args: _CMD,
|
|
104
|
-
bufsize: int = -1,
|
|
105
|
-
executable: StrOrBytesPath | None = None,
|
|
106
|
-
stdin: _FILE = None,
|
|
107
|
-
stdout: _FILE = None,
|
|
108
|
-
stderr: _FILE = None,
|
|
109
|
-
preexec_fn: Callable[[], Any] | None = None,
|
|
110
|
-
close_fds: bool = True,
|
|
111
|
-
shell: bool = False,
|
|
112
|
-
cwd: StrOrBytesPath | None = None,
|
|
113
|
-
env: _ENV | None = None,
|
|
114
|
-
universal_newlines: bool | None = None,
|
|
115
|
-
startupinfo: Any = None,
|
|
116
|
-
creationflags: int = 0,
|
|
117
|
-
restore_signals: bool = True,
|
|
118
|
-
start_new_session: bool = False,
|
|
119
|
-
pass_fds: Collection[int] = ...,
|
|
120
|
-
*,
|
|
121
|
-
capture_output: bool = False,
|
|
122
|
-
check: bool = False,
|
|
123
|
-
encoding: str | None = None,
|
|
124
|
-
errors: str | None = None,
|
|
125
|
-
input: str | None = None,
|
|
126
|
-
text: Literal[True],
|
|
127
|
-
timeout: float | None = None,
|
|
128
|
-
user: str | int | None = None,
|
|
129
|
-
group: str | int | None = None,
|
|
130
|
-
extra_groups: Iterable[str | int] | None = None,
|
|
131
|
-
umask: int = -1,
|
|
132
|
-
pipesize: int = -1,
|
|
133
|
-
process_group: int | None = None,
|
|
134
|
-
) -> CompletedProcess[str]: ...
|
|
135
|
-
@overload
|
|
136
|
-
def run(
|
|
137
|
-
args: _CMD,
|
|
138
|
-
bufsize: int = -1,
|
|
139
|
-
executable: StrOrBytesPath | None = None,
|
|
140
|
-
stdin: _FILE = None,
|
|
141
|
-
stdout: _FILE = None,
|
|
142
|
-
stderr: _FILE = None,
|
|
143
|
-
preexec_fn: Callable[[], Any] | None = None,
|
|
144
|
-
close_fds: bool = True,
|
|
145
|
-
shell: bool = False,
|
|
146
|
-
cwd: StrOrBytesPath | None = None,
|
|
147
|
-
env: _ENV | None = None,
|
|
148
|
-
universal_newlines: bool | None = None,
|
|
149
|
-
startupinfo: Any = None,
|
|
150
|
-
creationflags: int = 0,
|
|
151
|
-
restore_signals: bool = True,
|
|
152
|
-
start_new_session: bool = False,
|
|
153
|
-
pass_fds: Collection[int] = ...,
|
|
154
|
-
*,
|
|
155
|
-
capture_output: bool = False,
|
|
156
|
-
check: bool = False,
|
|
157
|
-
encoding: str,
|
|
158
|
-
errors: str | None = None,
|
|
159
|
-
input: str | None = None,
|
|
160
|
-
text: bool | None = None,
|
|
161
|
-
timeout: float | None = None,
|
|
162
|
-
user: str | int | None = None,
|
|
163
|
-
group: str | int | None = None,
|
|
164
|
-
extra_groups: Iterable[str | int] | None = None,
|
|
165
|
-
umask: int = -1,
|
|
166
|
-
pipesize: int = -1,
|
|
167
|
-
process_group: int | None = None,
|
|
168
|
-
) -> CompletedProcess[str]: ...
|
|
169
|
-
@overload
|
|
170
|
-
def run(
|
|
171
|
-
args: _CMD,
|
|
172
|
-
bufsize: int = -1,
|
|
173
|
-
executable: StrOrBytesPath | None = None,
|
|
174
|
-
stdin: _FILE = None,
|
|
175
|
-
stdout: _FILE = None,
|
|
176
|
-
stderr: _FILE = None,
|
|
177
|
-
preexec_fn: Callable[[], Any] | None = None,
|
|
178
|
-
close_fds: bool = True,
|
|
179
|
-
shell: bool = False,
|
|
180
|
-
cwd: StrOrBytesPath | None = None,
|
|
181
|
-
env: _ENV | None = None,
|
|
182
|
-
universal_newlines: bool | None = None,
|
|
183
|
-
startupinfo: Any = None,
|
|
184
|
-
creationflags: int = 0,
|
|
185
|
-
restore_signals: bool = True,
|
|
186
|
-
start_new_session: bool = False,
|
|
187
|
-
pass_fds: Collection[int] = ...,
|
|
188
|
-
*,
|
|
189
|
-
capture_output: bool = False,
|
|
190
|
-
check: bool = False,
|
|
191
|
-
encoding: str | None = None,
|
|
192
|
-
errors: str,
|
|
193
|
-
input: str | None = None,
|
|
194
|
-
text: bool | None = None,
|
|
195
|
-
timeout: float | None = None,
|
|
196
|
-
user: str | int | None = None,
|
|
197
|
-
group: str | int | None = None,
|
|
198
|
-
extra_groups: Iterable[str | int] | None = None,
|
|
199
|
-
umask: int = -1,
|
|
200
|
-
pipesize: int = -1,
|
|
201
|
-
process_group: int | None = None,
|
|
202
|
-
) -> CompletedProcess[str]: ...
|
|
203
|
-
@overload
|
|
204
|
-
def run(
|
|
205
|
-
args: _CMD,
|
|
206
|
-
bufsize: int = -1,
|
|
207
|
-
executable: StrOrBytesPath | None = None,
|
|
208
|
-
stdin: _FILE = None,
|
|
209
|
-
stdout: _FILE = None,
|
|
210
|
-
stderr: _FILE = None,
|
|
211
|
-
preexec_fn: Callable[[], Any] | None = None,
|
|
212
|
-
close_fds: bool = True,
|
|
213
|
-
shell: bool = False,
|
|
214
|
-
cwd: StrOrBytesPath | None = None,
|
|
215
|
-
env: _ENV | None = None,
|
|
216
|
-
*,
|
|
217
|
-
universal_newlines: Literal[True],
|
|
218
|
-
startupinfo: Any = None,
|
|
219
|
-
creationflags: int = 0,
|
|
220
|
-
restore_signals: bool = True,
|
|
221
|
-
start_new_session: bool = False,
|
|
222
|
-
pass_fds: Collection[int] = ...,
|
|
223
|
-
# where the *real* keyword only args start
|
|
224
|
-
capture_output: bool = False,
|
|
225
|
-
check: bool = False,
|
|
226
|
-
encoding: str | None = None,
|
|
227
|
-
errors: str | None = None,
|
|
228
|
-
input: str | None = None,
|
|
229
|
-
text: bool | None = None,
|
|
230
|
-
timeout: float | None = None,
|
|
231
|
-
user: str | int | None = None,
|
|
232
|
-
group: str | int | None = None,
|
|
233
|
-
extra_groups: Iterable[str | int] | None = None,
|
|
234
|
-
umask: int = -1,
|
|
235
|
-
pipesize: int = -1,
|
|
236
|
-
process_group: int | None = None,
|
|
237
|
-
) -> CompletedProcess[str]: ...
|
|
238
|
-
@overload
|
|
239
|
-
def run(
|
|
240
|
-
args: _CMD,
|
|
241
|
-
bufsize: int = -1,
|
|
242
|
-
executable: StrOrBytesPath | None = None,
|
|
243
|
-
stdin: _FILE = None,
|
|
244
|
-
stdout: _FILE = None,
|
|
245
|
-
stderr: _FILE = None,
|
|
246
|
-
preexec_fn: Callable[[], Any] | None = None,
|
|
247
|
-
close_fds: bool = True,
|
|
248
|
-
shell: bool = False,
|
|
249
|
-
cwd: StrOrBytesPath | None = None,
|
|
250
|
-
env: _ENV | None = None,
|
|
251
|
-
universal_newlines: Literal[False] | None = None,
|
|
252
|
-
startupinfo: Any = None,
|
|
253
|
-
creationflags: int = 0,
|
|
254
|
-
restore_signals: bool = True,
|
|
255
|
-
start_new_session: bool = False,
|
|
256
|
-
pass_fds: Collection[int] = ...,
|
|
257
|
-
*,
|
|
258
|
-
capture_output: bool = False,
|
|
259
|
-
check: bool = False,
|
|
260
|
-
encoding: None = None,
|
|
261
|
-
errors: None = None,
|
|
262
|
-
input: ReadableBuffer | None = None,
|
|
263
|
-
text: Literal[False] | None = None,
|
|
264
|
-
timeout: float | None = None,
|
|
265
|
-
user: str | int | None = None,
|
|
266
|
-
group: str | int | None = None,
|
|
267
|
-
extra_groups: Iterable[str | int] | None = None,
|
|
268
|
-
umask: int = -1,
|
|
269
|
-
pipesize: int = -1,
|
|
270
|
-
process_group: int | None = None,
|
|
271
|
-
) -> CompletedProcess[bytes]: ...
|
|
272
|
-
@overload
|
|
273
|
-
def run(
|
|
274
|
-
args: _CMD,
|
|
275
|
-
bufsize: int = -1,
|
|
276
|
-
executable: StrOrBytesPath | None = None,
|
|
277
|
-
stdin: _FILE = None,
|
|
278
|
-
stdout: _FILE = None,
|
|
279
|
-
stderr: _FILE = None,
|
|
280
|
-
preexec_fn: Callable[[], Any] | None = None,
|
|
281
|
-
close_fds: bool = True,
|
|
282
|
-
shell: bool = False,
|
|
283
|
-
cwd: StrOrBytesPath | None = None,
|
|
284
|
-
env: _ENV | None = None,
|
|
285
|
-
universal_newlines: bool | None = None,
|
|
286
|
-
startupinfo: Any = None,
|
|
287
|
-
creationflags: int = 0,
|
|
288
|
-
restore_signals: bool = True,
|
|
289
|
-
start_new_session: bool = False,
|
|
290
|
-
pass_fds: Collection[int] = ...,
|
|
291
|
-
*,
|
|
292
|
-
capture_output: bool = False,
|
|
293
|
-
check: bool = False,
|
|
294
|
-
encoding: str | None = None,
|
|
295
|
-
errors: str | None = None,
|
|
296
|
-
input: _InputString | None = None,
|
|
297
|
-
text: bool | None = None,
|
|
298
|
-
timeout: float | None = None,
|
|
299
|
-
user: str | int | None = None,
|
|
300
|
-
group: str | int | None = None,
|
|
301
|
-
extra_groups: Iterable[str | int] | None = None,
|
|
302
|
-
umask: int = -1,
|
|
303
|
-
pipesize: int = -1,
|
|
304
|
-
process_group: int | None = None,
|
|
305
|
-
) -> CompletedProcess[Any]: ...
|
|
306
|
-
|
|
307
|
-
elif sys.version_info >= (3, 10):
|
|
308
|
-
# 3.10 adds "pipesize" argument
|
|
309
|
-
@overload
|
|
310
|
-
def run(
|
|
311
|
-
args: _CMD,
|
|
312
|
-
bufsize: int = -1,
|
|
313
|
-
executable: StrOrBytesPath | None = None,
|
|
314
|
-
stdin: _FILE = None,
|
|
315
|
-
stdout: _FILE = None,
|
|
316
|
-
stderr: _FILE = None,
|
|
317
|
-
preexec_fn: Callable[[], Any] | None = None,
|
|
318
|
-
close_fds: bool = True,
|
|
319
|
-
shell: bool = False,
|
|
320
|
-
cwd: StrOrBytesPath | None = None,
|
|
321
|
-
env: _ENV | None = None,
|
|
322
|
-
universal_newlines: bool | None = None,
|
|
323
|
-
startupinfo: Any = None,
|
|
324
|
-
creationflags: int = 0,
|
|
325
|
-
restore_signals: bool = True,
|
|
326
|
-
start_new_session: bool = False,
|
|
327
|
-
pass_fds: Collection[int] = ...,
|
|
328
|
-
*,
|
|
329
|
-
capture_output: bool = False,
|
|
330
|
-
check: bool = False,
|
|
331
|
-
encoding: str | None = None,
|
|
332
|
-
errors: str | None = None,
|
|
333
|
-
input: str | None = None,
|
|
334
|
-
text: Literal[True],
|
|
335
|
-
timeout: float | None = None,
|
|
336
|
-
user: str | int | None = None,
|
|
337
|
-
group: str | int | None = None,
|
|
338
|
-
extra_groups: Iterable[str | int] | None = None,
|
|
339
|
-
umask: int = -1,
|
|
340
|
-
pipesize: int = -1,
|
|
341
|
-
) -> CompletedProcess[str]: ...
|
|
342
|
-
@overload
|
|
343
|
-
def run(
|
|
344
|
-
args: _CMD,
|
|
345
|
-
bufsize: int = -1,
|
|
346
|
-
executable: StrOrBytesPath | None = None,
|
|
347
|
-
stdin: _FILE = None,
|
|
348
|
-
stdout: _FILE = None,
|
|
349
|
-
stderr: _FILE = None,
|
|
350
|
-
preexec_fn: Callable[[], Any] | None = None,
|
|
351
|
-
close_fds: bool = True,
|
|
352
|
-
shell: bool = False,
|
|
353
|
-
cwd: StrOrBytesPath | None = None,
|
|
354
|
-
env: _ENV | None = None,
|
|
355
|
-
universal_newlines: bool | None = None,
|
|
356
|
-
startupinfo: Any = None,
|
|
357
|
-
creationflags: int = 0,
|
|
358
|
-
restore_signals: bool = True,
|
|
359
|
-
start_new_session: bool = False,
|
|
360
|
-
pass_fds: Collection[int] = ...,
|
|
361
|
-
*,
|
|
362
|
-
capture_output: bool = False,
|
|
363
|
-
check: bool = False,
|
|
364
|
-
encoding: str,
|
|
365
|
-
errors: str | None = None,
|
|
366
|
-
input: str | None = None,
|
|
367
|
-
text: bool | None = None,
|
|
368
|
-
timeout: float | None = None,
|
|
369
|
-
user: str | int | None = None,
|
|
370
|
-
group: str | int | None = None,
|
|
371
|
-
extra_groups: Iterable[str | int] | None = None,
|
|
372
|
-
umask: int = -1,
|
|
373
|
-
pipesize: int = -1,
|
|
374
|
-
) -> CompletedProcess[str]: ...
|
|
375
|
-
@overload
|
|
376
|
-
def run(
|
|
377
|
-
args: _CMD,
|
|
378
|
-
bufsize: int = -1,
|
|
379
|
-
executable: StrOrBytesPath | None = None,
|
|
380
|
-
stdin: _FILE = None,
|
|
381
|
-
stdout: _FILE = None,
|
|
382
|
-
stderr: _FILE = None,
|
|
383
|
-
preexec_fn: Callable[[], Any] | None = None,
|
|
384
|
-
close_fds: bool = True,
|
|
385
|
-
shell: bool = False,
|
|
386
|
-
cwd: StrOrBytesPath | None = None,
|
|
387
|
-
env: _ENV | None = None,
|
|
388
|
-
universal_newlines: bool | None = None,
|
|
389
|
-
startupinfo: Any = None,
|
|
390
|
-
creationflags: int = 0,
|
|
391
|
-
restore_signals: bool = True,
|
|
392
|
-
start_new_session: bool = False,
|
|
393
|
-
pass_fds: Collection[int] = ...,
|
|
394
|
-
*,
|
|
395
|
-
capture_output: bool = False,
|
|
396
|
-
check: bool = False,
|
|
397
|
-
encoding: str | None = None,
|
|
398
|
-
errors: str,
|
|
399
|
-
input: str | None = None,
|
|
400
|
-
text: bool | None = None,
|
|
401
|
-
timeout: float | None = None,
|
|
402
|
-
user: str | int | None = None,
|
|
403
|
-
group: str | int | None = None,
|
|
404
|
-
extra_groups: Iterable[str | int] | None = None,
|
|
405
|
-
umask: int = -1,
|
|
406
|
-
pipesize: int = -1,
|
|
407
|
-
) -> CompletedProcess[str]: ...
|
|
408
|
-
@overload
|
|
409
|
-
def run(
|
|
410
|
-
args: _CMD,
|
|
411
|
-
bufsize: int = -1,
|
|
412
|
-
executable: StrOrBytesPath | None = None,
|
|
413
|
-
stdin: _FILE = None,
|
|
414
|
-
stdout: _FILE = None,
|
|
415
|
-
stderr: _FILE = None,
|
|
416
|
-
preexec_fn: Callable[[], Any] | None = None,
|
|
417
|
-
close_fds: bool = True,
|
|
418
|
-
shell: bool = False,
|
|
419
|
-
cwd: StrOrBytesPath | None = None,
|
|
420
|
-
env: _ENV | None = None,
|
|
421
|
-
*,
|
|
422
|
-
universal_newlines: Literal[True],
|
|
423
|
-
startupinfo: Any = None,
|
|
424
|
-
creationflags: int = 0,
|
|
425
|
-
restore_signals: bool = True,
|
|
426
|
-
start_new_session: bool = False,
|
|
427
|
-
pass_fds: Collection[int] = ...,
|
|
428
|
-
# where the *real* keyword only args start
|
|
429
|
-
capture_output: bool = False,
|
|
430
|
-
check: bool = False,
|
|
431
|
-
encoding: str | None = None,
|
|
432
|
-
errors: str | None = None,
|
|
433
|
-
input: str | None = None,
|
|
434
|
-
text: bool | None = None,
|
|
435
|
-
timeout: float | None = None,
|
|
436
|
-
user: str | int | None = None,
|
|
437
|
-
group: str | int | None = None,
|
|
438
|
-
extra_groups: Iterable[str | int] | None = None,
|
|
439
|
-
umask: int = -1,
|
|
440
|
-
pipesize: int = -1,
|
|
441
|
-
) -> CompletedProcess[str]: ...
|
|
442
|
-
@overload
|
|
443
|
-
def run(
|
|
444
|
-
args: _CMD,
|
|
445
|
-
bufsize: int = -1,
|
|
446
|
-
executable: StrOrBytesPath | None = None,
|
|
447
|
-
stdin: _FILE = None,
|
|
448
|
-
stdout: _FILE = None,
|
|
449
|
-
stderr: _FILE = None,
|
|
450
|
-
preexec_fn: Callable[[], Any] | None = None,
|
|
451
|
-
close_fds: bool = True,
|
|
452
|
-
shell: bool = False,
|
|
453
|
-
cwd: StrOrBytesPath | None = None,
|
|
454
|
-
env: _ENV | None = None,
|
|
455
|
-
universal_newlines: Literal[False] | None = None,
|
|
456
|
-
startupinfo: Any = None,
|
|
457
|
-
creationflags: int = 0,
|
|
458
|
-
restore_signals: bool = True,
|
|
459
|
-
start_new_session: bool = False,
|
|
460
|
-
pass_fds: Collection[int] = ...,
|
|
461
|
-
*,
|
|
462
|
-
capture_output: bool = False,
|
|
463
|
-
check: bool = False,
|
|
464
|
-
encoding: None = None,
|
|
465
|
-
errors: None = None,
|
|
466
|
-
input: ReadableBuffer | None = None,
|
|
467
|
-
text: Literal[False] | None = None,
|
|
468
|
-
timeout: float | None = None,
|
|
469
|
-
user: str | int | None = None,
|
|
470
|
-
group: str | int | None = None,
|
|
471
|
-
extra_groups: Iterable[str | int] | None = None,
|
|
472
|
-
umask: int = -1,
|
|
473
|
-
pipesize: int = -1,
|
|
474
|
-
) -> CompletedProcess[bytes]: ...
|
|
475
|
-
@overload
|
|
476
|
-
def run(
|
|
477
|
-
args: _CMD,
|
|
478
|
-
bufsize: int = -1,
|
|
479
|
-
executable: StrOrBytesPath | None = None,
|
|
480
|
-
stdin: _FILE = None,
|
|
481
|
-
stdout: _FILE = None,
|
|
482
|
-
stderr: _FILE = None,
|
|
483
|
-
preexec_fn: Callable[[], Any] | None = None,
|
|
484
|
-
close_fds: bool = True,
|
|
485
|
-
shell: bool = False,
|
|
486
|
-
cwd: StrOrBytesPath | None = None,
|
|
487
|
-
env: _ENV | None = None,
|
|
488
|
-
universal_newlines: bool | None = None,
|
|
489
|
-
startupinfo: Any = None,
|
|
490
|
-
creationflags: int = 0,
|
|
491
|
-
restore_signals: bool = True,
|
|
492
|
-
start_new_session: bool = False,
|
|
493
|
-
pass_fds: Collection[int] = ...,
|
|
494
|
-
*,
|
|
495
|
-
capture_output: bool = False,
|
|
496
|
-
check: bool = False,
|
|
497
|
-
encoding: str | None = None,
|
|
498
|
-
errors: str | None = None,
|
|
499
|
-
input: _InputString | None = None,
|
|
500
|
-
text: bool | None = None,
|
|
501
|
-
timeout: float | None = None,
|
|
502
|
-
user: str | int | None = None,
|
|
503
|
-
group: str | int | None = None,
|
|
504
|
-
extra_groups: Iterable[str | int] | None = None,
|
|
505
|
-
umask: int = -1,
|
|
506
|
-
pipesize: int = -1,
|
|
507
|
-
) -> CompletedProcess[Any]: ...
|
|
508
|
-
|
|
509
|
-
elif sys.version_info >= (3, 9):
|
|
510
|
-
# 3.9 adds arguments "user", "group", "extra_groups" and "umask"
|
|
511
|
-
@overload
|
|
512
|
-
def run(
|
|
513
|
-
args: _CMD,
|
|
514
|
-
bufsize: int = -1,
|
|
515
|
-
executable: StrOrBytesPath | None = None,
|
|
516
|
-
stdin: _FILE = None,
|
|
517
|
-
stdout: _FILE = None,
|
|
518
|
-
stderr: _FILE = None,
|
|
519
|
-
preexec_fn: Callable[[], Any] | None = None,
|
|
520
|
-
close_fds: bool = True,
|
|
521
|
-
shell: bool = False,
|
|
522
|
-
cwd: StrOrBytesPath | None = None,
|
|
523
|
-
env: _ENV | None = None,
|
|
524
|
-
universal_newlines: bool | None = None,
|
|
525
|
-
startupinfo: Any = None,
|
|
526
|
-
creationflags: int = 0,
|
|
527
|
-
restore_signals: bool = True,
|
|
528
|
-
start_new_session: bool = False,
|
|
529
|
-
pass_fds: Collection[int] = ...,
|
|
530
|
-
*,
|
|
531
|
-
capture_output: bool = False,
|
|
532
|
-
check: bool = False,
|
|
533
|
-
encoding: str | None = None,
|
|
534
|
-
errors: str | None = None,
|
|
535
|
-
input: str | None = None,
|
|
536
|
-
text: Literal[True],
|
|
537
|
-
timeout: float | None = None,
|
|
538
|
-
user: str | int | None = None,
|
|
539
|
-
group: str | int | None = None,
|
|
540
|
-
extra_groups: Iterable[str | int] | None = None,
|
|
541
|
-
umask: int = -1,
|
|
542
|
-
) -> CompletedProcess[str]: ...
|
|
543
|
-
@overload
|
|
544
|
-
def run(
|
|
545
|
-
args: _CMD,
|
|
546
|
-
bufsize: int = -1,
|
|
547
|
-
executable: StrOrBytesPath | None = None,
|
|
548
|
-
stdin: _FILE = None,
|
|
549
|
-
stdout: _FILE = None,
|
|
550
|
-
stderr: _FILE = None,
|
|
551
|
-
preexec_fn: Callable[[], Any] | None = None,
|
|
552
|
-
close_fds: bool = True,
|
|
553
|
-
shell: bool = False,
|
|
554
|
-
cwd: StrOrBytesPath | None = None,
|
|
555
|
-
env: _ENV | None = None,
|
|
556
|
-
universal_newlines: bool | None = None,
|
|
557
|
-
startupinfo: Any = None,
|
|
558
|
-
creationflags: int = 0,
|
|
559
|
-
restore_signals: bool = True,
|
|
560
|
-
start_new_session: bool = False,
|
|
561
|
-
pass_fds: Collection[int] = ...,
|
|
562
|
-
*,
|
|
563
|
-
capture_output: bool = False,
|
|
564
|
-
check: bool = False,
|
|
565
|
-
encoding: str,
|
|
566
|
-
errors: str | None = None,
|
|
567
|
-
input: str | None = None,
|
|
568
|
-
text: bool | None = None,
|
|
569
|
-
timeout: float | None = None,
|
|
570
|
-
user: str | int | None = None,
|
|
571
|
-
group: str | int | None = None,
|
|
572
|
-
extra_groups: Iterable[str | int] | None = None,
|
|
573
|
-
umask: int = -1,
|
|
574
|
-
) -> CompletedProcess[str]: ...
|
|
575
|
-
@overload
|
|
576
|
-
def run(
|
|
577
|
-
args: _CMD,
|
|
578
|
-
bufsize: int = -1,
|
|
579
|
-
executable: StrOrBytesPath | None = None,
|
|
580
|
-
stdin: _FILE = None,
|
|
581
|
-
stdout: _FILE = None,
|
|
582
|
-
stderr: _FILE = None,
|
|
583
|
-
preexec_fn: Callable[[], Any] | None = None,
|
|
584
|
-
close_fds: bool = True,
|
|
585
|
-
shell: bool = False,
|
|
586
|
-
cwd: StrOrBytesPath | None = None,
|
|
587
|
-
env: _ENV | None = None,
|
|
588
|
-
universal_newlines: bool | None = None,
|
|
589
|
-
startupinfo: Any = None,
|
|
590
|
-
creationflags: int = 0,
|
|
591
|
-
restore_signals: bool = True,
|
|
592
|
-
start_new_session: bool = False,
|
|
593
|
-
pass_fds: Collection[int] = ...,
|
|
594
|
-
*,
|
|
595
|
-
capture_output: bool = False,
|
|
596
|
-
check: bool = False,
|
|
597
|
-
encoding: str | None = None,
|
|
598
|
-
errors: str,
|
|
599
|
-
input: str | None = None,
|
|
600
|
-
text: bool | None = None,
|
|
601
|
-
timeout: float | None = None,
|
|
602
|
-
user: str | int | None = None,
|
|
603
|
-
group: str | int | None = None,
|
|
604
|
-
extra_groups: Iterable[str | int] | None = None,
|
|
605
|
-
umask: int = -1,
|
|
606
|
-
) -> CompletedProcess[str]: ...
|
|
607
|
-
@overload
|
|
608
|
-
def run(
|
|
609
|
-
args: _CMD,
|
|
610
|
-
bufsize: int = -1,
|
|
611
|
-
executable: StrOrBytesPath | None = None,
|
|
612
|
-
stdin: _FILE = None,
|
|
613
|
-
stdout: _FILE = None,
|
|
614
|
-
stderr: _FILE = None,
|
|
615
|
-
preexec_fn: Callable[[], Any] | None = None,
|
|
616
|
-
close_fds: bool = True,
|
|
617
|
-
shell: bool = False,
|
|
618
|
-
cwd: StrOrBytesPath | None = None,
|
|
619
|
-
env: _ENV | None = None,
|
|
620
|
-
*,
|
|
621
|
-
universal_newlines: Literal[True],
|
|
622
|
-
startupinfo: Any = None,
|
|
623
|
-
creationflags: int = 0,
|
|
624
|
-
restore_signals: bool = True,
|
|
625
|
-
start_new_session: bool = False,
|
|
626
|
-
pass_fds: Collection[int] = ...,
|
|
627
|
-
# where the *real* keyword only args start
|
|
628
|
-
capture_output: bool = False,
|
|
629
|
-
check: bool = False,
|
|
630
|
-
encoding: str | None = None,
|
|
631
|
-
errors: str | None = None,
|
|
632
|
-
input: str | None = None,
|
|
633
|
-
text: bool | None = None,
|
|
634
|
-
timeout: float | None = None,
|
|
635
|
-
user: str | int | None = None,
|
|
636
|
-
group: str | int | None = None,
|
|
637
|
-
extra_groups: Iterable[str | int] | None = None,
|
|
638
|
-
umask: int = -1,
|
|
639
|
-
) -> CompletedProcess[str]: ...
|
|
640
|
-
@overload
|
|
641
|
-
def run(
|
|
642
|
-
args: _CMD,
|
|
643
|
-
bufsize: int = -1,
|
|
644
|
-
executable: StrOrBytesPath | None = None,
|
|
645
|
-
stdin: _FILE = None,
|
|
646
|
-
stdout: _FILE = None,
|
|
647
|
-
stderr: _FILE = None,
|
|
648
|
-
preexec_fn: Callable[[], Any] | None = None,
|
|
649
|
-
close_fds: bool = True,
|
|
650
|
-
shell: bool = False,
|
|
651
|
-
cwd: StrOrBytesPath | None = None,
|
|
652
|
-
env: _ENV | None = None,
|
|
653
|
-
universal_newlines: Literal[False] | None = None,
|
|
654
|
-
startupinfo: Any = None,
|
|
655
|
-
creationflags: int = 0,
|
|
656
|
-
restore_signals: bool = True,
|
|
657
|
-
start_new_session: bool = False,
|
|
658
|
-
pass_fds: Collection[int] = ...,
|
|
659
|
-
*,
|
|
660
|
-
capture_output: bool = False,
|
|
661
|
-
check: bool = False,
|
|
662
|
-
encoding: None = None,
|
|
663
|
-
errors: None = None,
|
|
664
|
-
input: ReadableBuffer | None = None,
|
|
665
|
-
text: Literal[False] | None = None,
|
|
666
|
-
timeout: float | None = None,
|
|
667
|
-
user: str | int | None = None,
|
|
668
|
-
group: str | int | None = None,
|
|
669
|
-
extra_groups: Iterable[str | int] | None = None,
|
|
670
|
-
umask: int = -1,
|
|
671
|
-
) -> CompletedProcess[bytes]: ...
|
|
672
|
-
@overload
|
|
673
|
-
def run(
|
|
674
|
-
args: _CMD,
|
|
675
|
-
bufsize: int = -1,
|
|
676
|
-
executable: StrOrBytesPath | None = None,
|
|
677
|
-
stdin: _FILE = None,
|
|
678
|
-
stdout: _FILE = None,
|
|
679
|
-
stderr: _FILE = None,
|
|
680
|
-
preexec_fn: Callable[[], Any] | None = None,
|
|
681
|
-
close_fds: bool = True,
|
|
682
|
-
shell: bool = False,
|
|
683
|
-
cwd: StrOrBytesPath | None = None,
|
|
684
|
-
env: _ENV | None = None,
|
|
685
|
-
universal_newlines: bool | None = None,
|
|
686
|
-
startupinfo: Any = None,
|
|
687
|
-
creationflags: int = 0,
|
|
688
|
-
restore_signals: bool = True,
|
|
689
|
-
start_new_session: bool = False,
|
|
690
|
-
pass_fds: Collection[int] = ...,
|
|
691
|
-
*,
|
|
692
|
-
capture_output: bool = False,
|
|
693
|
-
check: bool = False,
|
|
694
|
-
encoding: str | None = None,
|
|
695
|
-
errors: str | None = None,
|
|
696
|
-
input: _InputString | None = None,
|
|
697
|
-
text: bool | None = None,
|
|
698
|
-
timeout: float | None = None,
|
|
699
|
-
user: str | int | None = None,
|
|
700
|
-
group: str | int | None = None,
|
|
701
|
-
extra_groups: Iterable[str | int] | None = None,
|
|
702
|
-
umask: int = -1,
|
|
703
|
-
) -> CompletedProcess[Any]: ...
|
|
704
|
-
|
|
705
|
-
else:
|
|
706
|
-
@overload
|
|
707
|
-
def run(
|
|
708
|
-
args: _CMD,
|
|
709
|
-
bufsize: int = -1,
|
|
710
|
-
executable: StrOrBytesPath | None = None,
|
|
711
|
-
stdin: _FILE = None,
|
|
712
|
-
stdout: _FILE = None,
|
|
713
|
-
stderr: _FILE = None,
|
|
714
|
-
preexec_fn: Callable[[], Any] | None = None,
|
|
715
|
-
close_fds: bool = True,
|
|
716
|
-
shell: bool = False,
|
|
717
|
-
cwd: StrOrBytesPath | None = None,
|
|
718
|
-
env: _ENV | None = None,
|
|
719
|
-
universal_newlines: bool | None = None,
|
|
720
|
-
startupinfo: Any = None,
|
|
721
|
-
creationflags: int = 0,
|
|
722
|
-
restore_signals: bool = True,
|
|
723
|
-
start_new_session: bool = False,
|
|
724
|
-
pass_fds: Collection[int] = ...,
|
|
725
|
-
*,
|
|
726
|
-
capture_output: bool = False,
|
|
727
|
-
check: bool = False,
|
|
728
|
-
encoding: str | None = None,
|
|
729
|
-
errors: str | None = None,
|
|
730
|
-
input: str | None = None,
|
|
731
|
-
text: Literal[True],
|
|
732
|
-
timeout: float | None = None,
|
|
733
|
-
) -> CompletedProcess[str]: ...
|
|
734
|
-
@overload
|
|
735
|
-
def run(
|
|
736
|
-
args: _CMD,
|
|
737
|
-
bufsize: int = -1,
|
|
738
|
-
executable: StrOrBytesPath | None = None,
|
|
739
|
-
stdin: _FILE = None,
|
|
740
|
-
stdout: _FILE = None,
|
|
741
|
-
stderr: _FILE = None,
|
|
742
|
-
preexec_fn: Callable[[], Any] | None = None,
|
|
743
|
-
close_fds: bool = True,
|
|
744
|
-
shell: bool = False,
|
|
745
|
-
cwd: StrOrBytesPath | None = None,
|
|
746
|
-
env: _ENV | None = None,
|
|
747
|
-
universal_newlines: bool | None = None,
|
|
748
|
-
startupinfo: Any = None,
|
|
749
|
-
creationflags: int = 0,
|
|
750
|
-
restore_signals: bool = True,
|
|
751
|
-
start_new_session: bool = False,
|
|
752
|
-
pass_fds: Collection[int] = ...,
|
|
753
|
-
*,
|
|
754
|
-
capture_output: bool = False,
|
|
755
|
-
check: bool = False,
|
|
756
|
-
encoding: str,
|
|
757
|
-
errors: str | None = None,
|
|
758
|
-
input: str | None = None,
|
|
759
|
-
text: bool | None = None,
|
|
760
|
-
timeout: float | None = None,
|
|
761
|
-
) -> CompletedProcess[str]: ...
|
|
762
|
-
@overload
|
|
763
|
-
def run(
|
|
764
|
-
args: _CMD,
|
|
765
|
-
bufsize: int = -1,
|
|
766
|
-
executable: StrOrBytesPath | None = None,
|
|
767
|
-
stdin: _FILE = None,
|
|
768
|
-
stdout: _FILE = None,
|
|
769
|
-
stderr: _FILE = None,
|
|
770
|
-
preexec_fn: Callable[[], Any] | None = None,
|
|
771
|
-
close_fds: bool = True,
|
|
772
|
-
shell: bool = False,
|
|
773
|
-
cwd: StrOrBytesPath | None = None,
|
|
774
|
-
env: _ENV | None = None,
|
|
775
|
-
universal_newlines: bool | None = None,
|
|
776
|
-
startupinfo: Any = None,
|
|
777
|
-
creationflags: int = 0,
|
|
778
|
-
restore_signals: bool = True,
|
|
779
|
-
start_new_session: bool = False,
|
|
780
|
-
pass_fds: Collection[int] = ...,
|
|
781
|
-
*,
|
|
782
|
-
capture_output: bool = False,
|
|
783
|
-
check: bool = False,
|
|
784
|
-
encoding: str | None = None,
|
|
785
|
-
errors: str,
|
|
786
|
-
input: str | None = None,
|
|
787
|
-
text: bool | None = None,
|
|
788
|
-
timeout: float | None = None,
|
|
789
|
-
) -> CompletedProcess[str]: ...
|
|
790
|
-
@overload
|
|
791
|
-
def run(
|
|
792
|
-
args: _CMD,
|
|
793
|
-
bufsize: int = -1,
|
|
794
|
-
executable: StrOrBytesPath | None = None,
|
|
795
|
-
stdin: _FILE = None,
|
|
796
|
-
stdout: _FILE = None,
|
|
797
|
-
stderr: _FILE = None,
|
|
798
|
-
preexec_fn: Callable[[], Any] | None = None,
|
|
799
|
-
close_fds: bool = True,
|
|
800
|
-
shell: bool = False,
|
|
801
|
-
cwd: StrOrBytesPath | None = None,
|
|
802
|
-
env: _ENV | None = None,
|
|
803
|
-
*,
|
|
804
|
-
universal_newlines: Literal[True],
|
|
805
|
-
startupinfo: Any = None,
|
|
806
|
-
creationflags: int = 0,
|
|
807
|
-
restore_signals: bool = True,
|
|
808
|
-
start_new_session: bool = False,
|
|
809
|
-
pass_fds: Collection[int] = ...,
|
|
810
|
-
# where the *real* keyword only args start
|
|
811
|
-
capture_output: bool = False,
|
|
812
|
-
check: bool = False,
|
|
813
|
-
encoding: str | None = None,
|
|
814
|
-
errors: str | None = None,
|
|
815
|
-
input: str | None = None,
|
|
816
|
-
text: bool | None = None,
|
|
817
|
-
timeout: float | None = None,
|
|
818
|
-
) -> CompletedProcess[str]: ...
|
|
819
|
-
@overload
|
|
820
|
-
def run(
|
|
821
|
-
args: _CMD,
|
|
822
|
-
bufsize: int = -1,
|
|
823
|
-
executable: StrOrBytesPath | None = None,
|
|
824
|
-
stdin: _FILE = None,
|
|
825
|
-
stdout: _FILE = None,
|
|
826
|
-
stderr: _FILE = None,
|
|
827
|
-
preexec_fn: Callable[[], Any] | None = None,
|
|
828
|
-
close_fds: bool = True,
|
|
829
|
-
shell: bool = False,
|
|
830
|
-
cwd: StrOrBytesPath | None = None,
|
|
831
|
-
env: _ENV | None = None,
|
|
832
|
-
universal_newlines: Literal[False] | None = None,
|
|
833
|
-
startupinfo: Any = None,
|
|
834
|
-
creationflags: int = 0,
|
|
835
|
-
restore_signals: bool = True,
|
|
836
|
-
start_new_session: bool = False,
|
|
837
|
-
pass_fds: Collection[int] = ...,
|
|
838
|
-
*,
|
|
839
|
-
capture_output: bool = False,
|
|
840
|
-
check: bool = False,
|
|
841
|
-
encoding: None = None,
|
|
842
|
-
errors: None = None,
|
|
843
|
-
input: ReadableBuffer | None = None,
|
|
844
|
-
text: Literal[False] | None = None,
|
|
845
|
-
timeout: float | None = None,
|
|
846
|
-
) -> CompletedProcess[bytes]: ...
|
|
847
|
-
@overload
|
|
848
|
-
def run(
|
|
849
|
-
args: _CMD,
|
|
850
|
-
bufsize: int = -1,
|
|
851
|
-
executable: StrOrBytesPath | None = None,
|
|
852
|
-
stdin: _FILE = None,
|
|
853
|
-
stdout: _FILE = None,
|
|
854
|
-
stderr: _FILE = None,
|
|
855
|
-
preexec_fn: Callable[[], Any] | None = None,
|
|
856
|
-
close_fds: bool = True,
|
|
857
|
-
shell: bool = False,
|
|
858
|
-
cwd: StrOrBytesPath | None = None,
|
|
859
|
-
env: _ENV | None = None,
|
|
860
|
-
universal_newlines: bool | None = None,
|
|
861
|
-
startupinfo: Any = None,
|
|
862
|
-
creationflags: int = 0,
|
|
863
|
-
restore_signals: bool = True,
|
|
864
|
-
start_new_session: bool = False,
|
|
865
|
-
pass_fds: Collection[int] = ...,
|
|
866
|
-
*,
|
|
867
|
-
capture_output: bool = False,
|
|
868
|
-
check: bool = False,
|
|
869
|
-
encoding: str | None = None,
|
|
870
|
-
errors: str | None = None,
|
|
871
|
-
input: _InputString | None = None,
|
|
872
|
-
text: bool | None = None,
|
|
873
|
-
timeout: float | None = None,
|
|
874
|
-
) -> CompletedProcess[Any]: ...
|
|
875
|
-
|
|
876
|
-
# Same args as Popen.__init__
|
|
877
|
-
if sys.version_info >= (3, 11):
|
|
878
|
-
# 3.11 adds "process_group" argument
|
|
879
|
-
def call(
|
|
880
|
-
args: _CMD,
|
|
881
|
-
bufsize: int = -1,
|
|
882
|
-
executable: StrOrBytesPath | None = None,
|
|
883
|
-
stdin: _FILE = None,
|
|
884
|
-
stdout: _FILE = None,
|
|
885
|
-
stderr: _FILE = None,
|
|
886
|
-
preexec_fn: Callable[[], Any] | None = None,
|
|
887
|
-
close_fds: bool = True,
|
|
888
|
-
shell: bool = False,
|
|
889
|
-
cwd: StrOrBytesPath | None = None,
|
|
890
|
-
env: _ENV | None = None,
|
|
891
|
-
universal_newlines: bool | None = None,
|
|
892
|
-
startupinfo: Any = None,
|
|
893
|
-
creationflags: int = 0,
|
|
894
|
-
restore_signals: bool = True,
|
|
895
|
-
start_new_session: bool = False,
|
|
896
|
-
pass_fds: Collection[int] = ...,
|
|
897
|
-
*,
|
|
898
|
-
encoding: str | None = None,
|
|
899
|
-
timeout: float | None = None,
|
|
900
|
-
text: bool | None = None,
|
|
901
|
-
user: str | int | None = None,
|
|
902
|
-
group: str | int | None = None,
|
|
903
|
-
extra_groups: Iterable[str | int] | None = None,
|
|
904
|
-
umask: int = -1,
|
|
905
|
-
pipesize: int = -1,
|
|
906
|
-
process_group: int | None = None,
|
|
907
|
-
) -> int: ...
|
|
908
|
-
|
|
909
|
-
elif sys.version_info >= (3, 10):
|
|
910
|
-
# 3.10 adds "pipesize" argument
|
|
911
|
-
def call(
|
|
912
|
-
args: _CMD,
|
|
913
|
-
bufsize: int = -1,
|
|
914
|
-
executable: StrOrBytesPath | None = None,
|
|
915
|
-
stdin: _FILE = None,
|
|
916
|
-
stdout: _FILE = None,
|
|
917
|
-
stderr: _FILE = None,
|
|
918
|
-
preexec_fn: Callable[[], Any] | None = None,
|
|
919
|
-
close_fds: bool = True,
|
|
920
|
-
shell: bool = False,
|
|
921
|
-
cwd: StrOrBytesPath | None = None,
|
|
922
|
-
env: _ENV | None = None,
|
|
923
|
-
universal_newlines: bool | None = None,
|
|
924
|
-
startupinfo: Any = None,
|
|
925
|
-
creationflags: int = 0,
|
|
926
|
-
restore_signals: bool = True,
|
|
927
|
-
start_new_session: bool = False,
|
|
928
|
-
pass_fds: Collection[int] = ...,
|
|
929
|
-
*,
|
|
930
|
-
encoding: str | None = None,
|
|
931
|
-
timeout: float | None = None,
|
|
932
|
-
text: bool | None = None,
|
|
933
|
-
user: str | int | None = None,
|
|
934
|
-
group: str | int | None = None,
|
|
935
|
-
extra_groups: Iterable[str | int] | None = None,
|
|
936
|
-
umask: int = -1,
|
|
937
|
-
pipesize: int = -1,
|
|
938
|
-
) -> int: ...
|
|
939
|
-
|
|
940
|
-
elif sys.version_info >= (3, 9):
|
|
941
|
-
# 3.9 adds arguments "user", "group", "extra_groups" and "umask"
|
|
942
|
-
def call(
|
|
943
|
-
args: _CMD,
|
|
944
|
-
bufsize: int = -1,
|
|
945
|
-
executable: StrOrBytesPath | None = None,
|
|
946
|
-
stdin: _FILE = None,
|
|
947
|
-
stdout: _FILE = None,
|
|
948
|
-
stderr: _FILE = None,
|
|
949
|
-
preexec_fn: Callable[[], Any] | None = None,
|
|
950
|
-
close_fds: bool = True,
|
|
951
|
-
shell: bool = False,
|
|
952
|
-
cwd: StrOrBytesPath | None = None,
|
|
953
|
-
env: _ENV | None = None,
|
|
954
|
-
universal_newlines: bool | None = None,
|
|
955
|
-
startupinfo: Any = None,
|
|
956
|
-
creationflags: int = 0,
|
|
957
|
-
restore_signals: bool = True,
|
|
958
|
-
start_new_session: bool = False,
|
|
959
|
-
pass_fds: Collection[int] = ...,
|
|
960
|
-
*,
|
|
961
|
-
encoding: str | None = None,
|
|
962
|
-
timeout: float | None = None,
|
|
963
|
-
text: bool | None = None,
|
|
964
|
-
user: str | int | None = None,
|
|
965
|
-
group: str | int | None = None,
|
|
966
|
-
extra_groups: Iterable[str | int] | None = None,
|
|
967
|
-
umask: int = -1,
|
|
968
|
-
) -> int: ...
|
|
969
|
-
|
|
970
|
-
else:
|
|
971
|
-
def call(
|
|
972
|
-
args: _CMD,
|
|
973
|
-
bufsize: int = -1,
|
|
974
|
-
executable: StrOrBytesPath | None = None,
|
|
975
|
-
stdin: _FILE = None,
|
|
976
|
-
stdout: _FILE = None,
|
|
977
|
-
stderr: _FILE = None,
|
|
978
|
-
preexec_fn: Callable[[], Any] | None = None,
|
|
979
|
-
close_fds: bool = True,
|
|
980
|
-
shell: bool = False,
|
|
981
|
-
cwd: StrOrBytesPath | None = None,
|
|
982
|
-
env: _ENV | None = None,
|
|
983
|
-
universal_newlines: bool | None = None,
|
|
984
|
-
startupinfo: Any = None,
|
|
985
|
-
creationflags: int = 0,
|
|
986
|
-
restore_signals: bool = True,
|
|
987
|
-
start_new_session: bool = False,
|
|
988
|
-
pass_fds: Collection[int] = ...,
|
|
989
|
-
*,
|
|
990
|
-
encoding: str | None = None,
|
|
991
|
-
timeout: float | None = None,
|
|
992
|
-
text: bool | None = None,
|
|
993
|
-
) -> int: ...
|
|
994
|
-
|
|
995
|
-
# Same args as Popen.__init__
|
|
996
|
-
if sys.version_info >= (3, 11):
|
|
997
|
-
# 3.11 adds "process_group" argument
|
|
998
|
-
def check_call(
|
|
999
|
-
args: _CMD,
|
|
1000
|
-
bufsize: int = -1,
|
|
1001
|
-
executable: StrOrBytesPath | None = None,
|
|
1002
|
-
stdin: _FILE = None,
|
|
1003
|
-
stdout: _FILE = None,
|
|
1004
|
-
stderr: _FILE = None,
|
|
1005
|
-
preexec_fn: Callable[[], Any] | None = None,
|
|
1006
|
-
close_fds: bool = True,
|
|
1007
|
-
shell: bool = False,
|
|
1008
|
-
cwd: StrOrBytesPath | None = None,
|
|
1009
|
-
env: _ENV | None = None,
|
|
1010
|
-
universal_newlines: bool | None = None,
|
|
1011
|
-
startupinfo: Any = None,
|
|
1012
|
-
creationflags: int = 0,
|
|
1013
|
-
restore_signals: bool = True,
|
|
1014
|
-
start_new_session: bool = False,
|
|
1015
|
-
pass_fds: Collection[int] = ...,
|
|
1016
|
-
timeout: float | None = ...,
|
|
1017
|
-
*,
|
|
1018
|
-
encoding: str | None = None,
|
|
1019
|
-
text: bool | None = None,
|
|
1020
|
-
user: str | int | None = None,
|
|
1021
|
-
group: str | int | None = None,
|
|
1022
|
-
extra_groups: Iterable[str | int] | None = None,
|
|
1023
|
-
umask: int = -1,
|
|
1024
|
-
pipesize: int = -1,
|
|
1025
|
-
process_group: int | None = None,
|
|
1026
|
-
) -> int: ...
|
|
1027
|
-
|
|
1028
|
-
elif sys.version_info >= (3, 10):
|
|
1029
|
-
# 3.10 adds "pipesize" argument
|
|
1030
|
-
def check_call(
|
|
1031
|
-
args: _CMD,
|
|
1032
|
-
bufsize: int = -1,
|
|
1033
|
-
executable: StrOrBytesPath | None = None,
|
|
1034
|
-
stdin: _FILE = None,
|
|
1035
|
-
stdout: _FILE = None,
|
|
1036
|
-
stderr: _FILE = None,
|
|
1037
|
-
preexec_fn: Callable[[], Any] | None = None,
|
|
1038
|
-
close_fds: bool = True,
|
|
1039
|
-
shell: bool = False,
|
|
1040
|
-
cwd: StrOrBytesPath | None = None,
|
|
1041
|
-
env: _ENV | None = None,
|
|
1042
|
-
universal_newlines: bool | None = None,
|
|
1043
|
-
startupinfo: Any = None,
|
|
1044
|
-
creationflags: int = 0,
|
|
1045
|
-
restore_signals: bool = True,
|
|
1046
|
-
start_new_session: bool = False,
|
|
1047
|
-
pass_fds: Collection[int] = ...,
|
|
1048
|
-
timeout: float | None = ...,
|
|
1049
|
-
*,
|
|
1050
|
-
encoding: str | None = None,
|
|
1051
|
-
text: bool | None = None,
|
|
1052
|
-
user: str | int | None = None,
|
|
1053
|
-
group: str | int | None = None,
|
|
1054
|
-
extra_groups: Iterable[str | int] | None = None,
|
|
1055
|
-
umask: int = -1,
|
|
1056
|
-
pipesize: int = -1,
|
|
1057
|
-
) -> int: ...
|
|
1058
|
-
|
|
1059
|
-
elif sys.version_info >= (3, 9):
|
|
1060
|
-
# 3.9 adds arguments "user", "group", "extra_groups" and "umask"
|
|
1061
|
-
def check_call(
|
|
1062
|
-
args: _CMD,
|
|
1063
|
-
bufsize: int = -1,
|
|
1064
|
-
executable: StrOrBytesPath | None = None,
|
|
1065
|
-
stdin: _FILE = None,
|
|
1066
|
-
stdout: _FILE = None,
|
|
1067
|
-
stderr: _FILE = None,
|
|
1068
|
-
preexec_fn: Callable[[], Any] | None = None,
|
|
1069
|
-
close_fds: bool = True,
|
|
1070
|
-
shell: bool = False,
|
|
1071
|
-
cwd: StrOrBytesPath | None = None,
|
|
1072
|
-
env: _ENV | None = None,
|
|
1073
|
-
universal_newlines: bool | None = None,
|
|
1074
|
-
startupinfo: Any = None,
|
|
1075
|
-
creationflags: int = 0,
|
|
1076
|
-
restore_signals: bool = True,
|
|
1077
|
-
start_new_session: bool = False,
|
|
1078
|
-
pass_fds: Collection[int] = ...,
|
|
1079
|
-
timeout: float | None = ...,
|
|
1080
|
-
*,
|
|
1081
|
-
encoding: str | None = None,
|
|
1082
|
-
text: bool | None = None,
|
|
1083
|
-
user: str | int | None = None,
|
|
1084
|
-
group: str | int | None = None,
|
|
1085
|
-
extra_groups: Iterable[str | int] | None = None,
|
|
1086
|
-
umask: int = -1,
|
|
1087
|
-
) -> int: ...
|
|
1088
|
-
|
|
1089
|
-
else:
|
|
1090
|
-
def check_call(
|
|
1091
|
-
args: _CMD,
|
|
1092
|
-
bufsize: int = -1,
|
|
1093
|
-
executable: StrOrBytesPath | None = None,
|
|
1094
|
-
stdin: _FILE = None,
|
|
1095
|
-
stdout: _FILE = None,
|
|
1096
|
-
stderr: _FILE = None,
|
|
1097
|
-
preexec_fn: Callable[[], Any] | None = None,
|
|
1098
|
-
close_fds: bool = True,
|
|
1099
|
-
shell: bool = False,
|
|
1100
|
-
cwd: StrOrBytesPath | None = None,
|
|
1101
|
-
env: _ENV | None = None,
|
|
1102
|
-
universal_newlines: bool | None = None,
|
|
1103
|
-
startupinfo: Any = None,
|
|
1104
|
-
creationflags: int = 0,
|
|
1105
|
-
restore_signals: bool = True,
|
|
1106
|
-
start_new_session: bool = False,
|
|
1107
|
-
pass_fds: Collection[int] = ...,
|
|
1108
|
-
timeout: float | None = ...,
|
|
1109
|
-
*,
|
|
1110
|
-
encoding: str | None = None,
|
|
1111
|
-
text: bool | None = None,
|
|
1112
|
-
) -> int: ...
|
|
1113
|
-
|
|
1114
|
-
if sys.version_info >= (3, 11):
|
|
1115
|
-
# 3.11 adds "process_group" argument
|
|
1116
|
-
@overload
|
|
1117
|
-
def check_output(
|
|
1118
|
-
args: _CMD,
|
|
1119
|
-
bufsize: int = -1,
|
|
1120
|
-
executable: StrOrBytesPath | None = None,
|
|
1121
|
-
stdin: _FILE = None,
|
|
1122
|
-
stderr: _FILE = None,
|
|
1123
|
-
preexec_fn: Callable[[], Any] | None = None,
|
|
1124
|
-
close_fds: bool = True,
|
|
1125
|
-
shell: bool = False,
|
|
1126
|
-
cwd: StrOrBytesPath | None = None,
|
|
1127
|
-
env: _ENV | None = None,
|
|
1128
|
-
universal_newlines: bool | None = None,
|
|
1129
|
-
startupinfo: Any = None,
|
|
1130
|
-
creationflags: int = 0,
|
|
1131
|
-
restore_signals: bool = True,
|
|
1132
|
-
start_new_session: bool = False,
|
|
1133
|
-
pass_fds: Collection[int] = ...,
|
|
1134
|
-
*,
|
|
1135
|
-
timeout: float | None = None,
|
|
1136
|
-
input: _InputString | None = ...,
|
|
1137
|
-
encoding: str | None = None,
|
|
1138
|
-
errors: str | None = None,
|
|
1139
|
-
text: Literal[True],
|
|
1140
|
-
user: str | int | None = None,
|
|
1141
|
-
group: str | int | None = None,
|
|
1142
|
-
extra_groups: Iterable[str | int] | None = None,
|
|
1143
|
-
umask: int = -1,
|
|
1144
|
-
pipesize: int = -1,
|
|
1145
|
-
process_group: int | None = None,
|
|
1146
|
-
) -> str: ...
|
|
1147
|
-
@overload
|
|
1148
|
-
def check_output(
|
|
1149
|
-
args: _CMD,
|
|
1150
|
-
bufsize: int = -1,
|
|
1151
|
-
executable: StrOrBytesPath | None = None,
|
|
1152
|
-
stdin: _FILE = None,
|
|
1153
|
-
stderr: _FILE = None,
|
|
1154
|
-
preexec_fn: Callable[[], Any] | None = None,
|
|
1155
|
-
close_fds: bool = True,
|
|
1156
|
-
shell: bool = False,
|
|
1157
|
-
cwd: StrOrBytesPath | None = None,
|
|
1158
|
-
env: _ENV | None = None,
|
|
1159
|
-
universal_newlines: bool | None = None,
|
|
1160
|
-
startupinfo: Any = None,
|
|
1161
|
-
creationflags: int = 0,
|
|
1162
|
-
restore_signals: bool = True,
|
|
1163
|
-
start_new_session: bool = False,
|
|
1164
|
-
pass_fds: Collection[int] = ...,
|
|
1165
|
-
*,
|
|
1166
|
-
timeout: float | None = None,
|
|
1167
|
-
input: _InputString | None = ...,
|
|
1168
|
-
encoding: str,
|
|
1169
|
-
errors: str | None = None,
|
|
1170
|
-
text: bool | None = None,
|
|
1171
|
-
user: str | int | None = None,
|
|
1172
|
-
group: str | int | None = None,
|
|
1173
|
-
extra_groups: Iterable[str | int] | None = None,
|
|
1174
|
-
umask: int = -1,
|
|
1175
|
-
pipesize: int = -1,
|
|
1176
|
-
process_group: int | None = None,
|
|
1177
|
-
) -> str: ...
|
|
1178
|
-
@overload
|
|
1179
|
-
def check_output(
|
|
1180
|
-
args: _CMD,
|
|
1181
|
-
bufsize: int = -1,
|
|
1182
|
-
executable: StrOrBytesPath | None = None,
|
|
1183
|
-
stdin: _FILE = None,
|
|
1184
|
-
stderr: _FILE = None,
|
|
1185
|
-
preexec_fn: Callable[[], Any] | None = None,
|
|
1186
|
-
close_fds: bool = True,
|
|
1187
|
-
shell: bool = False,
|
|
1188
|
-
cwd: StrOrBytesPath | None = None,
|
|
1189
|
-
env: _ENV | None = None,
|
|
1190
|
-
universal_newlines: bool | None = None,
|
|
1191
|
-
startupinfo: Any = None,
|
|
1192
|
-
creationflags: int = 0,
|
|
1193
|
-
restore_signals: bool = True,
|
|
1194
|
-
start_new_session: bool = False,
|
|
1195
|
-
pass_fds: Collection[int] = ...,
|
|
1196
|
-
*,
|
|
1197
|
-
timeout: float | None = None,
|
|
1198
|
-
input: _InputString | None = ...,
|
|
1199
|
-
encoding: str | None = None,
|
|
1200
|
-
errors: str,
|
|
1201
|
-
text: bool | None = None,
|
|
1202
|
-
user: str | int | None = None,
|
|
1203
|
-
group: str | int | None = None,
|
|
1204
|
-
extra_groups: Iterable[str | int] | None = None,
|
|
1205
|
-
umask: int = -1,
|
|
1206
|
-
pipesize: int = -1,
|
|
1207
|
-
process_group: int | None = None,
|
|
1208
|
-
) -> str: ...
|
|
1209
|
-
@overload
|
|
1210
|
-
def check_output(
|
|
1211
|
-
args: _CMD,
|
|
1212
|
-
bufsize: int = -1,
|
|
1213
|
-
executable: StrOrBytesPath | None = None,
|
|
1214
|
-
stdin: _FILE = None,
|
|
1215
|
-
stderr: _FILE = None,
|
|
1216
|
-
preexec_fn: Callable[[], Any] | None = None,
|
|
1217
|
-
close_fds: bool = True,
|
|
1218
|
-
shell: bool = False,
|
|
1219
|
-
cwd: StrOrBytesPath | None = None,
|
|
1220
|
-
env: _ENV | None = None,
|
|
1221
|
-
*,
|
|
1222
|
-
universal_newlines: Literal[True],
|
|
1223
|
-
startupinfo: Any = None,
|
|
1224
|
-
creationflags: int = 0,
|
|
1225
|
-
restore_signals: bool = True,
|
|
1226
|
-
start_new_session: bool = False,
|
|
1227
|
-
pass_fds: Collection[int] = ...,
|
|
1228
|
-
# where the real keyword only ones start
|
|
1229
|
-
timeout: float | None = None,
|
|
1230
|
-
input: _InputString | None = ...,
|
|
1231
|
-
encoding: str | None = None,
|
|
1232
|
-
errors: str | None = None,
|
|
1233
|
-
text: bool | None = None,
|
|
1234
|
-
user: str | int | None = None,
|
|
1235
|
-
group: str | int | None = None,
|
|
1236
|
-
extra_groups: Iterable[str | int] | None = None,
|
|
1237
|
-
umask: int = -1,
|
|
1238
|
-
pipesize: int = -1,
|
|
1239
|
-
process_group: int | None = None,
|
|
1240
|
-
) -> str: ...
|
|
1241
|
-
@overload
|
|
1242
|
-
def check_output(
|
|
1243
|
-
args: _CMD,
|
|
1244
|
-
bufsize: int = -1,
|
|
1245
|
-
executable: StrOrBytesPath | None = None,
|
|
1246
|
-
stdin: _FILE = None,
|
|
1247
|
-
stderr: _FILE = None,
|
|
1248
|
-
preexec_fn: Callable[[], Any] | None = None,
|
|
1249
|
-
close_fds: bool = True,
|
|
1250
|
-
shell: bool = False,
|
|
1251
|
-
cwd: StrOrBytesPath | None = None,
|
|
1252
|
-
env: _ENV | None = None,
|
|
1253
|
-
universal_newlines: Literal[False] | None = None,
|
|
1254
|
-
startupinfo: Any = None,
|
|
1255
|
-
creationflags: int = 0,
|
|
1256
|
-
restore_signals: bool = True,
|
|
1257
|
-
start_new_session: bool = False,
|
|
1258
|
-
pass_fds: Collection[int] = ...,
|
|
1259
|
-
*,
|
|
1260
|
-
timeout: float | None = None,
|
|
1261
|
-
input: _InputString | None = ...,
|
|
1262
|
-
encoding: None = None,
|
|
1263
|
-
errors: None = None,
|
|
1264
|
-
text: Literal[False] | None = None,
|
|
1265
|
-
user: str | int | None = None,
|
|
1266
|
-
group: str | int | None = None,
|
|
1267
|
-
extra_groups: Iterable[str | int] | None = None,
|
|
1268
|
-
umask: int = -1,
|
|
1269
|
-
pipesize: int = -1,
|
|
1270
|
-
process_group: int | None = None,
|
|
1271
|
-
) -> bytes: ...
|
|
1272
|
-
@overload
|
|
1273
|
-
def check_output(
|
|
1274
|
-
args: _CMD,
|
|
1275
|
-
bufsize: int = -1,
|
|
1276
|
-
executable: StrOrBytesPath | None = None,
|
|
1277
|
-
stdin: _FILE = None,
|
|
1278
|
-
stderr: _FILE = None,
|
|
1279
|
-
preexec_fn: Callable[[], Any] | None = None,
|
|
1280
|
-
close_fds: bool = True,
|
|
1281
|
-
shell: bool = False,
|
|
1282
|
-
cwd: StrOrBytesPath | None = None,
|
|
1283
|
-
env: _ENV | None = None,
|
|
1284
|
-
universal_newlines: bool | None = None,
|
|
1285
|
-
startupinfo: Any = None,
|
|
1286
|
-
creationflags: int = 0,
|
|
1287
|
-
restore_signals: bool = True,
|
|
1288
|
-
start_new_session: bool = False,
|
|
1289
|
-
pass_fds: Collection[int] = ...,
|
|
1290
|
-
*,
|
|
1291
|
-
timeout: float | None = None,
|
|
1292
|
-
input: _InputString | None = ...,
|
|
1293
|
-
encoding: str | None = None,
|
|
1294
|
-
errors: str | None = None,
|
|
1295
|
-
text: bool | None = None,
|
|
1296
|
-
user: str | int | None = None,
|
|
1297
|
-
group: str | int | None = None,
|
|
1298
|
-
extra_groups: Iterable[str | int] | None = None,
|
|
1299
|
-
umask: int = -1,
|
|
1300
|
-
pipesize: int = -1,
|
|
1301
|
-
process_group: int | None = None,
|
|
1302
|
-
) -> Any: ... # morally: -> str | bytes
|
|
1303
|
-
|
|
1304
|
-
elif sys.version_info >= (3, 10):
|
|
1305
|
-
# 3.10 adds "pipesize" argument
|
|
1306
|
-
@overload
|
|
1307
|
-
def check_output(
|
|
1308
|
-
args: _CMD,
|
|
1309
|
-
bufsize: int = -1,
|
|
1310
|
-
executable: StrOrBytesPath | None = None,
|
|
1311
|
-
stdin: _FILE = None,
|
|
1312
|
-
stderr: _FILE = None,
|
|
1313
|
-
preexec_fn: Callable[[], Any] | None = None,
|
|
1314
|
-
close_fds: bool = True,
|
|
1315
|
-
shell: bool = False,
|
|
1316
|
-
cwd: StrOrBytesPath | None = None,
|
|
1317
|
-
env: _ENV | None = None,
|
|
1318
|
-
universal_newlines: bool | None = None,
|
|
1319
|
-
startupinfo: Any = None,
|
|
1320
|
-
creationflags: int = 0,
|
|
1321
|
-
restore_signals: bool = True,
|
|
1322
|
-
start_new_session: bool = False,
|
|
1323
|
-
pass_fds: Collection[int] = ...,
|
|
1324
|
-
*,
|
|
1325
|
-
timeout: float | None = None,
|
|
1326
|
-
input: _InputString | None = ...,
|
|
1327
|
-
encoding: str | None = None,
|
|
1328
|
-
errors: str | None = None,
|
|
1329
|
-
text: Literal[True],
|
|
1330
|
-
user: str | int | None = None,
|
|
1331
|
-
group: str | int | None = None,
|
|
1332
|
-
extra_groups: Iterable[str | int] | None = None,
|
|
1333
|
-
umask: int = -1,
|
|
1334
|
-
pipesize: int = -1,
|
|
1335
|
-
) -> str: ...
|
|
1336
|
-
@overload
|
|
1337
|
-
def check_output(
|
|
1338
|
-
args: _CMD,
|
|
1339
|
-
bufsize: int = -1,
|
|
1340
|
-
executable: StrOrBytesPath | None = None,
|
|
1341
|
-
stdin: _FILE = None,
|
|
1342
|
-
stderr: _FILE = None,
|
|
1343
|
-
preexec_fn: Callable[[], Any] | None = None,
|
|
1344
|
-
close_fds: bool = True,
|
|
1345
|
-
shell: bool = False,
|
|
1346
|
-
cwd: StrOrBytesPath | None = None,
|
|
1347
|
-
env: _ENV | None = None,
|
|
1348
|
-
universal_newlines: bool | None = None,
|
|
1349
|
-
startupinfo: Any = None,
|
|
1350
|
-
creationflags: int = 0,
|
|
1351
|
-
restore_signals: bool = True,
|
|
1352
|
-
start_new_session: bool = False,
|
|
1353
|
-
pass_fds: Collection[int] = ...,
|
|
1354
|
-
*,
|
|
1355
|
-
timeout: float | None = None,
|
|
1356
|
-
input: _InputString | None = ...,
|
|
1357
|
-
encoding: str,
|
|
1358
|
-
errors: str | None = None,
|
|
1359
|
-
text: bool | None = None,
|
|
1360
|
-
user: str | int | None = None,
|
|
1361
|
-
group: str | int | None = None,
|
|
1362
|
-
extra_groups: Iterable[str | int] | None = None,
|
|
1363
|
-
umask: int = -1,
|
|
1364
|
-
pipesize: int = -1,
|
|
1365
|
-
) -> str: ...
|
|
1366
|
-
@overload
|
|
1367
|
-
def check_output(
|
|
1368
|
-
args: _CMD,
|
|
1369
|
-
bufsize: int = -1,
|
|
1370
|
-
executable: StrOrBytesPath | None = None,
|
|
1371
|
-
stdin: _FILE = None,
|
|
1372
|
-
stderr: _FILE = None,
|
|
1373
|
-
preexec_fn: Callable[[], Any] | None = None,
|
|
1374
|
-
close_fds: bool = True,
|
|
1375
|
-
shell: bool = False,
|
|
1376
|
-
cwd: StrOrBytesPath | None = None,
|
|
1377
|
-
env: _ENV | None = None,
|
|
1378
|
-
universal_newlines: bool | None = None,
|
|
1379
|
-
startupinfo: Any = None,
|
|
1380
|
-
creationflags: int = 0,
|
|
1381
|
-
restore_signals: bool = True,
|
|
1382
|
-
start_new_session: bool = False,
|
|
1383
|
-
pass_fds: Collection[int] = ...,
|
|
1384
|
-
*,
|
|
1385
|
-
timeout: float | None = None,
|
|
1386
|
-
input: _InputString | None = ...,
|
|
1387
|
-
encoding: str | None = None,
|
|
1388
|
-
errors: str,
|
|
1389
|
-
text: bool | None = None,
|
|
1390
|
-
user: str | int | None = None,
|
|
1391
|
-
group: str | int | None = None,
|
|
1392
|
-
extra_groups: Iterable[str | int] | None = None,
|
|
1393
|
-
umask: int = -1,
|
|
1394
|
-
pipesize: int = -1,
|
|
1395
|
-
) -> str: ...
|
|
1396
|
-
@overload
|
|
1397
|
-
def check_output(
|
|
1398
|
-
args: _CMD,
|
|
1399
|
-
bufsize: int = -1,
|
|
1400
|
-
executable: StrOrBytesPath | None = None,
|
|
1401
|
-
stdin: _FILE = None,
|
|
1402
|
-
stderr: _FILE = None,
|
|
1403
|
-
preexec_fn: Callable[[], Any] | None = None,
|
|
1404
|
-
close_fds: bool = True,
|
|
1405
|
-
shell: bool = False,
|
|
1406
|
-
cwd: StrOrBytesPath | None = None,
|
|
1407
|
-
env: _ENV | None = None,
|
|
1408
|
-
*,
|
|
1409
|
-
universal_newlines: Literal[True],
|
|
1410
|
-
startupinfo: Any = None,
|
|
1411
|
-
creationflags: int = 0,
|
|
1412
|
-
restore_signals: bool = True,
|
|
1413
|
-
start_new_session: bool = False,
|
|
1414
|
-
pass_fds: Collection[int] = ...,
|
|
1415
|
-
# where the real keyword only ones start
|
|
1416
|
-
timeout: float | None = None,
|
|
1417
|
-
input: _InputString | None = ...,
|
|
1418
|
-
encoding: str | None = None,
|
|
1419
|
-
errors: str | None = None,
|
|
1420
|
-
text: bool | None = None,
|
|
1421
|
-
user: str | int | None = None,
|
|
1422
|
-
group: str | int | None = None,
|
|
1423
|
-
extra_groups: Iterable[str | int] | None = None,
|
|
1424
|
-
umask: int = -1,
|
|
1425
|
-
pipesize: int = -1,
|
|
1426
|
-
) -> str: ...
|
|
1427
|
-
@overload
|
|
1428
|
-
def check_output(
|
|
1429
|
-
args: _CMD,
|
|
1430
|
-
bufsize: int = -1,
|
|
1431
|
-
executable: StrOrBytesPath | None = None,
|
|
1432
|
-
stdin: _FILE = None,
|
|
1433
|
-
stderr: _FILE = None,
|
|
1434
|
-
preexec_fn: Callable[[], Any] | None = None,
|
|
1435
|
-
close_fds: bool = True,
|
|
1436
|
-
shell: bool = False,
|
|
1437
|
-
cwd: StrOrBytesPath | None = None,
|
|
1438
|
-
env: _ENV | None = None,
|
|
1439
|
-
universal_newlines: Literal[False] | None = None,
|
|
1440
|
-
startupinfo: Any = None,
|
|
1441
|
-
creationflags: int = 0,
|
|
1442
|
-
restore_signals: bool = True,
|
|
1443
|
-
start_new_session: bool = False,
|
|
1444
|
-
pass_fds: Collection[int] = ...,
|
|
1445
|
-
*,
|
|
1446
|
-
timeout: float | None = None,
|
|
1447
|
-
input: _InputString | None = ...,
|
|
1448
|
-
encoding: None = None,
|
|
1449
|
-
errors: None = None,
|
|
1450
|
-
text: Literal[False] | None = None,
|
|
1451
|
-
user: str | int | None = None,
|
|
1452
|
-
group: str | int | None = None,
|
|
1453
|
-
extra_groups: Iterable[str | int] | None = None,
|
|
1454
|
-
umask: int = -1,
|
|
1455
|
-
pipesize: int = -1,
|
|
1456
|
-
) -> bytes: ...
|
|
1457
|
-
@overload
|
|
1458
|
-
def check_output(
|
|
1459
|
-
args: _CMD,
|
|
1460
|
-
bufsize: int = -1,
|
|
1461
|
-
executable: StrOrBytesPath | None = None,
|
|
1462
|
-
stdin: _FILE = None,
|
|
1463
|
-
stderr: _FILE = None,
|
|
1464
|
-
preexec_fn: Callable[[], Any] | None = None,
|
|
1465
|
-
close_fds: bool = True,
|
|
1466
|
-
shell: bool = False,
|
|
1467
|
-
cwd: StrOrBytesPath | None = None,
|
|
1468
|
-
env: _ENV | None = None,
|
|
1469
|
-
universal_newlines: bool | None = None,
|
|
1470
|
-
startupinfo: Any = None,
|
|
1471
|
-
creationflags: int = 0,
|
|
1472
|
-
restore_signals: bool = True,
|
|
1473
|
-
start_new_session: bool = False,
|
|
1474
|
-
pass_fds: Collection[int] = ...,
|
|
1475
|
-
*,
|
|
1476
|
-
timeout: float | None = None,
|
|
1477
|
-
input: _InputString | None = ...,
|
|
1478
|
-
encoding: str | None = None,
|
|
1479
|
-
errors: str | None = None,
|
|
1480
|
-
text: bool | None = None,
|
|
1481
|
-
user: str | int | None = None,
|
|
1482
|
-
group: str | int | None = None,
|
|
1483
|
-
extra_groups: Iterable[str | int] | None = None,
|
|
1484
|
-
umask: int = -1,
|
|
1485
|
-
pipesize: int = -1,
|
|
1486
|
-
) -> Any: ... # morally: -> str | bytes
|
|
1487
|
-
|
|
1488
|
-
elif sys.version_info >= (3, 9):
|
|
1489
|
-
# 3.9 adds arguments "user", "group", "extra_groups" and "umask"
|
|
1490
|
-
@overload
|
|
1491
|
-
def check_output(
|
|
1492
|
-
args: _CMD,
|
|
1493
|
-
bufsize: int = -1,
|
|
1494
|
-
executable: StrOrBytesPath | None = None,
|
|
1495
|
-
stdin: _FILE = None,
|
|
1496
|
-
stderr: _FILE = None,
|
|
1497
|
-
preexec_fn: Callable[[], Any] | None = None,
|
|
1498
|
-
close_fds: bool = True,
|
|
1499
|
-
shell: bool = False,
|
|
1500
|
-
cwd: StrOrBytesPath | None = None,
|
|
1501
|
-
env: _ENV | None = None,
|
|
1502
|
-
universal_newlines: bool | None = None,
|
|
1503
|
-
startupinfo: Any = None,
|
|
1504
|
-
creationflags: int = 0,
|
|
1505
|
-
restore_signals: bool = True,
|
|
1506
|
-
start_new_session: bool = False,
|
|
1507
|
-
pass_fds: Collection[int] = ...,
|
|
1508
|
-
*,
|
|
1509
|
-
timeout: float | None = None,
|
|
1510
|
-
input: _InputString | None = ...,
|
|
1511
|
-
encoding: str | None = None,
|
|
1512
|
-
errors: str | None = None,
|
|
1513
|
-
text: Literal[True],
|
|
1514
|
-
user: str | int | None = None,
|
|
1515
|
-
group: str | int | None = None,
|
|
1516
|
-
extra_groups: Iterable[str | int] | None = None,
|
|
1517
|
-
umask: int = -1,
|
|
1518
|
-
) -> str: ...
|
|
1519
|
-
@overload
|
|
1520
|
-
def check_output(
|
|
1521
|
-
args: _CMD,
|
|
1522
|
-
bufsize: int = -1,
|
|
1523
|
-
executable: StrOrBytesPath | None = None,
|
|
1524
|
-
stdin: _FILE = None,
|
|
1525
|
-
stderr: _FILE = None,
|
|
1526
|
-
preexec_fn: Callable[[], Any] | None = None,
|
|
1527
|
-
close_fds: bool = True,
|
|
1528
|
-
shell: bool = False,
|
|
1529
|
-
cwd: StrOrBytesPath | None = None,
|
|
1530
|
-
env: _ENV | None = None,
|
|
1531
|
-
universal_newlines: bool | None = None,
|
|
1532
|
-
startupinfo: Any = None,
|
|
1533
|
-
creationflags: int = 0,
|
|
1534
|
-
restore_signals: bool = True,
|
|
1535
|
-
start_new_session: bool = False,
|
|
1536
|
-
pass_fds: Collection[int] = ...,
|
|
1537
|
-
*,
|
|
1538
|
-
timeout: float | None = None,
|
|
1539
|
-
input: _InputString | None = ...,
|
|
1540
|
-
encoding: str,
|
|
1541
|
-
errors: str | None = None,
|
|
1542
|
-
text: bool | None = None,
|
|
1543
|
-
user: str | int | None = None,
|
|
1544
|
-
group: str | int | None = None,
|
|
1545
|
-
extra_groups: Iterable[str | int] | None = None,
|
|
1546
|
-
umask: int = -1,
|
|
1547
|
-
) -> str: ...
|
|
1548
|
-
@overload
|
|
1549
|
-
def check_output(
|
|
1550
|
-
args: _CMD,
|
|
1551
|
-
bufsize: int = -1,
|
|
1552
|
-
executable: StrOrBytesPath | None = None,
|
|
1553
|
-
stdin: _FILE = None,
|
|
1554
|
-
stderr: _FILE = None,
|
|
1555
|
-
preexec_fn: Callable[[], Any] | None = None,
|
|
1556
|
-
close_fds: bool = True,
|
|
1557
|
-
shell: bool = False,
|
|
1558
|
-
cwd: StrOrBytesPath | None = None,
|
|
1559
|
-
env: _ENV | None = None,
|
|
1560
|
-
universal_newlines: bool | None = None,
|
|
1561
|
-
startupinfo: Any = None,
|
|
1562
|
-
creationflags: int = 0,
|
|
1563
|
-
restore_signals: bool = True,
|
|
1564
|
-
start_new_session: bool = False,
|
|
1565
|
-
pass_fds: Collection[int] = ...,
|
|
1566
|
-
*,
|
|
1567
|
-
timeout: float | None = None,
|
|
1568
|
-
input: _InputString | None = ...,
|
|
1569
|
-
encoding: str | None = None,
|
|
1570
|
-
errors: str,
|
|
1571
|
-
text: bool | None = None,
|
|
1572
|
-
user: str | int | None = None,
|
|
1573
|
-
group: str | int | None = None,
|
|
1574
|
-
extra_groups: Iterable[str | int] | None = None,
|
|
1575
|
-
umask: int = -1,
|
|
1576
|
-
) -> str: ...
|
|
1577
|
-
@overload
|
|
1578
|
-
def check_output(
|
|
1579
|
-
args: _CMD,
|
|
1580
|
-
bufsize: int = -1,
|
|
1581
|
-
executable: StrOrBytesPath | None = None,
|
|
1582
|
-
stdin: _FILE = None,
|
|
1583
|
-
stderr: _FILE = None,
|
|
1584
|
-
preexec_fn: Callable[[], Any] | None = None,
|
|
1585
|
-
close_fds: bool = True,
|
|
1586
|
-
shell: bool = False,
|
|
1587
|
-
cwd: StrOrBytesPath | None = None,
|
|
1588
|
-
env: _ENV | None = None,
|
|
1589
|
-
*,
|
|
1590
|
-
universal_newlines: Literal[True],
|
|
1591
|
-
startupinfo: Any = None,
|
|
1592
|
-
creationflags: int = 0,
|
|
1593
|
-
restore_signals: bool = True,
|
|
1594
|
-
start_new_session: bool = False,
|
|
1595
|
-
pass_fds: Collection[int] = ...,
|
|
1596
|
-
# where the real keyword only ones start
|
|
1597
|
-
timeout: float | None = None,
|
|
1598
|
-
input: _InputString | None = ...,
|
|
1599
|
-
encoding: str | None = None,
|
|
1600
|
-
errors: str | None = None,
|
|
1601
|
-
text: bool | None = None,
|
|
1602
|
-
user: str | int | None = None,
|
|
1603
|
-
group: str | int | None = None,
|
|
1604
|
-
extra_groups: Iterable[str | int] | None = None,
|
|
1605
|
-
umask: int = -1,
|
|
1606
|
-
) -> str: ...
|
|
1607
|
-
@overload
|
|
1608
|
-
def check_output(
|
|
1609
|
-
args: _CMD,
|
|
1610
|
-
bufsize: int = -1,
|
|
1611
|
-
executable: StrOrBytesPath | None = None,
|
|
1612
|
-
stdin: _FILE = None,
|
|
1613
|
-
stderr: _FILE = None,
|
|
1614
|
-
preexec_fn: Callable[[], Any] | None = None,
|
|
1615
|
-
close_fds: bool = True,
|
|
1616
|
-
shell: bool = False,
|
|
1617
|
-
cwd: StrOrBytesPath | None = None,
|
|
1618
|
-
env: _ENV | None = None,
|
|
1619
|
-
universal_newlines: Literal[False] | None = None,
|
|
1620
|
-
startupinfo: Any = None,
|
|
1621
|
-
creationflags: int = 0,
|
|
1622
|
-
restore_signals: bool = True,
|
|
1623
|
-
start_new_session: bool = False,
|
|
1624
|
-
pass_fds: Collection[int] = ...,
|
|
1625
|
-
*,
|
|
1626
|
-
timeout: float | None = None,
|
|
1627
|
-
input: _InputString | None = ...,
|
|
1628
|
-
encoding: None = None,
|
|
1629
|
-
errors: None = None,
|
|
1630
|
-
text: Literal[False] | None = None,
|
|
1631
|
-
user: str | int | None = None,
|
|
1632
|
-
group: str | int | None = None,
|
|
1633
|
-
extra_groups: Iterable[str | int] | None = None,
|
|
1634
|
-
umask: int = -1,
|
|
1635
|
-
) -> bytes: ...
|
|
1636
|
-
@overload
|
|
1637
|
-
def check_output(
|
|
1638
|
-
args: _CMD,
|
|
1639
|
-
bufsize: int = -1,
|
|
1640
|
-
executable: StrOrBytesPath | None = None,
|
|
1641
|
-
stdin: _FILE = None,
|
|
1642
|
-
stderr: _FILE = None,
|
|
1643
|
-
preexec_fn: Callable[[], Any] | None = None,
|
|
1644
|
-
close_fds: bool = True,
|
|
1645
|
-
shell: bool = False,
|
|
1646
|
-
cwd: StrOrBytesPath | None = None,
|
|
1647
|
-
env: _ENV | None = None,
|
|
1648
|
-
universal_newlines: bool | None = None,
|
|
1649
|
-
startupinfo: Any = None,
|
|
1650
|
-
creationflags: int = 0,
|
|
1651
|
-
restore_signals: bool = True,
|
|
1652
|
-
start_new_session: bool = False,
|
|
1653
|
-
pass_fds: Collection[int] = ...,
|
|
1654
|
-
*,
|
|
1655
|
-
timeout: float | None = None,
|
|
1656
|
-
input: _InputString | None = ...,
|
|
1657
|
-
encoding: str | None = None,
|
|
1658
|
-
errors: str | None = None,
|
|
1659
|
-
text: bool | None = None,
|
|
1660
|
-
user: str | int | None = None,
|
|
1661
|
-
group: str | int | None = None,
|
|
1662
|
-
extra_groups: Iterable[str | int] | None = None,
|
|
1663
|
-
umask: int = -1,
|
|
1664
|
-
) -> Any: ... # morally: -> str | bytes
|
|
1665
|
-
|
|
1666
|
-
else:
|
|
1667
|
-
@overload
|
|
1668
|
-
def check_output(
|
|
1669
|
-
args: _CMD,
|
|
1670
|
-
bufsize: int = -1,
|
|
1671
|
-
executable: StrOrBytesPath | None = None,
|
|
1672
|
-
stdin: _FILE = None,
|
|
1673
|
-
stderr: _FILE = None,
|
|
1674
|
-
preexec_fn: Callable[[], Any] | None = None,
|
|
1675
|
-
close_fds: bool = True,
|
|
1676
|
-
shell: bool = False,
|
|
1677
|
-
cwd: StrOrBytesPath | None = None,
|
|
1678
|
-
env: _ENV | None = None,
|
|
1679
|
-
universal_newlines: bool | None = None,
|
|
1680
|
-
startupinfo: Any = None,
|
|
1681
|
-
creationflags: int = 0,
|
|
1682
|
-
restore_signals: bool = True,
|
|
1683
|
-
start_new_session: bool = False,
|
|
1684
|
-
pass_fds: Collection[int] = ...,
|
|
1685
|
-
*,
|
|
1686
|
-
timeout: float | None = None,
|
|
1687
|
-
input: _InputString | None = ...,
|
|
1688
|
-
encoding: str | None = None,
|
|
1689
|
-
errors: str | None = None,
|
|
1690
|
-
text: Literal[True],
|
|
1691
|
-
) -> str: ...
|
|
1692
|
-
@overload
|
|
1693
|
-
def check_output(
|
|
1694
|
-
args: _CMD,
|
|
1695
|
-
bufsize: int = -1,
|
|
1696
|
-
executable: StrOrBytesPath | None = None,
|
|
1697
|
-
stdin: _FILE = None,
|
|
1698
|
-
stderr: _FILE = None,
|
|
1699
|
-
preexec_fn: Callable[[], Any] | None = None,
|
|
1700
|
-
close_fds: bool = True,
|
|
1701
|
-
shell: bool = False,
|
|
1702
|
-
cwd: StrOrBytesPath | None = None,
|
|
1703
|
-
env: _ENV | None = None,
|
|
1704
|
-
universal_newlines: bool | None = None,
|
|
1705
|
-
startupinfo: Any = None,
|
|
1706
|
-
creationflags: int = 0,
|
|
1707
|
-
restore_signals: bool = True,
|
|
1708
|
-
start_new_session: bool = False,
|
|
1709
|
-
pass_fds: Collection[int] = ...,
|
|
1710
|
-
*,
|
|
1711
|
-
timeout: float | None = None,
|
|
1712
|
-
input: _InputString | None = ...,
|
|
1713
|
-
encoding: str,
|
|
1714
|
-
errors: str | None = None,
|
|
1715
|
-
text: bool | None = None,
|
|
1716
|
-
) -> str: ...
|
|
1717
|
-
@overload
|
|
1718
|
-
def check_output(
|
|
1719
|
-
args: _CMD,
|
|
1720
|
-
bufsize: int = -1,
|
|
1721
|
-
executable: StrOrBytesPath | None = None,
|
|
1722
|
-
stdin: _FILE = None,
|
|
1723
|
-
stderr: _FILE = None,
|
|
1724
|
-
preexec_fn: Callable[[], Any] | None = None,
|
|
1725
|
-
close_fds: bool = True,
|
|
1726
|
-
shell: bool = False,
|
|
1727
|
-
cwd: StrOrBytesPath | None = None,
|
|
1728
|
-
env: _ENV | None = None,
|
|
1729
|
-
universal_newlines: bool | None = None,
|
|
1730
|
-
startupinfo: Any = None,
|
|
1731
|
-
creationflags: int = 0,
|
|
1732
|
-
restore_signals: bool = True,
|
|
1733
|
-
start_new_session: bool = False,
|
|
1734
|
-
pass_fds: Collection[int] = ...,
|
|
1735
|
-
*,
|
|
1736
|
-
timeout: float | None = None,
|
|
1737
|
-
input: _InputString | None = ...,
|
|
1738
|
-
encoding: str | None = None,
|
|
1739
|
-
errors: str,
|
|
1740
|
-
text: bool | None = None,
|
|
1741
|
-
) -> str: ...
|
|
1742
|
-
@overload
|
|
1743
|
-
def check_output(
|
|
1744
|
-
args: _CMD,
|
|
1745
|
-
bufsize: int = -1,
|
|
1746
|
-
executable: StrOrBytesPath | None = None,
|
|
1747
|
-
stdin: _FILE = None,
|
|
1748
|
-
stderr: _FILE = None,
|
|
1749
|
-
preexec_fn: Callable[[], Any] | None = None,
|
|
1750
|
-
close_fds: bool = True,
|
|
1751
|
-
shell: bool = False,
|
|
1752
|
-
cwd: StrOrBytesPath | None = None,
|
|
1753
|
-
env: _ENV | None = None,
|
|
1754
|
-
*,
|
|
1755
|
-
universal_newlines: Literal[True],
|
|
1756
|
-
startupinfo: Any = None,
|
|
1757
|
-
creationflags: int = 0,
|
|
1758
|
-
restore_signals: bool = True,
|
|
1759
|
-
start_new_session: bool = False,
|
|
1760
|
-
pass_fds: Collection[int] = ...,
|
|
1761
|
-
# where the real keyword only ones start
|
|
1762
|
-
timeout: float | None = None,
|
|
1763
|
-
input: _InputString | None = ...,
|
|
1764
|
-
encoding: str | None = None,
|
|
1765
|
-
errors: str | None = None,
|
|
1766
|
-
text: bool | None = None,
|
|
1767
|
-
) -> str: ...
|
|
1768
|
-
@overload
|
|
1769
|
-
def check_output(
|
|
1770
|
-
args: _CMD,
|
|
1771
|
-
bufsize: int = -1,
|
|
1772
|
-
executable: StrOrBytesPath | None = None,
|
|
1773
|
-
stdin: _FILE = None,
|
|
1774
|
-
stderr: _FILE = None,
|
|
1775
|
-
preexec_fn: Callable[[], Any] | None = None,
|
|
1776
|
-
close_fds: bool = True,
|
|
1777
|
-
shell: bool = False,
|
|
1778
|
-
cwd: StrOrBytesPath | None = None,
|
|
1779
|
-
env: _ENV | None = None,
|
|
1780
|
-
universal_newlines: Literal[False] | None = None,
|
|
1781
|
-
startupinfo: Any = None,
|
|
1782
|
-
creationflags: int = 0,
|
|
1783
|
-
restore_signals: bool = True,
|
|
1784
|
-
start_new_session: bool = False,
|
|
1785
|
-
pass_fds: Collection[int] = ...,
|
|
1786
|
-
*,
|
|
1787
|
-
timeout: float | None = None,
|
|
1788
|
-
input: _InputString | None = ...,
|
|
1789
|
-
encoding: None = None,
|
|
1790
|
-
errors: None = None,
|
|
1791
|
-
text: Literal[False] | None = None,
|
|
1792
|
-
) -> bytes: ...
|
|
1793
|
-
@overload
|
|
1794
|
-
def check_output(
|
|
1795
|
-
args: _CMD,
|
|
1796
|
-
bufsize: int = -1,
|
|
1797
|
-
executable: StrOrBytesPath | None = None,
|
|
1798
|
-
stdin: _FILE = None,
|
|
1799
|
-
stderr: _FILE = None,
|
|
1800
|
-
preexec_fn: Callable[[], Any] | None = None,
|
|
1801
|
-
close_fds: bool = True,
|
|
1802
|
-
shell: bool = False,
|
|
1803
|
-
cwd: StrOrBytesPath | None = None,
|
|
1804
|
-
env: _ENV | None = None,
|
|
1805
|
-
universal_newlines: bool | None = None,
|
|
1806
|
-
startupinfo: Any = None,
|
|
1807
|
-
creationflags: int = 0,
|
|
1808
|
-
restore_signals: bool = True,
|
|
1809
|
-
start_new_session: bool = False,
|
|
1810
|
-
pass_fds: Collection[int] = ...,
|
|
1811
|
-
*,
|
|
1812
|
-
timeout: float | None = None,
|
|
1813
|
-
input: _InputString | None = ...,
|
|
1814
|
-
encoding: str | None = None,
|
|
1815
|
-
errors: str | None = None,
|
|
1816
|
-
text: bool | None = None,
|
|
1817
|
-
) -> Any: ... # morally: -> str | bytes
|
|
1818
|
-
|
|
1819
|
-
PIPE: Final[int]
|
|
1820
|
-
STDOUT: Final[int]
|
|
1821
|
-
DEVNULL: Final[int]
|
|
1822
|
-
|
|
1823
|
-
class SubprocessError(Exception): ...
|
|
1824
|
-
|
|
1825
|
-
class TimeoutExpired(SubprocessError):
|
|
1826
|
-
def __init__(
|
|
1827
|
-
self, cmd: _CMD, timeout: float, output: str | bytes | None = None, stderr: str | bytes | None = None
|
|
1828
|
-
) -> None: ...
|
|
1829
|
-
# morally: _CMD
|
|
1830
|
-
cmd: Any
|
|
1831
|
-
timeout: float
|
|
1832
|
-
# morally: str | bytes | None
|
|
1833
|
-
output: Any
|
|
1834
|
-
stdout: bytes | None
|
|
1835
|
-
stderr: bytes | None
|
|
1836
|
-
|
|
1837
|
-
class CalledProcessError(SubprocessError):
|
|
1838
|
-
returncode: int
|
|
1839
|
-
# morally: _CMD
|
|
1840
|
-
cmd: Any
|
|
1841
|
-
# morally: str | bytes | None
|
|
1842
|
-
output: Any
|
|
1843
|
-
|
|
1844
|
-
# morally: str | bytes | None
|
|
1845
|
-
stdout: Any
|
|
1846
|
-
stderr: Any
|
|
1847
|
-
def __init__(
|
|
1848
|
-
self, returncode: int, cmd: _CMD, output: str | bytes | None = None, stderr: str | bytes | None = None
|
|
1849
|
-
) -> None: ...
|
|
1850
|
-
|
|
1851
|
-
class Popen(Generic[AnyStr]):
|
|
1852
|
-
args: _CMD
|
|
1853
|
-
stdin: IO[AnyStr] | None
|
|
1854
|
-
stdout: IO[AnyStr] | None
|
|
1855
|
-
stderr: IO[AnyStr] | None
|
|
1856
|
-
pid: int
|
|
1857
|
-
returncode: int | MaybeNone
|
|
1858
|
-
universal_newlines: bool
|
|
1859
|
-
|
|
1860
|
-
if sys.version_info >= (3, 11):
|
|
1861
|
-
# process_group is added in 3.11
|
|
1862
|
-
@overload
|
|
1863
|
-
def __init__(
|
|
1864
|
-
self: Popen[str],
|
|
1865
|
-
args: _CMD,
|
|
1866
|
-
bufsize: int = -1,
|
|
1867
|
-
executable: StrOrBytesPath | None = None,
|
|
1868
|
-
stdin: _FILE | None = None,
|
|
1869
|
-
stdout: _FILE | None = None,
|
|
1870
|
-
stderr: _FILE | None = None,
|
|
1871
|
-
preexec_fn: Callable[[], Any] | None = None,
|
|
1872
|
-
close_fds: bool = True,
|
|
1873
|
-
shell: bool = False,
|
|
1874
|
-
cwd: StrOrBytesPath | None = None,
|
|
1875
|
-
env: _ENV | None = None,
|
|
1876
|
-
universal_newlines: bool | None = None,
|
|
1877
|
-
startupinfo: Any | None = None,
|
|
1878
|
-
creationflags: int = 0,
|
|
1879
|
-
restore_signals: bool = True,
|
|
1880
|
-
start_new_session: bool = False,
|
|
1881
|
-
pass_fds: Collection[int] = (),
|
|
1882
|
-
*,
|
|
1883
|
-
text: bool | None = None,
|
|
1884
|
-
encoding: str,
|
|
1885
|
-
errors: str | None = None,
|
|
1886
|
-
user: str | int | None = None,
|
|
1887
|
-
group: str | int | None = None,
|
|
1888
|
-
extra_groups: Iterable[str | int] | None = None,
|
|
1889
|
-
umask: int = -1,
|
|
1890
|
-
pipesize: int = -1,
|
|
1891
|
-
process_group: int | None = None,
|
|
1892
|
-
) -> None: ...
|
|
1893
|
-
@overload
|
|
1894
|
-
def __init__(
|
|
1895
|
-
self: Popen[str],
|
|
1896
|
-
args: _CMD,
|
|
1897
|
-
bufsize: int = -1,
|
|
1898
|
-
executable: StrOrBytesPath | None = None,
|
|
1899
|
-
stdin: _FILE | None = None,
|
|
1900
|
-
stdout: _FILE | None = None,
|
|
1901
|
-
stderr: _FILE | None = None,
|
|
1902
|
-
preexec_fn: Callable[[], Any] | None = None,
|
|
1903
|
-
close_fds: bool = True,
|
|
1904
|
-
shell: bool = False,
|
|
1905
|
-
cwd: StrOrBytesPath | None = None,
|
|
1906
|
-
env: _ENV | None = None,
|
|
1907
|
-
universal_newlines: bool | None = None,
|
|
1908
|
-
startupinfo: Any | None = None,
|
|
1909
|
-
creationflags: int = 0,
|
|
1910
|
-
restore_signals: bool = True,
|
|
1911
|
-
start_new_session: bool = False,
|
|
1912
|
-
pass_fds: Collection[int] = (),
|
|
1913
|
-
*,
|
|
1914
|
-
text: bool | None = None,
|
|
1915
|
-
encoding: str | None = None,
|
|
1916
|
-
errors: str,
|
|
1917
|
-
user: str | int | None = None,
|
|
1918
|
-
group: str | int | None = None,
|
|
1919
|
-
extra_groups: Iterable[str | int] | None = None,
|
|
1920
|
-
umask: int = -1,
|
|
1921
|
-
pipesize: int = -1,
|
|
1922
|
-
process_group: int | None = None,
|
|
1923
|
-
) -> None: ...
|
|
1924
|
-
@overload
|
|
1925
|
-
def __init__(
|
|
1926
|
-
self: Popen[str],
|
|
1927
|
-
args: _CMD,
|
|
1928
|
-
bufsize: int = -1,
|
|
1929
|
-
executable: StrOrBytesPath | None = None,
|
|
1930
|
-
stdin: _FILE | None = None,
|
|
1931
|
-
stdout: _FILE | None = None,
|
|
1932
|
-
stderr: _FILE | None = None,
|
|
1933
|
-
preexec_fn: Callable[[], Any] | None = None,
|
|
1934
|
-
close_fds: bool = True,
|
|
1935
|
-
shell: bool = False,
|
|
1936
|
-
cwd: StrOrBytesPath | None = None,
|
|
1937
|
-
env: _ENV | None = None,
|
|
1938
|
-
*,
|
|
1939
|
-
universal_newlines: Literal[True],
|
|
1940
|
-
startupinfo: Any | None = None,
|
|
1941
|
-
creationflags: int = 0,
|
|
1942
|
-
restore_signals: bool = True,
|
|
1943
|
-
start_new_session: bool = False,
|
|
1944
|
-
pass_fds: Collection[int] = (),
|
|
1945
|
-
# where the *real* keyword only args start
|
|
1946
|
-
text: bool | None = None,
|
|
1947
|
-
encoding: str | None = None,
|
|
1948
|
-
errors: str | None = None,
|
|
1949
|
-
user: str | int | None = None,
|
|
1950
|
-
group: str | int | None = None,
|
|
1951
|
-
extra_groups: Iterable[str | int] | None = None,
|
|
1952
|
-
umask: int = -1,
|
|
1953
|
-
pipesize: int = -1,
|
|
1954
|
-
process_group: int | None = None,
|
|
1955
|
-
) -> None: ...
|
|
1956
|
-
@overload
|
|
1957
|
-
def __init__(
|
|
1958
|
-
self: Popen[str],
|
|
1959
|
-
args: _CMD,
|
|
1960
|
-
bufsize: int = -1,
|
|
1961
|
-
executable: StrOrBytesPath | None = None,
|
|
1962
|
-
stdin: _FILE | None = None,
|
|
1963
|
-
stdout: _FILE | None = None,
|
|
1964
|
-
stderr: _FILE | None = None,
|
|
1965
|
-
preexec_fn: Callable[[], Any] | None = None,
|
|
1966
|
-
close_fds: bool = True,
|
|
1967
|
-
shell: bool = False,
|
|
1968
|
-
cwd: StrOrBytesPath | None = None,
|
|
1969
|
-
env: _ENV | None = None,
|
|
1970
|
-
universal_newlines: bool | None = None,
|
|
1971
|
-
startupinfo: Any | None = None,
|
|
1972
|
-
creationflags: int = 0,
|
|
1973
|
-
restore_signals: bool = True,
|
|
1974
|
-
start_new_session: bool = False,
|
|
1975
|
-
pass_fds: Collection[int] = (),
|
|
1976
|
-
*,
|
|
1977
|
-
text: Literal[True],
|
|
1978
|
-
encoding: str | None = None,
|
|
1979
|
-
errors: str | None = None,
|
|
1980
|
-
user: str | int | None = None,
|
|
1981
|
-
group: str | int | None = None,
|
|
1982
|
-
extra_groups: Iterable[str | int] | None = None,
|
|
1983
|
-
umask: int = -1,
|
|
1984
|
-
pipesize: int = -1,
|
|
1985
|
-
process_group: int | None = None,
|
|
1986
|
-
) -> None: ...
|
|
1987
|
-
@overload
|
|
1988
|
-
def __init__(
|
|
1989
|
-
self: Popen[bytes],
|
|
1990
|
-
args: _CMD,
|
|
1991
|
-
bufsize: int = -1,
|
|
1992
|
-
executable: StrOrBytesPath | None = None,
|
|
1993
|
-
stdin: _FILE | None = None,
|
|
1994
|
-
stdout: _FILE | None = None,
|
|
1995
|
-
stderr: _FILE | None = None,
|
|
1996
|
-
preexec_fn: Callable[[], Any] | None = None,
|
|
1997
|
-
close_fds: bool = True,
|
|
1998
|
-
shell: bool = False,
|
|
1999
|
-
cwd: StrOrBytesPath | None = None,
|
|
2000
|
-
env: _ENV | None = None,
|
|
2001
|
-
universal_newlines: Literal[False] | None = None,
|
|
2002
|
-
startupinfo: Any | None = None,
|
|
2003
|
-
creationflags: int = 0,
|
|
2004
|
-
restore_signals: bool = True,
|
|
2005
|
-
start_new_session: bool = False,
|
|
2006
|
-
pass_fds: Collection[int] = (),
|
|
2007
|
-
*,
|
|
2008
|
-
text: Literal[False] | None = None,
|
|
2009
|
-
encoding: None = None,
|
|
2010
|
-
errors: None = None,
|
|
2011
|
-
user: str | int | None = None,
|
|
2012
|
-
group: str | int | None = None,
|
|
2013
|
-
extra_groups: Iterable[str | int] | None = None,
|
|
2014
|
-
umask: int = -1,
|
|
2015
|
-
pipesize: int = -1,
|
|
2016
|
-
process_group: int | None = None,
|
|
2017
|
-
) -> None: ...
|
|
2018
|
-
@overload
|
|
2019
|
-
def __init__(
|
|
2020
|
-
self: Popen[Any],
|
|
2021
|
-
args: _CMD,
|
|
2022
|
-
bufsize: int = -1,
|
|
2023
|
-
executable: StrOrBytesPath | None = None,
|
|
2024
|
-
stdin: _FILE | None = None,
|
|
2025
|
-
stdout: _FILE | None = None,
|
|
2026
|
-
stderr: _FILE | None = None,
|
|
2027
|
-
preexec_fn: Callable[[], Any] | None = None,
|
|
2028
|
-
close_fds: bool = True,
|
|
2029
|
-
shell: bool = False,
|
|
2030
|
-
cwd: StrOrBytesPath | None = None,
|
|
2031
|
-
env: _ENV | None = None,
|
|
2032
|
-
universal_newlines: bool | None = None,
|
|
2033
|
-
startupinfo: Any | None = None,
|
|
2034
|
-
creationflags: int = 0,
|
|
2035
|
-
restore_signals: bool = True,
|
|
2036
|
-
start_new_session: bool = False,
|
|
2037
|
-
pass_fds: Collection[int] = (),
|
|
2038
|
-
*,
|
|
2039
|
-
text: bool | None = None,
|
|
2040
|
-
encoding: str | None = None,
|
|
2041
|
-
errors: str | None = None,
|
|
2042
|
-
user: str | int | None = None,
|
|
2043
|
-
group: str | int | None = None,
|
|
2044
|
-
extra_groups: Iterable[str | int] | None = None,
|
|
2045
|
-
umask: int = -1,
|
|
2046
|
-
pipesize: int = -1,
|
|
2047
|
-
process_group: int | None = None,
|
|
2048
|
-
) -> None: ...
|
|
2049
|
-
elif sys.version_info >= (3, 10):
|
|
2050
|
-
# pipesize is added in 3.10
|
|
2051
|
-
@overload
|
|
2052
|
-
def __init__(
|
|
2053
|
-
self: Popen[str],
|
|
2054
|
-
args: _CMD,
|
|
2055
|
-
bufsize: int = -1,
|
|
2056
|
-
executable: StrOrBytesPath | None = None,
|
|
2057
|
-
stdin: _FILE | None = None,
|
|
2058
|
-
stdout: _FILE | None = None,
|
|
2059
|
-
stderr: _FILE | None = None,
|
|
2060
|
-
preexec_fn: Callable[[], Any] | None = None,
|
|
2061
|
-
close_fds: bool = True,
|
|
2062
|
-
shell: bool = False,
|
|
2063
|
-
cwd: StrOrBytesPath | None = None,
|
|
2064
|
-
env: _ENV | None = None,
|
|
2065
|
-
universal_newlines: bool | None = None,
|
|
2066
|
-
startupinfo: Any | None = None,
|
|
2067
|
-
creationflags: int = 0,
|
|
2068
|
-
restore_signals: bool = True,
|
|
2069
|
-
start_new_session: bool = False,
|
|
2070
|
-
pass_fds: Collection[int] = (),
|
|
2071
|
-
*,
|
|
2072
|
-
text: bool | None = None,
|
|
2073
|
-
encoding: str,
|
|
2074
|
-
errors: str | None = None,
|
|
2075
|
-
user: str | int | None = None,
|
|
2076
|
-
group: str | int | None = None,
|
|
2077
|
-
extra_groups: Iterable[str | int] | None = None,
|
|
2078
|
-
umask: int = -1,
|
|
2079
|
-
pipesize: int = -1,
|
|
2080
|
-
) -> None: ...
|
|
2081
|
-
@overload
|
|
2082
|
-
def __init__(
|
|
2083
|
-
self: Popen[str],
|
|
2084
|
-
args: _CMD,
|
|
2085
|
-
bufsize: int = -1,
|
|
2086
|
-
executable: StrOrBytesPath | None = None,
|
|
2087
|
-
stdin: _FILE | None = None,
|
|
2088
|
-
stdout: _FILE | None = None,
|
|
2089
|
-
stderr: _FILE | None = None,
|
|
2090
|
-
preexec_fn: Callable[[], Any] | None = None,
|
|
2091
|
-
close_fds: bool = True,
|
|
2092
|
-
shell: bool = False,
|
|
2093
|
-
cwd: StrOrBytesPath | None = None,
|
|
2094
|
-
env: _ENV | None = None,
|
|
2095
|
-
universal_newlines: bool | None = None,
|
|
2096
|
-
startupinfo: Any | None = None,
|
|
2097
|
-
creationflags: int = 0,
|
|
2098
|
-
restore_signals: bool = True,
|
|
2099
|
-
start_new_session: bool = False,
|
|
2100
|
-
pass_fds: Collection[int] = (),
|
|
2101
|
-
*,
|
|
2102
|
-
text: bool | None = None,
|
|
2103
|
-
encoding: str | None = None,
|
|
2104
|
-
errors: str,
|
|
2105
|
-
user: str | int | None = None,
|
|
2106
|
-
group: str | int | None = None,
|
|
2107
|
-
extra_groups: Iterable[str | int] | None = None,
|
|
2108
|
-
umask: int = -1,
|
|
2109
|
-
pipesize: int = -1,
|
|
2110
|
-
) -> None: ...
|
|
2111
|
-
@overload
|
|
2112
|
-
def __init__(
|
|
2113
|
-
self: Popen[str],
|
|
2114
|
-
args: _CMD,
|
|
2115
|
-
bufsize: int = -1,
|
|
2116
|
-
executable: StrOrBytesPath | None = None,
|
|
2117
|
-
stdin: _FILE | None = None,
|
|
2118
|
-
stdout: _FILE | None = None,
|
|
2119
|
-
stderr: _FILE | None = None,
|
|
2120
|
-
preexec_fn: Callable[[], Any] | None = None,
|
|
2121
|
-
close_fds: bool = True,
|
|
2122
|
-
shell: bool = False,
|
|
2123
|
-
cwd: StrOrBytesPath | None = None,
|
|
2124
|
-
env: _ENV | None = None,
|
|
2125
|
-
*,
|
|
2126
|
-
universal_newlines: Literal[True],
|
|
2127
|
-
startupinfo: Any | None = None,
|
|
2128
|
-
creationflags: int = 0,
|
|
2129
|
-
restore_signals: bool = True,
|
|
2130
|
-
start_new_session: bool = False,
|
|
2131
|
-
pass_fds: Collection[int] = (),
|
|
2132
|
-
# where the *real* keyword only args start
|
|
2133
|
-
text: bool | None = None,
|
|
2134
|
-
encoding: str | None = None,
|
|
2135
|
-
errors: str | None = None,
|
|
2136
|
-
user: str | int | None = None,
|
|
2137
|
-
group: str | int | None = None,
|
|
2138
|
-
extra_groups: Iterable[str | int] | None = None,
|
|
2139
|
-
umask: int = -1,
|
|
2140
|
-
pipesize: int = -1,
|
|
2141
|
-
) -> None: ...
|
|
2142
|
-
@overload
|
|
2143
|
-
def __init__(
|
|
2144
|
-
self: Popen[str],
|
|
2145
|
-
args: _CMD,
|
|
2146
|
-
bufsize: int = -1,
|
|
2147
|
-
executable: StrOrBytesPath | None = None,
|
|
2148
|
-
stdin: _FILE | None = None,
|
|
2149
|
-
stdout: _FILE | None = None,
|
|
2150
|
-
stderr: _FILE | None = None,
|
|
2151
|
-
preexec_fn: Callable[[], Any] | None = None,
|
|
2152
|
-
close_fds: bool = True,
|
|
2153
|
-
shell: bool = False,
|
|
2154
|
-
cwd: StrOrBytesPath | None = None,
|
|
2155
|
-
env: _ENV | None = None,
|
|
2156
|
-
universal_newlines: bool | None = None,
|
|
2157
|
-
startupinfo: Any | None = None,
|
|
2158
|
-
creationflags: int = 0,
|
|
2159
|
-
restore_signals: bool = True,
|
|
2160
|
-
start_new_session: bool = False,
|
|
2161
|
-
pass_fds: Collection[int] = (),
|
|
2162
|
-
*,
|
|
2163
|
-
text: Literal[True],
|
|
2164
|
-
encoding: str | None = None,
|
|
2165
|
-
errors: str | None = None,
|
|
2166
|
-
user: str | int | None = None,
|
|
2167
|
-
group: str | int | None = None,
|
|
2168
|
-
extra_groups: Iterable[str | int] | None = None,
|
|
2169
|
-
umask: int = -1,
|
|
2170
|
-
pipesize: int = -1,
|
|
2171
|
-
) -> None: ...
|
|
2172
|
-
@overload
|
|
2173
|
-
def __init__(
|
|
2174
|
-
self: Popen[bytes],
|
|
2175
|
-
args: _CMD,
|
|
2176
|
-
bufsize: int = -1,
|
|
2177
|
-
executable: StrOrBytesPath | None = None,
|
|
2178
|
-
stdin: _FILE | None = None,
|
|
2179
|
-
stdout: _FILE | None = None,
|
|
2180
|
-
stderr: _FILE | None = None,
|
|
2181
|
-
preexec_fn: Callable[[], Any] | None = None,
|
|
2182
|
-
close_fds: bool = True,
|
|
2183
|
-
shell: bool = False,
|
|
2184
|
-
cwd: StrOrBytesPath | None = None,
|
|
2185
|
-
env: _ENV | None = None,
|
|
2186
|
-
universal_newlines: Literal[False] | None = None,
|
|
2187
|
-
startupinfo: Any | None = None,
|
|
2188
|
-
creationflags: int = 0,
|
|
2189
|
-
restore_signals: bool = True,
|
|
2190
|
-
start_new_session: bool = False,
|
|
2191
|
-
pass_fds: Collection[int] = (),
|
|
2192
|
-
*,
|
|
2193
|
-
text: Literal[False] | None = None,
|
|
2194
|
-
encoding: None = None,
|
|
2195
|
-
errors: None = None,
|
|
2196
|
-
user: str | int | None = None,
|
|
2197
|
-
group: str | int | None = None,
|
|
2198
|
-
extra_groups: Iterable[str | int] | None = None,
|
|
2199
|
-
umask: int = -1,
|
|
2200
|
-
pipesize: int = -1,
|
|
2201
|
-
) -> None: ...
|
|
2202
|
-
@overload
|
|
2203
|
-
def __init__(
|
|
2204
|
-
self: Popen[Any],
|
|
2205
|
-
args: _CMD,
|
|
2206
|
-
bufsize: int = -1,
|
|
2207
|
-
executable: StrOrBytesPath | None = None,
|
|
2208
|
-
stdin: _FILE | None = None,
|
|
2209
|
-
stdout: _FILE | None = None,
|
|
2210
|
-
stderr: _FILE | None = None,
|
|
2211
|
-
preexec_fn: Callable[[], Any] | None = None,
|
|
2212
|
-
close_fds: bool = True,
|
|
2213
|
-
shell: bool = False,
|
|
2214
|
-
cwd: StrOrBytesPath | None = None,
|
|
2215
|
-
env: _ENV | None = None,
|
|
2216
|
-
universal_newlines: bool | None = None,
|
|
2217
|
-
startupinfo: Any | None = None,
|
|
2218
|
-
creationflags: int = 0,
|
|
2219
|
-
restore_signals: bool = True,
|
|
2220
|
-
start_new_session: bool = False,
|
|
2221
|
-
pass_fds: Collection[int] = (),
|
|
2222
|
-
*,
|
|
2223
|
-
text: bool | None = None,
|
|
2224
|
-
encoding: str | None = None,
|
|
2225
|
-
errors: str | None = None,
|
|
2226
|
-
user: str | int | None = None,
|
|
2227
|
-
group: str | int | None = None,
|
|
2228
|
-
extra_groups: Iterable[str | int] | None = None,
|
|
2229
|
-
umask: int = -1,
|
|
2230
|
-
pipesize: int = -1,
|
|
2231
|
-
) -> None: ...
|
|
2232
|
-
elif sys.version_info >= (3, 9):
|
|
2233
|
-
# user, group, extra_groups, umask were added in 3.9
|
|
2234
|
-
@overload
|
|
2235
|
-
def __init__(
|
|
2236
|
-
self: Popen[str],
|
|
2237
|
-
args: _CMD,
|
|
2238
|
-
bufsize: int = -1,
|
|
2239
|
-
executable: StrOrBytesPath | None = None,
|
|
2240
|
-
stdin: _FILE | None = None,
|
|
2241
|
-
stdout: _FILE | None = None,
|
|
2242
|
-
stderr: _FILE | None = None,
|
|
2243
|
-
preexec_fn: Callable[[], Any] | None = None,
|
|
2244
|
-
close_fds: bool = True,
|
|
2245
|
-
shell: bool = False,
|
|
2246
|
-
cwd: StrOrBytesPath | None = None,
|
|
2247
|
-
env: _ENV | None = None,
|
|
2248
|
-
universal_newlines: bool | None = None,
|
|
2249
|
-
startupinfo: Any | None = None,
|
|
2250
|
-
creationflags: int = 0,
|
|
2251
|
-
restore_signals: bool = True,
|
|
2252
|
-
start_new_session: bool = False,
|
|
2253
|
-
pass_fds: Collection[int] = (),
|
|
2254
|
-
*,
|
|
2255
|
-
text: bool | None = None,
|
|
2256
|
-
encoding: str,
|
|
2257
|
-
errors: str | None = None,
|
|
2258
|
-
user: str | int | None = None,
|
|
2259
|
-
group: str | int | None = None,
|
|
2260
|
-
extra_groups: Iterable[str | int] | None = None,
|
|
2261
|
-
umask: int = -1,
|
|
2262
|
-
) -> None: ...
|
|
2263
|
-
@overload
|
|
2264
|
-
def __init__(
|
|
2265
|
-
self: Popen[str],
|
|
2266
|
-
args: _CMD,
|
|
2267
|
-
bufsize: int = -1,
|
|
2268
|
-
executable: StrOrBytesPath | None = None,
|
|
2269
|
-
stdin: _FILE | None = None,
|
|
2270
|
-
stdout: _FILE | None = None,
|
|
2271
|
-
stderr: _FILE | None = None,
|
|
2272
|
-
preexec_fn: Callable[[], Any] | None = None,
|
|
2273
|
-
close_fds: bool = True,
|
|
2274
|
-
shell: bool = False,
|
|
2275
|
-
cwd: StrOrBytesPath | None = None,
|
|
2276
|
-
env: _ENV | None = None,
|
|
2277
|
-
universal_newlines: bool | None = None,
|
|
2278
|
-
startupinfo: Any | None = None,
|
|
2279
|
-
creationflags: int = 0,
|
|
2280
|
-
restore_signals: bool = True,
|
|
2281
|
-
start_new_session: bool = False,
|
|
2282
|
-
pass_fds: Collection[int] = (),
|
|
2283
|
-
*,
|
|
2284
|
-
text: bool | None = None,
|
|
2285
|
-
encoding: str | None = None,
|
|
2286
|
-
errors: str,
|
|
2287
|
-
user: str | int | None = None,
|
|
2288
|
-
group: str | int | None = None,
|
|
2289
|
-
extra_groups: Iterable[str | int] | None = None,
|
|
2290
|
-
umask: int = -1,
|
|
2291
|
-
) -> None: ...
|
|
2292
|
-
@overload
|
|
2293
|
-
def __init__(
|
|
2294
|
-
self: Popen[str],
|
|
2295
|
-
args: _CMD,
|
|
2296
|
-
bufsize: int = -1,
|
|
2297
|
-
executable: StrOrBytesPath | None = None,
|
|
2298
|
-
stdin: _FILE | None = None,
|
|
2299
|
-
stdout: _FILE | None = None,
|
|
2300
|
-
stderr: _FILE | None = None,
|
|
2301
|
-
preexec_fn: Callable[[], Any] | None = None,
|
|
2302
|
-
close_fds: bool = True,
|
|
2303
|
-
shell: bool = False,
|
|
2304
|
-
cwd: StrOrBytesPath | None = None,
|
|
2305
|
-
env: _ENV | None = None,
|
|
2306
|
-
*,
|
|
2307
|
-
universal_newlines: Literal[True],
|
|
2308
|
-
startupinfo: Any | None = None,
|
|
2309
|
-
creationflags: int = 0,
|
|
2310
|
-
restore_signals: bool = True,
|
|
2311
|
-
start_new_session: bool = False,
|
|
2312
|
-
pass_fds: Collection[int] = (),
|
|
2313
|
-
# where the *real* keyword only args start
|
|
2314
|
-
text: bool | None = None,
|
|
2315
|
-
encoding: str | None = None,
|
|
2316
|
-
errors: str | None = None,
|
|
2317
|
-
user: str | int | None = None,
|
|
2318
|
-
group: str | int | None = None,
|
|
2319
|
-
extra_groups: Iterable[str | int] | None = None,
|
|
2320
|
-
umask: int = -1,
|
|
2321
|
-
) -> None: ...
|
|
2322
|
-
@overload
|
|
2323
|
-
def __init__(
|
|
2324
|
-
self: Popen[str],
|
|
2325
|
-
args: _CMD,
|
|
2326
|
-
bufsize: int = -1,
|
|
2327
|
-
executable: StrOrBytesPath | None = None,
|
|
2328
|
-
stdin: _FILE | None = None,
|
|
2329
|
-
stdout: _FILE | None = None,
|
|
2330
|
-
stderr: _FILE | None = None,
|
|
2331
|
-
preexec_fn: Callable[[], Any] | None = None,
|
|
2332
|
-
close_fds: bool = True,
|
|
2333
|
-
shell: bool = False,
|
|
2334
|
-
cwd: StrOrBytesPath | None = None,
|
|
2335
|
-
env: _ENV | None = None,
|
|
2336
|
-
universal_newlines: bool | None = None,
|
|
2337
|
-
startupinfo: Any | None = None,
|
|
2338
|
-
creationflags: int = 0,
|
|
2339
|
-
restore_signals: bool = True,
|
|
2340
|
-
start_new_session: bool = False,
|
|
2341
|
-
pass_fds: Collection[int] = (),
|
|
2342
|
-
*,
|
|
2343
|
-
text: Literal[True],
|
|
2344
|
-
encoding: str | None = None,
|
|
2345
|
-
errors: str | None = None,
|
|
2346
|
-
user: str | int | None = None,
|
|
2347
|
-
group: str | int | None = None,
|
|
2348
|
-
extra_groups: Iterable[str | int] | None = None,
|
|
2349
|
-
umask: int = -1,
|
|
2350
|
-
) -> None: ...
|
|
2351
|
-
@overload
|
|
2352
|
-
def __init__(
|
|
2353
|
-
self: Popen[bytes],
|
|
2354
|
-
args: _CMD,
|
|
2355
|
-
bufsize: int = -1,
|
|
2356
|
-
executable: StrOrBytesPath | None = None,
|
|
2357
|
-
stdin: _FILE | None = None,
|
|
2358
|
-
stdout: _FILE | None = None,
|
|
2359
|
-
stderr: _FILE | None = None,
|
|
2360
|
-
preexec_fn: Callable[[], Any] | None = None,
|
|
2361
|
-
close_fds: bool = True,
|
|
2362
|
-
shell: bool = False,
|
|
2363
|
-
cwd: StrOrBytesPath | None = None,
|
|
2364
|
-
env: _ENV | None = None,
|
|
2365
|
-
universal_newlines: Literal[False] | None = None,
|
|
2366
|
-
startupinfo: Any | None = None,
|
|
2367
|
-
creationflags: int = 0,
|
|
2368
|
-
restore_signals: bool = True,
|
|
2369
|
-
start_new_session: bool = False,
|
|
2370
|
-
pass_fds: Collection[int] = (),
|
|
2371
|
-
*,
|
|
2372
|
-
text: Literal[False] | None = None,
|
|
2373
|
-
encoding: None = None,
|
|
2374
|
-
errors: None = None,
|
|
2375
|
-
user: str | int | None = None,
|
|
2376
|
-
group: str | int | None = None,
|
|
2377
|
-
extra_groups: Iterable[str | int] | None = None,
|
|
2378
|
-
umask: int = -1,
|
|
2379
|
-
) -> None: ...
|
|
2380
|
-
@overload
|
|
2381
|
-
def __init__(
|
|
2382
|
-
self: Popen[Any],
|
|
2383
|
-
args: _CMD,
|
|
2384
|
-
bufsize: int = -1,
|
|
2385
|
-
executable: StrOrBytesPath | None = None,
|
|
2386
|
-
stdin: _FILE | None = None,
|
|
2387
|
-
stdout: _FILE | None = None,
|
|
2388
|
-
stderr: _FILE | None = None,
|
|
2389
|
-
preexec_fn: Callable[[], Any] | None = None,
|
|
2390
|
-
close_fds: bool = True,
|
|
2391
|
-
shell: bool = False,
|
|
2392
|
-
cwd: StrOrBytesPath | None = None,
|
|
2393
|
-
env: _ENV | None = None,
|
|
2394
|
-
universal_newlines: bool | None = None,
|
|
2395
|
-
startupinfo: Any | None = None,
|
|
2396
|
-
creationflags: int = 0,
|
|
2397
|
-
restore_signals: bool = True,
|
|
2398
|
-
start_new_session: bool = False,
|
|
2399
|
-
pass_fds: Collection[int] = (),
|
|
2400
|
-
*,
|
|
2401
|
-
text: bool | None = None,
|
|
2402
|
-
encoding: str | None = None,
|
|
2403
|
-
errors: str | None = None,
|
|
2404
|
-
user: str | int | None = None,
|
|
2405
|
-
group: str | int | None = None,
|
|
2406
|
-
extra_groups: Iterable[str | int] | None = None,
|
|
2407
|
-
umask: int = -1,
|
|
2408
|
-
) -> None: ...
|
|
2409
|
-
else:
|
|
2410
|
-
@overload
|
|
2411
|
-
def __init__(
|
|
2412
|
-
self: Popen[str],
|
|
2413
|
-
args: _CMD,
|
|
2414
|
-
bufsize: int = -1,
|
|
2415
|
-
executable: StrOrBytesPath | None = None,
|
|
2416
|
-
stdin: _FILE | None = None,
|
|
2417
|
-
stdout: _FILE | None = None,
|
|
2418
|
-
stderr: _FILE | None = None,
|
|
2419
|
-
preexec_fn: Callable[[], Any] | None = None,
|
|
2420
|
-
close_fds: bool = True,
|
|
2421
|
-
shell: bool = False,
|
|
2422
|
-
cwd: StrOrBytesPath | None = None,
|
|
2423
|
-
env: _ENV | None = None,
|
|
2424
|
-
universal_newlines: bool | None = None,
|
|
2425
|
-
startupinfo: Any | None = None,
|
|
2426
|
-
creationflags: int = 0,
|
|
2427
|
-
restore_signals: bool = True,
|
|
2428
|
-
start_new_session: bool = False,
|
|
2429
|
-
pass_fds: Collection[int] = (),
|
|
2430
|
-
*,
|
|
2431
|
-
text: bool | None = None,
|
|
2432
|
-
encoding: str,
|
|
2433
|
-
errors: str | None = None,
|
|
2434
|
-
) -> None: ...
|
|
2435
|
-
@overload
|
|
2436
|
-
def __init__(
|
|
2437
|
-
self: Popen[str],
|
|
2438
|
-
args: _CMD,
|
|
2439
|
-
bufsize: int = -1,
|
|
2440
|
-
executable: StrOrBytesPath | None = None,
|
|
2441
|
-
stdin: _FILE | None = None,
|
|
2442
|
-
stdout: _FILE | None = None,
|
|
2443
|
-
stderr: _FILE | None = None,
|
|
2444
|
-
preexec_fn: Callable[[], Any] | None = None,
|
|
2445
|
-
close_fds: bool = True,
|
|
2446
|
-
shell: bool = False,
|
|
2447
|
-
cwd: StrOrBytesPath | None = None,
|
|
2448
|
-
env: _ENV | None = None,
|
|
2449
|
-
universal_newlines: bool | None = None,
|
|
2450
|
-
startupinfo: Any | None = None,
|
|
2451
|
-
creationflags: int = 0,
|
|
2452
|
-
restore_signals: bool = True,
|
|
2453
|
-
start_new_session: bool = False,
|
|
2454
|
-
pass_fds: Collection[int] = (),
|
|
2455
|
-
*,
|
|
2456
|
-
text: bool | None = None,
|
|
2457
|
-
encoding: str | None = None,
|
|
2458
|
-
errors: str,
|
|
2459
|
-
) -> None: ...
|
|
2460
|
-
@overload
|
|
2461
|
-
def __init__(
|
|
2462
|
-
self: Popen[str],
|
|
2463
|
-
args: _CMD,
|
|
2464
|
-
bufsize: int = -1,
|
|
2465
|
-
executable: StrOrBytesPath | None = None,
|
|
2466
|
-
stdin: _FILE | None = None,
|
|
2467
|
-
stdout: _FILE | None = None,
|
|
2468
|
-
stderr: _FILE | None = None,
|
|
2469
|
-
preexec_fn: Callable[[], Any] | None = None,
|
|
2470
|
-
close_fds: bool = True,
|
|
2471
|
-
shell: bool = False,
|
|
2472
|
-
cwd: StrOrBytesPath | None = None,
|
|
2473
|
-
env: _ENV | None = None,
|
|
2474
|
-
*,
|
|
2475
|
-
universal_newlines: Literal[True],
|
|
2476
|
-
startupinfo: Any | None = None,
|
|
2477
|
-
creationflags: int = 0,
|
|
2478
|
-
restore_signals: bool = True,
|
|
2479
|
-
start_new_session: bool = False,
|
|
2480
|
-
pass_fds: Collection[int] = (),
|
|
2481
|
-
# where the *real* keyword only args start
|
|
2482
|
-
text: bool | None = None,
|
|
2483
|
-
encoding: str | None = None,
|
|
2484
|
-
errors: str | None = None,
|
|
2485
|
-
) -> None: ...
|
|
2486
|
-
@overload
|
|
2487
|
-
def __init__(
|
|
2488
|
-
self: Popen[str],
|
|
2489
|
-
args: _CMD,
|
|
2490
|
-
bufsize: int = -1,
|
|
2491
|
-
executable: StrOrBytesPath | None = None,
|
|
2492
|
-
stdin: _FILE | None = None,
|
|
2493
|
-
stdout: _FILE | None = None,
|
|
2494
|
-
stderr: _FILE | None = None,
|
|
2495
|
-
preexec_fn: Callable[[], Any] | None = None,
|
|
2496
|
-
close_fds: bool = True,
|
|
2497
|
-
shell: bool = False,
|
|
2498
|
-
cwd: StrOrBytesPath | None = None,
|
|
2499
|
-
env: _ENV | None = None,
|
|
2500
|
-
universal_newlines: bool | None = None,
|
|
2501
|
-
startupinfo: Any | None = None,
|
|
2502
|
-
creationflags: int = 0,
|
|
2503
|
-
restore_signals: bool = True,
|
|
2504
|
-
start_new_session: bool = False,
|
|
2505
|
-
pass_fds: Collection[int] = (),
|
|
2506
|
-
*,
|
|
2507
|
-
text: Literal[True],
|
|
2508
|
-
encoding: str | None = None,
|
|
2509
|
-
errors: str | None = None,
|
|
2510
|
-
) -> None: ...
|
|
2511
|
-
@overload
|
|
2512
|
-
def __init__(
|
|
2513
|
-
self: Popen[bytes],
|
|
2514
|
-
args: _CMD,
|
|
2515
|
-
bufsize: int = -1,
|
|
2516
|
-
executable: StrOrBytesPath | None = None,
|
|
2517
|
-
stdin: _FILE | None = None,
|
|
2518
|
-
stdout: _FILE | None = None,
|
|
2519
|
-
stderr: _FILE | None = None,
|
|
2520
|
-
preexec_fn: Callable[[], Any] | None = None,
|
|
2521
|
-
close_fds: bool = True,
|
|
2522
|
-
shell: bool = False,
|
|
2523
|
-
cwd: StrOrBytesPath | None = None,
|
|
2524
|
-
env: _ENV | None = None,
|
|
2525
|
-
universal_newlines: Literal[False] | None = None,
|
|
2526
|
-
startupinfo: Any | None = None,
|
|
2527
|
-
creationflags: int = 0,
|
|
2528
|
-
restore_signals: bool = True,
|
|
2529
|
-
start_new_session: bool = False,
|
|
2530
|
-
pass_fds: Collection[int] = (),
|
|
2531
|
-
*,
|
|
2532
|
-
text: Literal[False] | None = None,
|
|
2533
|
-
encoding: None = None,
|
|
2534
|
-
errors: None = None,
|
|
2535
|
-
) -> None: ...
|
|
2536
|
-
@overload
|
|
2537
|
-
def __init__(
|
|
2538
|
-
self: Popen[Any],
|
|
2539
|
-
args: _CMD,
|
|
2540
|
-
bufsize: int = -1,
|
|
2541
|
-
executable: StrOrBytesPath | None = None,
|
|
2542
|
-
stdin: _FILE | None = None,
|
|
2543
|
-
stdout: _FILE | None = None,
|
|
2544
|
-
stderr: _FILE | None = None,
|
|
2545
|
-
preexec_fn: Callable[[], Any] | None = None,
|
|
2546
|
-
close_fds: bool = True,
|
|
2547
|
-
shell: bool = False,
|
|
2548
|
-
cwd: StrOrBytesPath | None = None,
|
|
2549
|
-
env: _ENV | None = None,
|
|
2550
|
-
universal_newlines: bool | None = None,
|
|
2551
|
-
startupinfo: Any | None = None,
|
|
2552
|
-
creationflags: int = 0,
|
|
2553
|
-
restore_signals: bool = True,
|
|
2554
|
-
start_new_session: bool = False,
|
|
2555
|
-
pass_fds: Collection[int] = (),
|
|
2556
|
-
*,
|
|
2557
|
-
text: bool | None = None,
|
|
2558
|
-
encoding: str | None = None,
|
|
2559
|
-
errors: str | None = None,
|
|
2560
|
-
) -> None: ...
|
|
2561
|
-
|
|
2562
|
-
def poll(self) -> int | None: ...
|
|
2563
|
-
def wait(self, timeout: float | None = None) -> int: ...
|
|
2564
|
-
# morally the members of the returned tuple should be optional
|
|
2565
|
-
# TODO this should allow ReadableBuffer for Popen[bytes], but adding
|
|
2566
|
-
# overloads for that runs into a mypy bug (python/mypy#14070).
|
|
2567
|
-
def communicate(self, input: AnyStr | None = None, timeout: float | None = None) -> tuple[AnyStr, AnyStr]: ...
|
|
2568
|
-
def send_signal(self, sig: int) -> None: ...
|
|
2569
|
-
def terminate(self) -> None: ...
|
|
2570
|
-
def kill(self) -> None: ...
|
|
2571
|
-
def __enter__(self) -> Self: ...
|
|
2572
|
-
def __exit__(
|
|
2573
|
-
self, exc_type: type[BaseException] | None, value: BaseException | None, traceback: TracebackType | None
|
|
2574
|
-
) -> None: ...
|
|
2575
|
-
def __del__(self) -> None: ...
|
|
2576
|
-
if sys.version_info >= (3, 9):
|
|
2577
|
-
def __class_getitem__(cls, item: Any, /) -> GenericAlias:
|
|
2578
|
-
"""
|
|
2579
|
-
Represent a PEP 585 generic type
|
|
2580
|
-
|
|
2581
|
-
E.g. for t = list[int], t.__origin__ is list and t.__args__ is (int,).
|
|
2582
|
-
"""
|
|
2583
|
-
...
|
|
2584
|
-
|
|
2585
|
-
# The result really is always a str.
|
|
2586
|
-
if sys.version_info >= (3, 11):
|
|
2587
|
-
def getstatusoutput(cmd: _CMD, *, encoding: str | None = None, errors: str | None = None) -> tuple[int, str]: ...
|
|
2588
|
-
def getoutput(cmd: _CMD, *, encoding: str | None = None, errors: str | None = None) -> str: ...
|
|
2589
|
-
|
|
2590
|
-
else:
|
|
2591
|
-
def getstatusoutput(cmd: _CMD) -> tuple[int, str]: ...
|
|
2592
|
-
def getoutput(cmd: _CMD) -> str: ...
|
|
2593
|
-
|
|
2594
|
-
def list2cmdline(seq: Iterable[StrOrBytesPath]) -> str: ... # undocumented
|
|
2595
|
-
|
|
2596
|
-
if sys.platform == "win32":
|
|
2597
|
-
if sys.version_info >= (3, 13):
|
|
2598
|
-
from _winapi import STARTF_FORCEOFFFEEDBACK, STARTF_FORCEONFEEDBACK
|
|
2599
|
-
|
|
2600
|
-
__all__ += ["STARTF_FORCEOFFFEEDBACK", "STARTF_FORCEONFEEDBACK"]
|
|
2601
|
-
|
|
2602
|
-
class STARTUPINFO:
|
|
2603
|
-
def __init__(
|
|
2604
|
-
self,
|
|
2605
|
-
*,
|
|
2606
|
-
dwFlags: int = 0,
|
|
2607
|
-
hStdInput: Any | None = None,
|
|
2608
|
-
hStdOutput: Any | None = None,
|
|
2609
|
-
hStdError: Any | None = None,
|
|
2610
|
-
wShowWindow: int = 0,
|
|
2611
|
-
lpAttributeList: Mapping[str, Any] | None = None,
|
|
2612
|
-
) -> None: ...
|
|
2613
|
-
dwFlags: int
|
|
2614
|
-
hStdInput: Any | None
|
|
2615
|
-
hStdOutput: Any | None
|
|
2616
|
-
hStdError: Any | None
|
|
2617
|
-
wShowWindow: int
|
|
2618
|
-
lpAttributeList: Mapping[str, Any]
|
|
2619
|
-
def copy(self) -> STARTUPINFO: ...
|
|
2620
|
-
|
|
2621
|
-
from _winapi import (
|
|
2622
|
-
ABOVE_NORMAL_PRIORITY_CLASS as ABOVE_NORMAL_PRIORITY_CLASS,
|
|
2623
|
-
BELOW_NORMAL_PRIORITY_CLASS as BELOW_NORMAL_PRIORITY_CLASS,
|
|
2624
|
-
CREATE_BREAKAWAY_FROM_JOB as CREATE_BREAKAWAY_FROM_JOB,
|
|
2625
|
-
CREATE_DEFAULT_ERROR_MODE as CREATE_DEFAULT_ERROR_MODE,
|
|
2626
|
-
CREATE_NEW_CONSOLE as CREATE_NEW_CONSOLE,
|
|
2627
|
-
CREATE_NEW_PROCESS_GROUP as CREATE_NEW_PROCESS_GROUP,
|
|
2628
|
-
CREATE_NO_WINDOW as CREATE_NO_WINDOW,
|
|
2629
|
-
DETACHED_PROCESS as DETACHED_PROCESS,
|
|
2630
|
-
HIGH_PRIORITY_CLASS as HIGH_PRIORITY_CLASS,
|
|
2631
|
-
IDLE_PRIORITY_CLASS as IDLE_PRIORITY_CLASS,
|
|
2632
|
-
NORMAL_PRIORITY_CLASS as NORMAL_PRIORITY_CLASS,
|
|
2633
|
-
REALTIME_PRIORITY_CLASS as REALTIME_PRIORITY_CLASS,
|
|
2634
|
-
STARTF_USESHOWWINDOW as STARTF_USESHOWWINDOW,
|
|
2635
|
-
STARTF_USESTDHANDLES as STARTF_USESTDHANDLES,
|
|
2636
|
-
STD_ERROR_HANDLE as STD_ERROR_HANDLE,
|
|
2637
|
-
STD_INPUT_HANDLE as STD_INPUT_HANDLE,
|
|
2638
|
-
STD_OUTPUT_HANDLE as STD_OUTPUT_HANDLE,
|
|
2639
|
-
SW_HIDE as SW_HIDE,
|
|
2640
|
-
)
|
|
1
|
+
import sys
|
|
2
|
+
from _typeshed import MaybeNone, ReadableBuffer, StrOrBytesPath
|
|
3
|
+
from collections.abc import Callable, Collection, Iterable, Mapping, Sequence
|
|
4
|
+
from types import TracebackType
|
|
5
|
+
from typing import IO, Any, AnyStr, Final, Generic, Literal, TypeVar, overload
|
|
6
|
+
from typing_extensions import Self, TypeAlias
|
|
7
|
+
|
|
8
|
+
if sys.version_info >= (3, 9):
|
|
9
|
+
from types import GenericAlias
|
|
10
|
+
|
|
11
|
+
__all__ = [
|
|
12
|
+
"Popen",
|
|
13
|
+
"PIPE",
|
|
14
|
+
"STDOUT",
|
|
15
|
+
"call",
|
|
16
|
+
"check_call",
|
|
17
|
+
"getstatusoutput",
|
|
18
|
+
"getoutput",
|
|
19
|
+
"check_output",
|
|
20
|
+
"run",
|
|
21
|
+
"CalledProcessError",
|
|
22
|
+
"DEVNULL",
|
|
23
|
+
"SubprocessError",
|
|
24
|
+
"TimeoutExpired",
|
|
25
|
+
"CompletedProcess",
|
|
26
|
+
]
|
|
27
|
+
|
|
28
|
+
if sys.platform == "win32":
|
|
29
|
+
__all__ += [
|
|
30
|
+
"CREATE_NEW_CONSOLE",
|
|
31
|
+
"CREATE_NEW_PROCESS_GROUP",
|
|
32
|
+
"STARTF_USESHOWWINDOW",
|
|
33
|
+
"STARTF_USESTDHANDLES",
|
|
34
|
+
"STARTUPINFO",
|
|
35
|
+
"STD_ERROR_HANDLE",
|
|
36
|
+
"STD_INPUT_HANDLE",
|
|
37
|
+
"STD_OUTPUT_HANDLE",
|
|
38
|
+
"SW_HIDE",
|
|
39
|
+
"ABOVE_NORMAL_PRIORITY_CLASS",
|
|
40
|
+
"BELOW_NORMAL_PRIORITY_CLASS",
|
|
41
|
+
"CREATE_BREAKAWAY_FROM_JOB",
|
|
42
|
+
"CREATE_DEFAULT_ERROR_MODE",
|
|
43
|
+
"CREATE_NO_WINDOW",
|
|
44
|
+
"DETACHED_PROCESS",
|
|
45
|
+
"HIGH_PRIORITY_CLASS",
|
|
46
|
+
"IDLE_PRIORITY_CLASS",
|
|
47
|
+
"NORMAL_PRIORITY_CLASS",
|
|
48
|
+
"REALTIME_PRIORITY_CLASS",
|
|
49
|
+
]
|
|
50
|
+
|
|
51
|
+
# We prefer to annotate inputs to methods (eg subprocess.check_call) with these
|
|
52
|
+
# union types.
|
|
53
|
+
# For outputs we use laborious literal based overloads to try to determine
|
|
54
|
+
# which specific return types to use, and prefer to fall back to Any when
|
|
55
|
+
# this does not work, so the caller does not have to use an assertion to confirm
|
|
56
|
+
# which type.
|
|
57
|
+
#
|
|
58
|
+
# For example:
|
|
59
|
+
#
|
|
60
|
+
# try:
|
|
61
|
+
# x = subprocess.check_output(["ls", "-l"])
|
|
62
|
+
# reveal_type(x) # bytes, based on the overloads
|
|
63
|
+
# except TimeoutError as e:
|
|
64
|
+
# reveal_type(e.cmd) # Any, but morally is _CMD
|
|
65
|
+
_FILE: TypeAlias = None | int | IO[Any]
|
|
66
|
+
_InputString: TypeAlias = ReadableBuffer | str
|
|
67
|
+
_CMD: TypeAlias = StrOrBytesPath | Sequence[StrOrBytesPath]
|
|
68
|
+
if sys.platform == "win32":
|
|
69
|
+
_ENV: TypeAlias = Mapping[str, str]
|
|
70
|
+
else:
|
|
71
|
+
_ENV: TypeAlias = Mapping[bytes, StrOrBytesPath] | Mapping[str, StrOrBytesPath]
|
|
72
|
+
|
|
73
|
+
_T = TypeVar("_T")
|
|
74
|
+
|
|
75
|
+
# These two are private but documented
|
|
76
|
+
if sys.version_info >= (3, 11):
|
|
77
|
+
_USE_VFORK: Final[bool]
|
|
78
|
+
_USE_POSIX_SPAWN: Final[bool]
|
|
79
|
+
|
|
80
|
+
class CompletedProcess(Generic[_T]):
|
|
81
|
+
# morally: _CMD
|
|
82
|
+
args: Any
|
|
83
|
+
returncode: int
|
|
84
|
+
# These can both be None, but requiring checks for None would be tedious
|
|
85
|
+
# and writing all the overloads would be horrific.
|
|
86
|
+
stdout: _T
|
|
87
|
+
stderr: _T
|
|
88
|
+
def __init__(self, args: _CMD, returncode: int, stdout: _T | None = None, stderr: _T | None = None) -> None: ...
|
|
89
|
+
def check_returncode(self) -> None: ...
|
|
90
|
+
if sys.version_info >= (3, 9):
|
|
91
|
+
def __class_getitem__(cls, item: Any, /) -> GenericAlias:
|
|
92
|
+
"""
|
|
93
|
+
Represent a PEP 585 generic type
|
|
94
|
+
|
|
95
|
+
E.g. for t = list[int], t.__origin__ is list and t.__args__ is (int,).
|
|
96
|
+
"""
|
|
97
|
+
...
|
|
98
|
+
|
|
99
|
+
if sys.version_info >= (3, 11):
|
|
100
|
+
# 3.11 adds "process_group" argument
|
|
101
|
+
@overload
|
|
102
|
+
def run(
|
|
103
|
+
args: _CMD,
|
|
104
|
+
bufsize: int = -1,
|
|
105
|
+
executable: StrOrBytesPath | None = None,
|
|
106
|
+
stdin: _FILE = None,
|
|
107
|
+
stdout: _FILE = None,
|
|
108
|
+
stderr: _FILE = None,
|
|
109
|
+
preexec_fn: Callable[[], Any] | None = None,
|
|
110
|
+
close_fds: bool = True,
|
|
111
|
+
shell: bool = False,
|
|
112
|
+
cwd: StrOrBytesPath | None = None,
|
|
113
|
+
env: _ENV | None = None,
|
|
114
|
+
universal_newlines: bool | None = None,
|
|
115
|
+
startupinfo: Any = None,
|
|
116
|
+
creationflags: int = 0,
|
|
117
|
+
restore_signals: bool = True,
|
|
118
|
+
start_new_session: bool = False,
|
|
119
|
+
pass_fds: Collection[int] = ...,
|
|
120
|
+
*,
|
|
121
|
+
capture_output: bool = False,
|
|
122
|
+
check: bool = False,
|
|
123
|
+
encoding: str | None = None,
|
|
124
|
+
errors: str | None = None,
|
|
125
|
+
input: str | None = None,
|
|
126
|
+
text: Literal[True],
|
|
127
|
+
timeout: float | None = None,
|
|
128
|
+
user: str | int | None = None,
|
|
129
|
+
group: str | int | None = None,
|
|
130
|
+
extra_groups: Iterable[str | int] | None = None,
|
|
131
|
+
umask: int = -1,
|
|
132
|
+
pipesize: int = -1,
|
|
133
|
+
process_group: int | None = None,
|
|
134
|
+
) -> CompletedProcess[str]: ...
|
|
135
|
+
@overload
|
|
136
|
+
def run(
|
|
137
|
+
args: _CMD,
|
|
138
|
+
bufsize: int = -1,
|
|
139
|
+
executable: StrOrBytesPath | None = None,
|
|
140
|
+
stdin: _FILE = None,
|
|
141
|
+
stdout: _FILE = None,
|
|
142
|
+
stderr: _FILE = None,
|
|
143
|
+
preexec_fn: Callable[[], Any] | None = None,
|
|
144
|
+
close_fds: bool = True,
|
|
145
|
+
shell: bool = False,
|
|
146
|
+
cwd: StrOrBytesPath | None = None,
|
|
147
|
+
env: _ENV | None = None,
|
|
148
|
+
universal_newlines: bool | None = None,
|
|
149
|
+
startupinfo: Any = None,
|
|
150
|
+
creationflags: int = 0,
|
|
151
|
+
restore_signals: bool = True,
|
|
152
|
+
start_new_session: bool = False,
|
|
153
|
+
pass_fds: Collection[int] = ...,
|
|
154
|
+
*,
|
|
155
|
+
capture_output: bool = False,
|
|
156
|
+
check: bool = False,
|
|
157
|
+
encoding: str,
|
|
158
|
+
errors: str | None = None,
|
|
159
|
+
input: str | None = None,
|
|
160
|
+
text: bool | None = None,
|
|
161
|
+
timeout: float | None = None,
|
|
162
|
+
user: str | int | None = None,
|
|
163
|
+
group: str | int | None = None,
|
|
164
|
+
extra_groups: Iterable[str | int] | None = None,
|
|
165
|
+
umask: int = -1,
|
|
166
|
+
pipesize: int = -1,
|
|
167
|
+
process_group: int | None = None,
|
|
168
|
+
) -> CompletedProcess[str]: ...
|
|
169
|
+
@overload
|
|
170
|
+
def run(
|
|
171
|
+
args: _CMD,
|
|
172
|
+
bufsize: int = -1,
|
|
173
|
+
executable: StrOrBytesPath | None = None,
|
|
174
|
+
stdin: _FILE = None,
|
|
175
|
+
stdout: _FILE = None,
|
|
176
|
+
stderr: _FILE = None,
|
|
177
|
+
preexec_fn: Callable[[], Any] | None = None,
|
|
178
|
+
close_fds: bool = True,
|
|
179
|
+
shell: bool = False,
|
|
180
|
+
cwd: StrOrBytesPath | None = None,
|
|
181
|
+
env: _ENV | None = None,
|
|
182
|
+
universal_newlines: bool | None = None,
|
|
183
|
+
startupinfo: Any = None,
|
|
184
|
+
creationflags: int = 0,
|
|
185
|
+
restore_signals: bool = True,
|
|
186
|
+
start_new_session: bool = False,
|
|
187
|
+
pass_fds: Collection[int] = ...,
|
|
188
|
+
*,
|
|
189
|
+
capture_output: bool = False,
|
|
190
|
+
check: bool = False,
|
|
191
|
+
encoding: str | None = None,
|
|
192
|
+
errors: str,
|
|
193
|
+
input: str | None = None,
|
|
194
|
+
text: bool | None = None,
|
|
195
|
+
timeout: float | None = None,
|
|
196
|
+
user: str | int | None = None,
|
|
197
|
+
group: str | int | None = None,
|
|
198
|
+
extra_groups: Iterable[str | int] | None = None,
|
|
199
|
+
umask: int = -1,
|
|
200
|
+
pipesize: int = -1,
|
|
201
|
+
process_group: int | None = None,
|
|
202
|
+
) -> CompletedProcess[str]: ...
|
|
203
|
+
@overload
|
|
204
|
+
def run(
|
|
205
|
+
args: _CMD,
|
|
206
|
+
bufsize: int = -1,
|
|
207
|
+
executable: StrOrBytesPath | None = None,
|
|
208
|
+
stdin: _FILE = None,
|
|
209
|
+
stdout: _FILE = None,
|
|
210
|
+
stderr: _FILE = None,
|
|
211
|
+
preexec_fn: Callable[[], Any] | None = None,
|
|
212
|
+
close_fds: bool = True,
|
|
213
|
+
shell: bool = False,
|
|
214
|
+
cwd: StrOrBytesPath | None = None,
|
|
215
|
+
env: _ENV | None = None,
|
|
216
|
+
*,
|
|
217
|
+
universal_newlines: Literal[True],
|
|
218
|
+
startupinfo: Any = None,
|
|
219
|
+
creationflags: int = 0,
|
|
220
|
+
restore_signals: bool = True,
|
|
221
|
+
start_new_session: bool = False,
|
|
222
|
+
pass_fds: Collection[int] = ...,
|
|
223
|
+
# where the *real* keyword only args start
|
|
224
|
+
capture_output: bool = False,
|
|
225
|
+
check: bool = False,
|
|
226
|
+
encoding: str | None = None,
|
|
227
|
+
errors: str | None = None,
|
|
228
|
+
input: str | None = None,
|
|
229
|
+
text: bool | None = None,
|
|
230
|
+
timeout: float | None = None,
|
|
231
|
+
user: str | int | None = None,
|
|
232
|
+
group: str | int | None = None,
|
|
233
|
+
extra_groups: Iterable[str | int] | None = None,
|
|
234
|
+
umask: int = -1,
|
|
235
|
+
pipesize: int = -1,
|
|
236
|
+
process_group: int | None = None,
|
|
237
|
+
) -> CompletedProcess[str]: ...
|
|
238
|
+
@overload
|
|
239
|
+
def run(
|
|
240
|
+
args: _CMD,
|
|
241
|
+
bufsize: int = -1,
|
|
242
|
+
executable: StrOrBytesPath | None = None,
|
|
243
|
+
stdin: _FILE = None,
|
|
244
|
+
stdout: _FILE = None,
|
|
245
|
+
stderr: _FILE = None,
|
|
246
|
+
preexec_fn: Callable[[], Any] | None = None,
|
|
247
|
+
close_fds: bool = True,
|
|
248
|
+
shell: bool = False,
|
|
249
|
+
cwd: StrOrBytesPath | None = None,
|
|
250
|
+
env: _ENV | None = None,
|
|
251
|
+
universal_newlines: Literal[False] | None = None,
|
|
252
|
+
startupinfo: Any = None,
|
|
253
|
+
creationflags: int = 0,
|
|
254
|
+
restore_signals: bool = True,
|
|
255
|
+
start_new_session: bool = False,
|
|
256
|
+
pass_fds: Collection[int] = ...,
|
|
257
|
+
*,
|
|
258
|
+
capture_output: bool = False,
|
|
259
|
+
check: bool = False,
|
|
260
|
+
encoding: None = None,
|
|
261
|
+
errors: None = None,
|
|
262
|
+
input: ReadableBuffer | None = None,
|
|
263
|
+
text: Literal[False] | None = None,
|
|
264
|
+
timeout: float | None = None,
|
|
265
|
+
user: str | int | None = None,
|
|
266
|
+
group: str | int | None = None,
|
|
267
|
+
extra_groups: Iterable[str | int] | None = None,
|
|
268
|
+
umask: int = -1,
|
|
269
|
+
pipesize: int = -1,
|
|
270
|
+
process_group: int | None = None,
|
|
271
|
+
) -> CompletedProcess[bytes]: ...
|
|
272
|
+
@overload
|
|
273
|
+
def run(
|
|
274
|
+
args: _CMD,
|
|
275
|
+
bufsize: int = -1,
|
|
276
|
+
executable: StrOrBytesPath | None = None,
|
|
277
|
+
stdin: _FILE = None,
|
|
278
|
+
stdout: _FILE = None,
|
|
279
|
+
stderr: _FILE = None,
|
|
280
|
+
preexec_fn: Callable[[], Any] | None = None,
|
|
281
|
+
close_fds: bool = True,
|
|
282
|
+
shell: bool = False,
|
|
283
|
+
cwd: StrOrBytesPath | None = None,
|
|
284
|
+
env: _ENV | None = None,
|
|
285
|
+
universal_newlines: bool | None = None,
|
|
286
|
+
startupinfo: Any = None,
|
|
287
|
+
creationflags: int = 0,
|
|
288
|
+
restore_signals: bool = True,
|
|
289
|
+
start_new_session: bool = False,
|
|
290
|
+
pass_fds: Collection[int] = ...,
|
|
291
|
+
*,
|
|
292
|
+
capture_output: bool = False,
|
|
293
|
+
check: bool = False,
|
|
294
|
+
encoding: str | None = None,
|
|
295
|
+
errors: str | None = None,
|
|
296
|
+
input: _InputString | None = None,
|
|
297
|
+
text: bool | None = None,
|
|
298
|
+
timeout: float | None = None,
|
|
299
|
+
user: str | int | None = None,
|
|
300
|
+
group: str | int | None = None,
|
|
301
|
+
extra_groups: Iterable[str | int] | None = None,
|
|
302
|
+
umask: int = -1,
|
|
303
|
+
pipesize: int = -1,
|
|
304
|
+
process_group: int | None = None,
|
|
305
|
+
) -> CompletedProcess[Any]: ...
|
|
306
|
+
|
|
307
|
+
elif sys.version_info >= (3, 10):
|
|
308
|
+
# 3.10 adds "pipesize" argument
|
|
309
|
+
@overload
|
|
310
|
+
def run(
|
|
311
|
+
args: _CMD,
|
|
312
|
+
bufsize: int = -1,
|
|
313
|
+
executable: StrOrBytesPath | None = None,
|
|
314
|
+
stdin: _FILE = None,
|
|
315
|
+
stdout: _FILE = None,
|
|
316
|
+
stderr: _FILE = None,
|
|
317
|
+
preexec_fn: Callable[[], Any] | None = None,
|
|
318
|
+
close_fds: bool = True,
|
|
319
|
+
shell: bool = False,
|
|
320
|
+
cwd: StrOrBytesPath | None = None,
|
|
321
|
+
env: _ENV | None = None,
|
|
322
|
+
universal_newlines: bool | None = None,
|
|
323
|
+
startupinfo: Any = None,
|
|
324
|
+
creationflags: int = 0,
|
|
325
|
+
restore_signals: bool = True,
|
|
326
|
+
start_new_session: bool = False,
|
|
327
|
+
pass_fds: Collection[int] = ...,
|
|
328
|
+
*,
|
|
329
|
+
capture_output: bool = False,
|
|
330
|
+
check: bool = False,
|
|
331
|
+
encoding: str | None = None,
|
|
332
|
+
errors: str | None = None,
|
|
333
|
+
input: str | None = None,
|
|
334
|
+
text: Literal[True],
|
|
335
|
+
timeout: float | None = None,
|
|
336
|
+
user: str | int | None = None,
|
|
337
|
+
group: str | int | None = None,
|
|
338
|
+
extra_groups: Iterable[str | int] | None = None,
|
|
339
|
+
umask: int = -1,
|
|
340
|
+
pipesize: int = -1,
|
|
341
|
+
) -> CompletedProcess[str]: ...
|
|
342
|
+
@overload
|
|
343
|
+
def run(
|
|
344
|
+
args: _CMD,
|
|
345
|
+
bufsize: int = -1,
|
|
346
|
+
executable: StrOrBytesPath | None = None,
|
|
347
|
+
stdin: _FILE = None,
|
|
348
|
+
stdout: _FILE = None,
|
|
349
|
+
stderr: _FILE = None,
|
|
350
|
+
preexec_fn: Callable[[], Any] | None = None,
|
|
351
|
+
close_fds: bool = True,
|
|
352
|
+
shell: bool = False,
|
|
353
|
+
cwd: StrOrBytesPath | None = None,
|
|
354
|
+
env: _ENV | None = None,
|
|
355
|
+
universal_newlines: bool | None = None,
|
|
356
|
+
startupinfo: Any = None,
|
|
357
|
+
creationflags: int = 0,
|
|
358
|
+
restore_signals: bool = True,
|
|
359
|
+
start_new_session: bool = False,
|
|
360
|
+
pass_fds: Collection[int] = ...,
|
|
361
|
+
*,
|
|
362
|
+
capture_output: bool = False,
|
|
363
|
+
check: bool = False,
|
|
364
|
+
encoding: str,
|
|
365
|
+
errors: str | None = None,
|
|
366
|
+
input: str | None = None,
|
|
367
|
+
text: bool | None = None,
|
|
368
|
+
timeout: float | None = None,
|
|
369
|
+
user: str | int | None = None,
|
|
370
|
+
group: str | int | None = None,
|
|
371
|
+
extra_groups: Iterable[str | int] | None = None,
|
|
372
|
+
umask: int = -1,
|
|
373
|
+
pipesize: int = -1,
|
|
374
|
+
) -> CompletedProcess[str]: ...
|
|
375
|
+
@overload
|
|
376
|
+
def run(
|
|
377
|
+
args: _CMD,
|
|
378
|
+
bufsize: int = -1,
|
|
379
|
+
executable: StrOrBytesPath | None = None,
|
|
380
|
+
stdin: _FILE = None,
|
|
381
|
+
stdout: _FILE = None,
|
|
382
|
+
stderr: _FILE = None,
|
|
383
|
+
preexec_fn: Callable[[], Any] | None = None,
|
|
384
|
+
close_fds: bool = True,
|
|
385
|
+
shell: bool = False,
|
|
386
|
+
cwd: StrOrBytesPath | None = None,
|
|
387
|
+
env: _ENV | None = None,
|
|
388
|
+
universal_newlines: bool | None = None,
|
|
389
|
+
startupinfo: Any = None,
|
|
390
|
+
creationflags: int = 0,
|
|
391
|
+
restore_signals: bool = True,
|
|
392
|
+
start_new_session: bool = False,
|
|
393
|
+
pass_fds: Collection[int] = ...,
|
|
394
|
+
*,
|
|
395
|
+
capture_output: bool = False,
|
|
396
|
+
check: bool = False,
|
|
397
|
+
encoding: str | None = None,
|
|
398
|
+
errors: str,
|
|
399
|
+
input: str | None = None,
|
|
400
|
+
text: bool | None = None,
|
|
401
|
+
timeout: float | None = None,
|
|
402
|
+
user: str | int | None = None,
|
|
403
|
+
group: str | int | None = None,
|
|
404
|
+
extra_groups: Iterable[str | int] | None = None,
|
|
405
|
+
umask: int = -1,
|
|
406
|
+
pipesize: int = -1,
|
|
407
|
+
) -> CompletedProcess[str]: ...
|
|
408
|
+
@overload
|
|
409
|
+
def run(
|
|
410
|
+
args: _CMD,
|
|
411
|
+
bufsize: int = -1,
|
|
412
|
+
executable: StrOrBytesPath | None = None,
|
|
413
|
+
stdin: _FILE = None,
|
|
414
|
+
stdout: _FILE = None,
|
|
415
|
+
stderr: _FILE = None,
|
|
416
|
+
preexec_fn: Callable[[], Any] | None = None,
|
|
417
|
+
close_fds: bool = True,
|
|
418
|
+
shell: bool = False,
|
|
419
|
+
cwd: StrOrBytesPath | None = None,
|
|
420
|
+
env: _ENV | None = None,
|
|
421
|
+
*,
|
|
422
|
+
universal_newlines: Literal[True],
|
|
423
|
+
startupinfo: Any = None,
|
|
424
|
+
creationflags: int = 0,
|
|
425
|
+
restore_signals: bool = True,
|
|
426
|
+
start_new_session: bool = False,
|
|
427
|
+
pass_fds: Collection[int] = ...,
|
|
428
|
+
# where the *real* keyword only args start
|
|
429
|
+
capture_output: bool = False,
|
|
430
|
+
check: bool = False,
|
|
431
|
+
encoding: str | None = None,
|
|
432
|
+
errors: str | None = None,
|
|
433
|
+
input: str | None = None,
|
|
434
|
+
text: bool | None = None,
|
|
435
|
+
timeout: float | None = None,
|
|
436
|
+
user: str | int | None = None,
|
|
437
|
+
group: str | int | None = None,
|
|
438
|
+
extra_groups: Iterable[str | int] | None = None,
|
|
439
|
+
umask: int = -1,
|
|
440
|
+
pipesize: int = -1,
|
|
441
|
+
) -> CompletedProcess[str]: ...
|
|
442
|
+
@overload
|
|
443
|
+
def run(
|
|
444
|
+
args: _CMD,
|
|
445
|
+
bufsize: int = -1,
|
|
446
|
+
executable: StrOrBytesPath | None = None,
|
|
447
|
+
stdin: _FILE = None,
|
|
448
|
+
stdout: _FILE = None,
|
|
449
|
+
stderr: _FILE = None,
|
|
450
|
+
preexec_fn: Callable[[], Any] | None = None,
|
|
451
|
+
close_fds: bool = True,
|
|
452
|
+
shell: bool = False,
|
|
453
|
+
cwd: StrOrBytesPath | None = None,
|
|
454
|
+
env: _ENV | None = None,
|
|
455
|
+
universal_newlines: Literal[False] | None = None,
|
|
456
|
+
startupinfo: Any = None,
|
|
457
|
+
creationflags: int = 0,
|
|
458
|
+
restore_signals: bool = True,
|
|
459
|
+
start_new_session: bool = False,
|
|
460
|
+
pass_fds: Collection[int] = ...,
|
|
461
|
+
*,
|
|
462
|
+
capture_output: bool = False,
|
|
463
|
+
check: bool = False,
|
|
464
|
+
encoding: None = None,
|
|
465
|
+
errors: None = None,
|
|
466
|
+
input: ReadableBuffer | None = None,
|
|
467
|
+
text: Literal[False] | None = None,
|
|
468
|
+
timeout: float | None = None,
|
|
469
|
+
user: str | int | None = None,
|
|
470
|
+
group: str | int | None = None,
|
|
471
|
+
extra_groups: Iterable[str | int] | None = None,
|
|
472
|
+
umask: int = -1,
|
|
473
|
+
pipesize: int = -1,
|
|
474
|
+
) -> CompletedProcess[bytes]: ...
|
|
475
|
+
@overload
|
|
476
|
+
def run(
|
|
477
|
+
args: _CMD,
|
|
478
|
+
bufsize: int = -1,
|
|
479
|
+
executable: StrOrBytesPath | None = None,
|
|
480
|
+
stdin: _FILE = None,
|
|
481
|
+
stdout: _FILE = None,
|
|
482
|
+
stderr: _FILE = None,
|
|
483
|
+
preexec_fn: Callable[[], Any] | None = None,
|
|
484
|
+
close_fds: bool = True,
|
|
485
|
+
shell: bool = False,
|
|
486
|
+
cwd: StrOrBytesPath | None = None,
|
|
487
|
+
env: _ENV | None = None,
|
|
488
|
+
universal_newlines: bool | None = None,
|
|
489
|
+
startupinfo: Any = None,
|
|
490
|
+
creationflags: int = 0,
|
|
491
|
+
restore_signals: bool = True,
|
|
492
|
+
start_new_session: bool = False,
|
|
493
|
+
pass_fds: Collection[int] = ...,
|
|
494
|
+
*,
|
|
495
|
+
capture_output: bool = False,
|
|
496
|
+
check: bool = False,
|
|
497
|
+
encoding: str | None = None,
|
|
498
|
+
errors: str | None = None,
|
|
499
|
+
input: _InputString | None = None,
|
|
500
|
+
text: bool | None = None,
|
|
501
|
+
timeout: float | None = None,
|
|
502
|
+
user: str | int | None = None,
|
|
503
|
+
group: str | int | None = None,
|
|
504
|
+
extra_groups: Iterable[str | int] | None = None,
|
|
505
|
+
umask: int = -1,
|
|
506
|
+
pipesize: int = -1,
|
|
507
|
+
) -> CompletedProcess[Any]: ...
|
|
508
|
+
|
|
509
|
+
elif sys.version_info >= (3, 9):
|
|
510
|
+
# 3.9 adds arguments "user", "group", "extra_groups" and "umask"
|
|
511
|
+
@overload
|
|
512
|
+
def run(
|
|
513
|
+
args: _CMD,
|
|
514
|
+
bufsize: int = -1,
|
|
515
|
+
executable: StrOrBytesPath | None = None,
|
|
516
|
+
stdin: _FILE = None,
|
|
517
|
+
stdout: _FILE = None,
|
|
518
|
+
stderr: _FILE = None,
|
|
519
|
+
preexec_fn: Callable[[], Any] | None = None,
|
|
520
|
+
close_fds: bool = True,
|
|
521
|
+
shell: bool = False,
|
|
522
|
+
cwd: StrOrBytesPath | None = None,
|
|
523
|
+
env: _ENV | None = None,
|
|
524
|
+
universal_newlines: bool | None = None,
|
|
525
|
+
startupinfo: Any = None,
|
|
526
|
+
creationflags: int = 0,
|
|
527
|
+
restore_signals: bool = True,
|
|
528
|
+
start_new_session: bool = False,
|
|
529
|
+
pass_fds: Collection[int] = ...,
|
|
530
|
+
*,
|
|
531
|
+
capture_output: bool = False,
|
|
532
|
+
check: bool = False,
|
|
533
|
+
encoding: str | None = None,
|
|
534
|
+
errors: str | None = None,
|
|
535
|
+
input: str | None = None,
|
|
536
|
+
text: Literal[True],
|
|
537
|
+
timeout: float | None = None,
|
|
538
|
+
user: str | int | None = None,
|
|
539
|
+
group: str | int | None = None,
|
|
540
|
+
extra_groups: Iterable[str | int] | None = None,
|
|
541
|
+
umask: int = -1,
|
|
542
|
+
) -> CompletedProcess[str]: ...
|
|
543
|
+
@overload
|
|
544
|
+
def run(
|
|
545
|
+
args: _CMD,
|
|
546
|
+
bufsize: int = -1,
|
|
547
|
+
executable: StrOrBytesPath | None = None,
|
|
548
|
+
stdin: _FILE = None,
|
|
549
|
+
stdout: _FILE = None,
|
|
550
|
+
stderr: _FILE = None,
|
|
551
|
+
preexec_fn: Callable[[], Any] | None = None,
|
|
552
|
+
close_fds: bool = True,
|
|
553
|
+
shell: bool = False,
|
|
554
|
+
cwd: StrOrBytesPath | None = None,
|
|
555
|
+
env: _ENV | None = None,
|
|
556
|
+
universal_newlines: bool | None = None,
|
|
557
|
+
startupinfo: Any = None,
|
|
558
|
+
creationflags: int = 0,
|
|
559
|
+
restore_signals: bool = True,
|
|
560
|
+
start_new_session: bool = False,
|
|
561
|
+
pass_fds: Collection[int] = ...,
|
|
562
|
+
*,
|
|
563
|
+
capture_output: bool = False,
|
|
564
|
+
check: bool = False,
|
|
565
|
+
encoding: str,
|
|
566
|
+
errors: str | None = None,
|
|
567
|
+
input: str | None = None,
|
|
568
|
+
text: bool | None = None,
|
|
569
|
+
timeout: float | None = None,
|
|
570
|
+
user: str | int | None = None,
|
|
571
|
+
group: str | int | None = None,
|
|
572
|
+
extra_groups: Iterable[str | int] | None = None,
|
|
573
|
+
umask: int = -1,
|
|
574
|
+
) -> CompletedProcess[str]: ...
|
|
575
|
+
@overload
|
|
576
|
+
def run(
|
|
577
|
+
args: _CMD,
|
|
578
|
+
bufsize: int = -1,
|
|
579
|
+
executable: StrOrBytesPath | None = None,
|
|
580
|
+
stdin: _FILE = None,
|
|
581
|
+
stdout: _FILE = None,
|
|
582
|
+
stderr: _FILE = None,
|
|
583
|
+
preexec_fn: Callable[[], Any] | None = None,
|
|
584
|
+
close_fds: bool = True,
|
|
585
|
+
shell: bool = False,
|
|
586
|
+
cwd: StrOrBytesPath | None = None,
|
|
587
|
+
env: _ENV | None = None,
|
|
588
|
+
universal_newlines: bool | None = None,
|
|
589
|
+
startupinfo: Any = None,
|
|
590
|
+
creationflags: int = 0,
|
|
591
|
+
restore_signals: bool = True,
|
|
592
|
+
start_new_session: bool = False,
|
|
593
|
+
pass_fds: Collection[int] = ...,
|
|
594
|
+
*,
|
|
595
|
+
capture_output: bool = False,
|
|
596
|
+
check: bool = False,
|
|
597
|
+
encoding: str | None = None,
|
|
598
|
+
errors: str,
|
|
599
|
+
input: str | None = None,
|
|
600
|
+
text: bool | None = None,
|
|
601
|
+
timeout: float | None = None,
|
|
602
|
+
user: str | int | None = None,
|
|
603
|
+
group: str | int | None = None,
|
|
604
|
+
extra_groups: Iterable[str | int] | None = None,
|
|
605
|
+
umask: int = -1,
|
|
606
|
+
) -> CompletedProcess[str]: ...
|
|
607
|
+
@overload
|
|
608
|
+
def run(
|
|
609
|
+
args: _CMD,
|
|
610
|
+
bufsize: int = -1,
|
|
611
|
+
executable: StrOrBytesPath | None = None,
|
|
612
|
+
stdin: _FILE = None,
|
|
613
|
+
stdout: _FILE = None,
|
|
614
|
+
stderr: _FILE = None,
|
|
615
|
+
preexec_fn: Callable[[], Any] | None = None,
|
|
616
|
+
close_fds: bool = True,
|
|
617
|
+
shell: bool = False,
|
|
618
|
+
cwd: StrOrBytesPath | None = None,
|
|
619
|
+
env: _ENV | None = None,
|
|
620
|
+
*,
|
|
621
|
+
universal_newlines: Literal[True],
|
|
622
|
+
startupinfo: Any = None,
|
|
623
|
+
creationflags: int = 0,
|
|
624
|
+
restore_signals: bool = True,
|
|
625
|
+
start_new_session: bool = False,
|
|
626
|
+
pass_fds: Collection[int] = ...,
|
|
627
|
+
# where the *real* keyword only args start
|
|
628
|
+
capture_output: bool = False,
|
|
629
|
+
check: bool = False,
|
|
630
|
+
encoding: str | None = None,
|
|
631
|
+
errors: str | None = None,
|
|
632
|
+
input: str | None = None,
|
|
633
|
+
text: bool | None = None,
|
|
634
|
+
timeout: float | None = None,
|
|
635
|
+
user: str | int | None = None,
|
|
636
|
+
group: str | int | None = None,
|
|
637
|
+
extra_groups: Iterable[str | int] | None = None,
|
|
638
|
+
umask: int = -1,
|
|
639
|
+
) -> CompletedProcess[str]: ...
|
|
640
|
+
@overload
|
|
641
|
+
def run(
|
|
642
|
+
args: _CMD,
|
|
643
|
+
bufsize: int = -1,
|
|
644
|
+
executable: StrOrBytesPath | None = None,
|
|
645
|
+
stdin: _FILE = None,
|
|
646
|
+
stdout: _FILE = None,
|
|
647
|
+
stderr: _FILE = None,
|
|
648
|
+
preexec_fn: Callable[[], Any] | None = None,
|
|
649
|
+
close_fds: bool = True,
|
|
650
|
+
shell: bool = False,
|
|
651
|
+
cwd: StrOrBytesPath | None = None,
|
|
652
|
+
env: _ENV | None = None,
|
|
653
|
+
universal_newlines: Literal[False] | None = None,
|
|
654
|
+
startupinfo: Any = None,
|
|
655
|
+
creationflags: int = 0,
|
|
656
|
+
restore_signals: bool = True,
|
|
657
|
+
start_new_session: bool = False,
|
|
658
|
+
pass_fds: Collection[int] = ...,
|
|
659
|
+
*,
|
|
660
|
+
capture_output: bool = False,
|
|
661
|
+
check: bool = False,
|
|
662
|
+
encoding: None = None,
|
|
663
|
+
errors: None = None,
|
|
664
|
+
input: ReadableBuffer | None = None,
|
|
665
|
+
text: Literal[False] | None = None,
|
|
666
|
+
timeout: float | None = None,
|
|
667
|
+
user: str | int | None = None,
|
|
668
|
+
group: str | int | None = None,
|
|
669
|
+
extra_groups: Iterable[str | int] | None = None,
|
|
670
|
+
umask: int = -1,
|
|
671
|
+
) -> CompletedProcess[bytes]: ...
|
|
672
|
+
@overload
|
|
673
|
+
def run(
|
|
674
|
+
args: _CMD,
|
|
675
|
+
bufsize: int = -1,
|
|
676
|
+
executable: StrOrBytesPath | None = None,
|
|
677
|
+
stdin: _FILE = None,
|
|
678
|
+
stdout: _FILE = None,
|
|
679
|
+
stderr: _FILE = None,
|
|
680
|
+
preexec_fn: Callable[[], Any] | None = None,
|
|
681
|
+
close_fds: bool = True,
|
|
682
|
+
shell: bool = False,
|
|
683
|
+
cwd: StrOrBytesPath | None = None,
|
|
684
|
+
env: _ENV | None = None,
|
|
685
|
+
universal_newlines: bool | None = None,
|
|
686
|
+
startupinfo: Any = None,
|
|
687
|
+
creationflags: int = 0,
|
|
688
|
+
restore_signals: bool = True,
|
|
689
|
+
start_new_session: bool = False,
|
|
690
|
+
pass_fds: Collection[int] = ...,
|
|
691
|
+
*,
|
|
692
|
+
capture_output: bool = False,
|
|
693
|
+
check: bool = False,
|
|
694
|
+
encoding: str | None = None,
|
|
695
|
+
errors: str | None = None,
|
|
696
|
+
input: _InputString | None = None,
|
|
697
|
+
text: bool | None = None,
|
|
698
|
+
timeout: float | None = None,
|
|
699
|
+
user: str | int | None = None,
|
|
700
|
+
group: str | int | None = None,
|
|
701
|
+
extra_groups: Iterable[str | int] | None = None,
|
|
702
|
+
umask: int = -1,
|
|
703
|
+
) -> CompletedProcess[Any]: ...
|
|
704
|
+
|
|
705
|
+
else:
|
|
706
|
+
@overload
|
|
707
|
+
def run(
|
|
708
|
+
args: _CMD,
|
|
709
|
+
bufsize: int = -1,
|
|
710
|
+
executable: StrOrBytesPath | None = None,
|
|
711
|
+
stdin: _FILE = None,
|
|
712
|
+
stdout: _FILE = None,
|
|
713
|
+
stderr: _FILE = None,
|
|
714
|
+
preexec_fn: Callable[[], Any] | None = None,
|
|
715
|
+
close_fds: bool = True,
|
|
716
|
+
shell: bool = False,
|
|
717
|
+
cwd: StrOrBytesPath | None = None,
|
|
718
|
+
env: _ENV | None = None,
|
|
719
|
+
universal_newlines: bool | None = None,
|
|
720
|
+
startupinfo: Any = None,
|
|
721
|
+
creationflags: int = 0,
|
|
722
|
+
restore_signals: bool = True,
|
|
723
|
+
start_new_session: bool = False,
|
|
724
|
+
pass_fds: Collection[int] = ...,
|
|
725
|
+
*,
|
|
726
|
+
capture_output: bool = False,
|
|
727
|
+
check: bool = False,
|
|
728
|
+
encoding: str | None = None,
|
|
729
|
+
errors: str | None = None,
|
|
730
|
+
input: str | None = None,
|
|
731
|
+
text: Literal[True],
|
|
732
|
+
timeout: float | None = None,
|
|
733
|
+
) -> CompletedProcess[str]: ...
|
|
734
|
+
@overload
|
|
735
|
+
def run(
|
|
736
|
+
args: _CMD,
|
|
737
|
+
bufsize: int = -1,
|
|
738
|
+
executable: StrOrBytesPath | None = None,
|
|
739
|
+
stdin: _FILE = None,
|
|
740
|
+
stdout: _FILE = None,
|
|
741
|
+
stderr: _FILE = None,
|
|
742
|
+
preexec_fn: Callable[[], Any] | None = None,
|
|
743
|
+
close_fds: bool = True,
|
|
744
|
+
shell: bool = False,
|
|
745
|
+
cwd: StrOrBytesPath | None = None,
|
|
746
|
+
env: _ENV | None = None,
|
|
747
|
+
universal_newlines: bool | None = None,
|
|
748
|
+
startupinfo: Any = None,
|
|
749
|
+
creationflags: int = 0,
|
|
750
|
+
restore_signals: bool = True,
|
|
751
|
+
start_new_session: bool = False,
|
|
752
|
+
pass_fds: Collection[int] = ...,
|
|
753
|
+
*,
|
|
754
|
+
capture_output: bool = False,
|
|
755
|
+
check: bool = False,
|
|
756
|
+
encoding: str,
|
|
757
|
+
errors: str | None = None,
|
|
758
|
+
input: str | None = None,
|
|
759
|
+
text: bool | None = None,
|
|
760
|
+
timeout: float | None = None,
|
|
761
|
+
) -> CompletedProcess[str]: ...
|
|
762
|
+
@overload
|
|
763
|
+
def run(
|
|
764
|
+
args: _CMD,
|
|
765
|
+
bufsize: int = -1,
|
|
766
|
+
executable: StrOrBytesPath | None = None,
|
|
767
|
+
stdin: _FILE = None,
|
|
768
|
+
stdout: _FILE = None,
|
|
769
|
+
stderr: _FILE = None,
|
|
770
|
+
preexec_fn: Callable[[], Any] | None = None,
|
|
771
|
+
close_fds: bool = True,
|
|
772
|
+
shell: bool = False,
|
|
773
|
+
cwd: StrOrBytesPath | None = None,
|
|
774
|
+
env: _ENV | None = None,
|
|
775
|
+
universal_newlines: bool | None = None,
|
|
776
|
+
startupinfo: Any = None,
|
|
777
|
+
creationflags: int = 0,
|
|
778
|
+
restore_signals: bool = True,
|
|
779
|
+
start_new_session: bool = False,
|
|
780
|
+
pass_fds: Collection[int] = ...,
|
|
781
|
+
*,
|
|
782
|
+
capture_output: bool = False,
|
|
783
|
+
check: bool = False,
|
|
784
|
+
encoding: str | None = None,
|
|
785
|
+
errors: str,
|
|
786
|
+
input: str | None = None,
|
|
787
|
+
text: bool | None = None,
|
|
788
|
+
timeout: float | None = None,
|
|
789
|
+
) -> CompletedProcess[str]: ...
|
|
790
|
+
@overload
|
|
791
|
+
def run(
|
|
792
|
+
args: _CMD,
|
|
793
|
+
bufsize: int = -1,
|
|
794
|
+
executable: StrOrBytesPath | None = None,
|
|
795
|
+
stdin: _FILE = None,
|
|
796
|
+
stdout: _FILE = None,
|
|
797
|
+
stderr: _FILE = None,
|
|
798
|
+
preexec_fn: Callable[[], Any] | None = None,
|
|
799
|
+
close_fds: bool = True,
|
|
800
|
+
shell: bool = False,
|
|
801
|
+
cwd: StrOrBytesPath | None = None,
|
|
802
|
+
env: _ENV | None = None,
|
|
803
|
+
*,
|
|
804
|
+
universal_newlines: Literal[True],
|
|
805
|
+
startupinfo: Any = None,
|
|
806
|
+
creationflags: int = 0,
|
|
807
|
+
restore_signals: bool = True,
|
|
808
|
+
start_new_session: bool = False,
|
|
809
|
+
pass_fds: Collection[int] = ...,
|
|
810
|
+
# where the *real* keyword only args start
|
|
811
|
+
capture_output: bool = False,
|
|
812
|
+
check: bool = False,
|
|
813
|
+
encoding: str | None = None,
|
|
814
|
+
errors: str | None = None,
|
|
815
|
+
input: str | None = None,
|
|
816
|
+
text: bool | None = None,
|
|
817
|
+
timeout: float | None = None,
|
|
818
|
+
) -> CompletedProcess[str]: ...
|
|
819
|
+
@overload
|
|
820
|
+
def run(
|
|
821
|
+
args: _CMD,
|
|
822
|
+
bufsize: int = -1,
|
|
823
|
+
executable: StrOrBytesPath | None = None,
|
|
824
|
+
stdin: _FILE = None,
|
|
825
|
+
stdout: _FILE = None,
|
|
826
|
+
stderr: _FILE = None,
|
|
827
|
+
preexec_fn: Callable[[], Any] | None = None,
|
|
828
|
+
close_fds: bool = True,
|
|
829
|
+
shell: bool = False,
|
|
830
|
+
cwd: StrOrBytesPath | None = None,
|
|
831
|
+
env: _ENV | None = None,
|
|
832
|
+
universal_newlines: Literal[False] | None = None,
|
|
833
|
+
startupinfo: Any = None,
|
|
834
|
+
creationflags: int = 0,
|
|
835
|
+
restore_signals: bool = True,
|
|
836
|
+
start_new_session: bool = False,
|
|
837
|
+
pass_fds: Collection[int] = ...,
|
|
838
|
+
*,
|
|
839
|
+
capture_output: bool = False,
|
|
840
|
+
check: bool = False,
|
|
841
|
+
encoding: None = None,
|
|
842
|
+
errors: None = None,
|
|
843
|
+
input: ReadableBuffer | None = None,
|
|
844
|
+
text: Literal[False] | None = None,
|
|
845
|
+
timeout: float | None = None,
|
|
846
|
+
) -> CompletedProcess[bytes]: ...
|
|
847
|
+
@overload
|
|
848
|
+
def run(
|
|
849
|
+
args: _CMD,
|
|
850
|
+
bufsize: int = -1,
|
|
851
|
+
executable: StrOrBytesPath | None = None,
|
|
852
|
+
stdin: _FILE = None,
|
|
853
|
+
stdout: _FILE = None,
|
|
854
|
+
stderr: _FILE = None,
|
|
855
|
+
preexec_fn: Callable[[], Any] | None = None,
|
|
856
|
+
close_fds: bool = True,
|
|
857
|
+
shell: bool = False,
|
|
858
|
+
cwd: StrOrBytesPath | None = None,
|
|
859
|
+
env: _ENV | None = None,
|
|
860
|
+
universal_newlines: bool | None = None,
|
|
861
|
+
startupinfo: Any = None,
|
|
862
|
+
creationflags: int = 0,
|
|
863
|
+
restore_signals: bool = True,
|
|
864
|
+
start_new_session: bool = False,
|
|
865
|
+
pass_fds: Collection[int] = ...,
|
|
866
|
+
*,
|
|
867
|
+
capture_output: bool = False,
|
|
868
|
+
check: bool = False,
|
|
869
|
+
encoding: str | None = None,
|
|
870
|
+
errors: str | None = None,
|
|
871
|
+
input: _InputString | None = None,
|
|
872
|
+
text: bool | None = None,
|
|
873
|
+
timeout: float | None = None,
|
|
874
|
+
) -> CompletedProcess[Any]: ...
|
|
875
|
+
|
|
876
|
+
# Same args as Popen.__init__
|
|
877
|
+
if sys.version_info >= (3, 11):
|
|
878
|
+
# 3.11 adds "process_group" argument
|
|
879
|
+
def call(
|
|
880
|
+
args: _CMD,
|
|
881
|
+
bufsize: int = -1,
|
|
882
|
+
executable: StrOrBytesPath | None = None,
|
|
883
|
+
stdin: _FILE = None,
|
|
884
|
+
stdout: _FILE = None,
|
|
885
|
+
stderr: _FILE = None,
|
|
886
|
+
preexec_fn: Callable[[], Any] | None = None,
|
|
887
|
+
close_fds: bool = True,
|
|
888
|
+
shell: bool = False,
|
|
889
|
+
cwd: StrOrBytesPath | None = None,
|
|
890
|
+
env: _ENV | None = None,
|
|
891
|
+
universal_newlines: bool | None = None,
|
|
892
|
+
startupinfo: Any = None,
|
|
893
|
+
creationflags: int = 0,
|
|
894
|
+
restore_signals: bool = True,
|
|
895
|
+
start_new_session: bool = False,
|
|
896
|
+
pass_fds: Collection[int] = ...,
|
|
897
|
+
*,
|
|
898
|
+
encoding: str | None = None,
|
|
899
|
+
timeout: float | None = None,
|
|
900
|
+
text: bool | None = None,
|
|
901
|
+
user: str | int | None = None,
|
|
902
|
+
group: str | int | None = None,
|
|
903
|
+
extra_groups: Iterable[str | int] | None = None,
|
|
904
|
+
umask: int = -1,
|
|
905
|
+
pipesize: int = -1,
|
|
906
|
+
process_group: int | None = None,
|
|
907
|
+
) -> int: ...
|
|
908
|
+
|
|
909
|
+
elif sys.version_info >= (3, 10):
|
|
910
|
+
# 3.10 adds "pipesize" argument
|
|
911
|
+
def call(
|
|
912
|
+
args: _CMD,
|
|
913
|
+
bufsize: int = -1,
|
|
914
|
+
executable: StrOrBytesPath | None = None,
|
|
915
|
+
stdin: _FILE = None,
|
|
916
|
+
stdout: _FILE = None,
|
|
917
|
+
stderr: _FILE = None,
|
|
918
|
+
preexec_fn: Callable[[], Any] | None = None,
|
|
919
|
+
close_fds: bool = True,
|
|
920
|
+
shell: bool = False,
|
|
921
|
+
cwd: StrOrBytesPath | None = None,
|
|
922
|
+
env: _ENV | None = None,
|
|
923
|
+
universal_newlines: bool | None = None,
|
|
924
|
+
startupinfo: Any = None,
|
|
925
|
+
creationflags: int = 0,
|
|
926
|
+
restore_signals: bool = True,
|
|
927
|
+
start_new_session: bool = False,
|
|
928
|
+
pass_fds: Collection[int] = ...,
|
|
929
|
+
*,
|
|
930
|
+
encoding: str | None = None,
|
|
931
|
+
timeout: float | None = None,
|
|
932
|
+
text: bool | None = None,
|
|
933
|
+
user: str | int | None = None,
|
|
934
|
+
group: str | int | None = None,
|
|
935
|
+
extra_groups: Iterable[str | int] | None = None,
|
|
936
|
+
umask: int = -1,
|
|
937
|
+
pipesize: int = -1,
|
|
938
|
+
) -> int: ...
|
|
939
|
+
|
|
940
|
+
elif sys.version_info >= (3, 9):
|
|
941
|
+
# 3.9 adds arguments "user", "group", "extra_groups" and "umask"
|
|
942
|
+
def call(
|
|
943
|
+
args: _CMD,
|
|
944
|
+
bufsize: int = -1,
|
|
945
|
+
executable: StrOrBytesPath | None = None,
|
|
946
|
+
stdin: _FILE = None,
|
|
947
|
+
stdout: _FILE = None,
|
|
948
|
+
stderr: _FILE = None,
|
|
949
|
+
preexec_fn: Callable[[], Any] | None = None,
|
|
950
|
+
close_fds: bool = True,
|
|
951
|
+
shell: bool = False,
|
|
952
|
+
cwd: StrOrBytesPath | None = None,
|
|
953
|
+
env: _ENV | None = None,
|
|
954
|
+
universal_newlines: bool | None = None,
|
|
955
|
+
startupinfo: Any = None,
|
|
956
|
+
creationflags: int = 0,
|
|
957
|
+
restore_signals: bool = True,
|
|
958
|
+
start_new_session: bool = False,
|
|
959
|
+
pass_fds: Collection[int] = ...,
|
|
960
|
+
*,
|
|
961
|
+
encoding: str | None = None,
|
|
962
|
+
timeout: float | None = None,
|
|
963
|
+
text: bool | None = None,
|
|
964
|
+
user: str | int | None = None,
|
|
965
|
+
group: str | int | None = None,
|
|
966
|
+
extra_groups: Iterable[str | int] | None = None,
|
|
967
|
+
umask: int = -1,
|
|
968
|
+
) -> int: ...
|
|
969
|
+
|
|
970
|
+
else:
|
|
971
|
+
def call(
|
|
972
|
+
args: _CMD,
|
|
973
|
+
bufsize: int = -1,
|
|
974
|
+
executable: StrOrBytesPath | None = None,
|
|
975
|
+
stdin: _FILE = None,
|
|
976
|
+
stdout: _FILE = None,
|
|
977
|
+
stderr: _FILE = None,
|
|
978
|
+
preexec_fn: Callable[[], Any] | None = None,
|
|
979
|
+
close_fds: bool = True,
|
|
980
|
+
shell: bool = False,
|
|
981
|
+
cwd: StrOrBytesPath | None = None,
|
|
982
|
+
env: _ENV | None = None,
|
|
983
|
+
universal_newlines: bool | None = None,
|
|
984
|
+
startupinfo: Any = None,
|
|
985
|
+
creationflags: int = 0,
|
|
986
|
+
restore_signals: bool = True,
|
|
987
|
+
start_new_session: bool = False,
|
|
988
|
+
pass_fds: Collection[int] = ...,
|
|
989
|
+
*,
|
|
990
|
+
encoding: str | None = None,
|
|
991
|
+
timeout: float | None = None,
|
|
992
|
+
text: bool | None = None,
|
|
993
|
+
) -> int: ...
|
|
994
|
+
|
|
995
|
+
# Same args as Popen.__init__
|
|
996
|
+
if sys.version_info >= (3, 11):
|
|
997
|
+
# 3.11 adds "process_group" argument
|
|
998
|
+
def check_call(
|
|
999
|
+
args: _CMD,
|
|
1000
|
+
bufsize: int = -1,
|
|
1001
|
+
executable: StrOrBytesPath | None = None,
|
|
1002
|
+
stdin: _FILE = None,
|
|
1003
|
+
stdout: _FILE = None,
|
|
1004
|
+
stderr: _FILE = None,
|
|
1005
|
+
preexec_fn: Callable[[], Any] | None = None,
|
|
1006
|
+
close_fds: bool = True,
|
|
1007
|
+
shell: bool = False,
|
|
1008
|
+
cwd: StrOrBytesPath | None = None,
|
|
1009
|
+
env: _ENV | None = None,
|
|
1010
|
+
universal_newlines: bool | None = None,
|
|
1011
|
+
startupinfo: Any = None,
|
|
1012
|
+
creationflags: int = 0,
|
|
1013
|
+
restore_signals: bool = True,
|
|
1014
|
+
start_new_session: bool = False,
|
|
1015
|
+
pass_fds: Collection[int] = ...,
|
|
1016
|
+
timeout: float | None = ...,
|
|
1017
|
+
*,
|
|
1018
|
+
encoding: str | None = None,
|
|
1019
|
+
text: bool | None = None,
|
|
1020
|
+
user: str | int | None = None,
|
|
1021
|
+
group: str | int | None = None,
|
|
1022
|
+
extra_groups: Iterable[str | int] | None = None,
|
|
1023
|
+
umask: int = -1,
|
|
1024
|
+
pipesize: int = -1,
|
|
1025
|
+
process_group: int | None = None,
|
|
1026
|
+
) -> int: ...
|
|
1027
|
+
|
|
1028
|
+
elif sys.version_info >= (3, 10):
|
|
1029
|
+
# 3.10 adds "pipesize" argument
|
|
1030
|
+
def check_call(
|
|
1031
|
+
args: _CMD,
|
|
1032
|
+
bufsize: int = -1,
|
|
1033
|
+
executable: StrOrBytesPath | None = None,
|
|
1034
|
+
stdin: _FILE = None,
|
|
1035
|
+
stdout: _FILE = None,
|
|
1036
|
+
stderr: _FILE = None,
|
|
1037
|
+
preexec_fn: Callable[[], Any] | None = None,
|
|
1038
|
+
close_fds: bool = True,
|
|
1039
|
+
shell: bool = False,
|
|
1040
|
+
cwd: StrOrBytesPath | None = None,
|
|
1041
|
+
env: _ENV | None = None,
|
|
1042
|
+
universal_newlines: bool | None = None,
|
|
1043
|
+
startupinfo: Any = None,
|
|
1044
|
+
creationflags: int = 0,
|
|
1045
|
+
restore_signals: bool = True,
|
|
1046
|
+
start_new_session: bool = False,
|
|
1047
|
+
pass_fds: Collection[int] = ...,
|
|
1048
|
+
timeout: float | None = ...,
|
|
1049
|
+
*,
|
|
1050
|
+
encoding: str | None = None,
|
|
1051
|
+
text: bool | None = None,
|
|
1052
|
+
user: str | int | None = None,
|
|
1053
|
+
group: str | int | None = None,
|
|
1054
|
+
extra_groups: Iterable[str | int] | None = None,
|
|
1055
|
+
umask: int = -1,
|
|
1056
|
+
pipesize: int = -1,
|
|
1057
|
+
) -> int: ...
|
|
1058
|
+
|
|
1059
|
+
elif sys.version_info >= (3, 9):
|
|
1060
|
+
# 3.9 adds arguments "user", "group", "extra_groups" and "umask"
|
|
1061
|
+
def check_call(
|
|
1062
|
+
args: _CMD,
|
|
1063
|
+
bufsize: int = -1,
|
|
1064
|
+
executable: StrOrBytesPath | None = None,
|
|
1065
|
+
stdin: _FILE = None,
|
|
1066
|
+
stdout: _FILE = None,
|
|
1067
|
+
stderr: _FILE = None,
|
|
1068
|
+
preexec_fn: Callable[[], Any] | None = None,
|
|
1069
|
+
close_fds: bool = True,
|
|
1070
|
+
shell: bool = False,
|
|
1071
|
+
cwd: StrOrBytesPath | None = None,
|
|
1072
|
+
env: _ENV | None = None,
|
|
1073
|
+
universal_newlines: bool | None = None,
|
|
1074
|
+
startupinfo: Any = None,
|
|
1075
|
+
creationflags: int = 0,
|
|
1076
|
+
restore_signals: bool = True,
|
|
1077
|
+
start_new_session: bool = False,
|
|
1078
|
+
pass_fds: Collection[int] = ...,
|
|
1079
|
+
timeout: float | None = ...,
|
|
1080
|
+
*,
|
|
1081
|
+
encoding: str | None = None,
|
|
1082
|
+
text: bool | None = None,
|
|
1083
|
+
user: str | int | None = None,
|
|
1084
|
+
group: str | int | None = None,
|
|
1085
|
+
extra_groups: Iterable[str | int] | None = None,
|
|
1086
|
+
umask: int = -1,
|
|
1087
|
+
) -> int: ...
|
|
1088
|
+
|
|
1089
|
+
else:
|
|
1090
|
+
def check_call(
|
|
1091
|
+
args: _CMD,
|
|
1092
|
+
bufsize: int = -1,
|
|
1093
|
+
executable: StrOrBytesPath | None = None,
|
|
1094
|
+
stdin: _FILE = None,
|
|
1095
|
+
stdout: _FILE = None,
|
|
1096
|
+
stderr: _FILE = None,
|
|
1097
|
+
preexec_fn: Callable[[], Any] | None = None,
|
|
1098
|
+
close_fds: bool = True,
|
|
1099
|
+
shell: bool = False,
|
|
1100
|
+
cwd: StrOrBytesPath | None = None,
|
|
1101
|
+
env: _ENV | None = None,
|
|
1102
|
+
universal_newlines: bool | None = None,
|
|
1103
|
+
startupinfo: Any = None,
|
|
1104
|
+
creationflags: int = 0,
|
|
1105
|
+
restore_signals: bool = True,
|
|
1106
|
+
start_new_session: bool = False,
|
|
1107
|
+
pass_fds: Collection[int] = ...,
|
|
1108
|
+
timeout: float | None = ...,
|
|
1109
|
+
*,
|
|
1110
|
+
encoding: str | None = None,
|
|
1111
|
+
text: bool | None = None,
|
|
1112
|
+
) -> int: ...
|
|
1113
|
+
|
|
1114
|
+
if sys.version_info >= (3, 11):
|
|
1115
|
+
# 3.11 adds "process_group" argument
|
|
1116
|
+
@overload
|
|
1117
|
+
def check_output(
|
|
1118
|
+
args: _CMD,
|
|
1119
|
+
bufsize: int = -1,
|
|
1120
|
+
executable: StrOrBytesPath | None = None,
|
|
1121
|
+
stdin: _FILE = None,
|
|
1122
|
+
stderr: _FILE = None,
|
|
1123
|
+
preexec_fn: Callable[[], Any] | None = None,
|
|
1124
|
+
close_fds: bool = True,
|
|
1125
|
+
shell: bool = False,
|
|
1126
|
+
cwd: StrOrBytesPath | None = None,
|
|
1127
|
+
env: _ENV | None = None,
|
|
1128
|
+
universal_newlines: bool | None = None,
|
|
1129
|
+
startupinfo: Any = None,
|
|
1130
|
+
creationflags: int = 0,
|
|
1131
|
+
restore_signals: bool = True,
|
|
1132
|
+
start_new_session: bool = False,
|
|
1133
|
+
pass_fds: Collection[int] = ...,
|
|
1134
|
+
*,
|
|
1135
|
+
timeout: float | None = None,
|
|
1136
|
+
input: _InputString | None = ...,
|
|
1137
|
+
encoding: str | None = None,
|
|
1138
|
+
errors: str | None = None,
|
|
1139
|
+
text: Literal[True],
|
|
1140
|
+
user: str | int | None = None,
|
|
1141
|
+
group: str | int | None = None,
|
|
1142
|
+
extra_groups: Iterable[str | int] | None = None,
|
|
1143
|
+
umask: int = -1,
|
|
1144
|
+
pipesize: int = -1,
|
|
1145
|
+
process_group: int | None = None,
|
|
1146
|
+
) -> str: ...
|
|
1147
|
+
@overload
|
|
1148
|
+
def check_output(
|
|
1149
|
+
args: _CMD,
|
|
1150
|
+
bufsize: int = -1,
|
|
1151
|
+
executable: StrOrBytesPath | None = None,
|
|
1152
|
+
stdin: _FILE = None,
|
|
1153
|
+
stderr: _FILE = None,
|
|
1154
|
+
preexec_fn: Callable[[], Any] | None = None,
|
|
1155
|
+
close_fds: bool = True,
|
|
1156
|
+
shell: bool = False,
|
|
1157
|
+
cwd: StrOrBytesPath | None = None,
|
|
1158
|
+
env: _ENV | None = None,
|
|
1159
|
+
universal_newlines: bool | None = None,
|
|
1160
|
+
startupinfo: Any = None,
|
|
1161
|
+
creationflags: int = 0,
|
|
1162
|
+
restore_signals: bool = True,
|
|
1163
|
+
start_new_session: bool = False,
|
|
1164
|
+
pass_fds: Collection[int] = ...,
|
|
1165
|
+
*,
|
|
1166
|
+
timeout: float | None = None,
|
|
1167
|
+
input: _InputString | None = ...,
|
|
1168
|
+
encoding: str,
|
|
1169
|
+
errors: str | None = None,
|
|
1170
|
+
text: bool | None = None,
|
|
1171
|
+
user: str | int | None = None,
|
|
1172
|
+
group: str | int | None = None,
|
|
1173
|
+
extra_groups: Iterable[str | int] | None = None,
|
|
1174
|
+
umask: int = -1,
|
|
1175
|
+
pipesize: int = -1,
|
|
1176
|
+
process_group: int | None = None,
|
|
1177
|
+
) -> str: ...
|
|
1178
|
+
@overload
|
|
1179
|
+
def check_output(
|
|
1180
|
+
args: _CMD,
|
|
1181
|
+
bufsize: int = -1,
|
|
1182
|
+
executable: StrOrBytesPath | None = None,
|
|
1183
|
+
stdin: _FILE = None,
|
|
1184
|
+
stderr: _FILE = None,
|
|
1185
|
+
preexec_fn: Callable[[], Any] | None = None,
|
|
1186
|
+
close_fds: bool = True,
|
|
1187
|
+
shell: bool = False,
|
|
1188
|
+
cwd: StrOrBytesPath | None = None,
|
|
1189
|
+
env: _ENV | None = None,
|
|
1190
|
+
universal_newlines: bool | None = None,
|
|
1191
|
+
startupinfo: Any = None,
|
|
1192
|
+
creationflags: int = 0,
|
|
1193
|
+
restore_signals: bool = True,
|
|
1194
|
+
start_new_session: bool = False,
|
|
1195
|
+
pass_fds: Collection[int] = ...,
|
|
1196
|
+
*,
|
|
1197
|
+
timeout: float | None = None,
|
|
1198
|
+
input: _InputString | None = ...,
|
|
1199
|
+
encoding: str | None = None,
|
|
1200
|
+
errors: str,
|
|
1201
|
+
text: bool | None = None,
|
|
1202
|
+
user: str | int | None = None,
|
|
1203
|
+
group: str | int | None = None,
|
|
1204
|
+
extra_groups: Iterable[str | int] | None = None,
|
|
1205
|
+
umask: int = -1,
|
|
1206
|
+
pipesize: int = -1,
|
|
1207
|
+
process_group: int | None = None,
|
|
1208
|
+
) -> str: ...
|
|
1209
|
+
@overload
|
|
1210
|
+
def check_output(
|
|
1211
|
+
args: _CMD,
|
|
1212
|
+
bufsize: int = -1,
|
|
1213
|
+
executable: StrOrBytesPath | None = None,
|
|
1214
|
+
stdin: _FILE = None,
|
|
1215
|
+
stderr: _FILE = None,
|
|
1216
|
+
preexec_fn: Callable[[], Any] | None = None,
|
|
1217
|
+
close_fds: bool = True,
|
|
1218
|
+
shell: bool = False,
|
|
1219
|
+
cwd: StrOrBytesPath | None = None,
|
|
1220
|
+
env: _ENV | None = None,
|
|
1221
|
+
*,
|
|
1222
|
+
universal_newlines: Literal[True],
|
|
1223
|
+
startupinfo: Any = None,
|
|
1224
|
+
creationflags: int = 0,
|
|
1225
|
+
restore_signals: bool = True,
|
|
1226
|
+
start_new_session: bool = False,
|
|
1227
|
+
pass_fds: Collection[int] = ...,
|
|
1228
|
+
# where the real keyword only ones start
|
|
1229
|
+
timeout: float | None = None,
|
|
1230
|
+
input: _InputString | None = ...,
|
|
1231
|
+
encoding: str | None = None,
|
|
1232
|
+
errors: str | None = None,
|
|
1233
|
+
text: bool | None = None,
|
|
1234
|
+
user: str | int | None = None,
|
|
1235
|
+
group: str | int | None = None,
|
|
1236
|
+
extra_groups: Iterable[str | int] | None = None,
|
|
1237
|
+
umask: int = -1,
|
|
1238
|
+
pipesize: int = -1,
|
|
1239
|
+
process_group: int | None = None,
|
|
1240
|
+
) -> str: ...
|
|
1241
|
+
@overload
|
|
1242
|
+
def check_output(
|
|
1243
|
+
args: _CMD,
|
|
1244
|
+
bufsize: int = -1,
|
|
1245
|
+
executable: StrOrBytesPath | None = None,
|
|
1246
|
+
stdin: _FILE = None,
|
|
1247
|
+
stderr: _FILE = None,
|
|
1248
|
+
preexec_fn: Callable[[], Any] | None = None,
|
|
1249
|
+
close_fds: bool = True,
|
|
1250
|
+
shell: bool = False,
|
|
1251
|
+
cwd: StrOrBytesPath | None = None,
|
|
1252
|
+
env: _ENV | None = None,
|
|
1253
|
+
universal_newlines: Literal[False] | None = None,
|
|
1254
|
+
startupinfo: Any = None,
|
|
1255
|
+
creationflags: int = 0,
|
|
1256
|
+
restore_signals: bool = True,
|
|
1257
|
+
start_new_session: bool = False,
|
|
1258
|
+
pass_fds: Collection[int] = ...,
|
|
1259
|
+
*,
|
|
1260
|
+
timeout: float | None = None,
|
|
1261
|
+
input: _InputString | None = ...,
|
|
1262
|
+
encoding: None = None,
|
|
1263
|
+
errors: None = None,
|
|
1264
|
+
text: Literal[False] | None = None,
|
|
1265
|
+
user: str | int | None = None,
|
|
1266
|
+
group: str | int | None = None,
|
|
1267
|
+
extra_groups: Iterable[str | int] | None = None,
|
|
1268
|
+
umask: int = -1,
|
|
1269
|
+
pipesize: int = -1,
|
|
1270
|
+
process_group: int | None = None,
|
|
1271
|
+
) -> bytes: ...
|
|
1272
|
+
@overload
|
|
1273
|
+
def check_output(
|
|
1274
|
+
args: _CMD,
|
|
1275
|
+
bufsize: int = -1,
|
|
1276
|
+
executable: StrOrBytesPath | None = None,
|
|
1277
|
+
stdin: _FILE = None,
|
|
1278
|
+
stderr: _FILE = None,
|
|
1279
|
+
preexec_fn: Callable[[], Any] | None = None,
|
|
1280
|
+
close_fds: bool = True,
|
|
1281
|
+
shell: bool = False,
|
|
1282
|
+
cwd: StrOrBytesPath | None = None,
|
|
1283
|
+
env: _ENV | None = None,
|
|
1284
|
+
universal_newlines: bool | None = None,
|
|
1285
|
+
startupinfo: Any = None,
|
|
1286
|
+
creationflags: int = 0,
|
|
1287
|
+
restore_signals: bool = True,
|
|
1288
|
+
start_new_session: bool = False,
|
|
1289
|
+
pass_fds: Collection[int] = ...,
|
|
1290
|
+
*,
|
|
1291
|
+
timeout: float | None = None,
|
|
1292
|
+
input: _InputString | None = ...,
|
|
1293
|
+
encoding: str | None = None,
|
|
1294
|
+
errors: str | None = None,
|
|
1295
|
+
text: bool | None = None,
|
|
1296
|
+
user: str | int | None = None,
|
|
1297
|
+
group: str | int | None = None,
|
|
1298
|
+
extra_groups: Iterable[str | int] | None = None,
|
|
1299
|
+
umask: int = -1,
|
|
1300
|
+
pipesize: int = -1,
|
|
1301
|
+
process_group: int | None = None,
|
|
1302
|
+
) -> Any: ... # morally: -> str | bytes
|
|
1303
|
+
|
|
1304
|
+
elif sys.version_info >= (3, 10):
|
|
1305
|
+
# 3.10 adds "pipesize" argument
|
|
1306
|
+
@overload
|
|
1307
|
+
def check_output(
|
|
1308
|
+
args: _CMD,
|
|
1309
|
+
bufsize: int = -1,
|
|
1310
|
+
executable: StrOrBytesPath | None = None,
|
|
1311
|
+
stdin: _FILE = None,
|
|
1312
|
+
stderr: _FILE = None,
|
|
1313
|
+
preexec_fn: Callable[[], Any] | None = None,
|
|
1314
|
+
close_fds: bool = True,
|
|
1315
|
+
shell: bool = False,
|
|
1316
|
+
cwd: StrOrBytesPath | None = None,
|
|
1317
|
+
env: _ENV | None = None,
|
|
1318
|
+
universal_newlines: bool | None = None,
|
|
1319
|
+
startupinfo: Any = None,
|
|
1320
|
+
creationflags: int = 0,
|
|
1321
|
+
restore_signals: bool = True,
|
|
1322
|
+
start_new_session: bool = False,
|
|
1323
|
+
pass_fds: Collection[int] = ...,
|
|
1324
|
+
*,
|
|
1325
|
+
timeout: float | None = None,
|
|
1326
|
+
input: _InputString | None = ...,
|
|
1327
|
+
encoding: str | None = None,
|
|
1328
|
+
errors: str | None = None,
|
|
1329
|
+
text: Literal[True],
|
|
1330
|
+
user: str | int | None = None,
|
|
1331
|
+
group: str | int | None = None,
|
|
1332
|
+
extra_groups: Iterable[str | int] | None = None,
|
|
1333
|
+
umask: int = -1,
|
|
1334
|
+
pipesize: int = -1,
|
|
1335
|
+
) -> str: ...
|
|
1336
|
+
@overload
|
|
1337
|
+
def check_output(
|
|
1338
|
+
args: _CMD,
|
|
1339
|
+
bufsize: int = -1,
|
|
1340
|
+
executable: StrOrBytesPath | None = None,
|
|
1341
|
+
stdin: _FILE = None,
|
|
1342
|
+
stderr: _FILE = None,
|
|
1343
|
+
preexec_fn: Callable[[], Any] | None = None,
|
|
1344
|
+
close_fds: bool = True,
|
|
1345
|
+
shell: bool = False,
|
|
1346
|
+
cwd: StrOrBytesPath | None = None,
|
|
1347
|
+
env: _ENV | None = None,
|
|
1348
|
+
universal_newlines: bool | None = None,
|
|
1349
|
+
startupinfo: Any = None,
|
|
1350
|
+
creationflags: int = 0,
|
|
1351
|
+
restore_signals: bool = True,
|
|
1352
|
+
start_new_session: bool = False,
|
|
1353
|
+
pass_fds: Collection[int] = ...,
|
|
1354
|
+
*,
|
|
1355
|
+
timeout: float | None = None,
|
|
1356
|
+
input: _InputString | None = ...,
|
|
1357
|
+
encoding: str,
|
|
1358
|
+
errors: str | None = None,
|
|
1359
|
+
text: bool | None = None,
|
|
1360
|
+
user: str | int | None = None,
|
|
1361
|
+
group: str | int | None = None,
|
|
1362
|
+
extra_groups: Iterable[str | int] | None = None,
|
|
1363
|
+
umask: int = -1,
|
|
1364
|
+
pipesize: int = -1,
|
|
1365
|
+
) -> str: ...
|
|
1366
|
+
@overload
|
|
1367
|
+
def check_output(
|
|
1368
|
+
args: _CMD,
|
|
1369
|
+
bufsize: int = -1,
|
|
1370
|
+
executable: StrOrBytesPath | None = None,
|
|
1371
|
+
stdin: _FILE = None,
|
|
1372
|
+
stderr: _FILE = None,
|
|
1373
|
+
preexec_fn: Callable[[], Any] | None = None,
|
|
1374
|
+
close_fds: bool = True,
|
|
1375
|
+
shell: bool = False,
|
|
1376
|
+
cwd: StrOrBytesPath | None = None,
|
|
1377
|
+
env: _ENV | None = None,
|
|
1378
|
+
universal_newlines: bool | None = None,
|
|
1379
|
+
startupinfo: Any = None,
|
|
1380
|
+
creationflags: int = 0,
|
|
1381
|
+
restore_signals: bool = True,
|
|
1382
|
+
start_new_session: bool = False,
|
|
1383
|
+
pass_fds: Collection[int] = ...,
|
|
1384
|
+
*,
|
|
1385
|
+
timeout: float | None = None,
|
|
1386
|
+
input: _InputString | None = ...,
|
|
1387
|
+
encoding: str | None = None,
|
|
1388
|
+
errors: str,
|
|
1389
|
+
text: bool | None = None,
|
|
1390
|
+
user: str | int | None = None,
|
|
1391
|
+
group: str | int | None = None,
|
|
1392
|
+
extra_groups: Iterable[str | int] | None = None,
|
|
1393
|
+
umask: int = -1,
|
|
1394
|
+
pipesize: int = -1,
|
|
1395
|
+
) -> str: ...
|
|
1396
|
+
@overload
|
|
1397
|
+
def check_output(
|
|
1398
|
+
args: _CMD,
|
|
1399
|
+
bufsize: int = -1,
|
|
1400
|
+
executable: StrOrBytesPath | None = None,
|
|
1401
|
+
stdin: _FILE = None,
|
|
1402
|
+
stderr: _FILE = None,
|
|
1403
|
+
preexec_fn: Callable[[], Any] | None = None,
|
|
1404
|
+
close_fds: bool = True,
|
|
1405
|
+
shell: bool = False,
|
|
1406
|
+
cwd: StrOrBytesPath | None = None,
|
|
1407
|
+
env: _ENV | None = None,
|
|
1408
|
+
*,
|
|
1409
|
+
universal_newlines: Literal[True],
|
|
1410
|
+
startupinfo: Any = None,
|
|
1411
|
+
creationflags: int = 0,
|
|
1412
|
+
restore_signals: bool = True,
|
|
1413
|
+
start_new_session: bool = False,
|
|
1414
|
+
pass_fds: Collection[int] = ...,
|
|
1415
|
+
# where the real keyword only ones start
|
|
1416
|
+
timeout: float | None = None,
|
|
1417
|
+
input: _InputString | None = ...,
|
|
1418
|
+
encoding: str | None = None,
|
|
1419
|
+
errors: str | None = None,
|
|
1420
|
+
text: bool | None = None,
|
|
1421
|
+
user: str | int | None = None,
|
|
1422
|
+
group: str | int | None = None,
|
|
1423
|
+
extra_groups: Iterable[str | int] | None = None,
|
|
1424
|
+
umask: int = -1,
|
|
1425
|
+
pipesize: int = -1,
|
|
1426
|
+
) -> str: ...
|
|
1427
|
+
@overload
|
|
1428
|
+
def check_output(
|
|
1429
|
+
args: _CMD,
|
|
1430
|
+
bufsize: int = -1,
|
|
1431
|
+
executable: StrOrBytesPath | None = None,
|
|
1432
|
+
stdin: _FILE = None,
|
|
1433
|
+
stderr: _FILE = None,
|
|
1434
|
+
preexec_fn: Callable[[], Any] | None = None,
|
|
1435
|
+
close_fds: bool = True,
|
|
1436
|
+
shell: bool = False,
|
|
1437
|
+
cwd: StrOrBytesPath | None = None,
|
|
1438
|
+
env: _ENV | None = None,
|
|
1439
|
+
universal_newlines: Literal[False] | None = None,
|
|
1440
|
+
startupinfo: Any = None,
|
|
1441
|
+
creationflags: int = 0,
|
|
1442
|
+
restore_signals: bool = True,
|
|
1443
|
+
start_new_session: bool = False,
|
|
1444
|
+
pass_fds: Collection[int] = ...,
|
|
1445
|
+
*,
|
|
1446
|
+
timeout: float | None = None,
|
|
1447
|
+
input: _InputString | None = ...,
|
|
1448
|
+
encoding: None = None,
|
|
1449
|
+
errors: None = None,
|
|
1450
|
+
text: Literal[False] | None = None,
|
|
1451
|
+
user: str | int | None = None,
|
|
1452
|
+
group: str | int | None = None,
|
|
1453
|
+
extra_groups: Iterable[str | int] | None = None,
|
|
1454
|
+
umask: int = -1,
|
|
1455
|
+
pipesize: int = -1,
|
|
1456
|
+
) -> bytes: ...
|
|
1457
|
+
@overload
|
|
1458
|
+
def check_output(
|
|
1459
|
+
args: _CMD,
|
|
1460
|
+
bufsize: int = -1,
|
|
1461
|
+
executable: StrOrBytesPath | None = None,
|
|
1462
|
+
stdin: _FILE = None,
|
|
1463
|
+
stderr: _FILE = None,
|
|
1464
|
+
preexec_fn: Callable[[], Any] | None = None,
|
|
1465
|
+
close_fds: bool = True,
|
|
1466
|
+
shell: bool = False,
|
|
1467
|
+
cwd: StrOrBytesPath | None = None,
|
|
1468
|
+
env: _ENV | None = None,
|
|
1469
|
+
universal_newlines: bool | None = None,
|
|
1470
|
+
startupinfo: Any = None,
|
|
1471
|
+
creationflags: int = 0,
|
|
1472
|
+
restore_signals: bool = True,
|
|
1473
|
+
start_new_session: bool = False,
|
|
1474
|
+
pass_fds: Collection[int] = ...,
|
|
1475
|
+
*,
|
|
1476
|
+
timeout: float | None = None,
|
|
1477
|
+
input: _InputString | None = ...,
|
|
1478
|
+
encoding: str | None = None,
|
|
1479
|
+
errors: str | None = None,
|
|
1480
|
+
text: bool | None = None,
|
|
1481
|
+
user: str | int | None = None,
|
|
1482
|
+
group: str | int | None = None,
|
|
1483
|
+
extra_groups: Iterable[str | int] | None = None,
|
|
1484
|
+
umask: int = -1,
|
|
1485
|
+
pipesize: int = -1,
|
|
1486
|
+
) -> Any: ... # morally: -> str | bytes
|
|
1487
|
+
|
|
1488
|
+
elif sys.version_info >= (3, 9):
|
|
1489
|
+
# 3.9 adds arguments "user", "group", "extra_groups" and "umask"
|
|
1490
|
+
@overload
|
|
1491
|
+
def check_output(
|
|
1492
|
+
args: _CMD,
|
|
1493
|
+
bufsize: int = -1,
|
|
1494
|
+
executable: StrOrBytesPath | None = None,
|
|
1495
|
+
stdin: _FILE = None,
|
|
1496
|
+
stderr: _FILE = None,
|
|
1497
|
+
preexec_fn: Callable[[], Any] | None = None,
|
|
1498
|
+
close_fds: bool = True,
|
|
1499
|
+
shell: bool = False,
|
|
1500
|
+
cwd: StrOrBytesPath | None = None,
|
|
1501
|
+
env: _ENV | None = None,
|
|
1502
|
+
universal_newlines: bool | None = None,
|
|
1503
|
+
startupinfo: Any = None,
|
|
1504
|
+
creationflags: int = 0,
|
|
1505
|
+
restore_signals: bool = True,
|
|
1506
|
+
start_new_session: bool = False,
|
|
1507
|
+
pass_fds: Collection[int] = ...,
|
|
1508
|
+
*,
|
|
1509
|
+
timeout: float | None = None,
|
|
1510
|
+
input: _InputString | None = ...,
|
|
1511
|
+
encoding: str | None = None,
|
|
1512
|
+
errors: str | None = None,
|
|
1513
|
+
text: Literal[True],
|
|
1514
|
+
user: str | int | None = None,
|
|
1515
|
+
group: str | int | None = None,
|
|
1516
|
+
extra_groups: Iterable[str | int] | None = None,
|
|
1517
|
+
umask: int = -1,
|
|
1518
|
+
) -> str: ...
|
|
1519
|
+
@overload
|
|
1520
|
+
def check_output(
|
|
1521
|
+
args: _CMD,
|
|
1522
|
+
bufsize: int = -1,
|
|
1523
|
+
executable: StrOrBytesPath | None = None,
|
|
1524
|
+
stdin: _FILE = None,
|
|
1525
|
+
stderr: _FILE = None,
|
|
1526
|
+
preexec_fn: Callable[[], Any] | None = None,
|
|
1527
|
+
close_fds: bool = True,
|
|
1528
|
+
shell: bool = False,
|
|
1529
|
+
cwd: StrOrBytesPath | None = None,
|
|
1530
|
+
env: _ENV | None = None,
|
|
1531
|
+
universal_newlines: bool | None = None,
|
|
1532
|
+
startupinfo: Any = None,
|
|
1533
|
+
creationflags: int = 0,
|
|
1534
|
+
restore_signals: bool = True,
|
|
1535
|
+
start_new_session: bool = False,
|
|
1536
|
+
pass_fds: Collection[int] = ...,
|
|
1537
|
+
*,
|
|
1538
|
+
timeout: float | None = None,
|
|
1539
|
+
input: _InputString | None = ...,
|
|
1540
|
+
encoding: str,
|
|
1541
|
+
errors: str | None = None,
|
|
1542
|
+
text: bool | None = None,
|
|
1543
|
+
user: str | int | None = None,
|
|
1544
|
+
group: str | int | None = None,
|
|
1545
|
+
extra_groups: Iterable[str | int] | None = None,
|
|
1546
|
+
umask: int = -1,
|
|
1547
|
+
) -> str: ...
|
|
1548
|
+
@overload
|
|
1549
|
+
def check_output(
|
|
1550
|
+
args: _CMD,
|
|
1551
|
+
bufsize: int = -1,
|
|
1552
|
+
executable: StrOrBytesPath | None = None,
|
|
1553
|
+
stdin: _FILE = None,
|
|
1554
|
+
stderr: _FILE = None,
|
|
1555
|
+
preexec_fn: Callable[[], Any] | None = None,
|
|
1556
|
+
close_fds: bool = True,
|
|
1557
|
+
shell: bool = False,
|
|
1558
|
+
cwd: StrOrBytesPath | None = None,
|
|
1559
|
+
env: _ENV | None = None,
|
|
1560
|
+
universal_newlines: bool | None = None,
|
|
1561
|
+
startupinfo: Any = None,
|
|
1562
|
+
creationflags: int = 0,
|
|
1563
|
+
restore_signals: bool = True,
|
|
1564
|
+
start_new_session: bool = False,
|
|
1565
|
+
pass_fds: Collection[int] = ...,
|
|
1566
|
+
*,
|
|
1567
|
+
timeout: float | None = None,
|
|
1568
|
+
input: _InputString | None = ...,
|
|
1569
|
+
encoding: str | None = None,
|
|
1570
|
+
errors: str,
|
|
1571
|
+
text: bool | None = None,
|
|
1572
|
+
user: str | int | None = None,
|
|
1573
|
+
group: str | int | None = None,
|
|
1574
|
+
extra_groups: Iterable[str | int] | None = None,
|
|
1575
|
+
umask: int = -1,
|
|
1576
|
+
) -> str: ...
|
|
1577
|
+
@overload
|
|
1578
|
+
def check_output(
|
|
1579
|
+
args: _CMD,
|
|
1580
|
+
bufsize: int = -1,
|
|
1581
|
+
executable: StrOrBytesPath | None = None,
|
|
1582
|
+
stdin: _FILE = None,
|
|
1583
|
+
stderr: _FILE = None,
|
|
1584
|
+
preexec_fn: Callable[[], Any] | None = None,
|
|
1585
|
+
close_fds: bool = True,
|
|
1586
|
+
shell: bool = False,
|
|
1587
|
+
cwd: StrOrBytesPath | None = None,
|
|
1588
|
+
env: _ENV | None = None,
|
|
1589
|
+
*,
|
|
1590
|
+
universal_newlines: Literal[True],
|
|
1591
|
+
startupinfo: Any = None,
|
|
1592
|
+
creationflags: int = 0,
|
|
1593
|
+
restore_signals: bool = True,
|
|
1594
|
+
start_new_session: bool = False,
|
|
1595
|
+
pass_fds: Collection[int] = ...,
|
|
1596
|
+
# where the real keyword only ones start
|
|
1597
|
+
timeout: float | None = None,
|
|
1598
|
+
input: _InputString | None = ...,
|
|
1599
|
+
encoding: str | None = None,
|
|
1600
|
+
errors: str | None = None,
|
|
1601
|
+
text: bool | None = None,
|
|
1602
|
+
user: str | int | None = None,
|
|
1603
|
+
group: str | int | None = None,
|
|
1604
|
+
extra_groups: Iterable[str | int] | None = None,
|
|
1605
|
+
umask: int = -1,
|
|
1606
|
+
) -> str: ...
|
|
1607
|
+
@overload
|
|
1608
|
+
def check_output(
|
|
1609
|
+
args: _CMD,
|
|
1610
|
+
bufsize: int = -1,
|
|
1611
|
+
executable: StrOrBytesPath | None = None,
|
|
1612
|
+
stdin: _FILE = None,
|
|
1613
|
+
stderr: _FILE = None,
|
|
1614
|
+
preexec_fn: Callable[[], Any] | None = None,
|
|
1615
|
+
close_fds: bool = True,
|
|
1616
|
+
shell: bool = False,
|
|
1617
|
+
cwd: StrOrBytesPath | None = None,
|
|
1618
|
+
env: _ENV | None = None,
|
|
1619
|
+
universal_newlines: Literal[False] | None = None,
|
|
1620
|
+
startupinfo: Any = None,
|
|
1621
|
+
creationflags: int = 0,
|
|
1622
|
+
restore_signals: bool = True,
|
|
1623
|
+
start_new_session: bool = False,
|
|
1624
|
+
pass_fds: Collection[int] = ...,
|
|
1625
|
+
*,
|
|
1626
|
+
timeout: float | None = None,
|
|
1627
|
+
input: _InputString | None = ...,
|
|
1628
|
+
encoding: None = None,
|
|
1629
|
+
errors: None = None,
|
|
1630
|
+
text: Literal[False] | None = None,
|
|
1631
|
+
user: str | int | None = None,
|
|
1632
|
+
group: str | int | None = None,
|
|
1633
|
+
extra_groups: Iterable[str | int] | None = None,
|
|
1634
|
+
umask: int = -1,
|
|
1635
|
+
) -> bytes: ...
|
|
1636
|
+
@overload
|
|
1637
|
+
def check_output(
|
|
1638
|
+
args: _CMD,
|
|
1639
|
+
bufsize: int = -1,
|
|
1640
|
+
executable: StrOrBytesPath | None = None,
|
|
1641
|
+
stdin: _FILE = None,
|
|
1642
|
+
stderr: _FILE = None,
|
|
1643
|
+
preexec_fn: Callable[[], Any] | None = None,
|
|
1644
|
+
close_fds: bool = True,
|
|
1645
|
+
shell: bool = False,
|
|
1646
|
+
cwd: StrOrBytesPath | None = None,
|
|
1647
|
+
env: _ENV | None = None,
|
|
1648
|
+
universal_newlines: bool | None = None,
|
|
1649
|
+
startupinfo: Any = None,
|
|
1650
|
+
creationflags: int = 0,
|
|
1651
|
+
restore_signals: bool = True,
|
|
1652
|
+
start_new_session: bool = False,
|
|
1653
|
+
pass_fds: Collection[int] = ...,
|
|
1654
|
+
*,
|
|
1655
|
+
timeout: float | None = None,
|
|
1656
|
+
input: _InputString | None = ...,
|
|
1657
|
+
encoding: str | None = None,
|
|
1658
|
+
errors: str | None = None,
|
|
1659
|
+
text: bool | None = None,
|
|
1660
|
+
user: str | int | None = None,
|
|
1661
|
+
group: str | int | None = None,
|
|
1662
|
+
extra_groups: Iterable[str | int] | None = None,
|
|
1663
|
+
umask: int = -1,
|
|
1664
|
+
) -> Any: ... # morally: -> str | bytes
|
|
1665
|
+
|
|
1666
|
+
else:
|
|
1667
|
+
@overload
|
|
1668
|
+
def check_output(
|
|
1669
|
+
args: _CMD,
|
|
1670
|
+
bufsize: int = -1,
|
|
1671
|
+
executable: StrOrBytesPath | None = None,
|
|
1672
|
+
stdin: _FILE = None,
|
|
1673
|
+
stderr: _FILE = None,
|
|
1674
|
+
preexec_fn: Callable[[], Any] | None = None,
|
|
1675
|
+
close_fds: bool = True,
|
|
1676
|
+
shell: bool = False,
|
|
1677
|
+
cwd: StrOrBytesPath | None = None,
|
|
1678
|
+
env: _ENV | None = None,
|
|
1679
|
+
universal_newlines: bool | None = None,
|
|
1680
|
+
startupinfo: Any = None,
|
|
1681
|
+
creationflags: int = 0,
|
|
1682
|
+
restore_signals: bool = True,
|
|
1683
|
+
start_new_session: bool = False,
|
|
1684
|
+
pass_fds: Collection[int] = ...,
|
|
1685
|
+
*,
|
|
1686
|
+
timeout: float | None = None,
|
|
1687
|
+
input: _InputString | None = ...,
|
|
1688
|
+
encoding: str | None = None,
|
|
1689
|
+
errors: str | None = None,
|
|
1690
|
+
text: Literal[True],
|
|
1691
|
+
) -> str: ...
|
|
1692
|
+
@overload
|
|
1693
|
+
def check_output(
|
|
1694
|
+
args: _CMD,
|
|
1695
|
+
bufsize: int = -1,
|
|
1696
|
+
executable: StrOrBytesPath | None = None,
|
|
1697
|
+
stdin: _FILE = None,
|
|
1698
|
+
stderr: _FILE = None,
|
|
1699
|
+
preexec_fn: Callable[[], Any] | None = None,
|
|
1700
|
+
close_fds: bool = True,
|
|
1701
|
+
shell: bool = False,
|
|
1702
|
+
cwd: StrOrBytesPath | None = None,
|
|
1703
|
+
env: _ENV | None = None,
|
|
1704
|
+
universal_newlines: bool | None = None,
|
|
1705
|
+
startupinfo: Any = None,
|
|
1706
|
+
creationflags: int = 0,
|
|
1707
|
+
restore_signals: bool = True,
|
|
1708
|
+
start_new_session: bool = False,
|
|
1709
|
+
pass_fds: Collection[int] = ...,
|
|
1710
|
+
*,
|
|
1711
|
+
timeout: float | None = None,
|
|
1712
|
+
input: _InputString | None = ...,
|
|
1713
|
+
encoding: str,
|
|
1714
|
+
errors: str | None = None,
|
|
1715
|
+
text: bool | None = None,
|
|
1716
|
+
) -> str: ...
|
|
1717
|
+
@overload
|
|
1718
|
+
def check_output(
|
|
1719
|
+
args: _CMD,
|
|
1720
|
+
bufsize: int = -1,
|
|
1721
|
+
executable: StrOrBytesPath | None = None,
|
|
1722
|
+
stdin: _FILE = None,
|
|
1723
|
+
stderr: _FILE = None,
|
|
1724
|
+
preexec_fn: Callable[[], Any] | None = None,
|
|
1725
|
+
close_fds: bool = True,
|
|
1726
|
+
shell: bool = False,
|
|
1727
|
+
cwd: StrOrBytesPath | None = None,
|
|
1728
|
+
env: _ENV | None = None,
|
|
1729
|
+
universal_newlines: bool | None = None,
|
|
1730
|
+
startupinfo: Any = None,
|
|
1731
|
+
creationflags: int = 0,
|
|
1732
|
+
restore_signals: bool = True,
|
|
1733
|
+
start_new_session: bool = False,
|
|
1734
|
+
pass_fds: Collection[int] = ...,
|
|
1735
|
+
*,
|
|
1736
|
+
timeout: float | None = None,
|
|
1737
|
+
input: _InputString | None = ...,
|
|
1738
|
+
encoding: str | None = None,
|
|
1739
|
+
errors: str,
|
|
1740
|
+
text: bool | None = None,
|
|
1741
|
+
) -> str: ...
|
|
1742
|
+
@overload
|
|
1743
|
+
def check_output(
|
|
1744
|
+
args: _CMD,
|
|
1745
|
+
bufsize: int = -1,
|
|
1746
|
+
executable: StrOrBytesPath | None = None,
|
|
1747
|
+
stdin: _FILE = None,
|
|
1748
|
+
stderr: _FILE = None,
|
|
1749
|
+
preexec_fn: Callable[[], Any] | None = None,
|
|
1750
|
+
close_fds: bool = True,
|
|
1751
|
+
shell: bool = False,
|
|
1752
|
+
cwd: StrOrBytesPath | None = None,
|
|
1753
|
+
env: _ENV | None = None,
|
|
1754
|
+
*,
|
|
1755
|
+
universal_newlines: Literal[True],
|
|
1756
|
+
startupinfo: Any = None,
|
|
1757
|
+
creationflags: int = 0,
|
|
1758
|
+
restore_signals: bool = True,
|
|
1759
|
+
start_new_session: bool = False,
|
|
1760
|
+
pass_fds: Collection[int] = ...,
|
|
1761
|
+
# where the real keyword only ones start
|
|
1762
|
+
timeout: float | None = None,
|
|
1763
|
+
input: _InputString | None = ...,
|
|
1764
|
+
encoding: str | None = None,
|
|
1765
|
+
errors: str | None = None,
|
|
1766
|
+
text: bool | None = None,
|
|
1767
|
+
) -> str: ...
|
|
1768
|
+
@overload
|
|
1769
|
+
def check_output(
|
|
1770
|
+
args: _CMD,
|
|
1771
|
+
bufsize: int = -1,
|
|
1772
|
+
executable: StrOrBytesPath | None = None,
|
|
1773
|
+
stdin: _FILE = None,
|
|
1774
|
+
stderr: _FILE = None,
|
|
1775
|
+
preexec_fn: Callable[[], Any] | None = None,
|
|
1776
|
+
close_fds: bool = True,
|
|
1777
|
+
shell: bool = False,
|
|
1778
|
+
cwd: StrOrBytesPath | None = None,
|
|
1779
|
+
env: _ENV | None = None,
|
|
1780
|
+
universal_newlines: Literal[False] | None = None,
|
|
1781
|
+
startupinfo: Any = None,
|
|
1782
|
+
creationflags: int = 0,
|
|
1783
|
+
restore_signals: bool = True,
|
|
1784
|
+
start_new_session: bool = False,
|
|
1785
|
+
pass_fds: Collection[int] = ...,
|
|
1786
|
+
*,
|
|
1787
|
+
timeout: float | None = None,
|
|
1788
|
+
input: _InputString | None = ...,
|
|
1789
|
+
encoding: None = None,
|
|
1790
|
+
errors: None = None,
|
|
1791
|
+
text: Literal[False] | None = None,
|
|
1792
|
+
) -> bytes: ...
|
|
1793
|
+
@overload
|
|
1794
|
+
def check_output(
|
|
1795
|
+
args: _CMD,
|
|
1796
|
+
bufsize: int = -1,
|
|
1797
|
+
executable: StrOrBytesPath | None = None,
|
|
1798
|
+
stdin: _FILE = None,
|
|
1799
|
+
stderr: _FILE = None,
|
|
1800
|
+
preexec_fn: Callable[[], Any] | None = None,
|
|
1801
|
+
close_fds: bool = True,
|
|
1802
|
+
shell: bool = False,
|
|
1803
|
+
cwd: StrOrBytesPath | None = None,
|
|
1804
|
+
env: _ENV | None = None,
|
|
1805
|
+
universal_newlines: bool | None = None,
|
|
1806
|
+
startupinfo: Any = None,
|
|
1807
|
+
creationflags: int = 0,
|
|
1808
|
+
restore_signals: bool = True,
|
|
1809
|
+
start_new_session: bool = False,
|
|
1810
|
+
pass_fds: Collection[int] = ...,
|
|
1811
|
+
*,
|
|
1812
|
+
timeout: float | None = None,
|
|
1813
|
+
input: _InputString | None = ...,
|
|
1814
|
+
encoding: str | None = None,
|
|
1815
|
+
errors: str | None = None,
|
|
1816
|
+
text: bool | None = None,
|
|
1817
|
+
) -> Any: ... # morally: -> str | bytes
|
|
1818
|
+
|
|
1819
|
+
PIPE: Final[int]
|
|
1820
|
+
STDOUT: Final[int]
|
|
1821
|
+
DEVNULL: Final[int]
|
|
1822
|
+
|
|
1823
|
+
class SubprocessError(Exception): ...
|
|
1824
|
+
|
|
1825
|
+
class TimeoutExpired(SubprocessError):
|
|
1826
|
+
def __init__(
|
|
1827
|
+
self, cmd: _CMD, timeout: float, output: str | bytes | None = None, stderr: str | bytes | None = None
|
|
1828
|
+
) -> None: ...
|
|
1829
|
+
# morally: _CMD
|
|
1830
|
+
cmd: Any
|
|
1831
|
+
timeout: float
|
|
1832
|
+
# morally: str | bytes | None
|
|
1833
|
+
output: Any
|
|
1834
|
+
stdout: bytes | None
|
|
1835
|
+
stderr: bytes | None
|
|
1836
|
+
|
|
1837
|
+
class CalledProcessError(SubprocessError):
|
|
1838
|
+
returncode: int
|
|
1839
|
+
# morally: _CMD
|
|
1840
|
+
cmd: Any
|
|
1841
|
+
# morally: str | bytes | None
|
|
1842
|
+
output: Any
|
|
1843
|
+
|
|
1844
|
+
# morally: str | bytes | None
|
|
1845
|
+
stdout: Any
|
|
1846
|
+
stderr: Any
|
|
1847
|
+
def __init__(
|
|
1848
|
+
self, returncode: int, cmd: _CMD, output: str | bytes | None = None, stderr: str | bytes | None = None
|
|
1849
|
+
) -> None: ...
|
|
1850
|
+
|
|
1851
|
+
class Popen(Generic[AnyStr]):
|
|
1852
|
+
args: _CMD
|
|
1853
|
+
stdin: IO[AnyStr] | None
|
|
1854
|
+
stdout: IO[AnyStr] | None
|
|
1855
|
+
stderr: IO[AnyStr] | None
|
|
1856
|
+
pid: int
|
|
1857
|
+
returncode: int | MaybeNone
|
|
1858
|
+
universal_newlines: bool
|
|
1859
|
+
|
|
1860
|
+
if sys.version_info >= (3, 11):
|
|
1861
|
+
# process_group is added in 3.11
|
|
1862
|
+
@overload
|
|
1863
|
+
def __init__(
|
|
1864
|
+
self: Popen[str],
|
|
1865
|
+
args: _CMD,
|
|
1866
|
+
bufsize: int = -1,
|
|
1867
|
+
executable: StrOrBytesPath | None = None,
|
|
1868
|
+
stdin: _FILE | None = None,
|
|
1869
|
+
stdout: _FILE | None = None,
|
|
1870
|
+
stderr: _FILE | None = None,
|
|
1871
|
+
preexec_fn: Callable[[], Any] | None = None,
|
|
1872
|
+
close_fds: bool = True,
|
|
1873
|
+
shell: bool = False,
|
|
1874
|
+
cwd: StrOrBytesPath | None = None,
|
|
1875
|
+
env: _ENV | None = None,
|
|
1876
|
+
universal_newlines: bool | None = None,
|
|
1877
|
+
startupinfo: Any | None = None,
|
|
1878
|
+
creationflags: int = 0,
|
|
1879
|
+
restore_signals: bool = True,
|
|
1880
|
+
start_new_session: bool = False,
|
|
1881
|
+
pass_fds: Collection[int] = (),
|
|
1882
|
+
*,
|
|
1883
|
+
text: bool | None = None,
|
|
1884
|
+
encoding: str,
|
|
1885
|
+
errors: str | None = None,
|
|
1886
|
+
user: str | int | None = None,
|
|
1887
|
+
group: str | int | None = None,
|
|
1888
|
+
extra_groups: Iterable[str | int] | None = None,
|
|
1889
|
+
umask: int = -1,
|
|
1890
|
+
pipesize: int = -1,
|
|
1891
|
+
process_group: int | None = None,
|
|
1892
|
+
) -> None: ...
|
|
1893
|
+
@overload
|
|
1894
|
+
def __init__(
|
|
1895
|
+
self: Popen[str],
|
|
1896
|
+
args: _CMD,
|
|
1897
|
+
bufsize: int = -1,
|
|
1898
|
+
executable: StrOrBytesPath | None = None,
|
|
1899
|
+
stdin: _FILE | None = None,
|
|
1900
|
+
stdout: _FILE | None = None,
|
|
1901
|
+
stderr: _FILE | None = None,
|
|
1902
|
+
preexec_fn: Callable[[], Any] | None = None,
|
|
1903
|
+
close_fds: bool = True,
|
|
1904
|
+
shell: bool = False,
|
|
1905
|
+
cwd: StrOrBytesPath | None = None,
|
|
1906
|
+
env: _ENV | None = None,
|
|
1907
|
+
universal_newlines: bool | None = None,
|
|
1908
|
+
startupinfo: Any | None = None,
|
|
1909
|
+
creationflags: int = 0,
|
|
1910
|
+
restore_signals: bool = True,
|
|
1911
|
+
start_new_session: bool = False,
|
|
1912
|
+
pass_fds: Collection[int] = (),
|
|
1913
|
+
*,
|
|
1914
|
+
text: bool | None = None,
|
|
1915
|
+
encoding: str | None = None,
|
|
1916
|
+
errors: str,
|
|
1917
|
+
user: str | int | None = None,
|
|
1918
|
+
group: str | int | None = None,
|
|
1919
|
+
extra_groups: Iterable[str | int] | None = None,
|
|
1920
|
+
umask: int = -1,
|
|
1921
|
+
pipesize: int = -1,
|
|
1922
|
+
process_group: int | None = None,
|
|
1923
|
+
) -> None: ...
|
|
1924
|
+
@overload
|
|
1925
|
+
def __init__(
|
|
1926
|
+
self: Popen[str],
|
|
1927
|
+
args: _CMD,
|
|
1928
|
+
bufsize: int = -1,
|
|
1929
|
+
executable: StrOrBytesPath | None = None,
|
|
1930
|
+
stdin: _FILE | None = None,
|
|
1931
|
+
stdout: _FILE | None = None,
|
|
1932
|
+
stderr: _FILE | None = None,
|
|
1933
|
+
preexec_fn: Callable[[], Any] | None = None,
|
|
1934
|
+
close_fds: bool = True,
|
|
1935
|
+
shell: bool = False,
|
|
1936
|
+
cwd: StrOrBytesPath | None = None,
|
|
1937
|
+
env: _ENV | None = None,
|
|
1938
|
+
*,
|
|
1939
|
+
universal_newlines: Literal[True],
|
|
1940
|
+
startupinfo: Any | None = None,
|
|
1941
|
+
creationflags: int = 0,
|
|
1942
|
+
restore_signals: bool = True,
|
|
1943
|
+
start_new_session: bool = False,
|
|
1944
|
+
pass_fds: Collection[int] = (),
|
|
1945
|
+
# where the *real* keyword only args start
|
|
1946
|
+
text: bool | None = None,
|
|
1947
|
+
encoding: str | None = None,
|
|
1948
|
+
errors: str | None = None,
|
|
1949
|
+
user: str | int | None = None,
|
|
1950
|
+
group: str | int | None = None,
|
|
1951
|
+
extra_groups: Iterable[str | int] | None = None,
|
|
1952
|
+
umask: int = -1,
|
|
1953
|
+
pipesize: int = -1,
|
|
1954
|
+
process_group: int | None = None,
|
|
1955
|
+
) -> None: ...
|
|
1956
|
+
@overload
|
|
1957
|
+
def __init__(
|
|
1958
|
+
self: Popen[str],
|
|
1959
|
+
args: _CMD,
|
|
1960
|
+
bufsize: int = -1,
|
|
1961
|
+
executable: StrOrBytesPath | None = None,
|
|
1962
|
+
stdin: _FILE | None = None,
|
|
1963
|
+
stdout: _FILE | None = None,
|
|
1964
|
+
stderr: _FILE | None = None,
|
|
1965
|
+
preexec_fn: Callable[[], Any] | None = None,
|
|
1966
|
+
close_fds: bool = True,
|
|
1967
|
+
shell: bool = False,
|
|
1968
|
+
cwd: StrOrBytesPath | None = None,
|
|
1969
|
+
env: _ENV | None = None,
|
|
1970
|
+
universal_newlines: bool | None = None,
|
|
1971
|
+
startupinfo: Any | None = None,
|
|
1972
|
+
creationflags: int = 0,
|
|
1973
|
+
restore_signals: bool = True,
|
|
1974
|
+
start_new_session: bool = False,
|
|
1975
|
+
pass_fds: Collection[int] = (),
|
|
1976
|
+
*,
|
|
1977
|
+
text: Literal[True],
|
|
1978
|
+
encoding: str | None = None,
|
|
1979
|
+
errors: str | None = None,
|
|
1980
|
+
user: str | int | None = None,
|
|
1981
|
+
group: str | int | None = None,
|
|
1982
|
+
extra_groups: Iterable[str | int] | None = None,
|
|
1983
|
+
umask: int = -1,
|
|
1984
|
+
pipesize: int = -1,
|
|
1985
|
+
process_group: int | None = None,
|
|
1986
|
+
) -> None: ...
|
|
1987
|
+
@overload
|
|
1988
|
+
def __init__(
|
|
1989
|
+
self: Popen[bytes],
|
|
1990
|
+
args: _CMD,
|
|
1991
|
+
bufsize: int = -1,
|
|
1992
|
+
executable: StrOrBytesPath | None = None,
|
|
1993
|
+
stdin: _FILE | None = None,
|
|
1994
|
+
stdout: _FILE | None = None,
|
|
1995
|
+
stderr: _FILE | None = None,
|
|
1996
|
+
preexec_fn: Callable[[], Any] | None = None,
|
|
1997
|
+
close_fds: bool = True,
|
|
1998
|
+
shell: bool = False,
|
|
1999
|
+
cwd: StrOrBytesPath | None = None,
|
|
2000
|
+
env: _ENV | None = None,
|
|
2001
|
+
universal_newlines: Literal[False] | None = None,
|
|
2002
|
+
startupinfo: Any | None = None,
|
|
2003
|
+
creationflags: int = 0,
|
|
2004
|
+
restore_signals: bool = True,
|
|
2005
|
+
start_new_session: bool = False,
|
|
2006
|
+
pass_fds: Collection[int] = (),
|
|
2007
|
+
*,
|
|
2008
|
+
text: Literal[False] | None = None,
|
|
2009
|
+
encoding: None = None,
|
|
2010
|
+
errors: None = None,
|
|
2011
|
+
user: str | int | None = None,
|
|
2012
|
+
group: str | int | None = None,
|
|
2013
|
+
extra_groups: Iterable[str | int] | None = None,
|
|
2014
|
+
umask: int = -1,
|
|
2015
|
+
pipesize: int = -1,
|
|
2016
|
+
process_group: int | None = None,
|
|
2017
|
+
) -> None: ...
|
|
2018
|
+
@overload
|
|
2019
|
+
def __init__(
|
|
2020
|
+
self: Popen[Any],
|
|
2021
|
+
args: _CMD,
|
|
2022
|
+
bufsize: int = -1,
|
|
2023
|
+
executable: StrOrBytesPath | None = None,
|
|
2024
|
+
stdin: _FILE | None = None,
|
|
2025
|
+
stdout: _FILE | None = None,
|
|
2026
|
+
stderr: _FILE | None = None,
|
|
2027
|
+
preexec_fn: Callable[[], Any] | None = None,
|
|
2028
|
+
close_fds: bool = True,
|
|
2029
|
+
shell: bool = False,
|
|
2030
|
+
cwd: StrOrBytesPath | None = None,
|
|
2031
|
+
env: _ENV | None = None,
|
|
2032
|
+
universal_newlines: bool | None = None,
|
|
2033
|
+
startupinfo: Any | None = None,
|
|
2034
|
+
creationflags: int = 0,
|
|
2035
|
+
restore_signals: bool = True,
|
|
2036
|
+
start_new_session: bool = False,
|
|
2037
|
+
pass_fds: Collection[int] = (),
|
|
2038
|
+
*,
|
|
2039
|
+
text: bool | None = None,
|
|
2040
|
+
encoding: str | None = None,
|
|
2041
|
+
errors: str | None = None,
|
|
2042
|
+
user: str | int | None = None,
|
|
2043
|
+
group: str | int | None = None,
|
|
2044
|
+
extra_groups: Iterable[str | int] | None = None,
|
|
2045
|
+
umask: int = -1,
|
|
2046
|
+
pipesize: int = -1,
|
|
2047
|
+
process_group: int | None = None,
|
|
2048
|
+
) -> None: ...
|
|
2049
|
+
elif sys.version_info >= (3, 10):
|
|
2050
|
+
# pipesize is added in 3.10
|
|
2051
|
+
@overload
|
|
2052
|
+
def __init__(
|
|
2053
|
+
self: Popen[str],
|
|
2054
|
+
args: _CMD,
|
|
2055
|
+
bufsize: int = -1,
|
|
2056
|
+
executable: StrOrBytesPath | None = None,
|
|
2057
|
+
stdin: _FILE | None = None,
|
|
2058
|
+
stdout: _FILE | None = None,
|
|
2059
|
+
stderr: _FILE | None = None,
|
|
2060
|
+
preexec_fn: Callable[[], Any] | None = None,
|
|
2061
|
+
close_fds: bool = True,
|
|
2062
|
+
shell: bool = False,
|
|
2063
|
+
cwd: StrOrBytesPath | None = None,
|
|
2064
|
+
env: _ENV | None = None,
|
|
2065
|
+
universal_newlines: bool | None = None,
|
|
2066
|
+
startupinfo: Any | None = None,
|
|
2067
|
+
creationflags: int = 0,
|
|
2068
|
+
restore_signals: bool = True,
|
|
2069
|
+
start_new_session: bool = False,
|
|
2070
|
+
pass_fds: Collection[int] = (),
|
|
2071
|
+
*,
|
|
2072
|
+
text: bool | None = None,
|
|
2073
|
+
encoding: str,
|
|
2074
|
+
errors: str | None = None,
|
|
2075
|
+
user: str | int | None = None,
|
|
2076
|
+
group: str | int | None = None,
|
|
2077
|
+
extra_groups: Iterable[str | int] | None = None,
|
|
2078
|
+
umask: int = -1,
|
|
2079
|
+
pipesize: int = -1,
|
|
2080
|
+
) -> None: ...
|
|
2081
|
+
@overload
|
|
2082
|
+
def __init__(
|
|
2083
|
+
self: Popen[str],
|
|
2084
|
+
args: _CMD,
|
|
2085
|
+
bufsize: int = -1,
|
|
2086
|
+
executable: StrOrBytesPath | None = None,
|
|
2087
|
+
stdin: _FILE | None = None,
|
|
2088
|
+
stdout: _FILE | None = None,
|
|
2089
|
+
stderr: _FILE | None = None,
|
|
2090
|
+
preexec_fn: Callable[[], Any] | None = None,
|
|
2091
|
+
close_fds: bool = True,
|
|
2092
|
+
shell: bool = False,
|
|
2093
|
+
cwd: StrOrBytesPath | None = None,
|
|
2094
|
+
env: _ENV | None = None,
|
|
2095
|
+
universal_newlines: bool | None = None,
|
|
2096
|
+
startupinfo: Any | None = None,
|
|
2097
|
+
creationflags: int = 0,
|
|
2098
|
+
restore_signals: bool = True,
|
|
2099
|
+
start_new_session: bool = False,
|
|
2100
|
+
pass_fds: Collection[int] = (),
|
|
2101
|
+
*,
|
|
2102
|
+
text: bool | None = None,
|
|
2103
|
+
encoding: str | None = None,
|
|
2104
|
+
errors: str,
|
|
2105
|
+
user: str | int | None = None,
|
|
2106
|
+
group: str | int | None = None,
|
|
2107
|
+
extra_groups: Iterable[str | int] | None = None,
|
|
2108
|
+
umask: int = -1,
|
|
2109
|
+
pipesize: int = -1,
|
|
2110
|
+
) -> None: ...
|
|
2111
|
+
@overload
|
|
2112
|
+
def __init__(
|
|
2113
|
+
self: Popen[str],
|
|
2114
|
+
args: _CMD,
|
|
2115
|
+
bufsize: int = -1,
|
|
2116
|
+
executable: StrOrBytesPath | None = None,
|
|
2117
|
+
stdin: _FILE | None = None,
|
|
2118
|
+
stdout: _FILE | None = None,
|
|
2119
|
+
stderr: _FILE | None = None,
|
|
2120
|
+
preexec_fn: Callable[[], Any] | None = None,
|
|
2121
|
+
close_fds: bool = True,
|
|
2122
|
+
shell: bool = False,
|
|
2123
|
+
cwd: StrOrBytesPath | None = None,
|
|
2124
|
+
env: _ENV | None = None,
|
|
2125
|
+
*,
|
|
2126
|
+
universal_newlines: Literal[True],
|
|
2127
|
+
startupinfo: Any | None = None,
|
|
2128
|
+
creationflags: int = 0,
|
|
2129
|
+
restore_signals: bool = True,
|
|
2130
|
+
start_new_session: bool = False,
|
|
2131
|
+
pass_fds: Collection[int] = (),
|
|
2132
|
+
# where the *real* keyword only args start
|
|
2133
|
+
text: bool | None = None,
|
|
2134
|
+
encoding: str | None = None,
|
|
2135
|
+
errors: str | None = None,
|
|
2136
|
+
user: str | int | None = None,
|
|
2137
|
+
group: str | int | None = None,
|
|
2138
|
+
extra_groups: Iterable[str | int] | None = None,
|
|
2139
|
+
umask: int = -1,
|
|
2140
|
+
pipesize: int = -1,
|
|
2141
|
+
) -> None: ...
|
|
2142
|
+
@overload
|
|
2143
|
+
def __init__(
|
|
2144
|
+
self: Popen[str],
|
|
2145
|
+
args: _CMD,
|
|
2146
|
+
bufsize: int = -1,
|
|
2147
|
+
executable: StrOrBytesPath | None = None,
|
|
2148
|
+
stdin: _FILE | None = None,
|
|
2149
|
+
stdout: _FILE | None = None,
|
|
2150
|
+
stderr: _FILE | None = None,
|
|
2151
|
+
preexec_fn: Callable[[], Any] | None = None,
|
|
2152
|
+
close_fds: bool = True,
|
|
2153
|
+
shell: bool = False,
|
|
2154
|
+
cwd: StrOrBytesPath | None = None,
|
|
2155
|
+
env: _ENV | None = None,
|
|
2156
|
+
universal_newlines: bool | None = None,
|
|
2157
|
+
startupinfo: Any | None = None,
|
|
2158
|
+
creationflags: int = 0,
|
|
2159
|
+
restore_signals: bool = True,
|
|
2160
|
+
start_new_session: bool = False,
|
|
2161
|
+
pass_fds: Collection[int] = (),
|
|
2162
|
+
*,
|
|
2163
|
+
text: Literal[True],
|
|
2164
|
+
encoding: str | None = None,
|
|
2165
|
+
errors: str | None = None,
|
|
2166
|
+
user: str | int | None = None,
|
|
2167
|
+
group: str | int | None = None,
|
|
2168
|
+
extra_groups: Iterable[str | int] | None = None,
|
|
2169
|
+
umask: int = -1,
|
|
2170
|
+
pipesize: int = -1,
|
|
2171
|
+
) -> None: ...
|
|
2172
|
+
@overload
|
|
2173
|
+
def __init__(
|
|
2174
|
+
self: Popen[bytes],
|
|
2175
|
+
args: _CMD,
|
|
2176
|
+
bufsize: int = -1,
|
|
2177
|
+
executable: StrOrBytesPath | None = None,
|
|
2178
|
+
stdin: _FILE | None = None,
|
|
2179
|
+
stdout: _FILE | None = None,
|
|
2180
|
+
stderr: _FILE | None = None,
|
|
2181
|
+
preexec_fn: Callable[[], Any] | None = None,
|
|
2182
|
+
close_fds: bool = True,
|
|
2183
|
+
shell: bool = False,
|
|
2184
|
+
cwd: StrOrBytesPath | None = None,
|
|
2185
|
+
env: _ENV | None = None,
|
|
2186
|
+
universal_newlines: Literal[False] | None = None,
|
|
2187
|
+
startupinfo: Any | None = None,
|
|
2188
|
+
creationflags: int = 0,
|
|
2189
|
+
restore_signals: bool = True,
|
|
2190
|
+
start_new_session: bool = False,
|
|
2191
|
+
pass_fds: Collection[int] = (),
|
|
2192
|
+
*,
|
|
2193
|
+
text: Literal[False] | None = None,
|
|
2194
|
+
encoding: None = None,
|
|
2195
|
+
errors: None = None,
|
|
2196
|
+
user: str | int | None = None,
|
|
2197
|
+
group: str | int | None = None,
|
|
2198
|
+
extra_groups: Iterable[str | int] | None = None,
|
|
2199
|
+
umask: int = -1,
|
|
2200
|
+
pipesize: int = -1,
|
|
2201
|
+
) -> None: ...
|
|
2202
|
+
@overload
|
|
2203
|
+
def __init__(
|
|
2204
|
+
self: Popen[Any],
|
|
2205
|
+
args: _CMD,
|
|
2206
|
+
bufsize: int = -1,
|
|
2207
|
+
executable: StrOrBytesPath | None = None,
|
|
2208
|
+
stdin: _FILE | None = None,
|
|
2209
|
+
stdout: _FILE | None = None,
|
|
2210
|
+
stderr: _FILE | None = None,
|
|
2211
|
+
preexec_fn: Callable[[], Any] | None = None,
|
|
2212
|
+
close_fds: bool = True,
|
|
2213
|
+
shell: bool = False,
|
|
2214
|
+
cwd: StrOrBytesPath | None = None,
|
|
2215
|
+
env: _ENV | None = None,
|
|
2216
|
+
universal_newlines: bool | None = None,
|
|
2217
|
+
startupinfo: Any | None = None,
|
|
2218
|
+
creationflags: int = 0,
|
|
2219
|
+
restore_signals: bool = True,
|
|
2220
|
+
start_new_session: bool = False,
|
|
2221
|
+
pass_fds: Collection[int] = (),
|
|
2222
|
+
*,
|
|
2223
|
+
text: bool | None = None,
|
|
2224
|
+
encoding: str | None = None,
|
|
2225
|
+
errors: str | None = None,
|
|
2226
|
+
user: str | int | None = None,
|
|
2227
|
+
group: str | int | None = None,
|
|
2228
|
+
extra_groups: Iterable[str | int] | None = None,
|
|
2229
|
+
umask: int = -1,
|
|
2230
|
+
pipesize: int = -1,
|
|
2231
|
+
) -> None: ...
|
|
2232
|
+
elif sys.version_info >= (3, 9):
|
|
2233
|
+
# user, group, extra_groups, umask were added in 3.9
|
|
2234
|
+
@overload
|
|
2235
|
+
def __init__(
|
|
2236
|
+
self: Popen[str],
|
|
2237
|
+
args: _CMD,
|
|
2238
|
+
bufsize: int = -1,
|
|
2239
|
+
executable: StrOrBytesPath | None = None,
|
|
2240
|
+
stdin: _FILE | None = None,
|
|
2241
|
+
stdout: _FILE | None = None,
|
|
2242
|
+
stderr: _FILE | None = None,
|
|
2243
|
+
preexec_fn: Callable[[], Any] | None = None,
|
|
2244
|
+
close_fds: bool = True,
|
|
2245
|
+
shell: bool = False,
|
|
2246
|
+
cwd: StrOrBytesPath | None = None,
|
|
2247
|
+
env: _ENV | None = None,
|
|
2248
|
+
universal_newlines: bool | None = None,
|
|
2249
|
+
startupinfo: Any | None = None,
|
|
2250
|
+
creationflags: int = 0,
|
|
2251
|
+
restore_signals: bool = True,
|
|
2252
|
+
start_new_session: bool = False,
|
|
2253
|
+
pass_fds: Collection[int] = (),
|
|
2254
|
+
*,
|
|
2255
|
+
text: bool | None = None,
|
|
2256
|
+
encoding: str,
|
|
2257
|
+
errors: str | None = None,
|
|
2258
|
+
user: str | int | None = None,
|
|
2259
|
+
group: str | int | None = None,
|
|
2260
|
+
extra_groups: Iterable[str | int] | None = None,
|
|
2261
|
+
umask: int = -1,
|
|
2262
|
+
) -> None: ...
|
|
2263
|
+
@overload
|
|
2264
|
+
def __init__(
|
|
2265
|
+
self: Popen[str],
|
|
2266
|
+
args: _CMD,
|
|
2267
|
+
bufsize: int = -1,
|
|
2268
|
+
executable: StrOrBytesPath | None = None,
|
|
2269
|
+
stdin: _FILE | None = None,
|
|
2270
|
+
stdout: _FILE | None = None,
|
|
2271
|
+
stderr: _FILE | None = None,
|
|
2272
|
+
preexec_fn: Callable[[], Any] | None = None,
|
|
2273
|
+
close_fds: bool = True,
|
|
2274
|
+
shell: bool = False,
|
|
2275
|
+
cwd: StrOrBytesPath | None = None,
|
|
2276
|
+
env: _ENV | None = None,
|
|
2277
|
+
universal_newlines: bool | None = None,
|
|
2278
|
+
startupinfo: Any | None = None,
|
|
2279
|
+
creationflags: int = 0,
|
|
2280
|
+
restore_signals: bool = True,
|
|
2281
|
+
start_new_session: bool = False,
|
|
2282
|
+
pass_fds: Collection[int] = (),
|
|
2283
|
+
*,
|
|
2284
|
+
text: bool | None = None,
|
|
2285
|
+
encoding: str | None = None,
|
|
2286
|
+
errors: str,
|
|
2287
|
+
user: str | int | None = None,
|
|
2288
|
+
group: str | int | None = None,
|
|
2289
|
+
extra_groups: Iterable[str | int] | None = None,
|
|
2290
|
+
umask: int = -1,
|
|
2291
|
+
) -> None: ...
|
|
2292
|
+
@overload
|
|
2293
|
+
def __init__(
|
|
2294
|
+
self: Popen[str],
|
|
2295
|
+
args: _CMD,
|
|
2296
|
+
bufsize: int = -1,
|
|
2297
|
+
executable: StrOrBytesPath | None = None,
|
|
2298
|
+
stdin: _FILE | None = None,
|
|
2299
|
+
stdout: _FILE | None = None,
|
|
2300
|
+
stderr: _FILE | None = None,
|
|
2301
|
+
preexec_fn: Callable[[], Any] | None = None,
|
|
2302
|
+
close_fds: bool = True,
|
|
2303
|
+
shell: bool = False,
|
|
2304
|
+
cwd: StrOrBytesPath | None = None,
|
|
2305
|
+
env: _ENV | None = None,
|
|
2306
|
+
*,
|
|
2307
|
+
universal_newlines: Literal[True],
|
|
2308
|
+
startupinfo: Any | None = None,
|
|
2309
|
+
creationflags: int = 0,
|
|
2310
|
+
restore_signals: bool = True,
|
|
2311
|
+
start_new_session: bool = False,
|
|
2312
|
+
pass_fds: Collection[int] = (),
|
|
2313
|
+
# where the *real* keyword only args start
|
|
2314
|
+
text: bool | None = None,
|
|
2315
|
+
encoding: str | None = None,
|
|
2316
|
+
errors: str | None = None,
|
|
2317
|
+
user: str | int | None = None,
|
|
2318
|
+
group: str | int | None = None,
|
|
2319
|
+
extra_groups: Iterable[str | int] | None = None,
|
|
2320
|
+
umask: int = -1,
|
|
2321
|
+
) -> None: ...
|
|
2322
|
+
@overload
|
|
2323
|
+
def __init__(
|
|
2324
|
+
self: Popen[str],
|
|
2325
|
+
args: _CMD,
|
|
2326
|
+
bufsize: int = -1,
|
|
2327
|
+
executable: StrOrBytesPath | None = None,
|
|
2328
|
+
stdin: _FILE | None = None,
|
|
2329
|
+
stdout: _FILE | None = None,
|
|
2330
|
+
stderr: _FILE | None = None,
|
|
2331
|
+
preexec_fn: Callable[[], Any] | None = None,
|
|
2332
|
+
close_fds: bool = True,
|
|
2333
|
+
shell: bool = False,
|
|
2334
|
+
cwd: StrOrBytesPath | None = None,
|
|
2335
|
+
env: _ENV | None = None,
|
|
2336
|
+
universal_newlines: bool | None = None,
|
|
2337
|
+
startupinfo: Any | None = None,
|
|
2338
|
+
creationflags: int = 0,
|
|
2339
|
+
restore_signals: bool = True,
|
|
2340
|
+
start_new_session: bool = False,
|
|
2341
|
+
pass_fds: Collection[int] = (),
|
|
2342
|
+
*,
|
|
2343
|
+
text: Literal[True],
|
|
2344
|
+
encoding: str | None = None,
|
|
2345
|
+
errors: str | None = None,
|
|
2346
|
+
user: str | int | None = None,
|
|
2347
|
+
group: str | int | None = None,
|
|
2348
|
+
extra_groups: Iterable[str | int] | None = None,
|
|
2349
|
+
umask: int = -1,
|
|
2350
|
+
) -> None: ...
|
|
2351
|
+
@overload
|
|
2352
|
+
def __init__(
|
|
2353
|
+
self: Popen[bytes],
|
|
2354
|
+
args: _CMD,
|
|
2355
|
+
bufsize: int = -1,
|
|
2356
|
+
executable: StrOrBytesPath | None = None,
|
|
2357
|
+
stdin: _FILE | None = None,
|
|
2358
|
+
stdout: _FILE | None = None,
|
|
2359
|
+
stderr: _FILE | None = None,
|
|
2360
|
+
preexec_fn: Callable[[], Any] | None = None,
|
|
2361
|
+
close_fds: bool = True,
|
|
2362
|
+
shell: bool = False,
|
|
2363
|
+
cwd: StrOrBytesPath | None = None,
|
|
2364
|
+
env: _ENV | None = None,
|
|
2365
|
+
universal_newlines: Literal[False] | None = None,
|
|
2366
|
+
startupinfo: Any | None = None,
|
|
2367
|
+
creationflags: int = 0,
|
|
2368
|
+
restore_signals: bool = True,
|
|
2369
|
+
start_new_session: bool = False,
|
|
2370
|
+
pass_fds: Collection[int] = (),
|
|
2371
|
+
*,
|
|
2372
|
+
text: Literal[False] | None = None,
|
|
2373
|
+
encoding: None = None,
|
|
2374
|
+
errors: None = None,
|
|
2375
|
+
user: str | int | None = None,
|
|
2376
|
+
group: str | int | None = None,
|
|
2377
|
+
extra_groups: Iterable[str | int] | None = None,
|
|
2378
|
+
umask: int = -1,
|
|
2379
|
+
) -> None: ...
|
|
2380
|
+
@overload
|
|
2381
|
+
def __init__(
|
|
2382
|
+
self: Popen[Any],
|
|
2383
|
+
args: _CMD,
|
|
2384
|
+
bufsize: int = -1,
|
|
2385
|
+
executable: StrOrBytesPath | None = None,
|
|
2386
|
+
stdin: _FILE | None = None,
|
|
2387
|
+
stdout: _FILE | None = None,
|
|
2388
|
+
stderr: _FILE | None = None,
|
|
2389
|
+
preexec_fn: Callable[[], Any] | None = None,
|
|
2390
|
+
close_fds: bool = True,
|
|
2391
|
+
shell: bool = False,
|
|
2392
|
+
cwd: StrOrBytesPath | None = None,
|
|
2393
|
+
env: _ENV | None = None,
|
|
2394
|
+
universal_newlines: bool | None = None,
|
|
2395
|
+
startupinfo: Any | None = None,
|
|
2396
|
+
creationflags: int = 0,
|
|
2397
|
+
restore_signals: bool = True,
|
|
2398
|
+
start_new_session: bool = False,
|
|
2399
|
+
pass_fds: Collection[int] = (),
|
|
2400
|
+
*,
|
|
2401
|
+
text: bool | None = None,
|
|
2402
|
+
encoding: str | None = None,
|
|
2403
|
+
errors: str | None = None,
|
|
2404
|
+
user: str | int | None = None,
|
|
2405
|
+
group: str | int | None = None,
|
|
2406
|
+
extra_groups: Iterable[str | int] | None = None,
|
|
2407
|
+
umask: int = -1,
|
|
2408
|
+
) -> None: ...
|
|
2409
|
+
else:
|
|
2410
|
+
@overload
|
|
2411
|
+
def __init__(
|
|
2412
|
+
self: Popen[str],
|
|
2413
|
+
args: _CMD,
|
|
2414
|
+
bufsize: int = -1,
|
|
2415
|
+
executable: StrOrBytesPath | None = None,
|
|
2416
|
+
stdin: _FILE | None = None,
|
|
2417
|
+
stdout: _FILE | None = None,
|
|
2418
|
+
stderr: _FILE | None = None,
|
|
2419
|
+
preexec_fn: Callable[[], Any] | None = None,
|
|
2420
|
+
close_fds: bool = True,
|
|
2421
|
+
shell: bool = False,
|
|
2422
|
+
cwd: StrOrBytesPath | None = None,
|
|
2423
|
+
env: _ENV | None = None,
|
|
2424
|
+
universal_newlines: bool | None = None,
|
|
2425
|
+
startupinfo: Any | None = None,
|
|
2426
|
+
creationflags: int = 0,
|
|
2427
|
+
restore_signals: bool = True,
|
|
2428
|
+
start_new_session: bool = False,
|
|
2429
|
+
pass_fds: Collection[int] = (),
|
|
2430
|
+
*,
|
|
2431
|
+
text: bool | None = None,
|
|
2432
|
+
encoding: str,
|
|
2433
|
+
errors: str | None = None,
|
|
2434
|
+
) -> None: ...
|
|
2435
|
+
@overload
|
|
2436
|
+
def __init__(
|
|
2437
|
+
self: Popen[str],
|
|
2438
|
+
args: _CMD,
|
|
2439
|
+
bufsize: int = -1,
|
|
2440
|
+
executable: StrOrBytesPath | None = None,
|
|
2441
|
+
stdin: _FILE | None = None,
|
|
2442
|
+
stdout: _FILE | None = None,
|
|
2443
|
+
stderr: _FILE | None = None,
|
|
2444
|
+
preexec_fn: Callable[[], Any] | None = None,
|
|
2445
|
+
close_fds: bool = True,
|
|
2446
|
+
shell: bool = False,
|
|
2447
|
+
cwd: StrOrBytesPath | None = None,
|
|
2448
|
+
env: _ENV | None = None,
|
|
2449
|
+
universal_newlines: bool | None = None,
|
|
2450
|
+
startupinfo: Any | None = None,
|
|
2451
|
+
creationflags: int = 0,
|
|
2452
|
+
restore_signals: bool = True,
|
|
2453
|
+
start_new_session: bool = False,
|
|
2454
|
+
pass_fds: Collection[int] = (),
|
|
2455
|
+
*,
|
|
2456
|
+
text: bool | None = None,
|
|
2457
|
+
encoding: str | None = None,
|
|
2458
|
+
errors: str,
|
|
2459
|
+
) -> None: ...
|
|
2460
|
+
@overload
|
|
2461
|
+
def __init__(
|
|
2462
|
+
self: Popen[str],
|
|
2463
|
+
args: _CMD,
|
|
2464
|
+
bufsize: int = -1,
|
|
2465
|
+
executable: StrOrBytesPath | None = None,
|
|
2466
|
+
stdin: _FILE | None = None,
|
|
2467
|
+
stdout: _FILE | None = None,
|
|
2468
|
+
stderr: _FILE | None = None,
|
|
2469
|
+
preexec_fn: Callable[[], Any] | None = None,
|
|
2470
|
+
close_fds: bool = True,
|
|
2471
|
+
shell: bool = False,
|
|
2472
|
+
cwd: StrOrBytesPath | None = None,
|
|
2473
|
+
env: _ENV | None = None,
|
|
2474
|
+
*,
|
|
2475
|
+
universal_newlines: Literal[True],
|
|
2476
|
+
startupinfo: Any | None = None,
|
|
2477
|
+
creationflags: int = 0,
|
|
2478
|
+
restore_signals: bool = True,
|
|
2479
|
+
start_new_session: bool = False,
|
|
2480
|
+
pass_fds: Collection[int] = (),
|
|
2481
|
+
# where the *real* keyword only args start
|
|
2482
|
+
text: bool | None = None,
|
|
2483
|
+
encoding: str | None = None,
|
|
2484
|
+
errors: str | None = None,
|
|
2485
|
+
) -> None: ...
|
|
2486
|
+
@overload
|
|
2487
|
+
def __init__(
|
|
2488
|
+
self: Popen[str],
|
|
2489
|
+
args: _CMD,
|
|
2490
|
+
bufsize: int = -1,
|
|
2491
|
+
executable: StrOrBytesPath | None = None,
|
|
2492
|
+
stdin: _FILE | None = None,
|
|
2493
|
+
stdout: _FILE | None = None,
|
|
2494
|
+
stderr: _FILE | None = None,
|
|
2495
|
+
preexec_fn: Callable[[], Any] | None = None,
|
|
2496
|
+
close_fds: bool = True,
|
|
2497
|
+
shell: bool = False,
|
|
2498
|
+
cwd: StrOrBytesPath | None = None,
|
|
2499
|
+
env: _ENV | None = None,
|
|
2500
|
+
universal_newlines: bool | None = None,
|
|
2501
|
+
startupinfo: Any | None = None,
|
|
2502
|
+
creationflags: int = 0,
|
|
2503
|
+
restore_signals: bool = True,
|
|
2504
|
+
start_new_session: bool = False,
|
|
2505
|
+
pass_fds: Collection[int] = (),
|
|
2506
|
+
*,
|
|
2507
|
+
text: Literal[True],
|
|
2508
|
+
encoding: str | None = None,
|
|
2509
|
+
errors: str | None = None,
|
|
2510
|
+
) -> None: ...
|
|
2511
|
+
@overload
|
|
2512
|
+
def __init__(
|
|
2513
|
+
self: Popen[bytes],
|
|
2514
|
+
args: _CMD,
|
|
2515
|
+
bufsize: int = -1,
|
|
2516
|
+
executable: StrOrBytesPath | None = None,
|
|
2517
|
+
stdin: _FILE | None = None,
|
|
2518
|
+
stdout: _FILE | None = None,
|
|
2519
|
+
stderr: _FILE | None = None,
|
|
2520
|
+
preexec_fn: Callable[[], Any] | None = None,
|
|
2521
|
+
close_fds: bool = True,
|
|
2522
|
+
shell: bool = False,
|
|
2523
|
+
cwd: StrOrBytesPath | None = None,
|
|
2524
|
+
env: _ENV | None = None,
|
|
2525
|
+
universal_newlines: Literal[False] | None = None,
|
|
2526
|
+
startupinfo: Any | None = None,
|
|
2527
|
+
creationflags: int = 0,
|
|
2528
|
+
restore_signals: bool = True,
|
|
2529
|
+
start_new_session: bool = False,
|
|
2530
|
+
pass_fds: Collection[int] = (),
|
|
2531
|
+
*,
|
|
2532
|
+
text: Literal[False] | None = None,
|
|
2533
|
+
encoding: None = None,
|
|
2534
|
+
errors: None = None,
|
|
2535
|
+
) -> None: ...
|
|
2536
|
+
@overload
|
|
2537
|
+
def __init__(
|
|
2538
|
+
self: Popen[Any],
|
|
2539
|
+
args: _CMD,
|
|
2540
|
+
bufsize: int = -1,
|
|
2541
|
+
executable: StrOrBytesPath | None = None,
|
|
2542
|
+
stdin: _FILE | None = None,
|
|
2543
|
+
stdout: _FILE | None = None,
|
|
2544
|
+
stderr: _FILE | None = None,
|
|
2545
|
+
preexec_fn: Callable[[], Any] | None = None,
|
|
2546
|
+
close_fds: bool = True,
|
|
2547
|
+
shell: bool = False,
|
|
2548
|
+
cwd: StrOrBytesPath | None = None,
|
|
2549
|
+
env: _ENV | None = None,
|
|
2550
|
+
universal_newlines: bool | None = None,
|
|
2551
|
+
startupinfo: Any | None = None,
|
|
2552
|
+
creationflags: int = 0,
|
|
2553
|
+
restore_signals: bool = True,
|
|
2554
|
+
start_new_session: bool = False,
|
|
2555
|
+
pass_fds: Collection[int] = (),
|
|
2556
|
+
*,
|
|
2557
|
+
text: bool | None = None,
|
|
2558
|
+
encoding: str | None = None,
|
|
2559
|
+
errors: str | None = None,
|
|
2560
|
+
) -> None: ...
|
|
2561
|
+
|
|
2562
|
+
def poll(self) -> int | None: ...
|
|
2563
|
+
def wait(self, timeout: float | None = None) -> int: ...
|
|
2564
|
+
# morally the members of the returned tuple should be optional
|
|
2565
|
+
# TODO this should allow ReadableBuffer for Popen[bytes], but adding
|
|
2566
|
+
# overloads for that runs into a mypy bug (python/mypy#14070).
|
|
2567
|
+
def communicate(self, input: AnyStr | None = None, timeout: float | None = None) -> tuple[AnyStr, AnyStr]: ...
|
|
2568
|
+
def send_signal(self, sig: int) -> None: ...
|
|
2569
|
+
def terminate(self) -> None: ...
|
|
2570
|
+
def kill(self) -> None: ...
|
|
2571
|
+
def __enter__(self) -> Self: ...
|
|
2572
|
+
def __exit__(
|
|
2573
|
+
self, exc_type: type[BaseException] | None, value: BaseException | None, traceback: TracebackType | None
|
|
2574
|
+
) -> None: ...
|
|
2575
|
+
def __del__(self) -> None: ...
|
|
2576
|
+
if sys.version_info >= (3, 9):
|
|
2577
|
+
def __class_getitem__(cls, item: Any, /) -> GenericAlias:
|
|
2578
|
+
"""
|
|
2579
|
+
Represent a PEP 585 generic type
|
|
2580
|
+
|
|
2581
|
+
E.g. for t = list[int], t.__origin__ is list and t.__args__ is (int,).
|
|
2582
|
+
"""
|
|
2583
|
+
...
|
|
2584
|
+
|
|
2585
|
+
# The result really is always a str.
|
|
2586
|
+
if sys.version_info >= (3, 11):
|
|
2587
|
+
def getstatusoutput(cmd: _CMD, *, encoding: str | None = None, errors: str | None = None) -> tuple[int, str]: ...
|
|
2588
|
+
def getoutput(cmd: _CMD, *, encoding: str | None = None, errors: str | None = None) -> str: ...
|
|
2589
|
+
|
|
2590
|
+
else:
|
|
2591
|
+
def getstatusoutput(cmd: _CMD) -> tuple[int, str]: ...
|
|
2592
|
+
def getoutput(cmd: _CMD) -> str: ...
|
|
2593
|
+
|
|
2594
|
+
def list2cmdline(seq: Iterable[StrOrBytesPath]) -> str: ... # undocumented
|
|
2595
|
+
|
|
2596
|
+
if sys.platform == "win32":
|
|
2597
|
+
if sys.version_info >= (3, 13):
|
|
2598
|
+
from _winapi import STARTF_FORCEOFFFEEDBACK, STARTF_FORCEONFEEDBACK
|
|
2599
|
+
|
|
2600
|
+
__all__ += ["STARTF_FORCEOFFFEEDBACK", "STARTF_FORCEONFEEDBACK"]
|
|
2601
|
+
|
|
2602
|
+
class STARTUPINFO:
|
|
2603
|
+
def __init__(
|
|
2604
|
+
self,
|
|
2605
|
+
*,
|
|
2606
|
+
dwFlags: int = 0,
|
|
2607
|
+
hStdInput: Any | None = None,
|
|
2608
|
+
hStdOutput: Any | None = None,
|
|
2609
|
+
hStdError: Any | None = None,
|
|
2610
|
+
wShowWindow: int = 0,
|
|
2611
|
+
lpAttributeList: Mapping[str, Any] | None = None,
|
|
2612
|
+
) -> None: ...
|
|
2613
|
+
dwFlags: int
|
|
2614
|
+
hStdInput: Any | None
|
|
2615
|
+
hStdOutput: Any | None
|
|
2616
|
+
hStdError: Any | None
|
|
2617
|
+
wShowWindow: int
|
|
2618
|
+
lpAttributeList: Mapping[str, Any]
|
|
2619
|
+
def copy(self) -> STARTUPINFO: ...
|
|
2620
|
+
|
|
2621
|
+
from _winapi import (
|
|
2622
|
+
ABOVE_NORMAL_PRIORITY_CLASS as ABOVE_NORMAL_PRIORITY_CLASS,
|
|
2623
|
+
BELOW_NORMAL_PRIORITY_CLASS as BELOW_NORMAL_PRIORITY_CLASS,
|
|
2624
|
+
CREATE_BREAKAWAY_FROM_JOB as CREATE_BREAKAWAY_FROM_JOB,
|
|
2625
|
+
CREATE_DEFAULT_ERROR_MODE as CREATE_DEFAULT_ERROR_MODE,
|
|
2626
|
+
CREATE_NEW_CONSOLE as CREATE_NEW_CONSOLE,
|
|
2627
|
+
CREATE_NEW_PROCESS_GROUP as CREATE_NEW_PROCESS_GROUP,
|
|
2628
|
+
CREATE_NO_WINDOW as CREATE_NO_WINDOW,
|
|
2629
|
+
DETACHED_PROCESS as DETACHED_PROCESS,
|
|
2630
|
+
HIGH_PRIORITY_CLASS as HIGH_PRIORITY_CLASS,
|
|
2631
|
+
IDLE_PRIORITY_CLASS as IDLE_PRIORITY_CLASS,
|
|
2632
|
+
NORMAL_PRIORITY_CLASS as NORMAL_PRIORITY_CLASS,
|
|
2633
|
+
REALTIME_PRIORITY_CLASS as REALTIME_PRIORITY_CLASS,
|
|
2634
|
+
STARTF_USESHOWWINDOW as STARTF_USESHOWWINDOW,
|
|
2635
|
+
STARTF_USESTDHANDLES as STARTF_USESTDHANDLES,
|
|
2636
|
+
STD_ERROR_HANDLE as STD_ERROR_HANDLE,
|
|
2637
|
+
STD_INPUT_HANDLE as STD_INPUT_HANDLE,
|
|
2638
|
+
STD_OUTPUT_HANDLE as STD_OUTPUT_HANDLE,
|
|
2639
|
+
SW_HIDE as SW_HIDE,
|
|
2640
|
+
)
|