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,1317 @@
1
+ import sys
2
+ from _typeshed import (
3
+ AnyStr_co,
4
+ BytesPath,
5
+ FileDescriptor,
6
+ FileDescriptorLike,
7
+ FileDescriptorOrPath,
8
+ GenericPath,
9
+ OpenBinaryMode,
10
+ OpenBinaryModeReading,
11
+ OpenBinaryModeUpdating,
12
+ OpenBinaryModeWriting,
13
+ OpenTextMode,
14
+ ReadableBuffer,
15
+ StrOrBytesPath,
16
+ StrPath,
17
+ SupportsLenAndGetItem,
18
+ Unused,
19
+ WriteableBuffer,
20
+ structseq,
21
+ )
22
+ from abc import abstractmethod
23
+ from builtins import OSError
24
+ from collections.abc import (
25
+ Callable,
26
+ Iterable,
27
+ Iterator,
28
+ Mapping,
29
+ MutableMapping,
30
+ Sequence,
31
+ )
32
+ from contextlib import AbstractContextManager
33
+ from io import (
34
+ BufferedRandom,
35
+ BufferedReader,
36
+ BufferedWriter,
37
+ FileIO,
38
+ TextIOWrapper as _TextIOWrapper,
39
+ )
40
+ from subprocess import Popen
41
+ from typing import (
42
+ IO,
43
+ Any,
44
+ AnyStr,
45
+ BinaryIO,
46
+ Final,
47
+ Generic,
48
+ Literal,
49
+ NoReturn,
50
+ Protocol,
51
+ TypeVar,
52
+ final,
53
+ overload,
54
+ runtime_checkable,
55
+ )
56
+ from typing_extensions import Self, TypeAlias, Unpack
57
+
58
+ from . import path as _path
59
+
60
+ if sys.version_info >= (3, 9):
61
+ from types import GenericAlias
62
+
63
+ # This unnecessary alias is to work around various errors
64
+ path = _path
65
+
66
+ _T = TypeVar("_T")
67
+ _T1 = TypeVar("_T1")
68
+ _T2 = TypeVar("_T2")
69
+
70
+ # ----- os variables -----
71
+
72
+ error = OSError
73
+
74
+ supports_bytes_environ: bool
75
+
76
+ supports_dir_fd: set[Callable[..., Any]]
77
+ supports_fd: set[Callable[..., Any]]
78
+ supports_effective_ids: set[Callable[..., Any]]
79
+ supports_follow_symlinks: set[Callable[..., Any]]
80
+
81
+ if sys.platform != "win32":
82
+ # Unix only
83
+ PRIO_PROCESS: int
84
+ PRIO_PGRP: int
85
+ PRIO_USER: int
86
+
87
+ F_LOCK: int
88
+ F_TLOCK: int
89
+ F_ULOCK: int
90
+ F_TEST: int
91
+
92
+ if sys.platform != "darwin":
93
+ POSIX_FADV_NORMAL: int
94
+ POSIX_FADV_SEQUENTIAL: int
95
+ POSIX_FADV_RANDOM: int
96
+ POSIX_FADV_NOREUSE: int
97
+ POSIX_FADV_WILLNEED: int
98
+ POSIX_FADV_DONTNEED: int
99
+
100
+ if sys.platform != "linux" and sys.platform != "darwin":
101
+ # In the os-module docs, these are marked as being available
102
+ # on "Unix, not Emscripten, not WASI."
103
+ # However, in the source code, a comment indicates they're "FreeBSD constants".
104
+ # sys.platform could have one of many values on a FreeBSD Python build,
105
+ # so the sys-module docs recommend doing `if sys.platform.startswith('freebsd')`
106
+ # to detect FreeBSD builds. Unfortunately that would be too dynamic
107
+ # for type checkers, however.
108
+ SF_NODISKIO: int
109
+ SF_MNOWAIT: int
110
+ SF_SYNC: int
111
+
112
+ if sys.version_info >= (3, 11):
113
+ SF_NOCACHE: int
114
+
115
+ if sys.platform == "linux":
116
+ XATTR_SIZE_MAX: int
117
+ XATTR_CREATE: int
118
+ XATTR_REPLACE: int
119
+
120
+ P_PID: int
121
+ P_PGID: int
122
+ P_ALL: int
123
+
124
+ if sys.platform == "linux" and sys.version_info >= (3, 9):
125
+ P_PIDFD: int
126
+
127
+ WEXITED: int
128
+ WSTOPPED: int
129
+ WNOWAIT: int
130
+
131
+ CLD_EXITED: int
132
+ CLD_DUMPED: int
133
+ CLD_TRAPPED: int
134
+ CLD_CONTINUED: int
135
+
136
+ if sys.version_info >= (3, 9):
137
+ CLD_KILLED: int
138
+ CLD_STOPPED: int
139
+
140
+ # TODO: SCHED_RESET_ON_FORK not available on darwin?
141
+ # TODO: SCHED_BATCH and SCHED_IDLE are linux only?
142
+ SCHED_OTHER: int # some flavors of Unix
143
+ SCHED_BATCH: int # some flavors of Unix
144
+ SCHED_IDLE: int # some flavors of Unix
145
+ SCHED_SPORADIC: int # some flavors of Unix
146
+ SCHED_FIFO: int # some flavors of Unix
147
+ SCHED_RR: int # some flavors of Unix
148
+ SCHED_RESET_ON_FORK: int # some flavors of Unix
149
+
150
+ if sys.platform != "win32":
151
+ RTLD_LAZY: int
152
+ RTLD_NOW: int
153
+ RTLD_GLOBAL: int
154
+ RTLD_LOCAL: int
155
+ RTLD_NODELETE: int
156
+ RTLD_NOLOAD: int
157
+
158
+ if sys.platform == "linux":
159
+ RTLD_DEEPBIND: int
160
+ GRND_NONBLOCK: int
161
+ GRND_RANDOM: int
162
+
163
+ if sys.platform == "darwin" and sys.version_info >= (3, 12):
164
+ PRIO_DARWIN_BG: int
165
+ PRIO_DARWIN_NONUI: int
166
+ PRIO_DARWIN_PROCESS: int
167
+ PRIO_DARWIN_THREAD: int
168
+
169
+ SEEK_SET: int
170
+ SEEK_CUR: int
171
+ SEEK_END: int
172
+ if sys.platform != "win32":
173
+ SEEK_DATA: int # some flavors of Unix
174
+ SEEK_HOLE: int # some flavors of Unix
175
+
176
+ O_RDONLY: int
177
+ O_WRONLY: int
178
+ O_RDWR: int
179
+ O_APPEND: int
180
+ O_CREAT: int
181
+ O_EXCL: int
182
+ O_TRUNC: int
183
+ # We don't use sys.platform for O_* flags to denote platform-dependent APIs because some codes,
184
+ # including tests for mypy, use a more finer way than sys.platform before using these APIs
185
+ # See https://github.com/python/typeshed/pull/2286 for discussions
186
+ O_DSYNC: int # Unix only
187
+ O_RSYNC: int # Unix only
188
+ O_SYNC: int # Unix only
189
+ O_NDELAY: int # Unix only
190
+ O_NONBLOCK: int # Unix only
191
+ O_NOCTTY: int # Unix only
192
+ O_CLOEXEC: int # Unix only
193
+ O_SHLOCK: int # Unix only
194
+ O_EXLOCK: int # Unix only
195
+ O_BINARY: int # Windows only
196
+ O_NOINHERIT: int # Windows only
197
+ O_SHORT_LIVED: int # Windows only
198
+ O_TEMPORARY: int # Windows only
199
+ O_RANDOM: int # Windows only
200
+ O_SEQUENTIAL: int # Windows only
201
+ O_TEXT: int # Windows only
202
+ O_ASYNC: int # Gnu extension if in C library
203
+ O_DIRECT: int # Gnu extension if in C library
204
+ O_DIRECTORY: int # Gnu extension if in C library
205
+ O_NOFOLLOW: int # Gnu extension if in C library
206
+ O_NOATIME: int # Gnu extension if in C library
207
+ O_PATH: int # Gnu extension if in C library
208
+ O_TMPFILE: int # Gnu extension if in C library
209
+ O_LARGEFILE: int # Gnu extension if in C library
210
+ O_ACCMODE: int # TODO: when does this exist?
211
+
212
+ if sys.platform != "win32" and sys.platform != "darwin":
213
+ # posix, but apparently missing on macos
214
+ ST_APPEND: int
215
+ ST_MANDLOCK: int
216
+ ST_NOATIME: int
217
+ ST_NODEV: int
218
+ ST_NODIRATIME: int
219
+ ST_NOEXEC: int
220
+ ST_RELATIME: int
221
+ ST_SYNCHRONOUS: int
222
+ ST_WRITE: int
223
+
224
+ if sys.platform != "win32":
225
+ NGROUPS_MAX: int
226
+ ST_NOSUID: int
227
+ ST_RDONLY: int
228
+
229
+ curdir: str
230
+ pardir: str
231
+ sep: str
232
+ if sys.platform == "win32":
233
+ altsep: str
234
+ else:
235
+ altsep: str | None
236
+ extsep: str
237
+ pathsep: str
238
+ defpath: str
239
+ linesep: str
240
+ devnull: str
241
+ name: str
242
+
243
+ F_OK: int
244
+ R_OK: int
245
+ W_OK: int
246
+ X_OK: int
247
+
248
+ _EnvironCodeFunc: TypeAlias = Callable[[AnyStr], AnyStr]
249
+
250
+ class _Environ(MutableMapping[AnyStr, AnyStr], Generic[AnyStr]):
251
+ encodekey: _EnvironCodeFunc[AnyStr]
252
+ decodekey: _EnvironCodeFunc[AnyStr]
253
+ encodevalue: _EnvironCodeFunc[AnyStr]
254
+ decodevalue: _EnvironCodeFunc[AnyStr]
255
+ if sys.version_info >= (3, 9):
256
+ def __init__(
257
+ self,
258
+ data: MutableMapping[AnyStr, AnyStr],
259
+ encodekey: _EnvironCodeFunc[AnyStr],
260
+ decodekey: _EnvironCodeFunc[AnyStr],
261
+ encodevalue: _EnvironCodeFunc[AnyStr],
262
+ decodevalue: _EnvironCodeFunc[AnyStr],
263
+ ) -> None: ...
264
+ else:
265
+ putenv: Callable[[AnyStr, AnyStr], object]
266
+ unsetenv: Callable[[AnyStr, AnyStr], object]
267
+ def __init__(
268
+ self,
269
+ data: MutableMapping[AnyStr, AnyStr],
270
+ encodekey: _EnvironCodeFunc[AnyStr],
271
+ decodekey: _EnvironCodeFunc[AnyStr],
272
+ encodevalue: _EnvironCodeFunc[AnyStr],
273
+ decodevalue: _EnvironCodeFunc[AnyStr],
274
+ putenv: Callable[[AnyStr, AnyStr], object],
275
+ unsetenv: Callable[[AnyStr, AnyStr], object],
276
+ ) -> None: ...
277
+
278
+ def setdefault(self, key: AnyStr, value: AnyStr) -> AnyStr: ...
279
+ def copy(self) -> dict[AnyStr, AnyStr]: ...
280
+ def __delitem__(self, key: AnyStr) -> None: ...
281
+ def __getitem__(self, key: AnyStr) -> AnyStr: ...
282
+ def __setitem__(self, key: AnyStr, value: AnyStr) -> None: ...
283
+ def __iter__(self) -> Iterator[AnyStr]: ...
284
+ def __len__(self) -> int: ...
285
+ if sys.version_info >= (3, 9):
286
+ def __or__(
287
+ self, other: Mapping[_T1, _T2]
288
+ ) -> dict[AnyStr | _T1, AnyStr | _T2]: ...
289
+ def __ror__(
290
+ self, other: Mapping[_T1, _T2]
291
+ ) -> dict[AnyStr | _T1, AnyStr | _T2]: ...
292
+ # We use @overload instead of a Union for reasons similar to those given for
293
+ # overloading MutableMapping.update in stdlib/typing.pyi
294
+ # The type: ignore is needed due to incompatible __or__/__ior__ signatures
295
+ @overload # type: ignore[misc]
296
+ def __ior__(self, other: Mapping[AnyStr, AnyStr]) -> Self: ...
297
+ @overload
298
+ def __ior__(self, other: Iterable[tuple[AnyStr, AnyStr]]) -> Self: ...
299
+
300
+ environ: _Environ[str]
301
+ if sys.platform != "win32":
302
+ environb: _Environ[bytes]
303
+
304
+ if sys.version_info >= (3, 11) or sys.platform != "win32":
305
+ EX_OK: int
306
+
307
+ if sys.platform != "win32":
308
+ confstr_names: dict[str, int]
309
+ pathconf_names: dict[str, int]
310
+ sysconf_names: dict[str, int]
311
+
312
+ EX_USAGE: int
313
+ EX_DATAERR: int
314
+ EX_NOINPUT: int
315
+ EX_NOUSER: int
316
+ EX_NOHOST: int
317
+ EX_UNAVAILABLE: int
318
+ EX_SOFTWARE: int
319
+ EX_OSERR: int
320
+ EX_OSFILE: int
321
+ EX_CANTCREAT: int
322
+ EX_IOERR: int
323
+ EX_TEMPFAIL: int
324
+ EX_PROTOCOL: int
325
+ EX_NOPERM: int
326
+ EX_CONFIG: int
327
+
328
+ if sys.platform != "win32" and sys.platform != "darwin":
329
+ EX_NOTFOUND: int
330
+
331
+ P_NOWAIT: int
332
+ P_NOWAITO: int
333
+ P_WAIT: int
334
+ if sys.platform == "win32":
335
+ P_DETACH: int
336
+ P_OVERLAY: int
337
+
338
+ # wait()/waitpid() options
339
+ if sys.platform != "win32":
340
+ WNOHANG: int # Unix only
341
+ WCONTINUED: int # some Unix systems
342
+ WUNTRACED: int # Unix only
343
+
344
+ TMP_MAX: int # Undocumented, but used by tempfile
345
+
346
+ # ----- os classes (structures) -----
347
+ @final
348
+ class stat_result(
349
+ structseq[float], tuple[int, int, int, int, int, int, int, float, float, float]
350
+ ):
351
+ # The constructor of this class takes an iterable of variable length (though it must be at least 10).
352
+ #
353
+ # However, this class behaves like a tuple of 10 elements,
354
+ # no matter how long the iterable supplied to the constructor is.
355
+ # https://github.com/python/typeshed/pull/6560#discussion_r767162532
356
+ #
357
+ # The 10 elements always present are st_mode, st_ino, st_dev, st_nlink,
358
+ # st_uid, st_gid, st_size, st_atime, st_mtime, st_ctime.
359
+ #
360
+ # More items may be added at the end by some implementations.
361
+ if sys.version_info >= (3, 10):
362
+ __match_args__: Final = (
363
+ "st_mode",
364
+ "st_ino",
365
+ "st_dev",
366
+ "st_nlink",
367
+ "st_uid",
368
+ "st_gid",
369
+ "st_size",
370
+ )
371
+
372
+ @property
373
+ def st_mode(self) -> int: ... # protection bits,
374
+ @property
375
+ def st_ino(self) -> int: ... # inode number,
376
+ @property
377
+ def st_dev(self) -> int: ... # device,
378
+ @property
379
+ def st_nlink(self) -> int: ... # number of hard links,
380
+ @property
381
+ def st_uid(self) -> int: ... # user id of owner,
382
+ @property
383
+ def st_gid(self) -> int: ... # group id of owner,
384
+ @property
385
+ def st_size(self) -> int: ... # size of file, in bytes,
386
+ @property
387
+ def st_atime(self) -> float: ... # time of most recent access,
388
+ @property
389
+ def st_mtime(self) -> float: ... # time of most recent content modification,
390
+ # platform dependent (time of most recent metadata change on Unix, or the time of creation on Windows)
391
+ @property
392
+ def st_ctime(self) -> float: ...
393
+ @property
394
+ def st_atime_ns(self) -> int: ... # time of most recent access, in nanoseconds
395
+ @property
396
+ def st_mtime_ns(
397
+ self,
398
+ ) -> int: ... # time of most recent content modification in nanoseconds
399
+ # platform dependent (time of most recent metadata change on Unix, or the time of creation on Windows) in nanoseconds
400
+ @property
401
+ def st_ctime_ns(self) -> int: ...
402
+ if sys.platform == "win32":
403
+ @property
404
+ def st_file_attributes(self) -> int: ...
405
+ @property
406
+ def st_reparse_tag(self) -> int: ...
407
+ if sys.version_info >= (3, 12):
408
+ @property
409
+ def st_birthtime(self) -> float: ... # time of file creation in seconds
410
+ @property
411
+ def st_birthtime_ns(
412
+ self,
413
+ ) -> int: ... # time of file creation in nanoseconds
414
+ else:
415
+ @property
416
+ def st_blocks(self) -> int: ... # number of blocks allocated for file
417
+ @property
418
+ def st_blksize(self) -> int: ... # filesystem blocksize
419
+ @property
420
+ def st_rdev(self) -> int: ... # type of device if an inode device
421
+ if sys.platform != "linux":
422
+ # These properties are available on MacOS, but not Ubuntu.
423
+ # On other Unix systems (such as FreeBSD), the following attributes may be
424
+ # available (but may be only filled out if root tries to use them):
425
+ @property
426
+ def st_gen(self) -> int: ... # file generation number
427
+ @property
428
+ def st_birthtime(self) -> float: ... # time of file creation in seconds
429
+ if sys.platform == "darwin":
430
+ @property
431
+ def st_flags(self) -> int: ... # user defined flags for file
432
+ # Attributes documented as sometimes appearing, but deliberately omitted from the stub: `st_creator`, `st_rsize`, `st_type`.
433
+ # See https://github.com/python/typeshed/pull/6560#issuecomment-991253327
434
+
435
+ @runtime_checkable
436
+ class PathLike(Protocol[AnyStr_co]):
437
+ @abstractmethod
438
+ def __fspath__(self) -> AnyStr_co: ...
439
+
440
+ @overload
441
+ def listdir(path: StrPath | None = None) -> list[str]: ...
442
+ @overload
443
+ def listdir(path: BytesPath) -> list[bytes]: ...
444
+ @overload
445
+ def listdir(path: int) -> list[str]: ...
446
+ @final
447
+ class DirEntry(Generic[AnyStr]):
448
+ # This is what the scandir iterator yields
449
+ # The constructor is hidden
450
+
451
+ @property
452
+ def name(self) -> AnyStr: ...
453
+ @property
454
+ def path(self) -> AnyStr: ...
455
+ def inode(self) -> int: ...
456
+ def is_dir(self, *, follow_symlinks: bool = True) -> bool: ...
457
+ def is_file(self, *, follow_symlinks: bool = True) -> bool: ...
458
+ def is_symlink(self) -> bool: ...
459
+ def stat(self, *, follow_symlinks: bool = True) -> stat_result: ...
460
+ def __fspath__(self) -> AnyStr: ...
461
+ if sys.version_info >= (3, 9):
462
+ def __class_getitem__(cls, item: Any) -> GenericAlias: ...
463
+ if sys.version_info >= (3, 12):
464
+ def is_junction(self) -> bool: ...
465
+
466
+ @final
467
+ class statvfs_result(
468
+ structseq[int], tuple[int, int, int, int, int, int, int, int, int, int, int]
469
+ ):
470
+ if sys.version_info >= (3, 10):
471
+ __match_args__: Final = (
472
+ "f_bsize",
473
+ "f_frsize",
474
+ "f_blocks",
475
+ "f_bfree",
476
+ "f_bavail",
477
+ "f_files",
478
+ "f_ffree",
479
+ "f_favail",
480
+ "f_flag",
481
+ "f_namemax",
482
+ )
483
+
484
+ @property
485
+ def f_bsize(self) -> int: ...
486
+ @property
487
+ def f_frsize(self) -> int: ...
488
+ @property
489
+ def f_blocks(self) -> int: ...
490
+ @property
491
+ def f_bfree(self) -> int: ...
492
+ @property
493
+ def f_bavail(self) -> int: ...
494
+ @property
495
+ def f_files(self) -> int: ...
496
+ @property
497
+ def f_ffree(self) -> int: ...
498
+ @property
499
+ def f_favail(self) -> int: ...
500
+ @property
501
+ def f_flag(self) -> int: ...
502
+ @property
503
+ def f_namemax(self) -> int: ...
504
+ @property
505
+ def f_fsid(self) -> int: ...
506
+
507
+ # ----- os function stubs -----
508
+ def fsencode(filename: StrOrBytesPath) -> bytes: ...
509
+ def fsdecode(filename: StrOrBytesPath) -> str: ...
510
+ @overload
511
+ def fspath(path: str) -> str: ...
512
+ @overload
513
+ def fspath(path: bytes) -> bytes: ...
514
+ @overload
515
+ def fspath(path: PathLike[AnyStr]) -> AnyStr: ...
516
+ def get_exec_path(env: Mapping[str, str] | None = None) -> list[str]: ...
517
+ def getlogin() -> str: ...
518
+ def getpid() -> int: ...
519
+ def getppid() -> int: ...
520
+ def strerror(__code: int) -> str: ...
521
+ def umask(__mask: int) -> int: ...
522
+ @final
523
+ class uname_result(structseq[str], tuple[str, str, str, str, str]):
524
+ if sys.version_info >= (3, 10):
525
+ __match_args__: Final = ("sysname", "nodename", "release", "version", "machine")
526
+
527
+ @property
528
+ def sysname(self) -> str: ...
529
+ @property
530
+ def nodename(self) -> str: ...
531
+ @property
532
+ def release(self) -> str: ...
533
+ @property
534
+ def version(self) -> str: ...
535
+ @property
536
+ def machine(self) -> str: ...
537
+
538
+ if sys.platform != "win32":
539
+ def ctermid() -> str: ...
540
+ def getegid() -> int: ...
541
+ def geteuid() -> int: ...
542
+ def getgid() -> int: ...
543
+ def getgrouplist(__user: str, __group: int) -> list[int]: ...
544
+ def getgroups() -> list[int]: ... # Unix only, behaves differently on Mac
545
+ def initgroups(__username: str, __gid: int) -> None: ...
546
+ def getpgid(pid: int) -> int: ...
547
+ def getpgrp() -> int: ...
548
+ def getpriority(which: int, who: int) -> int: ...
549
+ def setpriority(which: int, who: int, priority: int) -> None: ...
550
+ if sys.platform != "darwin":
551
+ def getresuid() -> tuple[int, int, int]: ...
552
+ def getresgid() -> tuple[int, int, int]: ...
553
+
554
+ def getuid() -> int: ...
555
+ def setegid(__egid: int) -> None: ...
556
+ def seteuid(__euid: int) -> None: ...
557
+ def setgid(__gid: int) -> None: ...
558
+ def setgroups(__groups: Sequence[int]) -> None: ...
559
+ def setpgrp() -> None: ...
560
+ def setpgid(__pid: int, __pgrp: int) -> None: ...
561
+ def setregid(__rgid: int, __egid: int) -> None: ...
562
+ if sys.platform != "darwin":
563
+ def setresgid(__rgid: int, __egid: int, __sgid: int) -> None: ...
564
+ def setresuid(__ruid: int, __euid: int, __suid: int) -> None: ...
565
+
566
+ def setreuid(__ruid: int, __euid: int) -> None: ...
567
+ def getsid(__pid: int) -> int: ...
568
+ def setsid() -> None: ...
569
+ def setuid(__uid: int) -> None: ...
570
+ def uname() -> uname_result: ...
571
+
572
+ @overload
573
+ def getenv(key: str) -> str | None: ...
574
+ @overload
575
+ def getenv(key: str, default: _T) -> str | _T: ...
576
+
577
+ if sys.platform != "win32":
578
+ @overload
579
+ def getenvb(key: bytes) -> bytes | None: ...
580
+ @overload
581
+ def getenvb(key: bytes, default: _T) -> bytes | _T: ...
582
+ def putenv(__name: StrOrBytesPath, __value: StrOrBytesPath) -> None: ...
583
+ def unsetenv(__name: StrOrBytesPath) -> None: ...
584
+
585
+ else:
586
+ def putenv(__name: str, __value: str) -> None: ...
587
+
588
+ if sys.version_info >= (3, 9):
589
+ def unsetenv(__name: str) -> None: ...
590
+
591
+ _Opener: TypeAlias = Callable[[str, int], int]
592
+
593
+ @overload
594
+ def fdopen(
595
+ fd: int,
596
+ mode: OpenTextMode = "r",
597
+ buffering: int = -1,
598
+ encoding: str | None = None,
599
+ errors: str | None = ...,
600
+ newline: str | None = ...,
601
+ closefd: bool = ...,
602
+ opener: _Opener | None = ...,
603
+ ) -> _TextIOWrapper: ...
604
+ @overload
605
+ def fdopen(
606
+ fd: int,
607
+ mode: OpenBinaryMode,
608
+ buffering: Literal[0],
609
+ encoding: None = None,
610
+ errors: None = None,
611
+ newline: None = None,
612
+ closefd: bool = ...,
613
+ opener: _Opener | None = ...,
614
+ ) -> FileIO: ...
615
+ @overload
616
+ def fdopen(
617
+ fd: int,
618
+ mode: OpenBinaryModeUpdating,
619
+ buffering: Literal[-1, 1] = -1,
620
+ encoding: None = None,
621
+ errors: None = None,
622
+ newline: None = None,
623
+ closefd: bool = ...,
624
+ opener: _Opener | None = ...,
625
+ ) -> BufferedRandom: ...
626
+ @overload
627
+ def fdopen(
628
+ fd: int,
629
+ mode: OpenBinaryModeWriting,
630
+ buffering: Literal[-1, 1] = -1,
631
+ encoding: None = None,
632
+ errors: None = None,
633
+ newline: None = None,
634
+ closefd: bool = ...,
635
+ opener: _Opener | None = ...,
636
+ ) -> BufferedWriter: ...
637
+ @overload
638
+ def fdopen(
639
+ fd: int,
640
+ mode: OpenBinaryModeReading,
641
+ buffering: Literal[-1, 1] = -1,
642
+ encoding: None = None,
643
+ errors: None = None,
644
+ newline: None = None,
645
+ closefd: bool = ...,
646
+ opener: _Opener | None = ...,
647
+ ) -> BufferedReader: ...
648
+ @overload
649
+ def fdopen(
650
+ fd: int,
651
+ mode: OpenBinaryMode,
652
+ buffering: int = -1,
653
+ encoding: None = None,
654
+ errors: None = None,
655
+ newline: None = None,
656
+ closefd: bool = ...,
657
+ opener: _Opener | None = ...,
658
+ ) -> BinaryIO: ...
659
+ @overload
660
+ def fdopen(
661
+ fd: int,
662
+ mode: str,
663
+ buffering: int = -1,
664
+ encoding: str | None = None,
665
+ errors: str | None = ...,
666
+ newline: str | None = ...,
667
+ closefd: bool = ...,
668
+ opener: _Opener | None = ...,
669
+ ) -> IO[Any]: ...
670
+ def close(fd: int) -> None: ...
671
+ def closerange(__fd_low: int, __fd_high: int) -> None: ...
672
+ def device_encoding(fd: int) -> str | None: ...
673
+ def dup(__fd: int) -> int: ...
674
+ def dup2(fd: int, fd2: int, inheritable: bool = True) -> int: ...
675
+ def fstat(fd: int) -> stat_result: ...
676
+ def ftruncate(__fd: int, __length: int) -> None: ...
677
+ def fsync(fd: FileDescriptorLike) -> None: ...
678
+ def isatty(__fd: int) -> bool: ...
679
+
680
+ if sys.platform != "win32" and sys.version_info >= (3, 11):
681
+ def login_tty(__fd: int) -> None: ...
682
+
683
+ if sys.version_info >= (3, 11):
684
+ def lseek(__fd: int, __position: int, __whence: int) -> int: ...
685
+
686
+ else:
687
+ def lseek(__fd: int, __position: int, __how: int) -> int: ...
688
+
689
+ def open(
690
+ path: StrOrBytesPath, flags: int, mode: int = 0o777, *, dir_fd: int | None = None
691
+ ) -> int: ...
692
+ def pipe() -> tuple[int, int]: ...
693
+ def read(__fd: int, __length: int) -> bytes: ...
694
+
695
+ if sys.version_info >= (3, 12) or sys.platform != "win32":
696
+ def get_blocking(__fd: int) -> bool: ...
697
+ def set_blocking(__fd: int, __blocking: bool) -> None: ...
698
+
699
+ if sys.platform != "win32":
700
+ def fchmod(fd: int, mode: int) -> None: ...
701
+ def fchown(fd: int, uid: int, gid: int) -> None: ...
702
+ def fpathconf(__fd: int, __name: str | int) -> int: ...
703
+ def fstatvfs(__fd: int) -> statvfs_result: ...
704
+ def lockf(__fd: int, __command: int, __length: int) -> None: ...
705
+ def openpty() -> tuple[int, int]: ... # some flavors of Unix
706
+ if sys.platform != "darwin":
707
+ def fdatasync(fd: FileDescriptorLike) -> None: ...
708
+ def pipe2(__flags: int) -> tuple[int, int]: ... # some flavors of Unix
709
+ def posix_fallocate(__fd: int, __offset: int, __length: int) -> None: ...
710
+ def posix_fadvise(
711
+ __fd: int, __offset: int, __length: int, __advice: int
712
+ ) -> None: ...
713
+
714
+ def pread(__fd: int, __length: int, __offset: int) -> bytes: ...
715
+ def pwrite(__fd: int, __buffer: ReadableBuffer, __offset: int) -> int: ...
716
+ # In CI, stubtest sometimes reports that these are available on MacOS, sometimes not
717
+ def preadv(
718
+ __fd: int,
719
+ __buffers: SupportsLenAndGetItem[WriteableBuffer],
720
+ __offset: int,
721
+ __flags: int = 0,
722
+ ) -> int: ...
723
+ def pwritev(
724
+ __fd: int,
725
+ __buffers: SupportsLenAndGetItem[ReadableBuffer],
726
+ __offset: int,
727
+ __flags: int = 0,
728
+ ) -> int: ...
729
+ if sys.platform != "darwin":
730
+ if sys.version_info >= (3, 10):
731
+ RWF_APPEND: int # docs say available on 3.7+, stubtest says otherwise
732
+ RWF_DSYNC: int
733
+ RWF_SYNC: int
734
+ RWF_HIPRI: int
735
+ RWF_NOWAIT: int
736
+
737
+ if sys.platform == "linux":
738
+ def sendfile(
739
+ out_fd: FileDescriptor,
740
+ in_fd: FileDescriptor,
741
+ offset: int | None,
742
+ count: int,
743
+ ) -> int: ...
744
+ else:
745
+ def sendfile(
746
+ out_fd: FileDescriptor,
747
+ in_fd: FileDescriptor,
748
+ offset: int,
749
+ count: int,
750
+ headers: Sequence[ReadableBuffer] = ...,
751
+ trailers: Sequence[ReadableBuffer] = ...,
752
+ flags: int = 0,
753
+ ) -> int: ... # FreeBSD and Mac OS X only
754
+
755
+ def readv(__fd: int, __buffers: SupportsLenAndGetItem[WriteableBuffer]) -> int: ...
756
+ def writev(__fd: int, __buffers: SupportsLenAndGetItem[ReadableBuffer]) -> int: ...
757
+
758
+ @final
759
+ class terminal_size(structseq[int], tuple[int, int]):
760
+ if sys.version_info >= (3, 10):
761
+ __match_args__: Final = ("columns", "lines")
762
+
763
+ @property
764
+ def columns(self) -> int: ...
765
+ @property
766
+ def lines(self) -> int: ...
767
+
768
+ def get_terminal_size(__fd: int = ...) -> terminal_size: ...
769
+ def get_inheritable(__fd: int) -> bool: ...
770
+ def set_inheritable(__fd: int, __inheritable: bool) -> None: ...
771
+
772
+ if sys.platform == "win32":
773
+ def get_handle_inheritable(__handle: int) -> bool: ...
774
+ def set_handle_inheritable(__handle: int, __inheritable: bool) -> None: ...
775
+
776
+ if sys.platform != "win32":
777
+ # Unix only
778
+ def tcgetpgrp(__fd: int) -> int: ...
779
+ def tcsetpgrp(__fd: int, __pgid: int) -> None: ...
780
+ def ttyname(__fd: int) -> str: ...
781
+
782
+ def write(__fd: int, __data: ReadableBuffer) -> int: ...
783
+ def access(
784
+ path: FileDescriptorOrPath,
785
+ mode: int,
786
+ *,
787
+ dir_fd: int | None = None,
788
+ effective_ids: bool = False,
789
+ follow_symlinks: bool = True,
790
+ ) -> bool: ...
791
+ def chdir(path: FileDescriptorOrPath) -> None: ...
792
+
793
+ if sys.platform != "win32":
794
+ def fchdir(fd: FileDescriptorLike) -> None: ...
795
+
796
+ def getcwd() -> str: ...
797
+ def getcwdb() -> bytes: ...
798
+ def chmod(
799
+ path: FileDescriptorOrPath,
800
+ mode: int,
801
+ *,
802
+ dir_fd: int | None = None,
803
+ follow_symlinks: bool = True,
804
+ ) -> None: ...
805
+
806
+ if sys.platform != "win32" and sys.platform != "linux":
807
+ def chflags(
808
+ path: StrOrBytesPath, flags: int, follow_symlinks: bool = True
809
+ ) -> None: ... # some flavors of Unix
810
+ def lchflags(path: StrOrBytesPath, flags: int) -> None: ...
811
+ def lchmod(path: StrOrBytesPath, mode: int) -> None: ...
812
+
813
+ if sys.platform != "win32":
814
+ def chroot(path: StrOrBytesPath) -> None: ...
815
+ def chown(
816
+ path: FileDescriptorOrPath,
817
+ uid: int,
818
+ gid: int,
819
+ *,
820
+ dir_fd: int | None = None,
821
+ follow_symlinks: bool = True,
822
+ ) -> None: ...
823
+ def lchown(path: StrOrBytesPath, uid: int, gid: int) -> None: ...
824
+
825
+ def link(
826
+ src: StrOrBytesPath,
827
+ dst: StrOrBytesPath,
828
+ *,
829
+ src_dir_fd: int | None = None,
830
+ dst_dir_fd: int | None = None,
831
+ follow_symlinks: bool = True,
832
+ ) -> None: ...
833
+ def lstat(path: StrOrBytesPath, *, dir_fd: int | None = None) -> stat_result: ...
834
+ def mkdir(
835
+ path: StrOrBytesPath, mode: int = 0o777, *, dir_fd: int | None = None
836
+ ) -> None: ...
837
+
838
+ if sys.platform != "win32":
839
+ def mkfifo(
840
+ path: StrOrBytesPath, mode: int = 0o666, *, dir_fd: int | None = None
841
+ ) -> None: ... # Unix only
842
+
843
+ def makedirs(
844
+ name: StrOrBytesPath, mode: int = 0o777, exist_ok: bool = False
845
+ ) -> None: ...
846
+
847
+ if sys.platform != "win32":
848
+ def mknod(
849
+ path: StrOrBytesPath,
850
+ mode: int = 0o600,
851
+ device: int = 0,
852
+ *,
853
+ dir_fd: int | None = None,
854
+ ) -> None: ...
855
+ def major(__device: int) -> int: ...
856
+ def minor(__device: int) -> int: ...
857
+ def makedev(__major: int, __minor: int) -> int: ...
858
+ def pathconf(path: FileDescriptorOrPath, name: str | int) -> int: ... # Unix only
859
+
860
+ def readlink(path: GenericPath[AnyStr], *, dir_fd: int | None = None) -> AnyStr: ...
861
+ def remove(path: StrOrBytesPath, *, dir_fd: int | None = None) -> None: ...
862
+ def removedirs(name: StrOrBytesPath) -> None: ...
863
+ def rename(
864
+ src: StrOrBytesPath,
865
+ dst: StrOrBytesPath,
866
+ *,
867
+ src_dir_fd: int | None = None,
868
+ dst_dir_fd: int | None = None,
869
+ ) -> None: ...
870
+ def renames(old: StrOrBytesPath, new: StrOrBytesPath) -> None: ...
871
+ def replace(
872
+ src: StrOrBytesPath,
873
+ dst: StrOrBytesPath,
874
+ *,
875
+ src_dir_fd: int | None = None,
876
+ dst_dir_fd: int | None = None,
877
+ ) -> None: ...
878
+ def rmdir(path: StrOrBytesPath, *, dir_fd: int | None = None) -> None: ...
879
+
880
+ class _ScandirIterator(
881
+ Iterator[DirEntry[AnyStr]], AbstractContextManager[_ScandirIterator[AnyStr]]
882
+ ):
883
+ def __next__(self) -> DirEntry[AnyStr]: ...
884
+ def __exit__(self, *args: Unused) -> None: ...
885
+ def close(self) -> None: ...
886
+
887
+ @overload
888
+ def scandir(path: None = None) -> _ScandirIterator[str]: ...
889
+ @overload
890
+ def scandir(path: int) -> _ScandirIterator[str]: ...
891
+ @overload
892
+ def scandir(path: GenericPath[AnyStr]) -> _ScandirIterator[AnyStr]: ...
893
+ def stat(
894
+ path: FileDescriptorOrPath,
895
+ *,
896
+ dir_fd: int | None = None,
897
+ follow_symlinks: bool = True,
898
+ ) -> stat_result: ...
899
+
900
+ if sys.platform != "win32":
901
+ def statvfs(path: FileDescriptorOrPath) -> statvfs_result: ... # Unix only
902
+
903
+ def symlink(
904
+ src: StrOrBytesPath,
905
+ dst: StrOrBytesPath,
906
+ target_is_directory: bool = False,
907
+ *,
908
+ dir_fd: int | None = None,
909
+ ) -> None: ...
910
+
911
+ if sys.platform != "win32":
912
+ def sync() -> None: ... # Unix only
913
+
914
+ def truncate(
915
+ path: FileDescriptorOrPath, length: int
916
+ ) -> None: ... # Unix only up to version 3.4
917
+ def unlink(path: StrOrBytesPath, *, dir_fd: int | None = None) -> None: ...
918
+ def utime(
919
+ path: FileDescriptorOrPath,
920
+ times: tuple[int, int] | tuple[float, float] | None = None,
921
+ *,
922
+ ns: tuple[int, int] = ...,
923
+ dir_fd: int | None = None,
924
+ follow_symlinks: bool = True,
925
+ ) -> None: ...
926
+
927
+ _OnError: TypeAlias = Callable[[OSError], object]
928
+
929
+ def walk(
930
+ top: GenericPath[AnyStr],
931
+ topdown: bool = True,
932
+ onerror: _OnError | None = None,
933
+ followlinks: bool = False,
934
+ ) -> Iterator[tuple[AnyStr, list[AnyStr], list[AnyStr]]]: ...
935
+
936
+ if sys.platform != "win32":
937
+ @overload
938
+ def fwalk(
939
+ top: StrPath = ".",
940
+ topdown: bool = True,
941
+ onerror: _OnError | None = None,
942
+ *,
943
+ follow_symlinks: bool = False,
944
+ dir_fd: int | None = None,
945
+ ) -> Iterator[tuple[str, list[str], list[str], int]]: ...
946
+ @overload
947
+ def fwalk(
948
+ top: BytesPath,
949
+ topdown: bool = True,
950
+ onerror: _OnError | None = None,
951
+ *,
952
+ follow_symlinks: bool = False,
953
+ dir_fd: int | None = None,
954
+ ) -> Iterator[tuple[bytes, list[bytes], list[bytes], int]]: ...
955
+ if sys.platform == "linux":
956
+ def getxattr(
957
+ path: FileDescriptorOrPath,
958
+ attribute: StrOrBytesPath,
959
+ *,
960
+ follow_symlinks: bool = True,
961
+ ) -> bytes: ...
962
+ def listxattr(
963
+ path: FileDescriptorOrPath | None = None, *, follow_symlinks: bool = True
964
+ ) -> list[str]: ...
965
+ def removexattr(
966
+ path: FileDescriptorOrPath,
967
+ attribute: StrOrBytesPath,
968
+ *,
969
+ follow_symlinks: bool = True,
970
+ ) -> None: ...
971
+ def setxattr(
972
+ path: FileDescriptorOrPath,
973
+ attribute: StrOrBytesPath,
974
+ value: ReadableBuffer,
975
+ flags: int = 0,
976
+ *,
977
+ follow_symlinks: bool = True,
978
+ ) -> None: ...
979
+
980
+ def abort() -> NoReturn: ...
981
+
982
+ # These are defined as execl(file, *args) but the first *arg is mandatory.
983
+ def execl(
984
+ file: StrOrBytesPath, __arg0: StrOrBytesPath, *args: StrOrBytesPath
985
+ ) -> NoReturn: ...
986
+ def execlp(
987
+ file: StrOrBytesPath, __arg0: StrOrBytesPath, *args: StrOrBytesPath
988
+ ) -> NoReturn: ...
989
+
990
+ # These are: execle(file, *args, env) but env is pulled from the last element of the args.
991
+ def execle(
992
+ file: StrOrBytesPath,
993
+ *args: Unpack[tuple[StrOrBytesPath, Unpack[tuple[StrOrBytesPath, ...]], _ExecEnv]],
994
+ ) -> NoReturn: ...
995
+ def execlpe(
996
+ file: StrOrBytesPath,
997
+ *args: Unpack[tuple[StrOrBytesPath, Unpack[tuple[StrOrBytesPath, ...]], _ExecEnv]],
998
+ ) -> NoReturn: ...
999
+
1000
+ # The docs say `args: tuple or list of strings`
1001
+ # The implementation enforces tuple or list so we can't use Sequence.
1002
+ # Not separating out PathLike[str] and PathLike[bytes] here because it doesn't make much difference
1003
+ # in practice, and doing so would explode the number of combinations in this already long union.
1004
+ # All these combinations are necessary due to list being invariant.
1005
+ _ExecVArgs: TypeAlias = (
1006
+ tuple[StrOrBytesPath, ...]
1007
+ | list[bytes]
1008
+ | list[str]
1009
+ | list[PathLike[Any]]
1010
+ | list[bytes | str]
1011
+ | list[bytes | PathLike[Any]]
1012
+ | list[str | PathLike[Any]]
1013
+ | list[bytes | str | PathLike[Any]]
1014
+ )
1015
+ # Depending on the OS, the keys and values are passed either to
1016
+ # PyUnicode_FSDecoder (which accepts str | ReadableBuffer) or to
1017
+ # PyUnicode_FSConverter (which accepts StrOrBytesPath). For simplicity,
1018
+ # we limit to str | bytes.
1019
+ _ExecEnv: TypeAlias = Mapping[bytes, bytes | str] | Mapping[str, bytes | str]
1020
+
1021
+ def execv(__path: StrOrBytesPath, __argv: _ExecVArgs) -> NoReturn: ...
1022
+ def execve(path: FileDescriptorOrPath, argv: _ExecVArgs, env: _ExecEnv) -> NoReturn: ...
1023
+ def execvp(file: StrOrBytesPath, args: _ExecVArgs) -> NoReturn: ...
1024
+ def execvpe(file: StrOrBytesPath, args: _ExecVArgs, env: _ExecEnv) -> NoReturn: ...
1025
+ def _exit(status: int) -> NoReturn: ...
1026
+ def kill(__pid: int, __signal: int) -> None: ...
1027
+
1028
+ if sys.platform != "win32":
1029
+ # Unix only
1030
+ def fork() -> int: ...
1031
+ def forkpty() -> tuple[int, int]: ... # some flavors of Unix
1032
+ def killpg(__pgid: int, __signal: int) -> None: ...
1033
+ def nice(__increment: int) -> int: ...
1034
+ if sys.platform != "darwin":
1035
+ def plock(__op: int) -> None: ... # ???op is int?
1036
+
1037
+ class _wrap_close(_TextIOWrapper):
1038
+ def __init__(self, stream: _TextIOWrapper, proc: Popen[str]) -> None: ...
1039
+ def close(self) -> int | None: ... # type: ignore[override]
1040
+
1041
+ def popen(cmd: str, mode: str = "r", buffering: int = -1) -> _wrap_close: ...
1042
+ def spawnl(
1043
+ mode: int, file: StrOrBytesPath, arg0: StrOrBytesPath, *args: StrOrBytesPath
1044
+ ) -> int: ...
1045
+ def spawnle(
1046
+ mode: int, file: StrOrBytesPath, arg0: StrOrBytesPath, *args: Any
1047
+ ) -> int: ... # Imprecise sig
1048
+
1049
+ if sys.platform != "win32":
1050
+ def spawnv(mode: int, file: StrOrBytesPath, args: _ExecVArgs) -> int: ...
1051
+ def spawnve(
1052
+ mode: int, file: StrOrBytesPath, args: _ExecVArgs, env: _ExecEnv
1053
+ ) -> int: ...
1054
+
1055
+ else:
1056
+ def spawnv(__mode: int, __path: StrOrBytesPath, __argv: _ExecVArgs) -> int: ...
1057
+ def spawnve(
1058
+ __mode: int, __path: StrOrBytesPath, __argv: _ExecVArgs, __env: _ExecEnv
1059
+ ) -> int: ...
1060
+
1061
+ def system(command: StrOrBytesPath) -> int: ...
1062
+ @final
1063
+ class times_result(structseq[float], tuple[float, float, float, float, float]):
1064
+ if sys.version_info >= (3, 10):
1065
+ __match_args__: Final = (
1066
+ "user",
1067
+ "system",
1068
+ "children_user",
1069
+ "children_system",
1070
+ "elapsed",
1071
+ )
1072
+
1073
+ @property
1074
+ def user(self) -> float: ...
1075
+ @property
1076
+ def system(self) -> float: ...
1077
+ @property
1078
+ def children_user(self) -> float: ...
1079
+ @property
1080
+ def children_system(self) -> float: ...
1081
+ @property
1082
+ def elapsed(self) -> float: ...
1083
+
1084
+ def times() -> times_result: ...
1085
+ def waitpid(__pid: int, __options: int) -> tuple[int, int]: ...
1086
+
1087
+ if sys.platform == "win32":
1088
+ if sys.version_info >= (3, 10):
1089
+ def startfile(
1090
+ filepath: StrOrBytesPath,
1091
+ operation: str = ...,
1092
+ arguments: str = "",
1093
+ cwd: StrOrBytesPath | None = None,
1094
+ show_cmd: int = 1,
1095
+ ) -> None: ...
1096
+ else:
1097
+ def startfile(filepath: StrOrBytesPath, operation: str = ...) -> None: ...
1098
+
1099
+ else:
1100
+ def spawnlp(
1101
+ mode: int, file: StrOrBytesPath, arg0: StrOrBytesPath, *args: StrOrBytesPath
1102
+ ) -> int: ...
1103
+ def spawnlpe(
1104
+ mode: int, file: StrOrBytesPath, arg0: StrOrBytesPath, *args: Any
1105
+ ) -> int: ... # Imprecise signature
1106
+ def spawnvp(mode: int, file: StrOrBytesPath, args: _ExecVArgs) -> int: ...
1107
+ def spawnvpe(
1108
+ mode: int, file: StrOrBytesPath, args: _ExecVArgs, env: _ExecEnv
1109
+ ) -> int: ...
1110
+ def wait() -> tuple[int, int]: ... # Unix only
1111
+ if sys.platform != "darwin":
1112
+ @final
1113
+ class waitid_result(structseq[int], tuple[int, int, int, int, int]):
1114
+ if sys.version_info >= (3, 10):
1115
+ __match_args__: Final = (
1116
+ "si_pid",
1117
+ "si_uid",
1118
+ "si_signo",
1119
+ "si_status",
1120
+ "si_code",
1121
+ )
1122
+
1123
+ @property
1124
+ def si_pid(self) -> int: ...
1125
+ @property
1126
+ def si_uid(self) -> int: ...
1127
+ @property
1128
+ def si_signo(self) -> int: ...
1129
+ @property
1130
+ def si_status(self) -> int: ...
1131
+ @property
1132
+ def si_code(self) -> int: ...
1133
+
1134
+ def waitid(
1135
+ __idtype: int, __ident: int, __options: int
1136
+ ) -> waitid_result | None: ...
1137
+
1138
+ from resource import struct_rusage
1139
+
1140
+ def wait3(options: int) -> tuple[int, int, struct_rusage]: ...
1141
+ def wait4(pid: int, options: int) -> tuple[int, int, struct_rusage]: ...
1142
+ def WCOREDUMP(__status: int) -> bool: ...
1143
+ def WIFCONTINUED(status: int) -> bool: ...
1144
+ def WIFSTOPPED(status: int) -> bool: ...
1145
+ def WIFSIGNALED(status: int) -> bool: ...
1146
+ def WIFEXITED(status: int) -> bool: ...
1147
+ def WEXITSTATUS(status: int) -> int: ...
1148
+ def WSTOPSIG(status: int) -> int: ...
1149
+ def WTERMSIG(status: int) -> int: ...
1150
+ def posix_spawn(
1151
+ __path: StrOrBytesPath,
1152
+ __argv: _ExecVArgs,
1153
+ __env: _ExecEnv,
1154
+ *,
1155
+ file_actions: Sequence[tuple[Any, ...]] | None = ...,
1156
+ setpgroup: int | None = ...,
1157
+ resetids: bool = ...,
1158
+ setsid: bool = ...,
1159
+ setsigmask: Iterable[int] = ...,
1160
+ setsigdef: Iterable[int] = ...,
1161
+ scheduler: tuple[Any, sched_param] | None = ...,
1162
+ ) -> int: ...
1163
+ def posix_spawnp(
1164
+ __path: StrOrBytesPath,
1165
+ __argv: _ExecVArgs,
1166
+ __env: _ExecEnv,
1167
+ *,
1168
+ file_actions: Sequence[tuple[Any, ...]] | None = ...,
1169
+ setpgroup: int | None = ...,
1170
+ resetids: bool = ...,
1171
+ setsid: bool = ...,
1172
+ setsigmask: Iterable[int] = ...,
1173
+ setsigdef: Iterable[int] = ...,
1174
+ scheduler: tuple[Any, sched_param] | None = ...,
1175
+ ) -> int: ...
1176
+ POSIX_SPAWN_OPEN: int
1177
+ POSIX_SPAWN_CLOSE: int
1178
+ POSIX_SPAWN_DUP2: int
1179
+
1180
+ if sys.platform != "win32":
1181
+ @final
1182
+ class sched_param(structseq[int], tuple[int]):
1183
+ if sys.version_info >= (3, 10):
1184
+ __match_args__: Final = ("sched_priority",)
1185
+
1186
+ def __new__(cls, sched_priority: int) -> Self: ...
1187
+ @property
1188
+ def sched_priority(self) -> int: ...
1189
+
1190
+ def sched_get_priority_min(policy: int) -> int: ... # some flavors of Unix
1191
+ def sched_get_priority_max(policy: int) -> int: ... # some flavors of Unix
1192
+ def sched_yield() -> None: ... # some flavors of Unix
1193
+ if sys.platform != "darwin":
1194
+ def sched_setscheduler(
1195
+ __pid: int, __policy: int, __param: sched_param
1196
+ ) -> None: ... # some flavors of Unix
1197
+ def sched_getscheduler(__pid: int) -> int: ... # some flavors of Unix
1198
+ def sched_rr_get_interval(__pid: int) -> float: ... # some flavors of Unix
1199
+ def sched_setparam(
1200
+ __pid: int, __param: sched_param
1201
+ ) -> None: ... # some flavors of Unix
1202
+ def sched_getparam(__pid: int) -> sched_param: ... # some flavors of Unix
1203
+ def sched_setaffinity(
1204
+ __pid: int, __mask: Iterable[int]
1205
+ ) -> None: ... # some flavors of Unix
1206
+ def sched_getaffinity(__pid: int) -> set[int]: ... # some flavors of Unix
1207
+
1208
+ def cpu_count() -> int | None: ...
1209
+
1210
+ if sys.platform != "win32":
1211
+ # Unix only
1212
+ def confstr(__name: str | int) -> str | None: ...
1213
+ def getloadavg() -> tuple[float, float, float]: ...
1214
+ def sysconf(__name: str | int) -> int: ...
1215
+
1216
+ if sys.platform == "linux":
1217
+ def getrandom(size: int, flags: int = 0) -> bytes: ...
1218
+
1219
+ def urandom(__size: int) -> bytes: ...
1220
+
1221
+ if sys.platform != "win32":
1222
+ def register_at_fork(
1223
+ *,
1224
+ before: Callable[..., Any] | None = ...,
1225
+ after_in_parent: Callable[..., Any] | None = ...,
1226
+ after_in_child: Callable[..., Any] | None = ...,
1227
+ ) -> None: ...
1228
+
1229
+ if sys.platform == "win32":
1230
+ class _AddedDllDirectory:
1231
+ path: str | None
1232
+ def __init__(
1233
+ self,
1234
+ path: str | None,
1235
+ cookie: _T,
1236
+ remove_dll_directory: Callable[[_T], object],
1237
+ ) -> None: ...
1238
+ def close(self) -> None: ...
1239
+ def __enter__(self) -> Self: ...
1240
+ def __exit__(self, *args: Unused) -> None: ...
1241
+
1242
+ def add_dll_directory(path: str) -> _AddedDllDirectory: ...
1243
+
1244
+ if sys.platform == "linux":
1245
+ MFD_CLOEXEC: int
1246
+ MFD_ALLOW_SEALING: int
1247
+ MFD_HUGETLB: int
1248
+ MFD_HUGE_SHIFT: int
1249
+ MFD_HUGE_MASK: int
1250
+ MFD_HUGE_64KB: int
1251
+ MFD_HUGE_512KB: int
1252
+ MFD_HUGE_1MB: int
1253
+ MFD_HUGE_2MB: int
1254
+ MFD_HUGE_8MB: int
1255
+ MFD_HUGE_16MB: int
1256
+ MFD_HUGE_32MB: int
1257
+ MFD_HUGE_256MB: int
1258
+ MFD_HUGE_512MB: int
1259
+ MFD_HUGE_1GB: int
1260
+ MFD_HUGE_2GB: int
1261
+ MFD_HUGE_16GB: int
1262
+ def memfd_create(name: str, flags: int = ...) -> int: ...
1263
+ def copy_file_range(
1264
+ src: int,
1265
+ dst: int,
1266
+ count: int,
1267
+ offset_src: int | None = ...,
1268
+ offset_dst: int | None = ...,
1269
+ ) -> int: ...
1270
+
1271
+ if sys.version_info >= (3, 9):
1272
+ def waitstatus_to_exitcode(status: int) -> int: ...
1273
+
1274
+ if sys.platform == "linux":
1275
+ def pidfd_open(pid: int, flags: int = ...) -> int: ...
1276
+
1277
+ if sys.version_info >= (3, 12) and sys.platform == "win32":
1278
+ def listdrives() -> list[str]: ...
1279
+ def listmounts(volume: str) -> list[str]: ...
1280
+ def listvolumes() -> list[str]: ...
1281
+
1282
+ if sys.version_info >= (3, 10) and sys.platform == "linux":
1283
+ EFD_CLOEXEC: int
1284
+ EFD_NONBLOCK: int
1285
+ EFD_SEMAPHORE: int
1286
+ SPLICE_F_MORE: int
1287
+ SPLICE_F_MOVE: int
1288
+ SPLICE_F_NONBLOCK: int
1289
+ def eventfd(initval: int, flags: int = 524288) -> FileDescriptor: ...
1290
+ def eventfd_read(fd: FileDescriptor) -> int: ...
1291
+ def eventfd_write(fd: FileDescriptor, value: int) -> None: ...
1292
+ def splice(
1293
+ src: FileDescriptor,
1294
+ dst: FileDescriptor,
1295
+ count: int,
1296
+ offset_src: int | None = ...,
1297
+ offset_dst: int | None = ...,
1298
+ flags: int = 0,
1299
+ ) -> int: ...
1300
+
1301
+ if sys.version_info >= (3, 12) and sys.platform == "linux":
1302
+ CLONE_FILES: int
1303
+ CLONE_FS: int
1304
+ CLONE_NEWCGROUP: int
1305
+ CLONE_NEWIPC: int
1306
+ CLONE_NEWNET: int
1307
+ CLONE_NEWNS: int
1308
+ CLONE_NEWPID: int
1309
+ CLONE_NEWTIME: int
1310
+ CLONE_NEWUSER: int
1311
+ CLONE_NEWUTS: int
1312
+ CLONE_SIGHAND: int
1313
+ CLONE_SYSVSEM: int
1314
+ CLONE_THREAD: int
1315
+ CLONE_VM: int
1316
+ def unshare(flags: int) -> None: ...
1317
+ def setns(fd: FileDescriptorLike, nstype: int = 0) -> None: ...