jaclang 0.6.0__py3-none-any.whl → 0.6.2__py3-none-any.whl

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.
Files changed (913) hide show
  1. jaclang/cli/.gitignore +3 -0
  2. jaclang/cli/cli.md +190 -0
  3. jaclang/cli/cli.py +90 -3
  4. jaclang/cli/cmdreg.py +18 -6
  5. jaclang/compiler/.gitignore +1 -0
  6. jaclang/compiler/absyntree.py +1 -2
  7. jaclang/compiler/parser.py +1 -1
  8. jaclang/compiler/passes/main/def_impl_match_pass.py +4 -1
  9. jaclang/compiler/passes/main/fuse_typeinfo_pass.py +10 -7
  10. jaclang/compiler/passes/main/import_pass.py +39 -22
  11. jaclang/compiler/passes/main/pyast_gen_pass.py +6 -57
  12. jaclang/compiler/passes/main/pyjac_ast_link_pass.py +218 -0
  13. jaclang/compiler/passes/main/schedules.py +2 -0
  14. jaclang/compiler/passes/main/sym_tab_build_pass.py +9 -3
  15. jaclang/compiler/passes/main/tests/fixtures/autoimpl.impl/getme.impl.jac +3 -0
  16. jaclang/compiler/passes/main/tests/fixtures/autoimpl.impl.jac +3 -0
  17. jaclang/compiler/passes/main/tests/fixtures/autoimpl.jac +9 -0
  18. jaclang/compiler/passes/main/tests/fixtures/autoimpl.something.else.impl.jac +3 -0
  19. jaclang/compiler/passes/main/tests/fixtures/base.jac +13 -0
  20. jaclang/compiler/passes/main/tests/fixtures/base2.jac +14 -0
  21. jaclang/compiler/passes/main/tests/fixtures/blip.jac +2 -0
  22. jaclang/compiler/passes/main/tests/fixtures/codegentext.jac +31 -0
  23. jaclang/compiler/passes/main/tests/fixtures/decls.jac +10 -0
  24. jaclang/compiler/passes/main/tests/fixtures/defs_and_uses.jac +44 -0
  25. jaclang/compiler/passes/main/tests/fixtures/fstrings.jac +4 -0
  26. jaclang/compiler/passes/main/tests/fixtures/func.jac +18 -0
  27. jaclang/compiler/passes/main/tests/fixtures/func2.jac +8 -0
  28. jaclang/compiler/passes/main/tests/fixtures/game1.jac +15 -0
  29. jaclang/compiler/passes/main/tests/fixtures/impl/defs1.jac +8 -0
  30. jaclang/compiler/passes/main/tests/fixtures/impl/defs2.jac +8 -0
  31. jaclang/compiler/passes/main/tests/fixtures/impl/imps.jac +11 -0
  32. jaclang/compiler/passes/main/tests/fixtures/multi_def_err.jac +7 -0
  33. jaclang/compiler/passes/main/tests/fixtures/registry.jac +36 -0
  34. jaclang/compiler/passes/main/tests/test_import_pass.py +11 -0
  35. jaclang/compiler/passes/tool/tests/fixtures/corelib.jac +480 -0
  36. jaclang/compiler/passes/tool/tests/fixtures/corelib_fmt.jac +480 -0
  37. jaclang/compiler/passes/tool/tests/fixtures/genai/essay_review.jac +36 -0
  38. jaclang/compiler/passes/tool/tests/fixtures/genai/expert_answer.jac +17 -0
  39. jaclang/compiler/passes/tool/tests/fixtures/genai/joke_gen.jac +32 -0
  40. jaclang/compiler/passes/tool/tests/fixtures/genai/odd_word_out.jac +27 -0
  41. jaclang/compiler/passes/tool/tests/fixtures/genai/personality_finder.jac +35 -0
  42. jaclang/compiler/passes/tool/tests/fixtures/genai/text_to_type.jac +25 -0
  43. jaclang/compiler/passes/tool/tests/fixtures/genai/translator.jac +13 -0
  44. jaclang/compiler/passes/tool/tests/fixtures/genai/wikipedia.jac +63 -0
  45. jaclang/compiler/passes/tool/tests/fixtures/multi_def_err.dot +39 -0
  46. jaclang/compiler/passes/tool/tests/fixtures/multi_def_err.jac +7 -0
  47. jaclang/compiler/passes/tool/tests/fixtures/multi_def_err.txt +20 -0
  48. jaclang/compiler/passes/tool/tests/fixtures/myca_formatted_code/ability_impl_long_comprehension.jac +15 -0
  49. jaclang/compiler/passes/tool/tests/fixtures/myca_formatted_code/call_with_many_parameters.jac +24 -0
  50. jaclang/compiler/passes/tool/tests/fixtures/myca_formatted_code/entry_main.jac +4 -0
  51. jaclang/compiler/passes/tool/tests/fixtures/myca_formatted_code/long_line_nested_dict_access.jac +10 -0
  52. jaclang/compiler/passes/tool/tests/fixtures/myca_formatted_code/multiline_fstrings.jac +16 -0
  53. jaclang/compiler/passes/tool/tests/fixtures/myca_formatted_code/nested_dict.jac +15 -0
  54. jaclang/compiler/passes/tool/tests/fixtures/myca_formatted_code/nested_loop_and_incrementer.jac +13 -0
  55. jaclang/compiler/passes/tool/tests/fixtures/myca_formatted_code/simple_walker.jac +25 -0
  56. jaclang/compiler/passes/tool/tests/fixtures/myca_formatted_code/try_block_and_walker_spawn_and_fstrings.jac +26 -0
  57. jaclang/compiler/passes/tool/tests/fixtures/myca_formatted_code/tuple_iteration_and_not_negation.jac +20 -0
  58. jaclang/compiler/passes/tool/tests/fixtures/myca_formatted_code/type_annotation.jac +3 -0
  59. jaclang/compiler/passes/tool/tests/fixtures/myca_formatted_code/walker_decl_only.jac +12 -0
  60. jaclang/compiler/passes/tool/tests/fixtures/myca_formatted_code/walker_with_default_values_types_and_docstrings.jac +18 -0
  61. jaclang/compiler/passes/tool/tests/fixtures/myca_formatted_code/walker_with_inline_ability_impl.jac +8 -0
  62. jaclang/compiler/passes/tool/tests/fixtures/simple_walk.jac +47 -0
  63. jaclang/compiler/passes/tool/tests/fixtures/simple_walk_fmt.jac +47 -0
  64. jaclang/compiler/tests/fixtures/fam.jac +67 -0
  65. jaclang/compiler/tests/fixtures/hello_world.jac +5 -0
  66. jaclang/compiler/tests/fixtures/kwesc.jac +5 -0
  67. jaclang/compiler/tests/fixtures/mod_doc_test.jac +1 -0
  68. jaclang/compiler/tests/fixtures/staticcheck.jac +20 -0
  69. jaclang/compiler/tests/fixtures/stuff.jac +6 -0
  70. jaclang/core/aott.py +10 -1
  71. jaclang/core/construct.py +157 -21
  72. jaclang/core/importer.py +6 -2
  73. jaclang/core/memory.py +48 -0
  74. jaclang/core/shelve_storage.py +55 -0
  75. jaclang/plugin/__init__.py +1 -2
  76. jaclang/plugin/builtin.py +1 -1
  77. jaclang/plugin/default.py +97 -4
  78. jaclang/plugin/feature.py +28 -9
  79. jaclang/plugin/spec.py +45 -10
  80. jaclang/plugin/tests/fixtures/impl_match.jac +9 -0
  81. jaclang/plugin/tests/fixtures/impl_match_impl.jac +3 -0
  82. jaclang/plugin/tests/fixtures/simple_node_connection.jac +55 -0
  83. jaclang/plugin/tests/fixtures/simple_persistent.jac +41 -0
  84. jaclang/plugin/tests/test_jaseci.py +219 -0
  85. jaclang/tests/fixtures/abc.jac +73 -0
  86. jaclang/tests/fixtures/access_checker.jac +19 -0
  87. jaclang/tests/fixtures/access_modifier.jac +49 -0
  88. jaclang/tests/fixtures/aott_raise.jac +25 -0
  89. jaclang/tests/fixtures/arithmetic_bug.jac +13 -0
  90. jaclang/tests/fixtures/assign_compr.jac +15 -0
  91. jaclang/tests/fixtures/assign_compr_dup.jac +15 -0
  92. jaclang/tests/fixtures/builtin_dotgen.jac +41 -0
  93. jaclang/tests/fixtures/chandra_bugs.jac +11 -0
  94. jaclang/tests/fixtures/chandra_bugs2.jac +26 -0
  95. jaclang/tests/fixtures/circle_pysolo.py +91 -0
  96. jaclang/tests/fixtures/deep/deeper/deep_outer_import.jac +9 -0
  97. jaclang/tests/fixtures/deep/deeper/deep_outer_import2.jac +9 -0
  98. jaclang/tests/fixtures/deep/deeper/snd_lev.jac +6 -0
  99. jaclang/tests/fixtures/deep/mycode.jac +4 -0
  100. jaclang/tests/fixtures/deep/one_lev.jac +6 -0
  101. jaclang/tests/fixtures/deep/one_lev_dup.jac +6 -0
  102. jaclang/tests/fixtures/deep/one_lev_dup_py.py +6 -0
  103. jaclang/tests/fixtures/deep_import.jac +7 -0
  104. jaclang/tests/fixtures/deferred_field.jac +13 -0
  105. jaclang/tests/fixtures/disconn.jac +29 -0
  106. jaclang/tests/fixtures/edge_node_walk.jac +46 -0
  107. jaclang/tests/fixtures/edge_ops.jac +45 -0
  108. jaclang/tests/fixtures/edges_walk.jac +38 -0
  109. jaclang/tests/fixtures/enum_inside_archtype.jac +20 -0
  110. jaclang/tests/fixtures/err.jac +5 -0
  111. jaclang/tests/fixtures/err2.jac +5 -0
  112. jaclang/tests/fixtures/game1.jac +15 -0
  113. jaclang/tests/fixtures/gendot_bubble_sort.jac +77 -0
  114. jaclang/tests/fixtures/guess_game.jac +47 -0
  115. jaclang/tests/fixtures/has_goodness.jac +15 -0
  116. jaclang/tests/fixtures/hashcheck.jac +12 -0
  117. jaclang/tests/fixtures/hashcheck_dup.jac +12 -0
  118. jaclang/tests/fixtures/hello.jac +5 -0
  119. jaclang/tests/fixtures/hello_nc.jac +5 -0
  120. jaclang/tests/fixtures/ignore.jac +43 -0
  121. jaclang/tests/fixtures/ignore_dup.jac +43 -0
  122. jaclang/tests/fixtures/impl_grab.impl.jac +4 -0
  123. jaclang/tests/fixtures/impl_grab.jac +2 -0
  124. jaclang/tests/fixtures/inherit_check.jac +33 -0
  125. jaclang/tests/fixtures/jacsamp.jac +6 -0
  126. jaclang/tests/fixtures/jp_importer.jac +17 -0
  127. jaclang/tests/fixtures/lambda.jac +6 -0
  128. jaclang/tests/fixtures/maxfail_run_test.jac +5 -0
  129. jaclang/tests/fixtures/mtest.impl.jac +6 -0
  130. jaclang/tests/fixtures/mtest.jac +6 -0
  131. jaclang/tests/fixtures/needs_import.jac +18 -0
  132. jaclang/tests/fixtures/needs_import_1.jac +6 -0
  133. jaclang/tests/fixtures/needs_import_2.jac +6 -0
  134. jaclang/tests/fixtures/needs_import_3.jac +6 -0
  135. jaclang/tests/fixtures/needs_import_dup.jac +18 -0
  136. jaclang/tests/fixtures/package_import.jac +6 -0
  137. jaclang/tests/fixtures/pyfunc.py +11 -0
  138. jaclang/tests/fixtures/pyfunc_1.py +311 -0
  139. jaclang/tests/fixtures/pyfunc_2.py +279 -0
  140. jaclang/tests/fixtures/pyfunc_3.py +310 -0
  141. jaclang/tests/fixtures/random_check.jac +70 -0
  142. jaclang/tests/fixtures/raw_byte_string.jac +18 -0
  143. jaclang/tests/fixtures/registry.jac +37 -0
  144. jaclang/tests/fixtures/run_test.jac +5 -0
  145. jaclang/tests/fixtures/semstr.jac +33 -0
  146. jaclang/tests/fixtures/simple_archs.jac +26 -0
  147. jaclang/tests/fixtures/slice_vals.jac +7 -0
  148. jaclang/tests/fixtures/sub_abil_sep.jac +15 -0
  149. jaclang/tests/fixtures/sub_abil_sep_multilev.jac +17 -0
  150. jaclang/tests/fixtures/try_finally.jac +34 -0
  151. jaclang/tests/fixtures/tupleunpack.jac +6 -0
  152. jaclang/tests/fixtures/tuplytuples.jac +8 -0
  153. jaclang/tests/fixtures/type_info.jac +19 -0
  154. jaclang/tests/fixtures/with_context.jac +30 -0
  155. jaclang/tests/fixtures/with_llm_function.jac +33 -0
  156. jaclang/tests/fixtures/with_llm_lower.jac +45 -0
  157. jaclang/tests/fixtures/with_llm_method.jac +51 -0
  158. jaclang/tests/fixtures/with_llm_type.jac +52 -0
  159. jaclang/tests/test_cli.py +239 -0
  160. jaclang/tests/test_language.py +807 -0
  161. jaclang/tests/test_man_code.py +148 -0
  162. jaclang/tests/test_reference.py +95 -0
  163. jaclang/tests/test_settings.py +46 -0
  164. jaclang/utils/treeprinter.py +7 -2
  165. jaclang/vendor/LICENSE +18 -0
  166. jaclang/vendor/mypy/stubgen.py +0 -0
  167. jaclang/vendor/mypy/stubgenc.py +0 -0
  168. jaclang/vendor/mypy/typeshed/LICENSE +237 -0
  169. jaclang/vendor/mypy/typeshed/stdlib/VERSIONS +308 -0
  170. jaclang/vendor/mypy/typeshed/stdlib/__future__.pyi +41 -0
  171. jaclang/vendor/mypy/typeshed/stdlib/__main__.pyi +3 -0
  172. jaclang/vendor/mypy/typeshed/stdlib/_ast.pyi +632 -0
  173. jaclang/vendor/mypy/typeshed/stdlib/_bisect.pyi +106 -0
  174. jaclang/vendor/mypy/typeshed/stdlib/_bootlocale.pyi +1 -0
  175. jaclang/vendor/mypy/typeshed/stdlib/_codecs.pyi +198 -0
  176. jaclang/vendor/mypy/typeshed/stdlib/_collections_abc.pyi +94 -0
  177. jaclang/vendor/mypy/typeshed/stdlib/_compat_pickle.pyi +8 -0
  178. jaclang/vendor/mypy/typeshed/stdlib/_compression.pyi +25 -0
  179. jaclang/vendor/mypy/typeshed/stdlib/_csv.pyi +90 -0
  180. jaclang/vendor/mypy/typeshed/stdlib/_ctypes.pyi +219 -0
  181. jaclang/vendor/mypy/typeshed/stdlib/_curses.pyi +600 -0
  182. jaclang/vendor/mypy/typeshed/stdlib/_decimal.pyi +316 -0
  183. jaclang/vendor/mypy/typeshed/stdlib/_dummy_thread.pyi +43 -0
  184. jaclang/vendor/mypy/typeshed/stdlib/_dummy_threading.pyi +185 -0
  185. jaclang/vendor/mypy/typeshed/stdlib/_heapq.pyi +11 -0
  186. jaclang/vendor/mypy/typeshed/stdlib/_imp.pyi +32 -0
  187. jaclang/vendor/mypy/typeshed/stdlib/_json.pyi +49 -0
  188. jaclang/vendor/mypy/typeshed/stdlib/_locale.pyi +100 -0
  189. jaclang/vendor/mypy/typeshed/stdlib/_markupbase.pyi +16 -0
  190. jaclang/vendor/mypy/typeshed/stdlib/_msi.pyi +92 -0
  191. jaclang/vendor/mypy/typeshed/stdlib/_operator.pyi +172 -0
  192. jaclang/vendor/mypy/typeshed/stdlib/_osx_support.pyi +55 -0
  193. jaclang/vendor/mypy/typeshed/stdlib/_posixsubprocess.pyi +32 -0
  194. jaclang/vendor/mypy/typeshed/stdlib/_py_abc.pyi +17 -0
  195. jaclang/vendor/mypy/typeshed/stdlib/_pydecimal.pyi +43 -0
  196. jaclang/vendor/mypy/typeshed/stdlib/_random.pyi +12 -0
  197. jaclang/vendor/mypy/typeshed/stdlib/_sitebuiltins.pyi +18 -0
  198. jaclang/vendor/mypy/typeshed/stdlib/_socket.pyi +851 -0
  199. jaclang/vendor/mypy/typeshed/stdlib/_stat.pyi +103 -0
  200. jaclang/vendor/mypy/typeshed/stdlib/_thread.pyi +63 -0
  201. jaclang/vendor/mypy/typeshed/stdlib/_threading_local.pyi +17 -0
  202. jaclang/vendor/mypy/typeshed/stdlib/_tkinter.pyi +120 -0
  203. jaclang/vendor/mypy/typeshed/stdlib/_tracemalloc.pyi +17 -0
  204. jaclang/vendor/mypy/typeshed/stdlib/_typeshed/README.md +34 -0
  205. jaclang/vendor/mypy/typeshed/stdlib/_typeshed/__init__.pyi +374 -0
  206. jaclang/vendor/mypy/typeshed/stdlib/_typeshed/dbapi.pyi +45 -0
  207. jaclang/vendor/mypy/typeshed/stdlib/_typeshed/wsgi.pyi +51 -0
  208. jaclang/vendor/mypy/typeshed/stdlib/_typeshed/xml.pyi +13 -0
  209. jaclang/vendor/mypy/typeshed/stdlib/_warnings.pyi +65 -0
  210. jaclang/vendor/mypy/typeshed/stdlib/_weakref.pyi +45 -0
  211. jaclang/vendor/mypy/typeshed/stdlib/_weakrefset.pyi +51 -0
  212. jaclang/vendor/mypy/typeshed/stdlib/_winapi.pyi +275 -0
  213. jaclang/vendor/mypy/typeshed/stdlib/abc.pyi +61 -0
  214. jaclang/vendor/mypy/typeshed/stdlib/aifc.pyi +99 -0
  215. jaclang/vendor/mypy/typeshed/stdlib/antigravity.pyi +3 -0
  216. jaclang/vendor/mypy/typeshed/stdlib/argparse.pyi +675 -0
  217. jaclang/vendor/mypy/typeshed/stdlib/array.pyi +111 -0
  218. jaclang/vendor/mypy/typeshed/stdlib/ast.pyi +287 -0
  219. jaclang/vendor/mypy/typeshed/stdlib/asynchat.pyi +21 -0
  220. jaclang/vendor/mypy/typeshed/stdlib/asyncio/__init__.pyi +41 -0
  221. jaclang/vendor/mypy/typeshed/stdlib/asyncio/base_events.pyi +519 -0
  222. jaclang/vendor/mypy/typeshed/stdlib/asyncio/base_futures.pyi +21 -0
  223. jaclang/vendor/mypy/typeshed/stdlib/asyncio/base_subprocess.pyi +71 -0
  224. jaclang/vendor/mypy/typeshed/stdlib/asyncio/base_tasks.pyi +13 -0
  225. jaclang/vendor/mypy/typeshed/stdlib/asyncio/constants.pyi +20 -0
  226. jaclang/vendor/mypy/typeshed/stdlib/asyncio/coroutines.pyi +32 -0
  227. jaclang/vendor/mypy/typeshed/stdlib/asyncio/events.pyi +669 -0
  228. jaclang/vendor/mypy/typeshed/stdlib/asyncio/exceptions.pyi +43 -0
  229. jaclang/vendor/mypy/typeshed/stdlib/asyncio/format_helpers.pyi +26 -0
  230. jaclang/vendor/mypy/typeshed/stdlib/asyncio/futures.pyi +61 -0
  231. jaclang/vendor/mypy/typeshed/stdlib/asyncio/locks.pyi +131 -0
  232. jaclang/vendor/mypy/typeshed/stdlib/asyncio/log.pyi +3 -0
  233. jaclang/vendor/mypy/typeshed/stdlib/asyncio/mixins.pyi +9 -0
  234. jaclang/vendor/mypy/typeshed/stdlib/asyncio/proactor_events.pyi +72 -0
  235. jaclang/vendor/mypy/typeshed/stdlib/asyncio/protocols.pyi +40 -0
  236. jaclang/vendor/mypy/typeshed/stdlib/asyncio/queues.pyi +49 -0
  237. jaclang/vendor/mypy/typeshed/stdlib/asyncio/runners.pyi +44 -0
  238. jaclang/vendor/mypy/typeshed/stdlib/asyncio/selector_events.pyi +8 -0
  239. jaclang/vendor/mypy/typeshed/stdlib/asyncio/sslproto.pyi +189 -0
  240. jaclang/vendor/mypy/typeshed/stdlib/asyncio/staggered.pyi +13 -0
  241. jaclang/vendor/mypy/typeshed/stdlib/asyncio/streams.pyi +172 -0
  242. jaclang/vendor/mypy/typeshed/stdlib/asyncio/subprocess.pyi +234 -0
  243. jaclang/vendor/mypy/typeshed/stdlib/asyncio/taskgroups.pyi +36 -0
  244. jaclang/vendor/mypy/typeshed/stdlib/asyncio/tasks.pyi +566 -0
  245. jaclang/vendor/mypy/typeshed/stdlib/asyncio/threads.pyi +11 -0
  246. jaclang/vendor/mypy/typeshed/stdlib/asyncio/timeouts.pyi +22 -0
  247. jaclang/vendor/mypy/typeshed/stdlib/asyncio/transports.pyi +64 -0
  248. jaclang/vendor/mypy/typeshed/stdlib/asyncio/trsock.pyi +140 -0
  249. jaclang/vendor/mypy/typeshed/stdlib/asyncio/unix_events.pyi +268 -0
  250. jaclang/vendor/mypy/typeshed/stdlib/asyncio/windows_events.pyi +108 -0
  251. jaclang/vendor/mypy/typeshed/stdlib/asyncio/windows_utils.pyi +59 -0
  252. jaclang/vendor/mypy/typeshed/stdlib/asyncore.pyi +99 -0
  253. jaclang/vendor/mypy/typeshed/stdlib/atexit.pyi +14 -0
  254. jaclang/vendor/mypy/typeshed/stdlib/audioop.pyi +50 -0
  255. jaclang/vendor/mypy/typeshed/stdlib/base64.pyi +76 -0
  256. jaclang/vendor/mypy/typeshed/stdlib/bdb.pyi +133 -0
  257. jaclang/vendor/mypy/typeshed/stdlib/binascii.pyi +45 -0
  258. jaclang/vendor/mypy/typeshed/stdlib/binhex.pyi +47 -0
  259. jaclang/vendor/mypy/typeshed/stdlib/bisect.pyi +4 -0
  260. jaclang/vendor/mypy/typeshed/stdlib/builtins.pyi +2310 -0
  261. jaclang/vendor/mypy/typeshed/stdlib/bz2.pyi +177 -0
  262. jaclang/vendor/mypy/typeshed/stdlib/cProfile.pyi +49 -0
  263. jaclang/vendor/mypy/typeshed/stdlib/calendar.pyi +248 -0
  264. jaclang/vendor/mypy/typeshed/stdlib/cgi.pyi +122 -0
  265. jaclang/vendor/mypy/typeshed/stdlib/cgitb.pyi +44 -0
  266. jaclang/vendor/mypy/typeshed/stdlib/chunk.pyi +26 -0
  267. jaclang/vendor/mypy/typeshed/stdlib/cmath.pyi +38 -0
  268. jaclang/vendor/mypy/typeshed/stdlib/cmd.pyi +52 -0
  269. jaclang/vendor/mypy/typeshed/stdlib/code.pyi +46 -0
  270. jaclang/vendor/mypy/typeshed/stdlib/codecs.pyi +344 -0
  271. jaclang/vendor/mypy/typeshed/stdlib/codeop.pyi +17 -0
  272. jaclang/vendor/mypy/typeshed/stdlib/collections/__init__.pyi +571 -0
  273. jaclang/vendor/mypy/typeshed/stdlib/collections/abc.pyi +2 -0
  274. jaclang/vendor/mypy/typeshed/stdlib/colorsys.pyi +20 -0
  275. jaclang/vendor/mypy/typeshed/stdlib/compileall.pyi +111 -0
  276. jaclang/vendor/mypy/typeshed/stdlib/concurrent/futures/__init__.pyi +32 -0
  277. jaclang/vendor/mypy/typeshed/stdlib/concurrent/futures/_base.pyi +137 -0
  278. jaclang/vendor/mypy/typeshed/stdlib/concurrent/futures/process.pyi +272 -0
  279. jaclang/vendor/mypy/typeshed/stdlib/concurrent/futures/thread.pyi +86 -0
  280. jaclang/vendor/mypy/typeshed/stdlib/configparser.pyi +449 -0
  281. jaclang/vendor/mypy/typeshed/stdlib/contextlib.pyi +274 -0
  282. jaclang/vendor/mypy/typeshed/stdlib/contextvars.pyi +67 -0
  283. jaclang/vendor/mypy/typeshed/stdlib/copy.pyi +16 -0
  284. jaclang/vendor/mypy/typeshed/stdlib/copyreg.pyi +32 -0
  285. jaclang/vendor/mypy/typeshed/stdlib/crypt.pyi +12 -0
  286. jaclang/vendor/mypy/typeshed/stdlib/csv.pyi +147 -0
  287. jaclang/vendor/mypy/typeshed/stdlib/ctypes/__init__.pyi +211 -0
  288. jaclang/vendor/mypy/typeshed/stdlib/ctypes/_endian.pyi +29 -0
  289. jaclang/vendor/mypy/typeshed/stdlib/ctypes/util.pyi +6 -0
  290. jaclang/vendor/mypy/typeshed/stdlib/ctypes/wintypes.pyi +298 -0
  291. jaclang/vendor/mypy/typeshed/stdlib/curses/__init__.pyi +25 -0
  292. jaclang/vendor/mypy/typeshed/stdlib/curses/ascii.pyi +63 -0
  293. jaclang/vendor/mypy/typeshed/stdlib/curses/has_key.pyi +4 -0
  294. jaclang/vendor/mypy/typeshed/stdlib/curses/panel.pyi +25 -0
  295. jaclang/vendor/mypy/typeshed/stdlib/curses/textpad.pyi +15 -0
  296. jaclang/vendor/mypy/typeshed/stdlib/dataclasses.pyi +323 -0
  297. jaclang/vendor/mypy/typeshed/stdlib/datetime.pyi +334 -0
  298. jaclang/vendor/mypy/typeshed/stdlib/dbm/__init__.pyi +98 -0
  299. jaclang/vendor/mypy/typeshed/stdlib/dbm/dumb.pyi +34 -0
  300. jaclang/vendor/mypy/typeshed/stdlib/dbm/gnu.pyi +44 -0
  301. jaclang/vendor/mypy/typeshed/stdlib/dbm/ndbm.pyi +40 -0
  302. jaclang/vendor/mypy/typeshed/stdlib/decimal.pyi +5 -0
  303. jaclang/vendor/mypy/typeshed/stdlib/difflib.pyi +169 -0
  304. jaclang/vendor/mypy/typeshed/stdlib/dis.pyi +190 -0
  305. jaclang/vendor/mypy/typeshed/stdlib/distutils/__init__.pyi +5 -0
  306. jaclang/vendor/mypy/typeshed/stdlib/distutils/archive_util.pyi +22 -0
  307. jaclang/vendor/mypy/typeshed/stdlib/distutils/bcppcompiler.pyi +3 -0
  308. jaclang/vendor/mypy/typeshed/stdlib/distutils/ccompiler.pyi +183 -0
  309. jaclang/vendor/mypy/typeshed/stdlib/distutils/cmd.pyi +88 -0
  310. jaclang/vendor/mypy/typeshed/stdlib/distutils/command/__init__.pyi +0 -0
  311. jaclang/vendor/mypy/typeshed/stdlib/distutils/command/bdist.pyi +25 -0
  312. jaclang/vendor/mypy/typeshed/stdlib/distutils/command/bdist_dumb.pyi +21 -0
  313. jaclang/vendor/mypy/typeshed/stdlib/distutils/command/bdist_msi.pyi +45 -0
  314. jaclang/vendor/mypy/typeshed/stdlib/distutils/command/bdist_packager.pyi +0 -0
  315. jaclang/vendor/mypy/typeshed/stdlib/distutils/command/bdist_rpm.pyi +52 -0
  316. jaclang/vendor/mypy/typeshed/stdlib/distutils/command/bdist_wininst.pyi +21 -0
  317. jaclang/vendor/mypy/typeshed/stdlib/distutils/command/build.pyi +31 -0
  318. jaclang/vendor/mypy/typeshed/stdlib/distutils/command/build_clib.pyi +27 -0
  319. jaclang/vendor/mypy/typeshed/stdlib/distutils/command/build_ext.pyi +50 -0
  320. jaclang/vendor/mypy/typeshed/stdlib/distutils/command/build_py.pyi +44 -0
  321. jaclang/vendor/mypy/typeshed/stdlib/distutils/command/build_scripts.pyi +24 -0
  322. jaclang/vendor/mypy/typeshed/stdlib/distutils/command/check.pyi +39 -0
  323. jaclang/vendor/mypy/typeshed/stdlib/distutils/command/clean.pyi +17 -0
  324. jaclang/vendor/mypy/typeshed/stdlib/distutils/command/config.pyi +91 -0
  325. jaclang/vendor/mypy/typeshed/stdlib/distutils/command/install.pyi +63 -0
  326. jaclang/vendor/mypy/typeshed/stdlib/distutils/command/install_data.pyi +19 -0
  327. jaclang/vendor/mypy/typeshed/stdlib/distutils/command/install_egg_info.pyi +18 -0
  328. jaclang/vendor/mypy/typeshed/stdlib/distutils/command/install_headers.pyi +16 -0
  329. jaclang/vendor/mypy/typeshed/stdlib/distutils/command/install_lib.pyi +25 -0
  330. jaclang/vendor/mypy/typeshed/stdlib/distutils/command/install_scripts.pyi +18 -0
  331. jaclang/vendor/mypy/typeshed/stdlib/distutils/command/register.pyi +18 -0
  332. jaclang/vendor/mypy/typeshed/stdlib/distutils/command/sdist.pyi +42 -0
  333. jaclang/vendor/mypy/typeshed/stdlib/distutils/command/upload.pyi +17 -0
  334. jaclang/vendor/mypy/typeshed/stdlib/distutils/config.pyi +17 -0
  335. jaclang/vendor/mypy/typeshed/stdlib/distutils/core.pyi +59 -0
  336. jaclang/vendor/mypy/typeshed/stdlib/distutils/cygwinccompiler.pyi +20 -0
  337. jaclang/vendor/mypy/typeshed/stdlib/distutils/debug.pyi +1 -0
  338. jaclang/vendor/mypy/typeshed/stdlib/distutils/dep_util.pyi +3 -0
  339. jaclang/vendor/mypy/typeshed/stdlib/distutils/dir_util.pyi +21 -0
  340. jaclang/vendor/mypy/typeshed/stdlib/distutils/dist.pyi +155 -0
  341. jaclang/vendor/mypy/typeshed/stdlib/distutils/errors.pyi +19 -0
  342. jaclang/vendor/mypy/typeshed/stdlib/distutils/extension.pyi +36 -0
  343. jaclang/vendor/mypy/typeshed/stdlib/distutils/fancy_getopt.pyi +37 -0
  344. jaclang/vendor/mypy/typeshed/stdlib/distutils/file_util.pyi +14 -0
  345. jaclang/vendor/mypy/typeshed/stdlib/distutils/filelist.pyi +78 -0
  346. jaclang/vendor/mypy/typeshed/stdlib/distutils/log.pyi +25 -0
  347. jaclang/vendor/mypy/typeshed/stdlib/distutils/msvccompiler.pyi +3 -0
  348. jaclang/vendor/mypy/typeshed/stdlib/distutils/spawn.pyi +4 -0
  349. jaclang/vendor/mypy/typeshed/stdlib/distutils/sysconfig.pyi +24 -0
  350. jaclang/vendor/mypy/typeshed/stdlib/distutils/text_file.pyi +23 -0
  351. jaclang/vendor/mypy/typeshed/stdlib/distutils/unixccompiler.pyi +3 -0
  352. jaclang/vendor/mypy/typeshed/stdlib/distutils/util.pyi +50 -0
  353. jaclang/vendor/mypy/typeshed/stdlib/distutils/version.pyi +36 -0
  354. jaclang/vendor/mypy/typeshed/stdlib/doctest.pyi +282 -0
  355. jaclang/vendor/mypy/typeshed/stdlib/dummy_threading.pyi +2 -0
  356. jaclang/vendor/mypy/typeshed/stdlib/email/__init__.pyi +37 -0
  357. jaclang/vendor/mypy/typeshed/stdlib/email/_header_value_parser.pyi +392 -0
  358. jaclang/vendor/mypy/typeshed/stdlib/email/_policybase.pyi +51 -0
  359. jaclang/vendor/mypy/typeshed/stdlib/email/base64mime.pyi +22 -0
  360. jaclang/vendor/mypy/typeshed/stdlib/email/charset.pyi +39 -0
  361. jaclang/vendor/mypy/typeshed/stdlib/email/contentmanager.pyi +11 -0
  362. jaclang/vendor/mypy/typeshed/stdlib/email/encoders.pyi +8 -0
  363. jaclang/vendor/mypy/typeshed/stdlib/email/errors.pyi +39 -0
  364. jaclang/vendor/mypy/typeshed/stdlib/email/feedparser.pyi +31 -0
  365. jaclang/vendor/mypy/typeshed/stdlib/email/generator.pyi +42 -0
  366. jaclang/vendor/mypy/typeshed/stdlib/email/header.pyi +41 -0
  367. jaclang/vendor/mypy/typeshed/stdlib/email/headerregistry.pyi +214 -0
  368. jaclang/vendor/mypy/typeshed/stdlib/email/iterators.pyi +19 -0
  369. jaclang/vendor/mypy/typeshed/stdlib/email/message.pyi +220 -0
  370. jaclang/vendor/mypy/typeshed/stdlib/email/mime/__init__.pyi +0 -0
  371. jaclang/vendor/mypy/typeshed/stdlib/email/mime/application.pyi +17 -0
  372. jaclang/vendor/mypy/typeshed/stdlib/email/mime/audio.pyi +17 -0
  373. jaclang/vendor/mypy/typeshed/stdlib/email/mime/base.pyi +15 -0
  374. jaclang/vendor/mypy/typeshed/stdlib/email/mime/image.pyi +17 -0
  375. jaclang/vendor/mypy/typeshed/stdlib/email/mime/message.pyi +10 -0
  376. jaclang/vendor/mypy/typeshed/stdlib/email/mime/multipart.pyi +18 -0
  377. jaclang/vendor/mypy/typeshed/stdlib/email/mime/nonmultipart.pyi +5 -0
  378. jaclang/vendor/mypy/typeshed/stdlib/email/mime/text.pyi +14 -0
  379. jaclang/vendor/mypy/typeshed/stdlib/email/parser.pyi +44 -0
  380. jaclang/vendor/mypy/typeshed/stdlib/email/policy.pyi +51 -0
  381. jaclang/vendor/mypy/typeshed/stdlib/email/quoprimime.pyi +30 -0
  382. jaclang/vendor/mypy/typeshed/stdlib/email/utils.pyi +84 -0
  383. jaclang/vendor/mypy/typeshed/stdlib/encodings/__init__.pyi +10 -0
  384. jaclang/vendor/mypy/typeshed/stdlib/encodings/utf_8.pyi +25 -0
  385. jaclang/vendor/mypy/typeshed/stdlib/encodings/utf_8_sig.pyi +28 -0
  386. jaclang/vendor/mypy/typeshed/stdlib/ensurepip/__init__.pyi +12 -0
  387. jaclang/vendor/mypy/typeshed/stdlib/enum.pyi +347 -0
  388. jaclang/vendor/mypy/typeshed/stdlib/errno.pyi +222 -0
  389. jaclang/vendor/mypy/typeshed/stdlib/faulthandler.pyi +20 -0
  390. jaclang/vendor/mypy/typeshed/stdlib/fcntl.pyi +155 -0
  391. jaclang/vendor/mypy/typeshed/stdlib/filecmp.pyi +62 -0
  392. jaclang/vendor/mypy/typeshed/stdlib/fileinput.pyi +246 -0
  393. jaclang/vendor/mypy/typeshed/stdlib/fnmatch.pyi +9 -0
  394. jaclang/vendor/mypy/typeshed/stdlib/formatter.pyi +92 -0
  395. jaclang/vendor/mypy/typeshed/stdlib/fractions.pyi +152 -0
  396. jaclang/vendor/mypy/typeshed/stdlib/ftplib.pyi +214 -0
  397. jaclang/vendor/mypy/typeshed/stdlib/functools.pyi +261 -0
  398. jaclang/vendor/mypy/typeshed/stdlib/gc.pyi +39 -0
  399. jaclang/vendor/mypy/typeshed/stdlib/genericpath.pyi +62 -0
  400. jaclang/vendor/mypy/typeshed/stdlib/getopt.pyi +15 -0
  401. jaclang/vendor/mypy/typeshed/stdlib/getpass.pyi +8 -0
  402. jaclang/vendor/mypy/typeshed/stdlib/gettext.pyi +200 -0
  403. jaclang/vendor/mypy/typeshed/stdlib/glob.pyi +50 -0
  404. jaclang/vendor/mypy/typeshed/stdlib/graphlib.pyi +28 -0
  405. jaclang/vendor/mypy/typeshed/stdlib/grp.pyi +22 -0
  406. jaclang/vendor/mypy/typeshed/stdlib/gzip.pyi +162 -0
  407. jaclang/vendor/mypy/typeshed/stdlib/hashlib.pyi +191 -0
  408. jaclang/vendor/mypy/typeshed/stdlib/heapq.pyi +36 -0
  409. jaclang/vendor/mypy/typeshed/stdlib/hmac.pyi +45 -0
  410. jaclang/vendor/mypy/typeshed/stdlib/html/__init__.pyi +6 -0
  411. jaclang/vendor/mypy/typeshed/stdlib/html/entities.pyi +6 -0
  412. jaclang/vendor/mypy/typeshed/stdlib/html/parser.pyi +40 -0
  413. jaclang/vendor/mypy/typeshed/stdlib/http/__init__.pyi +105 -0
  414. jaclang/vendor/mypy/typeshed/stdlib/http/client.pyi +283 -0
  415. jaclang/vendor/mypy/typeshed/stdlib/http/cookiejar.pyi +206 -0
  416. jaclang/vendor/mypy/typeshed/stdlib/http/cookies.pyi +67 -0
  417. jaclang/vendor/mypy/typeshed/stdlib/http/server.pyi +93 -0
  418. jaclang/vendor/mypy/typeshed/stdlib/imaplib.pyi +221 -0
  419. jaclang/vendor/mypy/typeshed/stdlib/imghdr.pyi +17 -0
  420. jaclang/vendor/mypy/typeshed/stdlib/imp.pyi +75 -0
  421. jaclang/vendor/mypy/typeshed/stdlib/importlib/__init__.pyi +24 -0
  422. jaclang/vendor/mypy/typeshed/stdlib/importlib/_abc.pyi +15 -0
  423. jaclang/vendor/mypy/typeshed/stdlib/importlib/abc.pyi +195 -0
  424. jaclang/vendor/mypy/typeshed/stdlib/importlib/machinery.pyi +214 -0
  425. jaclang/vendor/mypy/typeshed/stdlib/importlib/metadata/__init__.pyi +310 -0
  426. jaclang/vendor/mypy/typeshed/stdlib/importlib/metadata/_meta.pyi +40 -0
  427. jaclang/vendor/mypy/typeshed/stdlib/importlib/readers.pyi +68 -0
  428. jaclang/vendor/mypy/typeshed/stdlib/importlib/resources/__init__.pyi +66 -0
  429. jaclang/vendor/mypy/typeshed/stdlib/importlib/resources/abc.pyi +12 -0
  430. jaclang/vendor/mypy/typeshed/stdlib/importlib/resources/readers.pyi +14 -0
  431. jaclang/vendor/mypy/typeshed/stdlib/importlib/resources/simple.pyi +55 -0
  432. jaclang/vendor/mypy/typeshed/stdlib/importlib/simple.pyi +16 -0
  433. jaclang/vendor/mypy/typeshed/stdlib/importlib/util.pyi +57 -0
  434. jaclang/vendor/mypy/typeshed/stdlib/inspect.pyi +709 -0
  435. jaclang/vendor/mypy/typeshed/stdlib/io.pyi +222 -0
  436. jaclang/vendor/mypy/typeshed/stdlib/ipaddress.pyi +229 -0
  437. jaclang/vendor/mypy/typeshed/stdlib/itertools.pyi +394 -0
  438. jaclang/vendor/mypy/typeshed/stdlib/json/__init__.pyi +69 -0
  439. jaclang/vendor/mypy/typeshed/stdlib/json/decoder.pyi +34 -0
  440. jaclang/vendor/mypy/typeshed/stdlib/json/encoder.pyi +38 -0
  441. jaclang/vendor/mypy/typeshed/stdlib/json/tool.pyi +1 -0
  442. jaclang/vendor/mypy/typeshed/stdlib/keyword.pyi +21 -0
  443. jaclang/vendor/mypy/typeshed/stdlib/lib2to3/__init__.pyi +0 -0
  444. jaclang/vendor/mypy/typeshed/stdlib/lib2to3/btm_matcher.pyi +32 -0
  445. jaclang/vendor/mypy/typeshed/stdlib/lib2to3/fixer_base.pyi +44 -0
  446. jaclang/vendor/mypy/typeshed/stdlib/lib2to3/fixes/__init__.pyi +0 -0
  447. jaclang/vendor/mypy/typeshed/stdlib/lib2to3/fixes/fix_apply.pyi +8 -0
  448. jaclang/vendor/mypy/typeshed/stdlib/lib2to3/fixes/fix_asserts.pyi +10 -0
  449. jaclang/vendor/mypy/typeshed/stdlib/lib2to3/fixes/fix_basestring.pyi +8 -0
  450. jaclang/vendor/mypy/typeshed/stdlib/lib2to3/fixes/fix_buffer.pyi +8 -0
  451. jaclang/vendor/mypy/typeshed/stdlib/lib2to3/fixes/fix_dict.pyi +16 -0
  452. jaclang/vendor/mypy/typeshed/stdlib/lib2to3/fixes/fix_except.pyi +14 -0
  453. jaclang/vendor/mypy/typeshed/stdlib/lib2to3/fixes/fix_exec.pyi +8 -0
  454. jaclang/vendor/mypy/typeshed/stdlib/lib2to3/fixes/fix_execfile.pyi +8 -0
  455. jaclang/vendor/mypy/typeshed/stdlib/lib2to3/fixes/fix_exitfunc.pyi +13 -0
  456. jaclang/vendor/mypy/typeshed/stdlib/lib2to3/fixes/fix_filter.pyi +9 -0
  457. jaclang/vendor/mypy/typeshed/stdlib/lib2to3/fixes/fix_funcattrs.pyi +8 -0
  458. jaclang/vendor/mypy/typeshed/stdlib/lib2to3/fixes/fix_future.pyi +8 -0
  459. jaclang/vendor/mypy/typeshed/stdlib/lib2to3/fixes/fix_getcwdu.pyi +8 -0
  460. jaclang/vendor/mypy/typeshed/stdlib/lib2to3/fixes/fix_has_key.pyi +8 -0
  461. jaclang/vendor/mypy/typeshed/stdlib/lib2to3/fixes/fix_idioms.pyi +15 -0
  462. jaclang/vendor/mypy/typeshed/stdlib/lib2to3/fixes/fix_import.pyi +16 -0
  463. jaclang/vendor/mypy/typeshed/stdlib/lib2to3/fixes/fix_imports.pyi +21 -0
  464. jaclang/vendor/mypy/typeshed/stdlib/lib2to3/fixes/fix_imports2.pyi +6 -0
  465. jaclang/vendor/mypy/typeshed/stdlib/lib2to3/fixes/fix_input.pyi +11 -0
  466. jaclang/vendor/mypy/typeshed/stdlib/lib2to3/fixes/fix_intern.pyi +9 -0
  467. jaclang/vendor/mypy/typeshed/stdlib/lib2to3/fixes/fix_isinstance.pyi +8 -0
  468. jaclang/vendor/mypy/typeshed/stdlib/lib2to3/fixes/fix_itertools.pyi +9 -0
  469. jaclang/vendor/mypy/typeshed/stdlib/lib2to3/fixes/fix_itertools_imports.pyi +7 -0
  470. jaclang/vendor/mypy/typeshed/stdlib/lib2to3/fixes/fix_long.pyi +7 -0
  471. jaclang/vendor/mypy/typeshed/stdlib/lib2to3/fixes/fix_map.pyi +9 -0
  472. jaclang/vendor/mypy/typeshed/stdlib/lib2to3/fixes/fix_metaclass.pyi +17 -0
  473. jaclang/vendor/mypy/typeshed/stdlib/lib2to3/fixes/fix_methodattrs.pyi +10 -0
  474. jaclang/vendor/mypy/typeshed/stdlib/lib2to3/fixes/fix_ne.pyi +8 -0
  475. jaclang/vendor/mypy/typeshed/stdlib/lib2to3/fixes/fix_next.pyi +19 -0
  476. jaclang/vendor/mypy/typeshed/stdlib/lib2to3/fixes/fix_nonzero.pyi +8 -0
  477. jaclang/vendor/mypy/typeshed/stdlib/lib2to3/fixes/fix_numliterals.pyi +8 -0
  478. jaclang/vendor/mypy/typeshed/stdlib/lib2to3/fixes/fix_operator.pyi +12 -0
  479. jaclang/vendor/mypy/typeshed/stdlib/lib2to3/fixes/fix_paren.pyi +8 -0
  480. jaclang/vendor/mypy/typeshed/stdlib/lib2to3/fixes/fix_print.pyi +12 -0
  481. jaclang/vendor/mypy/typeshed/stdlib/lib2to3/fixes/fix_raise.pyi +8 -0
  482. jaclang/vendor/mypy/typeshed/stdlib/lib2to3/fixes/fix_raw_input.pyi +8 -0
  483. jaclang/vendor/mypy/typeshed/stdlib/lib2to3/fixes/fix_reduce.pyi +8 -0
  484. jaclang/vendor/mypy/typeshed/stdlib/lib2to3/fixes/fix_reload.pyi +9 -0
  485. jaclang/vendor/mypy/typeshed/stdlib/lib2to3/fixes/fix_renames.pyi +17 -0
  486. jaclang/vendor/mypy/typeshed/stdlib/lib2to3/fixes/fix_repr.pyi +8 -0
  487. jaclang/vendor/mypy/typeshed/stdlib/lib2to3/fixes/fix_set_literal.pyi +7 -0
  488. jaclang/vendor/mypy/typeshed/stdlib/lib2to3/fixes/fix_standarderror.pyi +8 -0
  489. jaclang/vendor/mypy/typeshed/stdlib/lib2to3/fixes/fix_sys_exc.pyi +9 -0
  490. jaclang/vendor/mypy/typeshed/stdlib/lib2to3/fixes/fix_throw.pyi +8 -0
  491. jaclang/vendor/mypy/typeshed/stdlib/lib2to3/fixes/fix_tuple_params.pyi +17 -0
  492. jaclang/vendor/mypy/typeshed/stdlib/lib2to3/fixes/fix_types.pyi +8 -0
  493. jaclang/vendor/mypy/typeshed/stdlib/lib2to3/fixes/fix_unicode.pyi +12 -0
  494. jaclang/vendor/mypy/typeshed/stdlib/lib2to3/fixes/fix_urllib.pyi +18 -0
  495. jaclang/vendor/mypy/typeshed/stdlib/lib2to3/fixes/fix_ws_comma.pyi +12 -0
  496. jaclang/vendor/mypy/typeshed/stdlib/lib2to3/fixes/fix_xrange.pyi +20 -0
  497. jaclang/vendor/mypy/typeshed/stdlib/lib2to3/fixes/fix_xreadlines.pyi +8 -0
  498. jaclang/vendor/mypy/typeshed/stdlib/lib2to3/fixes/fix_zip.pyi +9 -0
  499. jaclang/vendor/mypy/typeshed/stdlib/lib2to3/main.pyi +46 -0
  500. jaclang/vendor/mypy/typeshed/stdlib/lib2to3/pgen2/__init__.pyi +9 -0
  501. jaclang/vendor/mypy/typeshed/stdlib/lib2to3/pgen2/driver.pyi +40 -0
  502. jaclang/vendor/mypy/typeshed/stdlib/lib2to3/pgen2/grammar.pyi +24 -0
  503. jaclang/vendor/mypy/typeshed/stdlib/lib2to3/pgen2/literals.pyi +7 -0
  504. jaclang/vendor/mypy/typeshed/stdlib/lib2to3/pgen2/parse.pyi +36 -0
  505. jaclang/vendor/mypy/typeshed/stdlib/lib2to3/pgen2/pgen.pyi +52 -0
  506. jaclang/vendor/mypy/typeshed/stdlib/lib2to3/pgen2/token.pyi +67 -0
  507. jaclang/vendor/mypy/typeshed/stdlib/lib2to3/pgen2/tokenize.pyi +98 -0
  508. jaclang/vendor/mypy/typeshed/stdlib/lib2to3/pygram.pyi +114 -0
  509. jaclang/vendor/mypy/typeshed/stdlib/lib2to3/pytree.pyi +142 -0
  510. jaclang/vendor/mypy/typeshed/stdlib/lib2to3/refactor.pyi +122 -0
  511. jaclang/vendor/mypy/typeshed/stdlib/linecache.pyi +29 -0
  512. jaclang/vendor/mypy/typeshed/stdlib/locale.pyi +165 -0
  513. jaclang/vendor/mypy/typeshed/stdlib/logging/__init__.pyi +685 -0
  514. jaclang/vendor/mypy/typeshed/stdlib/logging/config.pyi +161 -0
  515. jaclang/vendor/mypy/typeshed/stdlib/logging/handlers.pyi +315 -0
  516. jaclang/vendor/mypy/typeshed/stdlib/lzma.pyi +213 -0
  517. jaclang/vendor/mypy/typeshed/stdlib/mailbox.pyi +306 -0
  518. jaclang/vendor/mypy/typeshed/stdlib/mailcap.pyi +15 -0
  519. jaclang/vendor/mypy/typeshed/stdlib/marshal.pyi +35 -0
  520. jaclang/vendor/mypy/typeshed/stdlib/math.pyi +134 -0
  521. jaclang/vendor/mypy/typeshed/stdlib/mimetypes.pyi +50 -0
  522. jaclang/vendor/mypy/typeshed/stdlib/mmap.pyi +126 -0
  523. jaclang/vendor/mypy/typeshed/stdlib/modulefinder.pyi +84 -0
  524. jaclang/vendor/mypy/typeshed/stdlib/msilib/__init__.pyi +237 -0
  525. jaclang/vendor/mypy/typeshed/stdlib/msilib/schema.pyi +107 -0
  526. jaclang/vendor/mypy/typeshed/stdlib/msilib/sequence.pyi +13 -0
  527. jaclang/vendor/mypy/typeshed/stdlib/msilib/text.pyi +7 -0
  528. jaclang/vendor/mypy/typeshed/stdlib/msvcrt.pyi +32 -0
  529. jaclang/vendor/mypy/typeshed/stdlib/multiprocessing/__init__.pyi +94 -0
  530. jaclang/vendor/mypy/typeshed/stdlib/multiprocessing/connection.pyi +94 -0
  531. jaclang/vendor/mypy/typeshed/stdlib/multiprocessing/context.pyi +235 -0
  532. jaclang/vendor/mypy/typeshed/stdlib/multiprocessing/dummy/__init__.pyi +83 -0
  533. jaclang/vendor/mypy/typeshed/stdlib/multiprocessing/dummy/connection.pyi +50 -0
  534. jaclang/vendor/mypy/typeshed/stdlib/multiprocessing/forkserver.pyi +36 -0
  535. jaclang/vendor/mypy/typeshed/stdlib/multiprocessing/heap.pyi +38 -0
  536. jaclang/vendor/mypy/typeshed/stdlib/multiprocessing/managers.pyi +270 -0
  537. jaclang/vendor/mypy/typeshed/stdlib/multiprocessing/pool.pyi +137 -0
  538. jaclang/vendor/mypy/typeshed/stdlib/multiprocessing/popen_fork.pyi +23 -0
  539. jaclang/vendor/mypy/typeshed/stdlib/multiprocessing/popen_forkserver.pyi +16 -0
  540. jaclang/vendor/mypy/typeshed/stdlib/multiprocessing/popen_spawn_posix.pyi +20 -0
  541. jaclang/vendor/mypy/typeshed/stdlib/multiprocessing/popen_spawn_win32.pyi +30 -0
  542. jaclang/vendor/mypy/typeshed/stdlib/multiprocessing/process.pyi +39 -0
  543. jaclang/vendor/mypy/typeshed/stdlib/multiprocessing/queues.pyi +43 -0
  544. jaclang/vendor/mypy/typeshed/stdlib/multiprocessing/reduction.pyi +118 -0
  545. jaclang/vendor/mypy/typeshed/stdlib/multiprocessing/resource_sharer.pyi +20 -0
  546. jaclang/vendor/mypy/typeshed/stdlib/multiprocessing/resource_tracker.pyi +18 -0
  547. jaclang/vendor/mypy/typeshed/stdlib/multiprocessing/shared_memory.pyi +44 -0
  548. jaclang/vendor/mypy/typeshed/stdlib/multiprocessing/sharedctypes.pyi +140 -0
  549. jaclang/vendor/mypy/typeshed/stdlib/multiprocessing/spawn.pyi +34 -0
  550. jaclang/vendor/mypy/typeshed/stdlib/multiprocessing/synchronize.pyi +66 -0
  551. jaclang/vendor/mypy/typeshed/stdlib/multiprocessing/util.pyi +83 -0
  552. jaclang/vendor/mypy/typeshed/stdlib/netrc.pyi +28 -0
  553. jaclang/vendor/mypy/typeshed/stdlib/nis.pyi +9 -0
  554. jaclang/vendor/mypy/typeshed/stdlib/nntplib.pyi +151 -0
  555. jaclang/vendor/mypy/typeshed/stdlib/nt.pyi +114 -0
  556. jaclang/vendor/mypy/typeshed/stdlib/ntpath.pyi +119 -0
  557. jaclang/vendor/mypy/typeshed/stdlib/nturl2path.pyi +2 -0
  558. jaclang/vendor/mypy/typeshed/stdlib/numbers.pyi +154 -0
  559. jaclang/vendor/mypy/typeshed/stdlib/opcode.pyi +68 -0
  560. jaclang/vendor/mypy/typeshed/stdlib/operator.pyi +110 -0
  561. jaclang/vendor/mypy/typeshed/stdlib/optparse.pyi +290 -0
  562. jaclang/vendor/mypy/typeshed/stdlib/os/__init__.pyi +1317 -0
  563. jaclang/vendor/mypy/typeshed/stdlib/os/path.pyi +8 -0
  564. jaclang/vendor/mypy/typeshed/stdlib/ossaudiodev.pyi +131 -0
  565. jaclang/vendor/mypy/typeshed/stdlib/parser.pyi +28 -0
  566. jaclang/vendor/mypy/typeshed/stdlib/pathlib.pyi +282 -0
  567. jaclang/vendor/mypy/typeshed/stdlib/pdb.pyi +223 -0
  568. jaclang/vendor/mypy/typeshed/stdlib/pickle.pyi +286 -0
  569. jaclang/vendor/mypy/typeshed/stdlib/pickletools.pyi +173 -0
  570. jaclang/vendor/mypy/typeshed/stdlib/pipes.pyi +16 -0
  571. jaclang/vendor/mypy/typeshed/stdlib/pkgutil.pyi +61 -0
  572. jaclang/vendor/mypy/typeshed/stdlib/platform.pyi +56 -0
  573. jaclang/vendor/mypy/typeshed/stdlib/plistlib.pyi +176 -0
  574. jaclang/vendor/mypy/typeshed/stdlib/poplib.pyi +78 -0
  575. jaclang/vendor/mypy/typeshed/stdlib/posix.pyi +363 -0
  576. jaclang/vendor/mypy/typeshed/stdlib/posixpath.pyi +171 -0
  577. jaclang/vendor/mypy/typeshed/stdlib/pprint.pyi +122 -0
  578. jaclang/vendor/mypy/typeshed/stdlib/profile.pyi +43 -0
  579. jaclang/vendor/mypy/typeshed/stdlib/pstats.pyi +85 -0
  580. jaclang/vendor/mypy/typeshed/stdlib/pty.pyi +21 -0
  581. jaclang/vendor/mypy/typeshed/stdlib/pwd.pyi +36 -0
  582. jaclang/vendor/mypy/typeshed/stdlib/py_compile.pyi +40 -0
  583. jaclang/vendor/mypy/typeshed/stdlib/pyclbr.pyi +97 -0
  584. jaclang/vendor/mypy/typeshed/stdlib/pydoc.pyi +309 -0
  585. jaclang/vendor/mypy/typeshed/stdlib/pydoc_data/__init__.pyi +0 -0
  586. jaclang/vendor/mypy/typeshed/stdlib/pydoc_data/topics.pyi +1 -0
  587. jaclang/vendor/mypy/typeshed/stdlib/pyexpat/__init__.pyi +94 -0
  588. jaclang/vendor/mypy/typeshed/stdlib/pyexpat/errors.pyi +49 -0
  589. jaclang/vendor/mypy/typeshed/stdlib/pyexpat/model.pyi +11 -0
  590. jaclang/vendor/mypy/typeshed/stdlib/queue.pyi +62 -0
  591. jaclang/vendor/mypy/typeshed/stdlib/quopri.pyi +17 -0
  592. jaclang/vendor/mypy/typeshed/stdlib/random.pyi +160 -0
  593. jaclang/vendor/mypy/typeshed/stdlib/re.pyi +376 -0
  594. jaclang/vendor/mypy/typeshed/stdlib/readline.pyi +40 -0
  595. jaclang/vendor/mypy/typeshed/stdlib/reprlib.pyi +65 -0
  596. jaclang/vendor/mypy/typeshed/stdlib/resource.pyi +116 -0
  597. jaclang/vendor/mypy/typeshed/stdlib/rlcompleter.pyi +9 -0
  598. jaclang/vendor/mypy/typeshed/stdlib/runpy.pyi +31 -0
  599. jaclang/vendor/mypy/typeshed/stdlib/sched.pyi +56 -0
  600. jaclang/vendor/mypy/typeshed/stdlib/secrets.pyi +24 -0
  601. jaclang/vendor/mypy/typeshed/stdlib/select.pyi +162 -0
  602. jaclang/vendor/mypy/typeshed/stdlib/selectors.pyi +85 -0
  603. jaclang/vendor/mypy/typeshed/stdlib/shelve.pyi +64 -0
  604. jaclang/vendor/mypy/typeshed/stdlib/shlex.pyi +47 -0
  605. jaclang/vendor/mypy/typeshed/stdlib/shutil.pyi +239 -0
  606. jaclang/vendor/mypy/typeshed/stdlib/signal.pyi +208 -0
  607. jaclang/vendor/mypy/typeshed/stdlib/site.pyi +33 -0
  608. jaclang/vendor/mypy/typeshed/stdlib/smtpd.pyi +102 -0
  609. jaclang/vendor/mypy/typeshed/stdlib/smtplib.pyi +223 -0
  610. jaclang/vendor/mypy/typeshed/stdlib/sndhdr.pyi +14 -0
  611. jaclang/vendor/mypy/typeshed/stdlib/socket.pyi +881 -0
  612. jaclang/vendor/mypy/typeshed/stdlib/socketserver.pyi +195 -0
  613. jaclang/vendor/mypy/typeshed/stdlib/spwd.pyi +43 -0
  614. jaclang/vendor/mypy/typeshed/stdlib/sqlite3/__init__.pyi +1 -0
  615. jaclang/vendor/mypy/typeshed/stdlib/sqlite3/dbapi2.pyi +519 -0
  616. jaclang/vendor/mypy/typeshed/stdlib/sre_compile.pyi +11 -0
  617. jaclang/vendor/mypy/typeshed/stdlib/sre_constants.pyi +132 -0
  618. jaclang/vendor/mypy/typeshed/stdlib/sre_parse.pyi +110 -0
  619. jaclang/vendor/mypy/typeshed/stdlib/ssl.pyi +559 -0
  620. jaclang/vendor/mypy/typeshed/stdlib/stat.pyi +1 -0
  621. jaclang/vendor/mypy/typeshed/stdlib/statistics.pyi +151 -0
  622. jaclang/vendor/mypy/typeshed/stdlib/string.pyi +112 -0
  623. jaclang/vendor/mypy/typeshed/stdlib/stringprep.pyi +27 -0
  624. jaclang/vendor/mypy/typeshed/stdlib/struct.pyi +43 -0
  625. jaclang/vendor/mypy/typeshed/stdlib/subprocess.pyi +2638 -0
  626. jaclang/vendor/mypy/typeshed/stdlib/sunau.pyi +86 -0
  627. jaclang/vendor/mypy/typeshed/stdlib/symbol.pyi +93 -0
  628. jaclang/vendor/mypy/typeshed/stdlib/symtable.pyi +63 -0
  629. jaclang/vendor/mypy/typeshed/stdlib/sys/__init__.pyi +396 -0
  630. jaclang/vendor/mypy/typeshed/stdlib/sys/_monitoring.pyi +54 -0
  631. jaclang/vendor/mypy/typeshed/stdlib/sysconfig.pyi +52 -0
  632. jaclang/vendor/mypy/typeshed/stdlib/syslog.pyi +48 -0
  633. jaclang/vendor/mypy/typeshed/stdlib/tabnanny.pyi +18 -0
  634. jaclang/vendor/mypy/typeshed/stdlib/tarfile.pyi +486 -0
  635. jaclang/vendor/mypy/typeshed/stdlib/telnetlib.pyi +129 -0
  636. jaclang/vendor/mypy/typeshed/stdlib/tempfile.pyi +521 -0
  637. jaclang/vendor/mypy/typeshed/stdlib/termios.pyi +273 -0
  638. jaclang/vendor/mypy/typeshed/stdlib/textwrap.pyi +107 -0
  639. jaclang/vendor/mypy/typeshed/stdlib/this.pyi +2 -0
  640. jaclang/vendor/mypy/typeshed/stdlib/threading.pyi +212 -0
  641. jaclang/vendor/mypy/typeshed/stdlib/time.pyi +122 -0
  642. jaclang/vendor/mypy/typeshed/stdlib/timeit.pyi +46 -0
  643. jaclang/vendor/mypy/typeshed/stdlib/tkinter/__init__.pyi +3950 -0
  644. jaclang/vendor/mypy/typeshed/stdlib/tkinter/colorchooser.pyi +28 -0
  645. jaclang/vendor/mypy/typeshed/stdlib/tkinter/commondialog.pyi +16 -0
  646. jaclang/vendor/mypy/typeshed/stdlib/tkinter/constants.pyi +80 -0
  647. jaclang/vendor/mypy/typeshed/stdlib/tkinter/dialog.pyi +21 -0
  648. jaclang/vendor/mypy/typeshed/stdlib/tkinter/dnd.pyi +20 -0
  649. jaclang/vendor/mypy/typeshed/stdlib/tkinter/filedialog.pyi +173 -0
  650. jaclang/vendor/mypy/typeshed/stdlib/tkinter/font.pyi +148 -0
  651. jaclang/vendor/mypy/typeshed/stdlib/tkinter/messagebox.pyi +60 -0
  652. jaclang/vendor/mypy/typeshed/stdlib/tkinter/scrolledtext.pyi +10 -0
  653. jaclang/vendor/mypy/typeshed/stdlib/tkinter/simpledialog.pyi +54 -0
  654. jaclang/vendor/mypy/typeshed/stdlib/tkinter/tix.pyi +395 -0
  655. jaclang/vendor/mypy/typeshed/stdlib/tkinter/ttk.pyi +1276 -0
  656. jaclang/vendor/mypy/typeshed/stdlib/token.pyi +159 -0
  657. jaclang/vendor/mypy/typeshed/stdlib/tokenize.pyi +185 -0
  658. jaclang/vendor/mypy/typeshed/stdlib/tomllib.pyi +12 -0
  659. jaclang/vendor/mypy/typeshed/stdlib/trace.pyi +114 -0
  660. jaclang/vendor/mypy/typeshed/stdlib/traceback.pyi +297 -0
  661. jaclang/vendor/mypy/typeshed/stdlib/tracemalloc.pyi +142 -0
  662. jaclang/vendor/mypy/typeshed/stdlib/tty.pyi +30 -0
  663. jaclang/vendor/mypy/typeshed/stdlib/turtle.pyi +830 -0
  664. jaclang/vendor/mypy/typeshed/stdlib/types.pyi +647 -0
  665. jaclang/vendor/mypy/typeshed/stdlib/typing.pyi +1059 -0
  666. jaclang/vendor/mypy/typeshed/stdlib/typing_extensions.pyi +524 -0
  667. jaclang/vendor/mypy/typeshed/stdlib/unicodedata.pyi +71 -0
  668. jaclang/vendor/mypy/typeshed/stdlib/unittest/__init__.pyi +72 -0
  669. jaclang/vendor/mypy/typeshed/stdlib/unittest/_log.pyi +34 -0
  670. jaclang/vendor/mypy/typeshed/stdlib/unittest/async_case.pyi +28 -0
  671. jaclang/vendor/mypy/typeshed/stdlib/unittest/case.pyi +481 -0
  672. jaclang/vendor/mypy/typeshed/stdlib/unittest/loader.pyi +71 -0
  673. jaclang/vendor/mypy/typeshed/stdlib/unittest/main.pyi +75 -0
  674. jaclang/vendor/mypy/typeshed/stdlib/unittest/mock.pyi +468 -0
  675. jaclang/vendor/mypy/typeshed/stdlib/unittest/result.pyi +59 -0
  676. jaclang/vendor/mypy/typeshed/stdlib/unittest/runner.pyi +83 -0
  677. jaclang/vendor/mypy/typeshed/stdlib/unittest/signals.pyi +15 -0
  678. jaclang/vendor/mypy/typeshed/stdlib/unittest/suite.pyi +26 -0
  679. jaclang/vendor/mypy/typeshed/stdlib/unittest/util.pyi +31 -0
  680. jaclang/vendor/mypy/typeshed/stdlib/urllib/__init__.pyi +0 -0
  681. jaclang/vendor/mypy/typeshed/stdlib/urllib/error.pyi +27 -0
  682. jaclang/vendor/mypy/typeshed/stdlib/urllib/parse.pyi +245 -0
  683. jaclang/vendor/mypy/typeshed/stdlib/urllib/request.pyi +544 -0
  684. jaclang/vendor/mypy/typeshed/stdlib/urllib/response.pyi +50 -0
  685. jaclang/vendor/mypy/typeshed/stdlib/urllib/robotparser.pyi +20 -0
  686. jaclang/vendor/mypy/typeshed/stdlib/uu.pyi +23 -0
  687. jaclang/vendor/mypy/typeshed/stdlib/uuid.pyi +100 -0
  688. jaclang/vendor/mypy/typeshed/stdlib/warnings.pyi +144 -0
  689. jaclang/vendor/mypy/typeshed/stdlib/wave.pyi +87 -0
  690. jaclang/vendor/mypy/typeshed/stdlib/weakref.pyi +173 -0
  691. jaclang/vendor/mypy/typeshed/stdlib/webbrowser.pyi +80 -0
  692. jaclang/vendor/mypy/typeshed/stdlib/winreg.pyi +120 -0
  693. jaclang/vendor/mypy/typeshed/stdlib/winsound.pyi +28 -0
  694. jaclang/vendor/mypy/typeshed/stdlib/wsgiref/__init__.pyi +0 -0
  695. jaclang/vendor/mypy/typeshed/stdlib/wsgiref/handlers.pyi +109 -0
  696. jaclang/vendor/mypy/typeshed/stdlib/wsgiref/headers.pyi +28 -0
  697. jaclang/vendor/mypy/typeshed/stdlib/wsgiref/simple_server.pyi +49 -0
  698. jaclang/vendor/mypy/typeshed/stdlib/wsgiref/types.pyi +44 -0
  699. jaclang/vendor/mypy/typeshed/stdlib/wsgiref/util.pyi +31 -0
  700. jaclang/vendor/mypy/typeshed/stdlib/wsgiref/validate.pyi +52 -0
  701. jaclang/vendor/mypy/typeshed/stdlib/xdrlib.pyi +63 -0
  702. jaclang/vendor/mypy/typeshed/stdlib/xml/__init__.pyi +1 -0
  703. jaclang/vendor/mypy/typeshed/stdlib/xml/dom/NodeFilter.pyi +19 -0
  704. jaclang/vendor/mypy/typeshed/stdlib/xml/dom/__init__.pyi +72 -0
  705. jaclang/vendor/mypy/typeshed/stdlib/xml/dom/domreg.pyi +12 -0
  706. jaclang/vendor/mypy/typeshed/stdlib/xml/dom/expatbuilder.pyi +111 -0
  707. jaclang/vendor/mypy/typeshed/stdlib/xml/dom/minicompat.pyi +22 -0
  708. jaclang/vendor/mypy/typeshed/stdlib/xml/dom/minidom.pyi +467 -0
  709. jaclang/vendor/mypy/typeshed/stdlib/xml/dom/pulldom.pyi +101 -0
  710. jaclang/vendor/mypy/typeshed/stdlib/xml/dom/xmlbuilder.pyi +110 -0
  711. jaclang/vendor/mypy/typeshed/stdlib/xml/etree/ElementInclude.pyi +35 -0
  712. jaclang/vendor/mypy/typeshed/stdlib/xml/etree/ElementPath.pyi +49 -0
  713. jaclang/vendor/mypy/typeshed/stdlib/xml/etree/ElementTree.pyi +367 -0
  714. jaclang/vendor/mypy/typeshed/stdlib/xml/etree/__init__.pyi +0 -0
  715. jaclang/vendor/mypy/typeshed/stdlib/xml/etree/cElementTree.pyi +1 -0
  716. jaclang/vendor/mypy/typeshed/stdlib/xml/parsers/__init__.pyi +1 -0
  717. jaclang/vendor/mypy/typeshed/stdlib/xml/parsers/expat/__init__.pyi +1 -0
  718. jaclang/vendor/mypy/typeshed/stdlib/xml/parsers/expat/errors.pyi +1 -0
  719. jaclang/vendor/mypy/typeshed/stdlib/xml/parsers/expat/model.pyi +1 -0
  720. jaclang/vendor/mypy/typeshed/stdlib/xml/sax/__init__.pyi +34 -0
  721. jaclang/vendor/mypy/typeshed/stdlib/xml/sax/_exceptions.pyi +21 -0
  722. jaclang/vendor/mypy/typeshed/stdlib/xml/sax/handler.pyi +59 -0
  723. jaclang/vendor/mypy/typeshed/stdlib/xml/sax/saxutils.pyi +71 -0
  724. jaclang/vendor/mypy/typeshed/stdlib/xml/sax/xmlreader.pyi +89 -0
  725. jaclang/vendor/mypy/typeshed/stdlib/xmlrpc/__init__.pyi +0 -0
  726. jaclang/vendor/mypy/typeshed/stdlib/xmlrpc/client.pyi +348 -0
  727. jaclang/vendor/mypy/typeshed/stdlib/xmlrpc/server.pyi +186 -0
  728. jaclang/vendor/mypy/typeshed/stdlib/xxlimited.pyi +22 -0
  729. jaclang/vendor/mypy/typeshed/stdlib/zipapp.pyi +20 -0
  730. jaclang/vendor/mypy/typeshed/stdlib/zipfile/__init__.pyi +355 -0
  731. jaclang/vendor/mypy/typeshed/stdlib/zipfile/_path.pyi +105 -0
  732. jaclang/vendor/mypy/typeshed/stdlib/zipimport.pyi +40 -0
  733. jaclang/vendor/mypy/typeshed/stdlib/zlib.pyi +63 -0
  734. jaclang/vendor/mypy/typeshed/stdlib/zoneinfo/__init__.pyi +45 -0
  735. jaclang/vendor/mypy/typeshed/stubs/mypy-extensions/@tests/stubtest_allowlist.txt +2 -0
  736. jaclang/vendor/mypy/typeshed/stubs/mypy-extensions/METADATA.toml +4 -0
  737. jaclang/vendor/mypy/typeshed/stubs/mypy-extensions/mypy_extensions.pyi +238 -0
  738. jaclang/vendor/mypy/xml/mypy-html.css +104 -0
  739. jaclang/vendor/mypy/xml/mypy-html.xslt +81 -0
  740. jaclang/vendor/mypy/xml/mypy-txt.xslt +100 -0
  741. jaclang/vendor/mypy/xml/mypy.xsd +50 -0
  742. jaclang/vendor/mypyc/.readthedocs.yaml +18 -0
  743. jaclang/vendor/mypyc/README.md +133 -0
  744. jaclang/vendor/mypyc/doc/Makefile +20 -0
  745. jaclang/vendor/mypyc/doc/bool_operations.rst +27 -0
  746. jaclang/vendor/mypyc/doc/compilation_units.rst +20 -0
  747. jaclang/vendor/mypyc/doc/conf.py +59 -0
  748. jaclang/vendor/mypyc/doc/cpython-timings.md +25 -0
  749. jaclang/vendor/mypyc/doc/dev-intro.md +548 -0
  750. jaclang/vendor/mypyc/doc/dict_operations.rst +59 -0
  751. jaclang/vendor/mypyc/doc/differences_from_python.rst +332 -0
  752. jaclang/vendor/mypyc/doc/float_operations.rst +50 -0
  753. jaclang/vendor/mypyc/doc/future.md +42 -0
  754. jaclang/vendor/mypyc/doc/getting_started.rst +240 -0
  755. jaclang/vendor/mypyc/doc/index.rst +61 -0
  756. jaclang/vendor/mypyc/doc/int_operations.rst +162 -0
  757. jaclang/vendor/mypyc/doc/introduction.rst +150 -0
  758. jaclang/vendor/mypyc/doc/list_operations.rst +65 -0
  759. jaclang/vendor/mypyc/doc/make.bat +35 -0
  760. jaclang/vendor/mypyc/doc/native_classes.rst +206 -0
  761. jaclang/vendor/mypyc/doc/native_operations.rst +55 -0
  762. jaclang/vendor/mypyc/doc/performance_tips_and_tricks.rst +244 -0
  763. jaclang/vendor/mypyc/doc/set_operations.rst +47 -0
  764. jaclang/vendor/mypyc/doc/str_operations.rst +35 -0
  765. jaclang/vendor/mypyc/doc/tuple_operations.rst +33 -0
  766. jaclang/vendor/mypyc/doc/using_type_annotations.rst +398 -0
  767. jaclang/vendor/mypyc/external/googletest/LICENSE +28 -0
  768. jaclang/vendor/mypyc/external/googletest/README.md +280 -0
  769. jaclang/vendor/mypyc/external/googletest/include/gtest/gtest-death-test.h +294 -0
  770. jaclang/vendor/mypyc/external/googletest/include/gtest/gtest-message.h +250 -0
  771. jaclang/vendor/mypyc/external/googletest/include/gtest/gtest-param-test.h +1444 -0
  772. jaclang/vendor/mypyc/external/googletest/include/gtest/gtest-param-test.h.pump +510 -0
  773. jaclang/vendor/mypyc/external/googletest/include/gtest/gtest-printers.h +993 -0
  774. jaclang/vendor/mypyc/external/googletest/include/gtest/gtest-spi.h +232 -0
  775. jaclang/vendor/mypyc/external/googletest/include/gtest/gtest-test-part.h +179 -0
  776. jaclang/vendor/mypyc/external/googletest/include/gtest/gtest-typed-test.h +263 -0
  777. jaclang/vendor/mypyc/external/googletest/include/gtest/gtest.h +2236 -0
  778. jaclang/vendor/mypyc/external/googletest/include/gtest/gtest_pred_impl.h +358 -0
  779. jaclang/vendor/mypyc/external/googletest/include/gtest/gtest_prod.h +58 -0
  780. jaclang/vendor/mypyc/external/googletest/include/gtest/internal/custom/gtest-port.h +69 -0
  781. jaclang/vendor/mypyc/external/googletest/include/gtest/internal/custom/gtest-printers.h +42 -0
  782. jaclang/vendor/mypyc/external/googletest/include/gtest/internal/custom/gtest.h +41 -0
  783. jaclang/vendor/mypyc/external/googletest/include/gtest/internal/gtest-death-test-internal.h +319 -0
  784. jaclang/vendor/mypyc/external/googletest/include/gtest/internal/gtest-filepath.h +206 -0
  785. jaclang/vendor/mypyc/external/googletest/include/gtest/internal/gtest-internal.h +1238 -0
  786. jaclang/vendor/mypyc/external/googletest/include/gtest/internal/gtest-linked_ptr.h +243 -0
  787. jaclang/vendor/mypyc/external/googletest/include/gtest/internal/gtest-param-util-generated.h +5146 -0
  788. jaclang/vendor/mypyc/external/googletest/include/gtest/internal/gtest-param-util-generated.h.pump +286 -0
  789. jaclang/vendor/mypyc/external/googletest/include/gtest/internal/gtest-param-util.h +731 -0
  790. jaclang/vendor/mypyc/external/googletest/include/gtest/internal/gtest-port-arch.h +93 -0
  791. jaclang/vendor/mypyc/external/googletest/include/gtest/internal/gtest-port.h +2560 -0
  792. jaclang/vendor/mypyc/external/googletest/include/gtest/internal/gtest-string.h +167 -0
  793. jaclang/vendor/mypyc/external/googletest/include/gtest/internal/gtest-tuple.h +1020 -0
  794. jaclang/vendor/mypyc/external/googletest/include/gtest/internal/gtest-tuple.h.pump +347 -0
  795. jaclang/vendor/mypyc/external/googletest/include/gtest/internal/gtest-type-util.h +3331 -0
  796. jaclang/vendor/mypyc/external/googletest/include/gtest/internal/gtest-type-util.h.pump +297 -0
  797. jaclang/vendor/mypyc/external/googletest/make/Makefile +61 -0
  798. jaclang/vendor/mypyc/external/googletest/src/gtest-all.cc +48 -0
  799. jaclang/vendor/mypyc/external/googletest/src/gtest-death-test.cc +1342 -0
  800. jaclang/vendor/mypyc/external/googletest/src/gtest-filepath.cc +387 -0
  801. jaclang/vendor/mypyc/external/googletest/src/gtest-internal-inl.h +1183 -0
  802. jaclang/vendor/mypyc/external/googletest/src/gtest-port.cc +1259 -0
  803. jaclang/vendor/mypyc/external/googletest/src/gtest-printers.cc +373 -0
  804. jaclang/vendor/mypyc/external/googletest/src/gtest-test-part.cc +110 -0
  805. jaclang/vendor/mypyc/external/googletest/src/gtest-typed-test.cc +118 -0
  806. jaclang/vendor/mypyc/external/googletest/src/gtest.cc +5388 -0
  807. jaclang/vendor/mypyc/external/googletest/src/gtest_main.cc +38 -0
  808. jaclang/vendor/mypyc/lib-rt/CPy.h +643 -0
  809. jaclang/vendor/mypyc/lib-rt/bytes_ops.c +143 -0
  810. jaclang/vendor/mypyc/lib-rt/dict_ops.c +446 -0
  811. jaclang/vendor/mypyc/lib-rt/exc_ops.c +259 -0
  812. jaclang/vendor/mypyc/lib-rt/float_ops.c +192 -0
  813. jaclang/vendor/mypyc/lib-rt/generic_ops.c +64 -0
  814. jaclang/vendor/mypyc/lib-rt/getargs.c +450 -0
  815. jaclang/vendor/mypyc/lib-rt/getargsfast.c +569 -0
  816. jaclang/vendor/mypyc/lib-rt/init.c +13 -0
  817. jaclang/vendor/mypyc/lib-rt/int_ops.c +803 -0
  818. jaclang/vendor/mypyc/lib-rt/list_ops.c +335 -0
  819. jaclang/vendor/mypyc/lib-rt/misc_ops.c +942 -0
  820. jaclang/vendor/mypyc/lib-rt/module_shim.tmpl +18 -0
  821. jaclang/vendor/mypyc/lib-rt/mypyc_util.h +118 -0
  822. jaclang/vendor/mypyc/lib-rt/pythoncapi_compat.h +497 -0
  823. jaclang/vendor/mypyc/lib-rt/pythonsupport.h +548 -0
  824. jaclang/vendor/mypyc/lib-rt/set_ops.c +17 -0
  825. jaclang/vendor/mypyc/lib-rt/setup.py +76 -0
  826. jaclang/vendor/mypyc/lib-rt/str_ops.c +241 -0
  827. jaclang/vendor/mypyc/lib-rt/test_capi.cc +585 -0
  828. jaclang/vendor/mypyc/lib-rt/tuple_ops.c +61 -0
  829. jaclang/vendor/mypyc/test-data/alwaysdefined.test +732 -0
  830. jaclang/vendor/mypyc/test-data/analysis.test +603 -0
  831. jaclang/vendor/mypyc/test-data/commandline.test +245 -0
  832. jaclang/vendor/mypyc/test-data/driver/driver.py +50 -0
  833. jaclang/vendor/mypyc/test-data/exceptions-freq.test +125 -0
  834. jaclang/vendor/mypyc/test-data/exceptions.test +713 -0
  835. jaclang/vendor/mypyc/test-data/fixtures/ir.py +850 -0
  836. jaclang/vendor/mypyc/test-data/fixtures/testutil.py +117 -0
  837. jaclang/vendor/mypyc/test-data/fixtures/typing-full.pyi +212 -0
  838. jaclang/vendor/mypyc/test-data/irbuild-any.test +238 -0
  839. jaclang/vendor/mypyc/test-data/irbuild-basic.test +3690 -0
  840. jaclang/vendor/mypyc/test-data/irbuild-bool.test +463 -0
  841. jaclang/vendor/mypyc/test-data/irbuild-bytes.test +184 -0
  842. jaclang/vendor/mypyc/test-data/irbuild-classes.test +1303 -0
  843. jaclang/vendor/mypyc/test-data/irbuild-constant-fold.test +480 -0
  844. jaclang/vendor/mypyc/test-data/irbuild-dict.test +585 -0
  845. jaclang/vendor/mypyc/test-data/irbuild-dunders.test +223 -0
  846. jaclang/vendor/mypyc/test-data/irbuild-float.test +497 -0
  847. jaclang/vendor/mypyc/test-data/irbuild-generics.test +151 -0
  848. jaclang/vendor/mypyc/test-data/irbuild-glue-methods.test +437 -0
  849. jaclang/vendor/mypyc/test-data/irbuild-i16.test +526 -0
  850. jaclang/vendor/mypyc/test-data/irbuild-i32.test +598 -0
  851. jaclang/vendor/mypyc/test-data/irbuild-i64.test +2164 -0
  852. jaclang/vendor/mypyc/test-data/irbuild-int.test +235 -0
  853. jaclang/vendor/mypyc/test-data/irbuild-isinstance.test +109 -0
  854. jaclang/vendor/mypyc/test-data/irbuild-lists.test +547 -0
  855. jaclang/vendor/mypyc/test-data/irbuild-match.test +1708 -0
  856. jaclang/vendor/mypyc/test-data/irbuild-math.test +64 -0
  857. jaclang/vendor/mypyc/test-data/irbuild-nested.test +807 -0
  858. jaclang/vendor/mypyc/test-data/irbuild-optional.test +536 -0
  859. jaclang/vendor/mypyc/test-data/irbuild-set.test +838 -0
  860. jaclang/vendor/mypyc/test-data/irbuild-singledispatch.test +257 -0
  861. jaclang/vendor/mypyc/test-data/irbuild-statements.test +1149 -0
  862. jaclang/vendor/mypyc/test-data/irbuild-str.test +314 -0
  863. jaclang/vendor/mypyc/test-data/irbuild-strip-asserts.test +12 -0
  864. jaclang/vendor/mypyc/test-data/irbuild-try.test +523 -0
  865. jaclang/vendor/mypyc/test-data/irbuild-tuple.test +462 -0
  866. jaclang/vendor/mypyc/test-data/irbuild-u8.test +543 -0
  867. jaclang/vendor/mypyc/test-data/irbuild-unreachable.test +241 -0
  868. jaclang/vendor/mypyc/test-data/irbuild-vectorcall.test +153 -0
  869. jaclang/vendor/mypyc/test-data/refcount.test +1588 -0
  870. jaclang/vendor/mypyc/test-data/run-async.test +145 -0
  871. jaclang/vendor/mypyc/test-data/run-attrs.test +318 -0
  872. jaclang/vendor/mypyc/test-data/run-bench.test +196 -0
  873. jaclang/vendor/mypyc/test-data/run-bools.test +229 -0
  874. jaclang/vendor/mypyc/test-data/run-bytes.test +302 -0
  875. jaclang/vendor/mypyc/test-data/run-classes.test +2505 -0
  876. jaclang/vendor/mypyc/test-data/run-dicts.test +334 -0
  877. jaclang/vendor/mypyc/test-data/run-dunders.test +945 -0
  878. jaclang/vendor/mypyc/test-data/run-exceptions.test +448 -0
  879. jaclang/vendor/mypyc/test-data/run-floats.test +516 -0
  880. jaclang/vendor/mypyc/test-data/run-functions.test +1310 -0
  881. jaclang/vendor/mypyc/test-data/run-generators.test +681 -0
  882. jaclang/vendor/mypyc/test-data/run-i16.test +338 -0
  883. jaclang/vendor/mypyc/test-data/run-i32.test +336 -0
  884. jaclang/vendor/mypyc/test-data/run-i64.test +1519 -0
  885. jaclang/vendor/mypyc/test-data/run-imports.test +265 -0
  886. jaclang/vendor/mypyc/test-data/run-integers.test +540 -0
  887. jaclang/vendor/mypyc/test-data/run-lists.test +411 -0
  888. jaclang/vendor/mypyc/test-data/run-loops.test +485 -0
  889. jaclang/vendor/mypyc/test-data/run-match.test +283 -0
  890. jaclang/vendor/mypyc/test-data/run-math.test +106 -0
  891. jaclang/vendor/mypyc/test-data/run-misc.test +1168 -0
  892. jaclang/vendor/mypyc/test-data/run-multimodule.test +887 -0
  893. jaclang/vendor/mypyc/test-data/run-mypy-sim.test +138 -0
  894. jaclang/vendor/mypyc/test-data/run-primitives.test +375 -0
  895. jaclang/vendor/mypyc/test-data/run-python37.test +159 -0
  896. jaclang/vendor/mypyc/test-data/run-python38.test +88 -0
  897. jaclang/vendor/mypyc/test-data/run-sets.test +150 -0
  898. jaclang/vendor/mypyc/test-data/run-singledispatch.test +698 -0
  899. jaclang/vendor/mypyc/test-data/run-strings.test +641 -0
  900. jaclang/vendor/mypyc/test-data/run-traits.test +411 -0
  901. jaclang/vendor/mypyc/test-data/run-tuples.test +258 -0
  902. jaclang/vendor/mypyc/test-data/run-u8.test +303 -0
  903. jaclang/vendor/pluggy/LICENSE +21 -0
  904. jaclang-0.6.2.dist-info/METADATA +110 -0
  905. jaclang-0.6.2.dist-info/RECORD +1305 -0
  906. {jaclang-0.6.0.dist-info → jaclang-0.6.2.dist-info}/WHEEL +1 -2
  907. jaclang-0.6.2.dist-info/entry_points.txt +3 -0
  908. jaclang/compiler/generated/jac_parser.py +0 -4069
  909. jaclang-0.6.0.dist-info/METADATA +0 -17
  910. jaclang-0.6.0.dist-info/RECORD +0 -426
  911. jaclang-0.6.0.dist-info/entry_points.txt +0 -2
  912. jaclang-0.6.0.dist-info/top_level.txt +0 -1
  913. /jaclang/{compiler/generated/__init__.py → vendor/mypy/typeshed/stdlib/concurrent/__init__.pyi} +0 -0
@@ -0,0 +1,2638 @@
1
+ import sys
2
+ from _typeshed import ReadableBuffer, StrOrBytesPath
3
+ from collections.abc import Callable, Collection, Iterable, Mapping, Sequence
4
+ from types import TracebackType
5
+ from typing import IO, Any, AnyStr, 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: bool
78
+ _USE_POSIX_SPAWN: 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__(
89
+ self,
90
+ args: _CMD,
91
+ returncode: int,
92
+ stdout: _T | None = None,
93
+ stderr: _T | None = None,
94
+ ) -> None: ...
95
+ def check_returncode(self) -> None: ...
96
+ if sys.version_info >= (3, 9):
97
+ def __class_getitem__(cls, item: Any) -> GenericAlias: ...
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
+ timeout: float | None = None,
899
+ text: bool | None = None,
900
+ user: str | int | None = None,
901
+ group: str | int | None = None,
902
+ extra_groups: Iterable[str | int] | None = None,
903
+ umask: int = -1,
904
+ pipesize: int = -1,
905
+ process_group: int | None = None,
906
+ ) -> int: ...
907
+
908
+ elif sys.version_info >= (3, 10):
909
+ # 3.10 adds "pipesize" argument
910
+ def call(
911
+ args: _CMD,
912
+ bufsize: int = -1,
913
+ executable: StrOrBytesPath | None = None,
914
+ stdin: _FILE = None,
915
+ stdout: _FILE = None,
916
+ stderr: _FILE = None,
917
+ preexec_fn: Callable[[], Any] | None = None,
918
+ close_fds: bool = True,
919
+ shell: bool = False,
920
+ cwd: StrOrBytesPath | None = None,
921
+ env: _ENV | None = None,
922
+ universal_newlines: bool | None = None,
923
+ startupinfo: Any = None,
924
+ creationflags: int = 0,
925
+ restore_signals: bool = True,
926
+ start_new_session: bool = False,
927
+ pass_fds: Collection[int] = ...,
928
+ *,
929
+ timeout: float | None = None,
930
+ text: bool | None = None,
931
+ user: str | int | None = None,
932
+ group: str | int | None = None,
933
+ extra_groups: Iterable[str | int] | None = None,
934
+ umask: int = -1,
935
+ pipesize: int = -1,
936
+ ) -> int: ...
937
+
938
+ elif sys.version_info >= (3, 9):
939
+ # 3.9 adds arguments "user", "group", "extra_groups" and "umask"
940
+ def call(
941
+ args: _CMD,
942
+ bufsize: int = -1,
943
+ executable: StrOrBytesPath | None = None,
944
+ stdin: _FILE = None,
945
+ stdout: _FILE = None,
946
+ stderr: _FILE = None,
947
+ preexec_fn: Callable[[], Any] | None = None,
948
+ close_fds: bool = True,
949
+ shell: bool = False,
950
+ cwd: StrOrBytesPath | None = None,
951
+ env: _ENV | None = None,
952
+ universal_newlines: bool | None = None,
953
+ startupinfo: Any = None,
954
+ creationflags: int = 0,
955
+ restore_signals: bool = True,
956
+ start_new_session: bool = False,
957
+ pass_fds: Collection[int] = ...,
958
+ *,
959
+ timeout: float | None = None,
960
+ text: bool | None = None,
961
+ user: str | int | None = None,
962
+ group: str | int | None = None,
963
+ extra_groups: Iterable[str | int] | None = None,
964
+ umask: int = -1,
965
+ ) -> int: ...
966
+
967
+ else:
968
+ def call(
969
+ args: _CMD,
970
+ bufsize: int = -1,
971
+ executable: StrOrBytesPath | None = None,
972
+ stdin: _FILE = None,
973
+ stdout: _FILE = None,
974
+ stderr: _FILE = None,
975
+ preexec_fn: Callable[[], Any] | None = None,
976
+ close_fds: bool = True,
977
+ shell: bool = False,
978
+ cwd: StrOrBytesPath | None = None,
979
+ env: _ENV | None = None,
980
+ universal_newlines: bool | None = None,
981
+ startupinfo: Any = None,
982
+ creationflags: int = 0,
983
+ restore_signals: bool = True,
984
+ start_new_session: bool = False,
985
+ pass_fds: Collection[int] = ...,
986
+ *,
987
+ timeout: float | None = None,
988
+ text: bool | None = None,
989
+ ) -> int: ...
990
+
991
+ # Same args as Popen.__init__
992
+ if sys.version_info >= (3, 11):
993
+ # 3.11 adds "process_group" argument
994
+ def check_call(
995
+ args: _CMD,
996
+ bufsize: int = -1,
997
+ executable: StrOrBytesPath | None = None,
998
+ stdin: _FILE = None,
999
+ stdout: _FILE = None,
1000
+ stderr: _FILE = None,
1001
+ preexec_fn: Callable[[], Any] | None = None,
1002
+ close_fds: bool = True,
1003
+ shell: bool = False,
1004
+ cwd: StrOrBytesPath | None = None,
1005
+ env: _ENV | None = None,
1006
+ universal_newlines: bool | None = None,
1007
+ startupinfo: Any = None,
1008
+ creationflags: int = 0,
1009
+ restore_signals: bool = True,
1010
+ start_new_session: bool = False,
1011
+ pass_fds: Collection[int] = ...,
1012
+ timeout: float | None = ...,
1013
+ *,
1014
+ text: bool | None = None,
1015
+ user: str | int | None = None,
1016
+ group: str | int | None = None,
1017
+ extra_groups: Iterable[str | int] | None = None,
1018
+ umask: int = -1,
1019
+ pipesize: int = -1,
1020
+ process_group: int | None = None,
1021
+ ) -> int: ...
1022
+
1023
+ elif sys.version_info >= (3, 10):
1024
+ # 3.10 adds "pipesize" argument
1025
+ def check_call(
1026
+ args: _CMD,
1027
+ bufsize: int = -1,
1028
+ executable: StrOrBytesPath | None = None,
1029
+ stdin: _FILE = None,
1030
+ stdout: _FILE = None,
1031
+ stderr: _FILE = None,
1032
+ preexec_fn: Callable[[], Any] | None = None,
1033
+ close_fds: bool = True,
1034
+ shell: bool = False,
1035
+ cwd: StrOrBytesPath | None = None,
1036
+ env: _ENV | None = None,
1037
+ universal_newlines: bool | None = None,
1038
+ startupinfo: Any = None,
1039
+ creationflags: int = 0,
1040
+ restore_signals: bool = True,
1041
+ start_new_session: bool = False,
1042
+ pass_fds: Collection[int] = ...,
1043
+ timeout: float | None = ...,
1044
+ *,
1045
+ text: bool | None = None,
1046
+ user: str | int | None = None,
1047
+ group: str | int | None = None,
1048
+ extra_groups: Iterable[str | int] | None = None,
1049
+ umask: int = -1,
1050
+ pipesize: int = -1,
1051
+ ) -> int: ...
1052
+
1053
+ elif sys.version_info >= (3, 9):
1054
+ # 3.9 adds arguments "user", "group", "extra_groups" and "umask"
1055
+ def check_call(
1056
+ args: _CMD,
1057
+ bufsize: int = -1,
1058
+ executable: StrOrBytesPath | None = None,
1059
+ stdin: _FILE = None,
1060
+ stdout: _FILE = None,
1061
+ stderr: _FILE = None,
1062
+ preexec_fn: Callable[[], Any] | None = None,
1063
+ close_fds: bool = True,
1064
+ shell: bool = False,
1065
+ cwd: StrOrBytesPath | None = None,
1066
+ env: _ENV | None = None,
1067
+ universal_newlines: bool | None = None,
1068
+ startupinfo: Any = None,
1069
+ creationflags: int = 0,
1070
+ restore_signals: bool = True,
1071
+ start_new_session: bool = False,
1072
+ pass_fds: Collection[int] = ...,
1073
+ timeout: float | None = ...,
1074
+ *,
1075
+ text: bool | None = None,
1076
+ user: str | int | None = None,
1077
+ group: str | int | None = None,
1078
+ extra_groups: Iterable[str | int] | None = None,
1079
+ umask: int = -1,
1080
+ ) -> int: ...
1081
+
1082
+ else:
1083
+ def check_call(
1084
+ args: _CMD,
1085
+ bufsize: int = -1,
1086
+ executable: StrOrBytesPath | None = None,
1087
+ stdin: _FILE = None,
1088
+ stdout: _FILE = None,
1089
+ stderr: _FILE = None,
1090
+ preexec_fn: Callable[[], Any] | None = None,
1091
+ close_fds: bool = True,
1092
+ shell: bool = False,
1093
+ cwd: StrOrBytesPath | None = None,
1094
+ env: _ENV | None = None,
1095
+ universal_newlines: bool | None = None,
1096
+ startupinfo: Any = None,
1097
+ creationflags: int = 0,
1098
+ restore_signals: bool = True,
1099
+ start_new_session: bool = False,
1100
+ pass_fds: Collection[int] = ...,
1101
+ timeout: float | None = ...,
1102
+ *,
1103
+ text: bool | None = None,
1104
+ ) -> int: ...
1105
+
1106
+ if sys.version_info >= (3, 11):
1107
+ # 3.11 adds "process_group" argument
1108
+ @overload
1109
+ def check_output(
1110
+ args: _CMD,
1111
+ bufsize: int = -1,
1112
+ executable: StrOrBytesPath | None = None,
1113
+ stdin: _FILE = None,
1114
+ stderr: _FILE = None,
1115
+ preexec_fn: Callable[[], Any] | None = None,
1116
+ close_fds: bool = True,
1117
+ shell: bool = False,
1118
+ cwd: StrOrBytesPath | None = None,
1119
+ env: _ENV | None = None,
1120
+ universal_newlines: bool | None = None,
1121
+ startupinfo: Any = None,
1122
+ creationflags: int = 0,
1123
+ restore_signals: bool = True,
1124
+ start_new_session: bool = False,
1125
+ pass_fds: Collection[int] = ...,
1126
+ *,
1127
+ timeout: float | None = None,
1128
+ input: _InputString | None = ...,
1129
+ encoding: str | None = None,
1130
+ errors: str | None = None,
1131
+ text: Literal[True],
1132
+ user: str | int | None = None,
1133
+ group: str | int | None = None,
1134
+ extra_groups: Iterable[str | int] | None = None,
1135
+ umask: int = -1,
1136
+ pipesize: int = -1,
1137
+ process_group: int | None = None,
1138
+ ) -> str: ...
1139
+ @overload
1140
+ def check_output(
1141
+ args: _CMD,
1142
+ bufsize: int = -1,
1143
+ executable: StrOrBytesPath | None = None,
1144
+ stdin: _FILE = None,
1145
+ stderr: _FILE = None,
1146
+ preexec_fn: Callable[[], Any] | None = None,
1147
+ close_fds: bool = True,
1148
+ shell: bool = False,
1149
+ cwd: StrOrBytesPath | None = None,
1150
+ env: _ENV | None = None,
1151
+ universal_newlines: bool | None = None,
1152
+ startupinfo: Any = None,
1153
+ creationflags: int = 0,
1154
+ restore_signals: bool = True,
1155
+ start_new_session: bool = False,
1156
+ pass_fds: Collection[int] = ...,
1157
+ *,
1158
+ timeout: float | None = None,
1159
+ input: _InputString | None = ...,
1160
+ encoding: str,
1161
+ errors: str | None = None,
1162
+ text: bool | None = None,
1163
+ user: str | int | None = None,
1164
+ group: str | int | None = None,
1165
+ extra_groups: Iterable[str | int] | None = None,
1166
+ umask: int = -1,
1167
+ pipesize: int = -1,
1168
+ process_group: int | None = None,
1169
+ ) -> str: ...
1170
+ @overload
1171
+ def check_output(
1172
+ args: _CMD,
1173
+ bufsize: int = -1,
1174
+ executable: StrOrBytesPath | None = None,
1175
+ stdin: _FILE = None,
1176
+ stderr: _FILE = None,
1177
+ preexec_fn: Callable[[], Any] | None = None,
1178
+ close_fds: bool = True,
1179
+ shell: bool = False,
1180
+ cwd: StrOrBytesPath | None = None,
1181
+ env: _ENV | None = None,
1182
+ universal_newlines: bool | None = None,
1183
+ startupinfo: Any = None,
1184
+ creationflags: int = 0,
1185
+ restore_signals: bool = True,
1186
+ start_new_session: bool = False,
1187
+ pass_fds: Collection[int] = ...,
1188
+ *,
1189
+ timeout: float | None = None,
1190
+ input: _InputString | None = ...,
1191
+ encoding: str | None = None,
1192
+ errors: str,
1193
+ text: bool | None = None,
1194
+ user: str | int | None = None,
1195
+ group: str | int | None = None,
1196
+ extra_groups: Iterable[str | int] | None = None,
1197
+ umask: int = -1,
1198
+ pipesize: int = -1,
1199
+ process_group: int | None = None,
1200
+ ) -> str: ...
1201
+ @overload
1202
+ def check_output(
1203
+ args: _CMD,
1204
+ bufsize: int = -1,
1205
+ executable: StrOrBytesPath | None = None,
1206
+ stdin: _FILE = None,
1207
+ stderr: _FILE = None,
1208
+ preexec_fn: Callable[[], Any] | None = None,
1209
+ close_fds: bool = True,
1210
+ shell: bool = False,
1211
+ cwd: StrOrBytesPath | None = None,
1212
+ env: _ENV | None = None,
1213
+ *,
1214
+ universal_newlines: Literal[True],
1215
+ startupinfo: Any = None,
1216
+ creationflags: int = 0,
1217
+ restore_signals: bool = True,
1218
+ start_new_session: bool = False,
1219
+ pass_fds: Collection[int] = ...,
1220
+ # where the real keyword only ones start
1221
+ timeout: float | None = None,
1222
+ input: _InputString | None = ...,
1223
+ encoding: str | None = None,
1224
+ errors: str | None = None,
1225
+ text: bool | None = None,
1226
+ user: str | int | None = None,
1227
+ group: str | int | None = None,
1228
+ extra_groups: Iterable[str | int] | None = None,
1229
+ umask: int = -1,
1230
+ pipesize: int = -1,
1231
+ process_group: int | None = None,
1232
+ ) -> str: ...
1233
+ @overload
1234
+ def check_output(
1235
+ args: _CMD,
1236
+ bufsize: int = -1,
1237
+ executable: StrOrBytesPath | None = None,
1238
+ stdin: _FILE = None,
1239
+ stderr: _FILE = None,
1240
+ preexec_fn: Callable[[], Any] | None = None,
1241
+ close_fds: bool = True,
1242
+ shell: bool = False,
1243
+ cwd: StrOrBytesPath | None = None,
1244
+ env: _ENV | None = None,
1245
+ universal_newlines: Literal[False] | None = None,
1246
+ startupinfo: Any = None,
1247
+ creationflags: int = 0,
1248
+ restore_signals: bool = True,
1249
+ start_new_session: bool = False,
1250
+ pass_fds: Collection[int] = ...,
1251
+ *,
1252
+ timeout: float | None = None,
1253
+ input: _InputString | None = ...,
1254
+ encoding: None = None,
1255
+ errors: None = None,
1256
+ text: Literal[False] | None = None,
1257
+ user: str | int | None = None,
1258
+ group: str | int | None = None,
1259
+ extra_groups: Iterable[str | int] | None = None,
1260
+ umask: int = -1,
1261
+ pipesize: int = -1,
1262
+ process_group: int | None = None,
1263
+ ) -> bytes: ...
1264
+ @overload
1265
+ def check_output(
1266
+ args: _CMD,
1267
+ bufsize: int = -1,
1268
+ executable: StrOrBytesPath | None = None,
1269
+ stdin: _FILE = None,
1270
+ stderr: _FILE = None,
1271
+ preexec_fn: Callable[[], Any] | None = None,
1272
+ close_fds: bool = True,
1273
+ shell: bool = False,
1274
+ cwd: StrOrBytesPath | None = None,
1275
+ env: _ENV | None = None,
1276
+ universal_newlines: bool | None = None,
1277
+ startupinfo: Any = None,
1278
+ creationflags: int = 0,
1279
+ restore_signals: bool = True,
1280
+ start_new_session: bool = False,
1281
+ pass_fds: Collection[int] = ...,
1282
+ *,
1283
+ timeout: float | None = None,
1284
+ input: _InputString | None = ...,
1285
+ encoding: str | None = None,
1286
+ errors: str | None = None,
1287
+ text: bool | None = None,
1288
+ user: str | int | None = None,
1289
+ group: str | int | None = None,
1290
+ extra_groups: Iterable[str | int] | None = None,
1291
+ umask: int = -1,
1292
+ pipesize: int = -1,
1293
+ process_group: int | None = None,
1294
+ ) -> Any: ... # morally: -> str | bytes
1295
+
1296
+ elif sys.version_info >= (3, 10):
1297
+ # 3.10 adds "pipesize" argument
1298
+ @overload
1299
+ def check_output(
1300
+ args: _CMD,
1301
+ bufsize: int = -1,
1302
+ executable: StrOrBytesPath | None = None,
1303
+ stdin: _FILE = None,
1304
+ stderr: _FILE = None,
1305
+ preexec_fn: Callable[[], Any] | None = None,
1306
+ close_fds: bool = True,
1307
+ shell: bool = False,
1308
+ cwd: StrOrBytesPath | None = None,
1309
+ env: _ENV | None = None,
1310
+ universal_newlines: bool | None = None,
1311
+ startupinfo: Any = None,
1312
+ creationflags: int = 0,
1313
+ restore_signals: bool = True,
1314
+ start_new_session: bool = False,
1315
+ pass_fds: Collection[int] = ...,
1316
+ *,
1317
+ timeout: float | None = None,
1318
+ input: _InputString | None = ...,
1319
+ encoding: str | None = None,
1320
+ errors: str | None = None,
1321
+ text: Literal[True],
1322
+ user: str | int | None = None,
1323
+ group: str | int | None = None,
1324
+ extra_groups: Iterable[str | int] | None = None,
1325
+ umask: int = -1,
1326
+ pipesize: int = -1,
1327
+ ) -> str: ...
1328
+ @overload
1329
+ def check_output(
1330
+ args: _CMD,
1331
+ bufsize: int = -1,
1332
+ executable: StrOrBytesPath | None = None,
1333
+ stdin: _FILE = None,
1334
+ stderr: _FILE = None,
1335
+ preexec_fn: Callable[[], Any] | None = None,
1336
+ close_fds: bool = True,
1337
+ shell: bool = False,
1338
+ cwd: StrOrBytesPath | None = None,
1339
+ env: _ENV | None = None,
1340
+ universal_newlines: bool | None = None,
1341
+ startupinfo: Any = None,
1342
+ creationflags: int = 0,
1343
+ restore_signals: bool = True,
1344
+ start_new_session: bool = False,
1345
+ pass_fds: Collection[int] = ...,
1346
+ *,
1347
+ timeout: float | None = None,
1348
+ input: _InputString | None = ...,
1349
+ encoding: str,
1350
+ errors: str | None = None,
1351
+ text: bool | None = None,
1352
+ user: str | int | None = None,
1353
+ group: str | int | None = None,
1354
+ extra_groups: Iterable[str | int] | None = None,
1355
+ umask: int = -1,
1356
+ pipesize: int = -1,
1357
+ ) -> str: ...
1358
+ @overload
1359
+ def check_output(
1360
+ args: _CMD,
1361
+ bufsize: int = -1,
1362
+ executable: StrOrBytesPath | None = None,
1363
+ stdin: _FILE = None,
1364
+ stderr: _FILE = None,
1365
+ preexec_fn: Callable[[], Any] | None = None,
1366
+ close_fds: bool = True,
1367
+ shell: bool = False,
1368
+ cwd: StrOrBytesPath | None = None,
1369
+ env: _ENV | None = None,
1370
+ universal_newlines: bool | None = None,
1371
+ startupinfo: Any = None,
1372
+ creationflags: int = 0,
1373
+ restore_signals: bool = True,
1374
+ start_new_session: bool = False,
1375
+ pass_fds: Collection[int] = ...,
1376
+ *,
1377
+ timeout: float | None = None,
1378
+ input: _InputString | None = ...,
1379
+ encoding: str | None = None,
1380
+ errors: str,
1381
+ text: bool | None = None,
1382
+ user: str | int | None = None,
1383
+ group: str | int | None = None,
1384
+ extra_groups: Iterable[str | int] | None = None,
1385
+ umask: int = -1,
1386
+ pipesize: int = -1,
1387
+ ) -> str: ...
1388
+ @overload
1389
+ def check_output(
1390
+ args: _CMD,
1391
+ bufsize: int = -1,
1392
+ executable: StrOrBytesPath | None = None,
1393
+ stdin: _FILE = None,
1394
+ stderr: _FILE = None,
1395
+ preexec_fn: Callable[[], Any] | None = None,
1396
+ close_fds: bool = True,
1397
+ shell: bool = False,
1398
+ cwd: StrOrBytesPath | None = None,
1399
+ env: _ENV | None = None,
1400
+ *,
1401
+ universal_newlines: Literal[True],
1402
+ startupinfo: Any = None,
1403
+ creationflags: int = 0,
1404
+ restore_signals: bool = True,
1405
+ start_new_session: bool = False,
1406
+ pass_fds: Collection[int] = ...,
1407
+ # where the real keyword only ones start
1408
+ timeout: float | None = None,
1409
+ input: _InputString | None = ...,
1410
+ encoding: str | None = None,
1411
+ errors: str | None = None,
1412
+ text: bool | None = None,
1413
+ user: str | int | None = None,
1414
+ group: str | int | None = None,
1415
+ extra_groups: Iterable[str | int] | None = None,
1416
+ umask: int = -1,
1417
+ pipesize: int = -1,
1418
+ ) -> str: ...
1419
+ @overload
1420
+ def check_output(
1421
+ args: _CMD,
1422
+ bufsize: int = -1,
1423
+ executable: StrOrBytesPath | None = None,
1424
+ stdin: _FILE = None,
1425
+ stderr: _FILE = None,
1426
+ preexec_fn: Callable[[], Any] | None = None,
1427
+ close_fds: bool = True,
1428
+ shell: bool = False,
1429
+ cwd: StrOrBytesPath | None = None,
1430
+ env: _ENV | None = None,
1431
+ universal_newlines: Literal[False] | None = None,
1432
+ startupinfo: Any = None,
1433
+ creationflags: int = 0,
1434
+ restore_signals: bool = True,
1435
+ start_new_session: bool = False,
1436
+ pass_fds: Collection[int] = ...,
1437
+ *,
1438
+ timeout: float | None = None,
1439
+ input: _InputString | None = ...,
1440
+ encoding: None = None,
1441
+ errors: None = None,
1442
+ text: Literal[False] | None = None,
1443
+ user: str | int | None = None,
1444
+ group: str | int | None = None,
1445
+ extra_groups: Iterable[str | int] | None = None,
1446
+ umask: int = -1,
1447
+ pipesize: int = -1,
1448
+ ) -> bytes: ...
1449
+ @overload
1450
+ def check_output(
1451
+ args: _CMD,
1452
+ bufsize: int = -1,
1453
+ executable: StrOrBytesPath | None = None,
1454
+ stdin: _FILE = None,
1455
+ stderr: _FILE = None,
1456
+ preexec_fn: Callable[[], Any] | None = None,
1457
+ close_fds: bool = True,
1458
+ shell: bool = False,
1459
+ cwd: StrOrBytesPath | None = None,
1460
+ env: _ENV | None = None,
1461
+ universal_newlines: bool | None = None,
1462
+ startupinfo: Any = None,
1463
+ creationflags: int = 0,
1464
+ restore_signals: bool = True,
1465
+ start_new_session: bool = False,
1466
+ pass_fds: Collection[int] = ...,
1467
+ *,
1468
+ timeout: float | None = None,
1469
+ input: _InputString | None = ...,
1470
+ encoding: str | None = None,
1471
+ errors: str | None = None,
1472
+ text: bool | None = None,
1473
+ user: str | int | None = None,
1474
+ group: str | int | None = None,
1475
+ extra_groups: Iterable[str | int] | None = None,
1476
+ umask: int = -1,
1477
+ pipesize: int = -1,
1478
+ ) -> Any: ... # morally: -> str | bytes
1479
+
1480
+ elif sys.version_info >= (3, 9):
1481
+ # 3.9 adds arguments "user", "group", "extra_groups" and "umask"
1482
+ @overload
1483
+ def check_output(
1484
+ args: _CMD,
1485
+ bufsize: int = -1,
1486
+ executable: StrOrBytesPath | None = None,
1487
+ stdin: _FILE = None,
1488
+ stderr: _FILE = None,
1489
+ preexec_fn: Callable[[], Any] | None = None,
1490
+ close_fds: bool = True,
1491
+ shell: bool = False,
1492
+ cwd: StrOrBytesPath | None = None,
1493
+ env: _ENV | None = None,
1494
+ universal_newlines: bool | None = None,
1495
+ startupinfo: Any = None,
1496
+ creationflags: int = 0,
1497
+ restore_signals: bool = True,
1498
+ start_new_session: bool = False,
1499
+ pass_fds: Collection[int] = ...,
1500
+ *,
1501
+ timeout: float | None = None,
1502
+ input: _InputString | None = ...,
1503
+ encoding: str | None = None,
1504
+ errors: str | None = None,
1505
+ text: Literal[True],
1506
+ user: str | int | None = None,
1507
+ group: str | int | None = None,
1508
+ extra_groups: Iterable[str | int] | None = None,
1509
+ umask: int = -1,
1510
+ ) -> str: ...
1511
+ @overload
1512
+ def check_output(
1513
+ args: _CMD,
1514
+ bufsize: int = -1,
1515
+ executable: StrOrBytesPath | None = None,
1516
+ stdin: _FILE = None,
1517
+ stderr: _FILE = None,
1518
+ preexec_fn: Callable[[], Any] | None = None,
1519
+ close_fds: bool = True,
1520
+ shell: bool = False,
1521
+ cwd: StrOrBytesPath | None = None,
1522
+ env: _ENV | None = None,
1523
+ universal_newlines: bool | None = None,
1524
+ startupinfo: Any = None,
1525
+ creationflags: int = 0,
1526
+ restore_signals: bool = True,
1527
+ start_new_session: bool = False,
1528
+ pass_fds: Collection[int] = ...,
1529
+ *,
1530
+ timeout: float | None = None,
1531
+ input: _InputString | None = ...,
1532
+ encoding: str,
1533
+ errors: str | None = None,
1534
+ text: bool | None = None,
1535
+ user: str | int | None = None,
1536
+ group: str | int | None = None,
1537
+ extra_groups: Iterable[str | int] | None = None,
1538
+ umask: int = -1,
1539
+ ) -> str: ...
1540
+ @overload
1541
+ def check_output(
1542
+ args: _CMD,
1543
+ bufsize: int = -1,
1544
+ executable: StrOrBytesPath | None = None,
1545
+ stdin: _FILE = None,
1546
+ stderr: _FILE = None,
1547
+ preexec_fn: Callable[[], Any] | None = None,
1548
+ close_fds: bool = True,
1549
+ shell: bool = False,
1550
+ cwd: StrOrBytesPath | None = None,
1551
+ env: _ENV | None = None,
1552
+ universal_newlines: bool | None = None,
1553
+ startupinfo: Any = None,
1554
+ creationflags: int = 0,
1555
+ restore_signals: bool = True,
1556
+ start_new_session: bool = False,
1557
+ pass_fds: Collection[int] = ...,
1558
+ *,
1559
+ timeout: float | None = None,
1560
+ input: _InputString | None = ...,
1561
+ encoding: str | None = None,
1562
+ errors: str,
1563
+ text: bool | None = None,
1564
+ user: str | int | None = None,
1565
+ group: str | int | None = None,
1566
+ extra_groups: Iterable[str | int] | None = None,
1567
+ umask: int = -1,
1568
+ ) -> str: ...
1569
+ @overload
1570
+ def check_output(
1571
+ args: _CMD,
1572
+ bufsize: int = -1,
1573
+ executable: StrOrBytesPath | None = None,
1574
+ stdin: _FILE = None,
1575
+ stderr: _FILE = None,
1576
+ preexec_fn: Callable[[], Any] | None = None,
1577
+ close_fds: bool = True,
1578
+ shell: bool = False,
1579
+ cwd: StrOrBytesPath | None = None,
1580
+ env: _ENV | None = None,
1581
+ *,
1582
+ universal_newlines: Literal[True],
1583
+ startupinfo: Any = None,
1584
+ creationflags: int = 0,
1585
+ restore_signals: bool = True,
1586
+ start_new_session: bool = False,
1587
+ pass_fds: Collection[int] = ...,
1588
+ # where the real keyword only ones start
1589
+ timeout: float | None = None,
1590
+ input: _InputString | None = ...,
1591
+ encoding: str | None = None,
1592
+ errors: str | None = None,
1593
+ text: bool | None = None,
1594
+ user: str | int | None = None,
1595
+ group: str | int | None = None,
1596
+ extra_groups: Iterable[str | int] | None = None,
1597
+ umask: int = -1,
1598
+ ) -> str: ...
1599
+ @overload
1600
+ def check_output(
1601
+ args: _CMD,
1602
+ bufsize: int = -1,
1603
+ executable: StrOrBytesPath | None = None,
1604
+ stdin: _FILE = None,
1605
+ stderr: _FILE = None,
1606
+ preexec_fn: Callable[[], Any] | None = None,
1607
+ close_fds: bool = True,
1608
+ shell: bool = False,
1609
+ cwd: StrOrBytesPath | None = None,
1610
+ env: _ENV | None = None,
1611
+ universal_newlines: Literal[False] | None = None,
1612
+ startupinfo: Any = None,
1613
+ creationflags: int = 0,
1614
+ restore_signals: bool = True,
1615
+ start_new_session: bool = False,
1616
+ pass_fds: Collection[int] = ...,
1617
+ *,
1618
+ timeout: float | None = None,
1619
+ input: _InputString | None = ...,
1620
+ encoding: None = None,
1621
+ errors: None = None,
1622
+ text: Literal[False] | None = None,
1623
+ user: str | int | None = None,
1624
+ group: str | int | None = None,
1625
+ extra_groups: Iterable[str | int] | None = None,
1626
+ umask: int = -1,
1627
+ ) -> bytes: ...
1628
+ @overload
1629
+ def check_output(
1630
+ args: _CMD,
1631
+ bufsize: int = -1,
1632
+ executable: StrOrBytesPath | None = None,
1633
+ stdin: _FILE = None,
1634
+ stderr: _FILE = None,
1635
+ preexec_fn: Callable[[], Any] | None = None,
1636
+ close_fds: bool = True,
1637
+ shell: bool = False,
1638
+ cwd: StrOrBytesPath | None = None,
1639
+ env: _ENV | None = None,
1640
+ universal_newlines: bool | None = None,
1641
+ startupinfo: Any = None,
1642
+ creationflags: int = 0,
1643
+ restore_signals: bool = True,
1644
+ start_new_session: bool = False,
1645
+ pass_fds: Collection[int] = ...,
1646
+ *,
1647
+ timeout: float | None = None,
1648
+ input: _InputString | None = ...,
1649
+ encoding: str | None = None,
1650
+ errors: str | None = None,
1651
+ text: bool | None = None,
1652
+ user: str | int | None = None,
1653
+ group: str | int | None = None,
1654
+ extra_groups: Iterable[str | int] | None = None,
1655
+ umask: int = -1,
1656
+ ) -> Any: ... # morally: -> str | bytes
1657
+
1658
+ else:
1659
+ @overload
1660
+ def check_output(
1661
+ args: _CMD,
1662
+ bufsize: int = -1,
1663
+ executable: StrOrBytesPath | None = None,
1664
+ stdin: _FILE = None,
1665
+ stderr: _FILE = None,
1666
+ preexec_fn: Callable[[], Any] | None = None,
1667
+ close_fds: bool = True,
1668
+ shell: bool = False,
1669
+ cwd: StrOrBytesPath | None = None,
1670
+ env: _ENV | None = None,
1671
+ universal_newlines: bool | None = None,
1672
+ startupinfo: Any = None,
1673
+ creationflags: int = 0,
1674
+ restore_signals: bool = True,
1675
+ start_new_session: bool = False,
1676
+ pass_fds: Collection[int] = ...,
1677
+ *,
1678
+ timeout: float | None = None,
1679
+ input: _InputString | None = ...,
1680
+ encoding: str | None = None,
1681
+ errors: str | None = None,
1682
+ text: Literal[True],
1683
+ ) -> str: ...
1684
+ @overload
1685
+ def check_output(
1686
+ args: _CMD,
1687
+ bufsize: int = -1,
1688
+ executable: StrOrBytesPath | None = None,
1689
+ stdin: _FILE = None,
1690
+ stderr: _FILE = None,
1691
+ preexec_fn: Callable[[], Any] | None = None,
1692
+ close_fds: bool = True,
1693
+ shell: bool = False,
1694
+ cwd: StrOrBytesPath | None = None,
1695
+ env: _ENV | None = None,
1696
+ universal_newlines: bool | None = None,
1697
+ startupinfo: Any = None,
1698
+ creationflags: int = 0,
1699
+ restore_signals: bool = True,
1700
+ start_new_session: bool = False,
1701
+ pass_fds: Collection[int] = ...,
1702
+ *,
1703
+ timeout: float | None = None,
1704
+ input: _InputString | None = ...,
1705
+ encoding: str,
1706
+ errors: str | None = None,
1707
+ text: bool | None = None,
1708
+ ) -> str: ...
1709
+ @overload
1710
+ def check_output(
1711
+ args: _CMD,
1712
+ bufsize: int = -1,
1713
+ executable: StrOrBytesPath | None = None,
1714
+ stdin: _FILE = None,
1715
+ stderr: _FILE = None,
1716
+ preexec_fn: Callable[[], Any] | None = None,
1717
+ close_fds: bool = True,
1718
+ shell: bool = False,
1719
+ cwd: StrOrBytesPath | None = None,
1720
+ env: _ENV | None = None,
1721
+ universal_newlines: bool | None = None,
1722
+ startupinfo: Any = None,
1723
+ creationflags: int = 0,
1724
+ restore_signals: bool = True,
1725
+ start_new_session: bool = False,
1726
+ pass_fds: Collection[int] = ...,
1727
+ *,
1728
+ timeout: float | None = None,
1729
+ input: _InputString | None = ...,
1730
+ encoding: str | None = None,
1731
+ errors: str,
1732
+ text: bool | None = None,
1733
+ ) -> str: ...
1734
+ @overload
1735
+ def check_output(
1736
+ args: _CMD,
1737
+ bufsize: int = -1,
1738
+ executable: StrOrBytesPath | None = None,
1739
+ stdin: _FILE = None,
1740
+ stderr: _FILE = None,
1741
+ preexec_fn: Callable[[], Any] | None = None,
1742
+ close_fds: bool = True,
1743
+ shell: bool = False,
1744
+ cwd: StrOrBytesPath | None = None,
1745
+ env: _ENV | None = None,
1746
+ *,
1747
+ universal_newlines: Literal[True],
1748
+ startupinfo: Any = None,
1749
+ creationflags: int = 0,
1750
+ restore_signals: bool = True,
1751
+ start_new_session: bool = False,
1752
+ pass_fds: Collection[int] = ...,
1753
+ # where the real keyword only ones start
1754
+ timeout: float | None = None,
1755
+ input: _InputString | None = ...,
1756
+ encoding: str | None = None,
1757
+ errors: str | None = None,
1758
+ text: bool | None = None,
1759
+ ) -> str: ...
1760
+ @overload
1761
+ def check_output(
1762
+ args: _CMD,
1763
+ bufsize: int = -1,
1764
+ executable: StrOrBytesPath | None = None,
1765
+ stdin: _FILE = None,
1766
+ stderr: _FILE = None,
1767
+ preexec_fn: Callable[[], Any] | None = None,
1768
+ close_fds: bool = True,
1769
+ shell: bool = False,
1770
+ cwd: StrOrBytesPath | None = None,
1771
+ env: _ENV | None = None,
1772
+ universal_newlines: Literal[False] | None = None,
1773
+ startupinfo: Any = None,
1774
+ creationflags: int = 0,
1775
+ restore_signals: bool = True,
1776
+ start_new_session: bool = False,
1777
+ pass_fds: Collection[int] = ...,
1778
+ *,
1779
+ timeout: float | None = None,
1780
+ input: _InputString | None = ...,
1781
+ encoding: None = None,
1782
+ errors: None = None,
1783
+ text: Literal[False] | None = None,
1784
+ ) -> bytes: ...
1785
+ @overload
1786
+ def check_output(
1787
+ args: _CMD,
1788
+ bufsize: int = -1,
1789
+ executable: StrOrBytesPath | None = None,
1790
+ stdin: _FILE = None,
1791
+ stderr: _FILE = None,
1792
+ preexec_fn: Callable[[], Any] | None = None,
1793
+ close_fds: bool = True,
1794
+ shell: bool = False,
1795
+ cwd: StrOrBytesPath | None = None,
1796
+ env: _ENV | None = None,
1797
+ universal_newlines: bool | None = None,
1798
+ startupinfo: Any = None,
1799
+ creationflags: int = 0,
1800
+ restore_signals: bool = True,
1801
+ start_new_session: bool = False,
1802
+ pass_fds: Collection[int] = ...,
1803
+ *,
1804
+ timeout: float | None = None,
1805
+ input: _InputString | None = ...,
1806
+ encoding: str | None = None,
1807
+ errors: str | None = None,
1808
+ text: bool | None = None,
1809
+ ) -> Any: ... # morally: -> str | bytes
1810
+
1811
+ PIPE: int
1812
+ STDOUT: int
1813
+ DEVNULL: int
1814
+
1815
+ class SubprocessError(Exception): ...
1816
+
1817
+ class TimeoutExpired(SubprocessError):
1818
+ def __init__(
1819
+ self,
1820
+ cmd: _CMD,
1821
+ timeout: float,
1822
+ output: str | bytes | None = None,
1823
+ stderr: str | bytes | None = None,
1824
+ ) -> None: ...
1825
+ # morally: _CMD
1826
+ cmd: Any
1827
+ timeout: float
1828
+ # morally: str | bytes | None
1829
+ output: Any
1830
+ stdout: bytes | None
1831
+ stderr: bytes | None
1832
+
1833
+ class CalledProcessError(SubprocessError):
1834
+ returncode: int
1835
+ # morally: _CMD
1836
+ cmd: Any
1837
+ # morally: str | bytes | None
1838
+ output: Any
1839
+
1840
+ # morally: str | bytes | None
1841
+ stdout: Any
1842
+ stderr: Any
1843
+ def __init__(
1844
+ self,
1845
+ returncode: int,
1846
+ cmd: _CMD,
1847
+ output: str | bytes | None = None,
1848
+ 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 | Any
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(
2568
+ self, input: AnyStr | None = None, timeout: float | None = None
2569
+ ) -> tuple[AnyStr, AnyStr]: ...
2570
+ def send_signal(self, sig: int) -> None: ...
2571
+ def terminate(self) -> None: ...
2572
+ def kill(self) -> None: ...
2573
+ def __enter__(self) -> Self: ...
2574
+ def __exit__(
2575
+ self,
2576
+ exc_type: type[BaseException] | None,
2577
+ value: BaseException | None,
2578
+ traceback: TracebackType | None,
2579
+ ) -> None: ...
2580
+ def __del__(self) -> None: ...
2581
+ if sys.version_info >= (3, 9):
2582
+ def __class_getitem__(cls, item: Any) -> GenericAlias: ...
2583
+
2584
+ # The result really is always a str.
2585
+ if sys.version_info >= (3, 11):
2586
+ def getstatusoutput(
2587
+ cmd: str | bytes, *, encoding: str | None = None, errors: str | None = None
2588
+ ) -> tuple[int, str]: ...
2589
+ def getoutput(
2590
+ cmd: str | bytes, *, encoding: str | None = None, errors: str | None = None
2591
+ ) -> str: ...
2592
+
2593
+ else:
2594
+ def getstatusoutput(cmd: str | bytes) -> tuple[int, str]: ...
2595
+ def getoutput(cmd: str | bytes) -> str: ...
2596
+
2597
+ def list2cmdline(seq: Iterable[StrOrBytesPath]) -> str: ... # undocumented
2598
+
2599
+ if sys.platform == "win32":
2600
+ class STARTUPINFO:
2601
+ def __init__(
2602
+ self,
2603
+ *,
2604
+ dwFlags: int = 0,
2605
+ hStdInput: Any | None = None,
2606
+ hStdOutput: Any | None = None,
2607
+ hStdError: Any | None = None,
2608
+ wShowWindow: int = 0,
2609
+ lpAttributeList: Mapping[str, Any] | None = None,
2610
+ ) -> None: ...
2611
+ dwFlags: int
2612
+ hStdInput: Any | None
2613
+ hStdOutput: Any | None
2614
+ hStdError: Any | None
2615
+ wShowWindow: int
2616
+ lpAttributeList: Mapping[str, Any]
2617
+ def copy(self) -> STARTUPINFO: ...
2618
+
2619
+ from _winapi import (
2620
+ ABOVE_NORMAL_PRIORITY_CLASS as ABOVE_NORMAL_PRIORITY_CLASS,
2621
+ BELOW_NORMAL_PRIORITY_CLASS as BELOW_NORMAL_PRIORITY_CLASS,
2622
+ CREATE_BREAKAWAY_FROM_JOB as CREATE_BREAKAWAY_FROM_JOB,
2623
+ CREATE_DEFAULT_ERROR_MODE as CREATE_DEFAULT_ERROR_MODE,
2624
+ CREATE_NEW_CONSOLE as CREATE_NEW_CONSOLE,
2625
+ CREATE_NEW_PROCESS_GROUP as CREATE_NEW_PROCESS_GROUP,
2626
+ CREATE_NO_WINDOW as CREATE_NO_WINDOW,
2627
+ DETACHED_PROCESS as DETACHED_PROCESS,
2628
+ HIGH_PRIORITY_CLASS as HIGH_PRIORITY_CLASS,
2629
+ IDLE_PRIORITY_CLASS as IDLE_PRIORITY_CLASS,
2630
+ NORMAL_PRIORITY_CLASS as NORMAL_PRIORITY_CLASS,
2631
+ REALTIME_PRIORITY_CLASS as REALTIME_PRIORITY_CLASS,
2632
+ STARTF_USESHOWWINDOW as STARTF_USESHOWWINDOW,
2633
+ STARTF_USESTDHANDLES as STARTF_USESTDHANDLES,
2634
+ STD_ERROR_HANDLE as STD_ERROR_HANDLE,
2635
+ STD_INPUT_HANDLE as STD_INPUT_HANDLE,
2636
+ STD_OUTPUT_HANDLE as STD_OUTPUT_HANDLE,
2637
+ SW_HIDE as SW_HIDE,
2638
+ )