jaclang 0.6.1__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 (889) hide show
  1. jaclang/cli/.gitignore +3 -0
  2. jaclang/cli/cli.md +190 -0
  3. jaclang/compiler/.gitignore +1 -0
  4. jaclang/compiler/passes/main/tests/fixtures/autoimpl.impl/getme.impl.jac +3 -0
  5. jaclang/compiler/passes/main/tests/fixtures/autoimpl.impl.jac +3 -0
  6. jaclang/compiler/passes/main/tests/fixtures/autoimpl.jac +9 -0
  7. jaclang/compiler/passes/main/tests/fixtures/autoimpl.something.else.impl.jac +3 -0
  8. jaclang/compiler/passes/main/tests/fixtures/base.jac +13 -0
  9. jaclang/compiler/passes/main/tests/fixtures/base2.jac +14 -0
  10. jaclang/compiler/passes/main/tests/fixtures/blip.jac +2 -0
  11. jaclang/compiler/passes/main/tests/fixtures/codegentext.jac +31 -0
  12. jaclang/compiler/passes/main/tests/fixtures/decls.jac +10 -0
  13. jaclang/compiler/passes/main/tests/fixtures/defs_and_uses.jac +44 -0
  14. jaclang/compiler/passes/main/tests/fixtures/fstrings.jac +4 -0
  15. jaclang/compiler/passes/main/tests/fixtures/func.jac +18 -0
  16. jaclang/compiler/passes/main/tests/fixtures/func2.jac +8 -0
  17. jaclang/compiler/passes/main/tests/fixtures/game1.jac +15 -0
  18. jaclang/compiler/passes/main/tests/fixtures/impl/defs1.jac +8 -0
  19. jaclang/compiler/passes/main/tests/fixtures/impl/defs2.jac +8 -0
  20. jaclang/compiler/passes/main/tests/fixtures/impl/imps.jac +11 -0
  21. jaclang/compiler/passes/main/tests/fixtures/multi_def_err.jac +7 -0
  22. jaclang/compiler/passes/main/tests/fixtures/registry.jac +36 -0
  23. jaclang/compiler/passes/tool/tests/fixtures/corelib.jac +480 -0
  24. jaclang/compiler/passes/tool/tests/fixtures/corelib_fmt.jac +480 -0
  25. jaclang/compiler/passes/tool/tests/fixtures/genai/essay_review.jac +36 -0
  26. jaclang/compiler/passes/tool/tests/fixtures/genai/expert_answer.jac +17 -0
  27. jaclang/compiler/passes/tool/tests/fixtures/genai/joke_gen.jac +32 -0
  28. jaclang/compiler/passes/tool/tests/fixtures/genai/odd_word_out.jac +27 -0
  29. jaclang/compiler/passes/tool/tests/fixtures/genai/personality_finder.jac +35 -0
  30. jaclang/compiler/passes/tool/tests/fixtures/genai/text_to_type.jac +25 -0
  31. jaclang/compiler/passes/tool/tests/fixtures/genai/translator.jac +13 -0
  32. jaclang/compiler/passes/tool/tests/fixtures/genai/wikipedia.jac +63 -0
  33. jaclang/compiler/passes/tool/tests/fixtures/multi_def_err.dot +39 -0
  34. jaclang/compiler/passes/tool/tests/fixtures/multi_def_err.jac +7 -0
  35. jaclang/compiler/passes/tool/tests/fixtures/multi_def_err.txt +20 -0
  36. jaclang/compiler/passes/tool/tests/fixtures/myca_formatted_code/ability_impl_long_comprehension.jac +15 -0
  37. jaclang/compiler/passes/tool/tests/fixtures/myca_formatted_code/call_with_many_parameters.jac +24 -0
  38. jaclang/compiler/passes/tool/tests/fixtures/myca_formatted_code/entry_main.jac +4 -0
  39. jaclang/compiler/passes/tool/tests/fixtures/myca_formatted_code/long_line_nested_dict_access.jac +10 -0
  40. jaclang/compiler/passes/tool/tests/fixtures/myca_formatted_code/multiline_fstrings.jac +16 -0
  41. jaclang/compiler/passes/tool/tests/fixtures/myca_formatted_code/nested_dict.jac +15 -0
  42. jaclang/compiler/passes/tool/tests/fixtures/myca_formatted_code/nested_loop_and_incrementer.jac +13 -0
  43. jaclang/compiler/passes/tool/tests/fixtures/myca_formatted_code/simple_walker.jac +25 -0
  44. jaclang/compiler/passes/tool/tests/fixtures/myca_formatted_code/try_block_and_walker_spawn_and_fstrings.jac +26 -0
  45. jaclang/compiler/passes/tool/tests/fixtures/myca_formatted_code/tuple_iteration_and_not_negation.jac +20 -0
  46. jaclang/compiler/passes/tool/tests/fixtures/myca_formatted_code/type_annotation.jac +3 -0
  47. jaclang/compiler/passes/tool/tests/fixtures/myca_formatted_code/walker_decl_only.jac +12 -0
  48. jaclang/compiler/passes/tool/tests/fixtures/myca_formatted_code/walker_with_default_values_types_and_docstrings.jac +18 -0
  49. jaclang/compiler/passes/tool/tests/fixtures/myca_formatted_code/walker_with_inline_ability_impl.jac +8 -0
  50. jaclang/compiler/passes/tool/tests/fixtures/simple_walk.jac +47 -0
  51. jaclang/compiler/passes/tool/tests/fixtures/simple_walk_fmt.jac +47 -0
  52. jaclang/compiler/tests/fixtures/fam.jac +67 -0
  53. jaclang/compiler/tests/fixtures/hello_world.jac +5 -0
  54. jaclang/compiler/tests/fixtures/kwesc.jac +5 -0
  55. jaclang/compiler/tests/fixtures/mod_doc_test.jac +1 -0
  56. jaclang/compiler/tests/fixtures/staticcheck.jac +20 -0
  57. jaclang/compiler/tests/fixtures/stuff.jac +6 -0
  58. jaclang/plugin/tests/fixtures/impl_match.jac +9 -0
  59. jaclang/plugin/tests/fixtures/impl_match_impl.jac +3 -0
  60. jaclang/plugin/tests/fixtures/simple_node_connection.jac +55 -0
  61. jaclang/plugin/tests/fixtures/simple_persistent.jac +41 -0
  62. jaclang/tests/fixtures/abc.jac +73 -0
  63. jaclang/tests/fixtures/access_checker.jac +19 -0
  64. jaclang/tests/fixtures/access_modifier.jac +49 -0
  65. jaclang/tests/fixtures/aott_raise.jac +25 -0
  66. jaclang/tests/fixtures/arithmetic_bug.jac +13 -0
  67. jaclang/tests/fixtures/assign_compr.jac +15 -0
  68. jaclang/tests/fixtures/assign_compr_dup.jac +15 -0
  69. jaclang/tests/fixtures/builtin_dotgen.jac +41 -0
  70. jaclang/tests/fixtures/chandra_bugs.jac +11 -0
  71. jaclang/tests/fixtures/chandra_bugs2.jac +26 -0
  72. jaclang/tests/fixtures/circle_pysolo.py +91 -0
  73. jaclang/tests/fixtures/deep/deeper/deep_outer_import.jac +9 -0
  74. jaclang/tests/fixtures/deep/deeper/deep_outer_import2.jac +9 -0
  75. jaclang/tests/fixtures/deep/deeper/snd_lev.jac +6 -0
  76. jaclang/tests/fixtures/deep/mycode.jac +4 -0
  77. jaclang/tests/fixtures/deep/one_lev.jac +6 -0
  78. jaclang/tests/fixtures/deep/one_lev_dup.jac +6 -0
  79. jaclang/tests/fixtures/deep/one_lev_dup_py.py +6 -0
  80. jaclang/tests/fixtures/deep_import.jac +7 -0
  81. jaclang/tests/fixtures/deferred_field.jac +13 -0
  82. jaclang/tests/fixtures/disconn.jac +29 -0
  83. jaclang/tests/fixtures/edge_node_walk.jac +46 -0
  84. jaclang/tests/fixtures/edge_ops.jac +45 -0
  85. jaclang/tests/fixtures/edges_walk.jac +38 -0
  86. jaclang/tests/fixtures/enum_inside_archtype.jac +20 -0
  87. jaclang/tests/fixtures/err.jac +5 -0
  88. jaclang/tests/fixtures/err2.jac +5 -0
  89. jaclang/tests/fixtures/game1.jac +15 -0
  90. jaclang/tests/fixtures/gendot_bubble_sort.jac +77 -0
  91. jaclang/tests/fixtures/guess_game.jac +47 -0
  92. jaclang/tests/fixtures/has_goodness.jac +15 -0
  93. jaclang/tests/fixtures/hashcheck.jac +12 -0
  94. jaclang/tests/fixtures/hashcheck_dup.jac +12 -0
  95. jaclang/tests/fixtures/hello.jac +5 -0
  96. jaclang/tests/fixtures/hello_nc.jac +5 -0
  97. jaclang/tests/fixtures/ignore.jac +43 -0
  98. jaclang/tests/fixtures/ignore_dup.jac +43 -0
  99. jaclang/tests/fixtures/impl_grab.impl.jac +4 -0
  100. jaclang/tests/fixtures/impl_grab.jac +2 -0
  101. jaclang/tests/fixtures/inherit_check.jac +33 -0
  102. jaclang/tests/fixtures/jacsamp.jac +6 -0
  103. jaclang/tests/fixtures/jp_importer.jac +17 -0
  104. jaclang/tests/fixtures/lambda.jac +6 -0
  105. jaclang/tests/fixtures/maxfail_run_test.jac +5 -0
  106. jaclang/tests/fixtures/mtest.impl.jac +6 -0
  107. jaclang/tests/fixtures/mtest.jac +6 -0
  108. jaclang/tests/fixtures/needs_import.jac +18 -0
  109. jaclang/tests/fixtures/needs_import_1.jac +6 -0
  110. jaclang/tests/fixtures/needs_import_2.jac +6 -0
  111. jaclang/tests/fixtures/needs_import_3.jac +6 -0
  112. jaclang/tests/fixtures/needs_import_dup.jac +18 -0
  113. jaclang/tests/fixtures/package_import.jac +6 -0
  114. jaclang/tests/fixtures/pyfunc.py +11 -0
  115. jaclang/tests/fixtures/pyfunc_1.py +311 -0
  116. jaclang/tests/fixtures/pyfunc_2.py +279 -0
  117. jaclang/tests/fixtures/pyfunc_3.py +310 -0
  118. jaclang/tests/fixtures/random_check.jac +70 -0
  119. jaclang/tests/fixtures/raw_byte_string.jac +18 -0
  120. jaclang/tests/fixtures/registry.jac +37 -0
  121. jaclang/tests/fixtures/run_test.jac +5 -0
  122. jaclang/tests/fixtures/semstr.jac +33 -0
  123. jaclang/tests/fixtures/simple_archs.jac +26 -0
  124. jaclang/tests/fixtures/slice_vals.jac +7 -0
  125. jaclang/tests/fixtures/sub_abil_sep.jac +15 -0
  126. jaclang/tests/fixtures/sub_abil_sep_multilev.jac +17 -0
  127. jaclang/tests/fixtures/try_finally.jac +34 -0
  128. jaclang/tests/fixtures/tupleunpack.jac +6 -0
  129. jaclang/tests/fixtures/tuplytuples.jac +8 -0
  130. jaclang/tests/fixtures/type_info.jac +19 -0
  131. jaclang/tests/fixtures/with_context.jac +30 -0
  132. jaclang/tests/fixtures/with_llm_function.jac +33 -0
  133. jaclang/tests/fixtures/with_llm_lower.jac +45 -0
  134. jaclang/tests/fixtures/with_llm_method.jac +51 -0
  135. jaclang/tests/fixtures/with_llm_type.jac +52 -0
  136. jaclang/tests/test_cli.py +239 -0
  137. jaclang/tests/test_language.py +807 -0
  138. jaclang/tests/test_man_code.py +148 -0
  139. jaclang/tests/test_reference.py +95 -0
  140. jaclang/tests/test_settings.py +46 -0
  141. jaclang/vendor/LICENSE +18 -0
  142. jaclang/vendor/mypy/stubgen.py +0 -0
  143. jaclang/vendor/mypy/stubgenc.py +0 -0
  144. jaclang/vendor/mypy/typeshed/LICENSE +237 -0
  145. jaclang/vendor/mypy/typeshed/stdlib/VERSIONS +308 -0
  146. jaclang/vendor/mypy/typeshed/stdlib/__future__.pyi +41 -0
  147. jaclang/vendor/mypy/typeshed/stdlib/__main__.pyi +3 -0
  148. jaclang/vendor/mypy/typeshed/stdlib/_ast.pyi +632 -0
  149. jaclang/vendor/mypy/typeshed/stdlib/_bisect.pyi +106 -0
  150. jaclang/vendor/mypy/typeshed/stdlib/_bootlocale.pyi +1 -0
  151. jaclang/vendor/mypy/typeshed/stdlib/_codecs.pyi +198 -0
  152. jaclang/vendor/mypy/typeshed/stdlib/_collections_abc.pyi +94 -0
  153. jaclang/vendor/mypy/typeshed/stdlib/_compat_pickle.pyi +8 -0
  154. jaclang/vendor/mypy/typeshed/stdlib/_compression.pyi +25 -0
  155. jaclang/vendor/mypy/typeshed/stdlib/_csv.pyi +90 -0
  156. jaclang/vendor/mypy/typeshed/stdlib/_ctypes.pyi +219 -0
  157. jaclang/vendor/mypy/typeshed/stdlib/_curses.pyi +600 -0
  158. jaclang/vendor/mypy/typeshed/stdlib/_decimal.pyi +316 -0
  159. jaclang/vendor/mypy/typeshed/stdlib/_dummy_thread.pyi +43 -0
  160. jaclang/vendor/mypy/typeshed/stdlib/_dummy_threading.pyi +185 -0
  161. jaclang/vendor/mypy/typeshed/stdlib/_heapq.pyi +11 -0
  162. jaclang/vendor/mypy/typeshed/stdlib/_imp.pyi +32 -0
  163. jaclang/vendor/mypy/typeshed/stdlib/_json.pyi +49 -0
  164. jaclang/vendor/mypy/typeshed/stdlib/_locale.pyi +100 -0
  165. jaclang/vendor/mypy/typeshed/stdlib/_markupbase.pyi +16 -0
  166. jaclang/vendor/mypy/typeshed/stdlib/_msi.pyi +92 -0
  167. jaclang/vendor/mypy/typeshed/stdlib/_operator.pyi +172 -0
  168. jaclang/vendor/mypy/typeshed/stdlib/_osx_support.pyi +55 -0
  169. jaclang/vendor/mypy/typeshed/stdlib/_posixsubprocess.pyi +32 -0
  170. jaclang/vendor/mypy/typeshed/stdlib/_py_abc.pyi +17 -0
  171. jaclang/vendor/mypy/typeshed/stdlib/_pydecimal.pyi +43 -0
  172. jaclang/vendor/mypy/typeshed/stdlib/_random.pyi +12 -0
  173. jaclang/vendor/mypy/typeshed/stdlib/_sitebuiltins.pyi +18 -0
  174. jaclang/vendor/mypy/typeshed/stdlib/_socket.pyi +851 -0
  175. jaclang/vendor/mypy/typeshed/stdlib/_stat.pyi +103 -0
  176. jaclang/vendor/mypy/typeshed/stdlib/_thread.pyi +63 -0
  177. jaclang/vendor/mypy/typeshed/stdlib/_threading_local.pyi +17 -0
  178. jaclang/vendor/mypy/typeshed/stdlib/_tkinter.pyi +120 -0
  179. jaclang/vendor/mypy/typeshed/stdlib/_tracemalloc.pyi +17 -0
  180. jaclang/vendor/mypy/typeshed/stdlib/_typeshed/README.md +34 -0
  181. jaclang/vendor/mypy/typeshed/stdlib/_typeshed/__init__.pyi +374 -0
  182. jaclang/vendor/mypy/typeshed/stdlib/_typeshed/dbapi.pyi +45 -0
  183. jaclang/vendor/mypy/typeshed/stdlib/_typeshed/wsgi.pyi +51 -0
  184. jaclang/vendor/mypy/typeshed/stdlib/_typeshed/xml.pyi +13 -0
  185. jaclang/vendor/mypy/typeshed/stdlib/_warnings.pyi +65 -0
  186. jaclang/vendor/mypy/typeshed/stdlib/_weakref.pyi +45 -0
  187. jaclang/vendor/mypy/typeshed/stdlib/_weakrefset.pyi +51 -0
  188. jaclang/vendor/mypy/typeshed/stdlib/_winapi.pyi +275 -0
  189. jaclang/vendor/mypy/typeshed/stdlib/abc.pyi +61 -0
  190. jaclang/vendor/mypy/typeshed/stdlib/aifc.pyi +99 -0
  191. jaclang/vendor/mypy/typeshed/stdlib/antigravity.pyi +3 -0
  192. jaclang/vendor/mypy/typeshed/stdlib/argparse.pyi +675 -0
  193. jaclang/vendor/mypy/typeshed/stdlib/array.pyi +111 -0
  194. jaclang/vendor/mypy/typeshed/stdlib/ast.pyi +287 -0
  195. jaclang/vendor/mypy/typeshed/stdlib/asynchat.pyi +21 -0
  196. jaclang/vendor/mypy/typeshed/stdlib/asyncio/__init__.pyi +41 -0
  197. jaclang/vendor/mypy/typeshed/stdlib/asyncio/base_events.pyi +519 -0
  198. jaclang/vendor/mypy/typeshed/stdlib/asyncio/base_futures.pyi +21 -0
  199. jaclang/vendor/mypy/typeshed/stdlib/asyncio/base_subprocess.pyi +71 -0
  200. jaclang/vendor/mypy/typeshed/stdlib/asyncio/base_tasks.pyi +13 -0
  201. jaclang/vendor/mypy/typeshed/stdlib/asyncio/constants.pyi +20 -0
  202. jaclang/vendor/mypy/typeshed/stdlib/asyncio/coroutines.pyi +32 -0
  203. jaclang/vendor/mypy/typeshed/stdlib/asyncio/events.pyi +669 -0
  204. jaclang/vendor/mypy/typeshed/stdlib/asyncio/exceptions.pyi +43 -0
  205. jaclang/vendor/mypy/typeshed/stdlib/asyncio/format_helpers.pyi +26 -0
  206. jaclang/vendor/mypy/typeshed/stdlib/asyncio/futures.pyi +61 -0
  207. jaclang/vendor/mypy/typeshed/stdlib/asyncio/locks.pyi +131 -0
  208. jaclang/vendor/mypy/typeshed/stdlib/asyncio/log.pyi +3 -0
  209. jaclang/vendor/mypy/typeshed/stdlib/asyncio/mixins.pyi +9 -0
  210. jaclang/vendor/mypy/typeshed/stdlib/asyncio/proactor_events.pyi +72 -0
  211. jaclang/vendor/mypy/typeshed/stdlib/asyncio/protocols.pyi +40 -0
  212. jaclang/vendor/mypy/typeshed/stdlib/asyncio/queues.pyi +49 -0
  213. jaclang/vendor/mypy/typeshed/stdlib/asyncio/runners.pyi +44 -0
  214. jaclang/vendor/mypy/typeshed/stdlib/asyncio/selector_events.pyi +8 -0
  215. jaclang/vendor/mypy/typeshed/stdlib/asyncio/sslproto.pyi +189 -0
  216. jaclang/vendor/mypy/typeshed/stdlib/asyncio/staggered.pyi +13 -0
  217. jaclang/vendor/mypy/typeshed/stdlib/asyncio/streams.pyi +172 -0
  218. jaclang/vendor/mypy/typeshed/stdlib/asyncio/subprocess.pyi +234 -0
  219. jaclang/vendor/mypy/typeshed/stdlib/asyncio/taskgroups.pyi +36 -0
  220. jaclang/vendor/mypy/typeshed/stdlib/asyncio/tasks.pyi +566 -0
  221. jaclang/vendor/mypy/typeshed/stdlib/asyncio/threads.pyi +11 -0
  222. jaclang/vendor/mypy/typeshed/stdlib/asyncio/timeouts.pyi +22 -0
  223. jaclang/vendor/mypy/typeshed/stdlib/asyncio/transports.pyi +64 -0
  224. jaclang/vendor/mypy/typeshed/stdlib/asyncio/trsock.pyi +140 -0
  225. jaclang/vendor/mypy/typeshed/stdlib/asyncio/unix_events.pyi +268 -0
  226. jaclang/vendor/mypy/typeshed/stdlib/asyncio/windows_events.pyi +108 -0
  227. jaclang/vendor/mypy/typeshed/stdlib/asyncio/windows_utils.pyi +59 -0
  228. jaclang/vendor/mypy/typeshed/stdlib/asyncore.pyi +99 -0
  229. jaclang/vendor/mypy/typeshed/stdlib/atexit.pyi +14 -0
  230. jaclang/vendor/mypy/typeshed/stdlib/audioop.pyi +50 -0
  231. jaclang/vendor/mypy/typeshed/stdlib/base64.pyi +76 -0
  232. jaclang/vendor/mypy/typeshed/stdlib/bdb.pyi +133 -0
  233. jaclang/vendor/mypy/typeshed/stdlib/binascii.pyi +45 -0
  234. jaclang/vendor/mypy/typeshed/stdlib/binhex.pyi +47 -0
  235. jaclang/vendor/mypy/typeshed/stdlib/bisect.pyi +4 -0
  236. jaclang/vendor/mypy/typeshed/stdlib/builtins.pyi +2310 -0
  237. jaclang/vendor/mypy/typeshed/stdlib/bz2.pyi +177 -0
  238. jaclang/vendor/mypy/typeshed/stdlib/cProfile.pyi +49 -0
  239. jaclang/vendor/mypy/typeshed/stdlib/calendar.pyi +248 -0
  240. jaclang/vendor/mypy/typeshed/stdlib/cgi.pyi +122 -0
  241. jaclang/vendor/mypy/typeshed/stdlib/cgitb.pyi +44 -0
  242. jaclang/vendor/mypy/typeshed/stdlib/chunk.pyi +26 -0
  243. jaclang/vendor/mypy/typeshed/stdlib/cmath.pyi +38 -0
  244. jaclang/vendor/mypy/typeshed/stdlib/cmd.pyi +52 -0
  245. jaclang/vendor/mypy/typeshed/stdlib/code.pyi +46 -0
  246. jaclang/vendor/mypy/typeshed/stdlib/codecs.pyi +344 -0
  247. jaclang/vendor/mypy/typeshed/stdlib/codeop.pyi +17 -0
  248. jaclang/vendor/mypy/typeshed/stdlib/collections/__init__.pyi +571 -0
  249. jaclang/vendor/mypy/typeshed/stdlib/collections/abc.pyi +2 -0
  250. jaclang/vendor/mypy/typeshed/stdlib/colorsys.pyi +20 -0
  251. jaclang/vendor/mypy/typeshed/stdlib/compileall.pyi +111 -0
  252. jaclang/vendor/mypy/typeshed/stdlib/concurrent/futures/__init__.pyi +32 -0
  253. jaclang/vendor/mypy/typeshed/stdlib/concurrent/futures/_base.pyi +137 -0
  254. jaclang/vendor/mypy/typeshed/stdlib/concurrent/futures/process.pyi +272 -0
  255. jaclang/vendor/mypy/typeshed/stdlib/concurrent/futures/thread.pyi +86 -0
  256. jaclang/vendor/mypy/typeshed/stdlib/configparser.pyi +449 -0
  257. jaclang/vendor/mypy/typeshed/stdlib/contextlib.pyi +274 -0
  258. jaclang/vendor/mypy/typeshed/stdlib/contextvars.pyi +67 -0
  259. jaclang/vendor/mypy/typeshed/stdlib/copy.pyi +16 -0
  260. jaclang/vendor/mypy/typeshed/stdlib/copyreg.pyi +32 -0
  261. jaclang/vendor/mypy/typeshed/stdlib/crypt.pyi +12 -0
  262. jaclang/vendor/mypy/typeshed/stdlib/csv.pyi +147 -0
  263. jaclang/vendor/mypy/typeshed/stdlib/ctypes/__init__.pyi +211 -0
  264. jaclang/vendor/mypy/typeshed/stdlib/ctypes/_endian.pyi +29 -0
  265. jaclang/vendor/mypy/typeshed/stdlib/ctypes/util.pyi +6 -0
  266. jaclang/vendor/mypy/typeshed/stdlib/ctypes/wintypes.pyi +298 -0
  267. jaclang/vendor/mypy/typeshed/stdlib/curses/__init__.pyi +25 -0
  268. jaclang/vendor/mypy/typeshed/stdlib/curses/ascii.pyi +63 -0
  269. jaclang/vendor/mypy/typeshed/stdlib/curses/has_key.pyi +4 -0
  270. jaclang/vendor/mypy/typeshed/stdlib/curses/panel.pyi +25 -0
  271. jaclang/vendor/mypy/typeshed/stdlib/curses/textpad.pyi +15 -0
  272. jaclang/vendor/mypy/typeshed/stdlib/dataclasses.pyi +323 -0
  273. jaclang/vendor/mypy/typeshed/stdlib/datetime.pyi +334 -0
  274. jaclang/vendor/mypy/typeshed/stdlib/dbm/__init__.pyi +98 -0
  275. jaclang/vendor/mypy/typeshed/stdlib/dbm/dumb.pyi +34 -0
  276. jaclang/vendor/mypy/typeshed/stdlib/dbm/gnu.pyi +44 -0
  277. jaclang/vendor/mypy/typeshed/stdlib/dbm/ndbm.pyi +40 -0
  278. jaclang/vendor/mypy/typeshed/stdlib/decimal.pyi +5 -0
  279. jaclang/vendor/mypy/typeshed/stdlib/difflib.pyi +169 -0
  280. jaclang/vendor/mypy/typeshed/stdlib/dis.pyi +190 -0
  281. jaclang/vendor/mypy/typeshed/stdlib/distutils/__init__.pyi +5 -0
  282. jaclang/vendor/mypy/typeshed/stdlib/distutils/archive_util.pyi +22 -0
  283. jaclang/vendor/mypy/typeshed/stdlib/distutils/bcppcompiler.pyi +3 -0
  284. jaclang/vendor/mypy/typeshed/stdlib/distutils/ccompiler.pyi +183 -0
  285. jaclang/vendor/mypy/typeshed/stdlib/distutils/cmd.pyi +88 -0
  286. jaclang/vendor/mypy/typeshed/stdlib/distutils/command/__init__.pyi +0 -0
  287. jaclang/vendor/mypy/typeshed/stdlib/distutils/command/bdist.pyi +25 -0
  288. jaclang/vendor/mypy/typeshed/stdlib/distutils/command/bdist_dumb.pyi +21 -0
  289. jaclang/vendor/mypy/typeshed/stdlib/distutils/command/bdist_msi.pyi +45 -0
  290. jaclang/vendor/mypy/typeshed/stdlib/distutils/command/bdist_packager.pyi +0 -0
  291. jaclang/vendor/mypy/typeshed/stdlib/distutils/command/bdist_rpm.pyi +52 -0
  292. jaclang/vendor/mypy/typeshed/stdlib/distutils/command/bdist_wininst.pyi +21 -0
  293. jaclang/vendor/mypy/typeshed/stdlib/distutils/command/build.pyi +31 -0
  294. jaclang/vendor/mypy/typeshed/stdlib/distutils/command/build_clib.pyi +27 -0
  295. jaclang/vendor/mypy/typeshed/stdlib/distutils/command/build_ext.pyi +50 -0
  296. jaclang/vendor/mypy/typeshed/stdlib/distutils/command/build_py.pyi +44 -0
  297. jaclang/vendor/mypy/typeshed/stdlib/distutils/command/build_scripts.pyi +24 -0
  298. jaclang/vendor/mypy/typeshed/stdlib/distutils/command/check.pyi +39 -0
  299. jaclang/vendor/mypy/typeshed/stdlib/distutils/command/clean.pyi +17 -0
  300. jaclang/vendor/mypy/typeshed/stdlib/distutils/command/config.pyi +91 -0
  301. jaclang/vendor/mypy/typeshed/stdlib/distutils/command/install.pyi +63 -0
  302. jaclang/vendor/mypy/typeshed/stdlib/distutils/command/install_data.pyi +19 -0
  303. jaclang/vendor/mypy/typeshed/stdlib/distutils/command/install_egg_info.pyi +18 -0
  304. jaclang/vendor/mypy/typeshed/stdlib/distutils/command/install_headers.pyi +16 -0
  305. jaclang/vendor/mypy/typeshed/stdlib/distutils/command/install_lib.pyi +25 -0
  306. jaclang/vendor/mypy/typeshed/stdlib/distutils/command/install_scripts.pyi +18 -0
  307. jaclang/vendor/mypy/typeshed/stdlib/distutils/command/register.pyi +18 -0
  308. jaclang/vendor/mypy/typeshed/stdlib/distutils/command/sdist.pyi +42 -0
  309. jaclang/vendor/mypy/typeshed/stdlib/distutils/command/upload.pyi +17 -0
  310. jaclang/vendor/mypy/typeshed/stdlib/distutils/config.pyi +17 -0
  311. jaclang/vendor/mypy/typeshed/stdlib/distutils/core.pyi +59 -0
  312. jaclang/vendor/mypy/typeshed/stdlib/distutils/cygwinccompiler.pyi +20 -0
  313. jaclang/vendor/mypy/typeshed/stdlib/distutils/debug.pyi +1 -0
  314. jaclang/vendor/mypy/typeshed/stdlib/distutils/dep_util.pyi +3 -0
  315. jaclang/vendor/mypy/typeshed/stdlib/distutils/dir_util.pyi +21 -0
  316. jaclang/vendor/mypy/typeshed/stdlib/distutils/dist.pyi +155 -0
  317. jaclang/vendor/mypy/typeshed/stdlib/distutils/errors.pyi +19 -0
  318. jaclang/vendor/mypy/typeshed/stdlib/distutils/extension.pyi +36 -0
  319. jaclang/vendor/mypy/typeshed/stdlib/distutils/fancy_getopt.pyi +37 -0
  320. jaclang/vendor/mypy/typeshed/stdlib/distutils/file_util.pyi +14 -0
  321. jaclang/vendor/mypy/typeshed/stdlib/distutils/filelist.pyi +78 -0
  322. jaclang/vendor/mypy/typeshed/stdlib/distutils/log.pyi +25 -0
  323. jaclang/vendor/mypy/typeshed/stdlib/distutils/msvccompiler.pyi +3 -0
  324. jaclang/vendor/mypy/typeshed/stdlib/distutils/spawn.pyi +4 -0
  325. jaclang/vendor/mypy/typeshed/stdlib/distutils/sysconfig.pyi +24 -0
  326. jaclang/vendor/mypy/typeshed/stdlib/distutils/text_file.pyi +23 -0
  327. jaclang/vendor/mypy/typeshed/stdlib/distutils/unixccompiler.pyi +3 -0
  328. jaclang/vendor/mypy/typeshed/stdlib/distutils/util.pyi +50 -0
  329. jaclang/vendor/mypy/typeshed/stdlib/distutils/version.pyi +36 -0
  330. jaclang/vendor/mypy/typeshed/stdlib/doctest.pyi +282 -0
  331. jaclang/vendor/mypy/typeshed/stdlib/dummy_threading.pyi +2 -0
  332. jaclang/vendor/mypy/typeshed/stdlib/email/__init__.pyi +37 -0
  333. jaclang/vendor/mypy/typeshed/stdlib/email/_header_value_parser.pyi +392 -0
  334. jaclang/vendor/mypy/typeshed/stdlib/email/_policybase.pyi +51 -0
  335. jaclang/vendor/mypy/typeshed/stdlib/email/base64mime.pyi +22 -0
  336. jaclang/vendor/mypy/typeshed/stdlib/email/charset.pyi +39 -0
  337. jaclang/vendor/mypy/typeshed/stdlib/email/contentmanager.pyi +11 -0
  338. jaclang/vendor/mypy/typeshed/stdlib/email/encoders.pyi +8 -0
  339. jaclang/vendor/mypy/typeshed/stdlib/email/errors.pyi +39 -0
  340. jaclang/vendor/mypy/typeshed/stdlib/email/feedparser.pyi +31 -0
  341. jaclang/vendor/mypy/typeshed/stdlib/email/generator.pyi +42 -0
  342. jaclang/vendor/mypy/typeshed/stdlib/email/header.pyi +41 -0
  343. jaclang/vendor/mypy/typeshed/stdlib/email/headerregistry.pyi +214 -0
  344. jaclang/vendor/mypy/typeshed/stdlib/email/iterators.pyi +19 -0
  345. jaclang/vendor/mypy/typeshed/stdlib/email/message.pyi +220 -0
  346. jaclang/vendor/mypy/typeshed/stdlib/email/mime/__init__.pyi +0 -0
  347. jaclang/vendor/mypy/typeshed/stdlib/email/mime/application.pyi +17 -0
  348. jaclang/vendor/mypy/typeshed/stdlib/email/mime/audio.pyi +17 -0
  349. jaclang/vendor/mypy/typeshed/stdlib/email/mime/base.pyi +15 -0
  350. jaclang/vendor/mypy/typeshed/stdlib/email/mime/image.pyi +17 -0
  351. jaclang/vendor/mypy/typeshed/stdlib/email/mime/message.pyi +10 -0
  352. jaclang/vendor/mypy/typeshed/stdlib/email/mime/multipart.pyi +18 -0
  353. jaclang/vendor/mypy/typeshed/stdlib/email/mime/nonmultipart.pyi +5 -0
  354. jaclang/vendor/mypy/typeshed/stdlib/email/mime/text.pyi +14 -0
  355. jaclang/vendor/mypy/typeshed/stdlib/email/parser.pyi +44 -0
  356. jaclang/vendor/mypy/typeshed/stdlib/email/policy.pyi +51 -0
  357. jaclang/vendor/mypy/typeshed/stdlib/email/quoprimime.pyi +30 -0
  358. jaclang/vendor/mypy/typeshed/stdlib/email/utils.pyi +84 -0
  359. jaclang/vendor/mypy/typeshed/stdlib/encodings/__init__.pyi +10 -0
  360. jaclang/vendor/mypy/typeshed/stdlib/encodings/utf_8.pyi +25 -0
  361. jaclang/vendor/mypy/typeshed/stdlib/encodings/utf_8_sig.pyi +28 -0
  362. jaclang/vendor/mypy/typeshed/stdlib/ensurepip/__init__.pyi +12 -0
  363. jaclang/vendor/mypy/typeshed/stdlib/enum.pyi +347 -0
  364. jaclang/vendor/mypy/typeshed/stdlib/errno.pyi +222 -0
  365. jaclang/vendor/mypy/typeshed/stdlib/faulthandler.pyi +20 -0
  366. jaclang/vendor/mypy/typeshed/stdlib/fcntl.pyi +155 -0
  367. jaclang/vendor/mypy/typeshed/stdlib/filecmp.pyi +62 -0
  368. jaclang/vendor/mypy/typeshed/stdlib/fileinput.pyi +246 -0
  369. jaclang/vendor/mypy/typeshed/stdlib/fnmatch.pyi +9 -0
  370. jaclang/vendor/mypy/typeshed/stdlib/formatter.pyi +92 -0
  371. jaclang/vendor/mypy/typeshed/stdlib/fractions.pyi +152 -0
  372. jaclang/vendor/mypy/typeshed/stdlib/ftplib.pyi +214 -0
  373. jaclang/vendor/mypy/typeshed/stdlib/functools.pyi +261 -0
  374. jaclang/vendor/mypy/typeshed/stdlib/gc.pyi +39 -0
  375. jaclang/vendor/mypy/typeshed/stdlib/genericpath.pyi +62 -0
  376. jaclang/vendor/mypy/typeshed/stdlib/getopt.pyi +15 -0
  377. jaclang/vendor/mypy/typeshed/stdlib/getpass.pyi +8 -0
  378. jaclang/vendor/mypy/typeshed/stdlib/gettext.pyi +200 -0
  379. jaclang/vendor/mypy/typeshed/stdlib/glob.pyi +50 -0
  380. jaclang/vendor/mypy/typeshed/stdlib/graphlib.pyi +28 -0
  381. jaclang/vendor/mypy/typeshed/stdlib/grp.pyi +22 -0
  382. jaclang/vendor/mypy/typeshed/stdlib/gzip.pyi +162 -0
  383. jaclang/vendor/mypy/typeshed/stdlib/hashlib.pyi +191 -0
  384. jaclang/vendor/mypy/typeshed/stdlib/heapq.pyi +36 -0
  385. jaclang/vendor/mypy/typeshed/stdlib/hmac.pyi +45 -0
  386. jaclang/vendor/mypy/typeshed/stdlib/html/__init__.pyi +6 -0
  387. jaclang/vendor/mypy/typeshed/stdlib/html/entities.pyi +6 -0
  388. jaclang/vendor/mypy/typeshed/stdlib/html/parser.pyi +40 -0
  389. jaclang/vendor/mypy/typeshed/stdlib/http/__init__.pyi +105 -0
  390. jaclang/vendor/mypy/typeshed/stdlib/http/client.pyi +283 -0
  391. jaclang/vendor/mypy/typeshed/stdlib/http/cookiejar.pyi +206 -0
  392. jaclang/vendor/mypy/typeshed/stdlib/http/cookies.pyi +67 -0
  393. jaclang/vendor/mypy/typeshed/stdlib/http/server.pyi +93 -0
  394. jaclang/vendor/mypy/typeshed/stdlib/imaplib.pyi +221 -0
  395. jaclang/vendor/mypy/typeshed/stdlib/imghdr.pyi +17 -0
  396. jaclang/vendor/mypy/typeshed/stdlib/imp.pyi +75 -0
  397. jaclang/vendor/mypy/typeshed/stdlib/importlib/__init__.pyi +24 -0
  398. jaclang/vendor/mypy/typeshed/stdlib/importlib/_abc.pyi +15 -0
  399. jaclang/vendor/mypy/typeshed/stdlib/importlib/abc.pyi +195 -0
  400. jaclang/vendor/mypy/typeshed/stdlib/importlib/machinery.pyi +214 -0
  401. jaclang/vendor/mypy/typeshed/stdlib/importlib/metadata/__init__.pyi +310 -0
  402. jaclang/vendor/mypy/typeshed/stdlib/importlib/metadata/_meta.pyi +40 -0
  403. jaclang/vendor/mypy/typeshed/stdlib/importlib/readers.pyi +68 -0
  404. jaclang/vendor/mypy/typeshed/stdlib/importlib/resources/__init__.pyi +66 -0
  405. jaclang/vendor/mypy/typeshed/stdlib/importlib/resources/abc.pyi +12 -0
  406. jaclang/vendor/mypy/typeshed/stdlib/importlib/resources/readers.pyi +14 -0
  407. jaclang/vendor/mypy/typeshed/stdlib/importlib/resources/simple.pyi +55 -0
  408. jaclang/vendor/mypy/typeshed/stdlib/importlib/simple.pyi +16 -0
  409. jaclang/vendor/mypy/typeshed/stdlib/importlib/util.pyi +57 -0
  410. jaclang/vendor/mypy/typeshed/stdlib/inspect.pyi +709 -0
  411. jaclang/vendor/mypy/typeshed/stdlib/io.pyi +222 -0
  412. jaclang/vendor/mypy/typeshed/stdlib/ipaddress.pyi +229 -0
  413. jaclang/vendor/mypy/typeshed/stdlib/itertools.pyi +394 -0
  414. jaclang/vendor/mypy/typeshed/stdlib/json/__init__.pyi +69 -0
  415. jaclang/vendor/mypy/typeshed/stdlib/json/decoder.pyi +34 -0
  416. jaclang/vendor/mypy/typeshed/stdlib/json/encoder.pyi +38 -0
  417. jaclang/vendor/mypy/typeshed/stdlib/json/tool.pyi +1 -0
  418. jaclang/vendor/mypy/typeshed/stdlib/keyword.pyi +21 -0
  419. jaclang/vendor/mypy/typeshed/stdlib/lib2to3/__init__.pyi +0 -0
  420. jaclang/vendor/mypy/typeshed/stdlib/lib2to3/btm_matcher.pyi +32 -0
  421. jaclang/vendor/mypy/typeshed/stdlib/lib2to3/fixer_base.pyi +44 -0
  422. jaclang/vendor/mypy/typeshed/stdlib/lib2to3/fixes/__init__.pyi +0 -0
  423. jaclang/vendor/mypy/typeshed/stdlib/lib2to3/fixes/fix_apply.pyi +8 -0
  424. jaclang/vendor/mypy/typeshed/stdlib/lib2to3/fixes/fix_asserts.pyi +10 -0
  425. jaclang/vendor/mypy/typeshed/stdlib/lib2to3/fixes/fix_basestring.pyi +8 -0
  426. jaclang/vendor/mypy/typeshed/stdlib/lib2to3/fixes/fix_buffer.pyi +8 -0
  427. jaclang/vendor/mypy/typeshed/stdlib/lib2to3/fixes/fix_dict.pyi +16 -0
  428. jaclang/vendor/mypy/typeshed/stdlib/lib2to3/fixes/fix_except.pyi +14 -0
  429. jaclang/vendor/mypy/typeshed/stdlib/lib2to3/fixes/fix_exec.pyi +8 -0
  430. jaclang/vendor/mypy/typeshed/stdlib/lib2to3/fixes/fix_execfile.pyi +8 -0
  431. jaclang/vendor/mypy/typeshed/stdlib/lib2to3/fixes/fix_exitfunc.pyi +13 -0
  432. jaclang/vendor/mypy/typeshed/stdlib/lib2to3/fixes/fix_filter.pyi +9 -0
  433. jaclang/vendor/mypy/typeshed/stdlib/lib2to3/fixes/fix_funcattrs.pyi +8 -0
  434. jaclang/vendor/mypy/typeshed/stdlib/lib2to3/fixes/fix_future.pyi +8 -0
  435. jaclang/vendor/mypy/typeshed/stdlib/lib2to3/fixes/fix_getcwdu.pyi +8 -0
  436. jaclang/vendor/mypy/typeshed/stdlib/lib2to3/fixes/fix_has_key.pyi +8 -0
  437. jaclang/vendor/mypy/typeshed/stdlib/lib2to3/fixes/fix_idioms.pyi +15 -0
  438. jaclang/vendor/mypy/typeshed/stdlib/lib2to3/fixes/fix_import.pyi +16 -0
  439. jaclang/vendor/mypy/typeshed/stdlib/lib2to3/fixes/fix_imports.pyi +21 -0
  440. jaclang/vendor/mypy/typeshed/stdlib/lib2to3/fixes/fix_imports2.pyi +6 -0
  441. jaclang/vendor/mypy/typeshed/stdlib/lib2to3/fixes/fix_input.pyi +11 -0
  442. jaclang/vendor/mypy/typeshed/stdlib/lib2to3/fixes/fix_intern.pyi +9 -0
  443. jaclang/vendor/mypy/typeshed/stdlib/lib2to3/fixes/fix_isinstance.pyi +8 -0
  444. jaclang/vendor/mypy/typeshed/stdlib/lib2to3/fixes/fix_itertools.pyi +9 -0
  445. jaclang/vendor/mypy/typeshed/stdlib/lib2to3/fixes/fix_itertools_imports.pyi +7 -0
  446. jaclang/vendor/mypy/typeshed/stdlib/lib2to3/fixes/fix_long.pyi +7 -0
  447. jaclang/vendor/mypy/typeshed/stdlib/lib2to3/fixes/fix_map.pyi +9 -0
  448. jaclang/vendor/mypy/typeshed/stdlib/lib2to3/fixes/fix_metaclass.pyi +17 -0
  449. jaclang/vendor/mypy/typeshed/stdlib/lib2to3/fixes/fix_methodattrs.pyi +10 -0
  450. jaclang/vendor/mypy/typeshed/stdlib/lib2to3/fixes/fix_ne.pyi +8 -0
  451. jaclang/vendor/mypy/typeshed/stdlib/lib2to3/fixes/fix_next.pyi +19 -0
  452. jaclang/vendor/mypy/typeshed/stdlib/lib2to3/fixes/fix_nonzero.pyi +8 -0
  453. jaclang/vendor/mypy/typeshed/stdlib/lib2to3/fixes/fix_numliterals.pyi +8 -0
  454. jaclang/vendor/mypy/typeshed/stdlib/lib2to3/fixes/fix_operator.pyi +12 -0
  455. jaclang/vendor/mypy/typeshed/stdlib/lib2to3/fixes/fix_paren.pyi +8 -0
  456. jaclang/vendor/mypy/typeshed/stdlib/lib2to3/fixes/fix_print.pyi +12 -0
  457. jaclang/vendor/mypy/typeshed/stdlib/lib2to3/fixes/fix_raise.pyi +8 -0
  458. jaclang/vendor/mypy/typeshed/stdlib/lib2to3/fixes/fix_raw_input.pyi +8 -0
  459. jaclang/vendor/mypy/typeshed/stdlib/lib2to3/fixes/fix_reduce.pyi +8 -0
  460. jaclang/vendor/mypy/typeshed/stdlib/lib2to3/fixes/fix_reload.pyi +9 -0
  461. jaclang/vendor/mypy/typeshed/stdlib/lib2to3/fixes/fix_renames.pyi +17 -0
  462. jaclang/vendor/mypy/typeshed/stdlib/lib2to3/fixes/fix_repr.pyi +8 -0
  463. jaclang/vendor/mypy/typeshed/stdlib/lib2to3/fixes/fix_set_literal.pyi +7 -0
  464. jaclang/vendor/mypy/typeshed/stdlib/lib2to3/fixes/fix_standarderror.pyi +8 -0
  465. jaclang/vendor/mypy/typeshed/stdlib/lib2to3/fixes/fix_sys_exc.pyi +9 -0
  466. jaclang/vendor/mypy/typeshed/stdlib/lib2to3/fixes/fix_throw.pyi +8 -0
  467. jaclang/vendor/mypy/typeshed/stdlib/lib2to3/fixes/fix_tuple_params.pyi +17 -0
  468. jaclang/vendor/mypy/typeshed/stdlib/lib2to3/fixes/fix_types.pyi +8 -0
  469. jaclang/vendor/mypy/typeshed/stdlib/lib2to3/fixes/fix_unicode.pyi +12 -0
  470. jaclang/vendor/mypy/typeshed/stdlib/lib2to3/fixes/fix_urllib.pyi +18 -0
  471. jaclang/vendor/mypy/typeshed/stdlib/lib2to3/fixes/fix_ws_comma.pyi +12 -0
  472. jaclang/vendor/mypy/typeshed/stdlib/lib2to3/fixes/fix_xrange.pyi +20 -0
  473. jaclang/vendor/mypy/typeshed/stdlib/lib2to3/fixes/fix_xreadlines.pyi +8 -0
  474. jaclang/vendor/mypy/typeshed/stdlib/lib2to3/fixes/fix_zip.pyi +9 -0
  475. jaclang/vendor/mypy/typeshed/stdlib/lib2to3/main.pyi +46 -0
  476. jaclang/vendor/mypy/typeshed/stdlib/lib2to3/pgen2/__init__.pyi +9 -0
  477. jaclang/vendor/mypy/typeshed/stdlib/lib2to3/pgen2/driver.pyi +40 -0
  478. jaclang/vendor/mypy/typeshed/stdlib/lib2to3/pgen2/grammar.pyi +24 -0
  479. jaclang/vendor/mypy/typeshed/stdlib/lib2to3/pgen2/literals.pyi +7 -0
  480. jaclang/vendor/mypy/typeshed/stdlib/lib2to3/pgen2/parse.pyi +36 -0
  481. jaclang/vendor/mypy/typeshed/stdlib/lib2to3/pgen2/pgen.pyi +52 -0
  482. jaclang/vendor/mypy/typeshed/stdlib/lib2to3/pgen2/token.pyi +67 -0
  483. jaclang/vendor/mypy/typeshed/stdlib/lib2to3/pgen2/tokenize.pyi +98 -0
  484. jaclang/vendor/mypy/typeshed/stdlib/lib2to3/pygram.pyi +114 -0
  485. jaclang/vendor/mypy/typeshed/stdlib/lib2to3/pytree.pyi +142 -0
  486. jaclang/vendor/mypy/typeshed/stdlib/lib2to3/refactor.pyi +122 -0
  487. jaclang/vendor/mypy/typeshed/stdlib/linecache.pyi +29 -0
  488. jaclang/vendor/mypy/typeshed/stdlib/locale.pyi +165 -0
  489. jaclang/vendor/mypy/typeshed/stdlib/logging/__init__.pyi +685 -0
  490. jaclang/vendor/mypy/typeshed/stdlib/logging/config.pyi +161 -0
  491. jaclang/vendor/mypy/typeshed/stdlib/logging/handlers.pyi +315 -0
  492. jaclang/vendor/mypy/typeshed/stdlib/lzma.pyi +213 -0
  493. jaclang/vendor/mypy/typeshed/stdlib/mailbox.pyi +306 -0
  494. jaclang/vendor/mypy/typeshed/stdlib/mailcap.pyi +15 -0
  495. jaclang/vendor/mypy/typeshed/stdlib/marshal.pyi +35 -0
  496. jaclang/vendor/mypy/typeshed/stdlib/math.pyi +134 -0
  497. jaclang/vendor/mypy/typeshed/stdlib/mimetypes.pyi +50 -0
  498. jaclang/vendor/mypy/typeshed/stdlib/mmap.pyi +126 -0
  499. jaclang/vendor/mypy/typeshed/stdlib/modulefinder.pyi +84 -0
  500. jaclang/vendor/mypy/typeshed/stdlib/msilib/__init__.pyi +237 -0
  501. jaclang/vendor/mypy/typeshed/stdlib/msilib/schema.pyi +107 -0
  502. jaclang/vendor/mypy/typeshed/stdlib/msilib/sequence.pyi +13 -0
  503. jaclang/vendor/mypy/typeshed/stdlib/msilib/text.pyi +7 -0
  504. jaclang/vendor/mypy/typeshed/stdlib/msvcrt.pyi +32 -0
  505. jaclang/vendor/mypy/typeshed/stdlib/multiprocessing/__init__.pyi +94 -0
  506. jaclang/vendor/mypy/typeshed/stdlib/multiprocessing/connection.pyi +94 -0
  507. jaclang/vendor/mypy/typeshed/stdlib/multiprocessing/context.pyi +235 -0
  508. jaclang/vendor/mypy/typeshed/stdlib/multiprocessing/dummy/__init__.pyi +83 -0
  509. jaclang/vendor/mypy/typeshed/stdlib/multiprocessing/dummy/connection.pyi +50 -0
  510. jaclang/vendor/mypy/typeshed/stdlib/multiprocessing/forkserver.pyi +36 -0
  511. jaclang/vendor/mypy/typeshed/stdlib/multiprocessing/heap.pyi +38 -0
  512. jaclang/vendor/mypy/typeshed/stdlib/multiprocessing/managers.pyi +270 -0
  513. jaclang/vendor/mypy/typeshed/stdlib/multiprocessing/pool.pyi +137 -0
  514. jaclang/vendor/mypy/typeshed/stdlib/multiprocessing/popen_fork.pyi +23 -0
  515. jaclang/vendor/mypy/typeshed/stdlib/multiprocessing/popen_forkserver.pyi +16 -0
  516. jaclang/vendor/mypy/typeshed/stdlib/multiprocessing/popen_spawn_posix.pyi +20 -0
  517. jaclang/vendor/mypy/typeshed/stdlib/multiprocessing/popen_spawn_win32.pyi +30 -0
  518. jaclang/vendor/mypy/typeshed/stdlib/multiprocessing/process.pyi +39 -0
  519. jaclang/vendor/mypy/typeshed/stdlib/multiprocessing/queues.pyi +43 -0
  520. jaclang/vendor/mypy/typeshed/stdlib/multiprocessing/reduction.pyi +118 -0
  521. jaclang/vendor/mypy/typeshed/stdlib/multiprocessing/resource_sharer.pyi +20 -0
  522. jaclang/vendor/mypy/typeshed/stdlib/multiprocessing/resource_tracker.pyi +18 -0
  523. jaclang/vendor/mypy/typeshed/stdlib/multiprocessing/shared_memory.pyi +44 -0
  524. jaclang/vendor/mypy/typeshed/stdlib/multiprocessing/sharedctypes.pyi +140 -0
  525. jaclang/vendor/mypy/typeshed/stdlib/multiprocessing/spawn.pyi +34 -0
  526. jaclang/vendor/mypy/typeshed/stdlib/multiprocessing/synchronize.pyi +66 -0
  527. jaclang/vendor/mypy/typeshed/stdlib/multiprocessing/util.pyi +83 -0
  528. jaclang/vendor/mypy/typeshed/stdlib/netrc.pyi +28 -0
  529. jaclang/vendor/mypy/typeshed/stdlib/nis.pyi +9 -0
  530. jaclang/vendor/mypy/typeshed/stdlib/nntplib.pyi +151 -0
  531. jaclang/vendor/mypy/typeshed/stdlib/nt.pyi +114 -0
  532. jaclang/vendor/mypy/typeshed/stdlib/ntpath.pyi +119 -0
  533. jaclang/vendor/mypy/typeshed/stdlib/nturl2path.pyi +2 -0
  534. jaclang/vendor/mypy/typeshed/stdlib/numbers.pyi +154 -0
  535. jaclang/vendor/mypy/typeshed/stdlib/opcode.pyi +68 -0
  536. jaclang/vendor/mypy/typeshed/stdlib/operator.pyi +110 -0
  537. jaclang/vendor/mypy/typeshed/stdlib/optparse.pyi +290 -0
  538. jaclang/vendor/mypy/typeshed/stdlib/os/__init__.pyi +1317 -0
  539. jaclang/vendor/mypy/typeshed/stdlib/os/path.pyi +8 -0
  540. jaclang/vendor/mypy/typeshed/stdlib/ossaudiodev.pyi +131 -0
  541. jaclang/vendor/mypy/typeshed/stdlib/parser.pyi +28 -0
  542. jaclang/vendor/mypy/typeshed/stdlib/pathlib.pyi +282 -0
  543. jaclang/vendor/mypy/typeshed/stdlib/pdb.pyi +223 -0
  544. jaclang/vendor/mypy/typeshed/stdlib/pickle.pyi +286 -0
  545. jaclang/vendor/mypy/typeshed/stdlib/pickletools.pyi +173 -0
  546. jaclang/vendor/mypy/typeshed/stdlib/pipes.pyi +16 -0
  547. jaclang/vendor/mypy/typeshed/stdlib/pkgutil.pyi +61 -0
  548. jaclang/vendor/mypy/typeshed/stdlib/platform.pyi +56 -0
  549. jaclang/vendor/mypy/typeshed/stdlib/plistlib.pyi +176 -0
  550. jaclang/vendor/mypy/typeshed/stdlib/poplib.pyi +78 -0
  551. jaclang/vendor/mypy/typeshed/stdlib/posix.pyi +363 -0
  552. jaclang/vendor/mypy/typeshed/stdlib/posixpath.pyi +171 -0
  553. jaclang/vendor/mypy/typeshed/stdlib/pprint.pyi +122 -0
  554. jaclang/vendor/mypy/typeshed/stdlib/profile.pyi +43 -0
  555. jaclang/vendor/mypy/typeshed/stdlib/pstats.pyi +85 -0
  556. jaclang/vendor/mypy/typeshed/stdlib/pty.pyi +21 -0
  557. jaclang/vendor/mypy/typeshed/stdlib/pwd.pyi +36 -0
  558. jaclang/vendor/mypy/typeshed/stdlib/py_compile.pyi +40 -0
  559. jaclang/vendor/mypy/typeshed/stdlib/pyclbr.pyi +97 -0
  560. jaclang/vendor/mypy/typeshed/stdlib/pydoc.pyi +309 -0
  561. jaclang/vendor/mypy/typeshed/stdlib/pydoc_data/__init__.pyi +0 -0
  562. jaclang/vendor/mypy/typeshed/stdlib/pydoc_data/topics.pyi +1 -0
  563. jaclang/vendor/mypy/typeshed/stdlib/pyexpat/__init__.pyi +94 -0
  564. jaclang/vendor/mypy/typeshed/stdlib/pyexpat/errors.pyi +49 -0
  565. jaclang/vendor/mypy/typeshed/stdlib/pyexpat/model.pyi +11 -0
  566. jaclang/vendor/mypy/typeshed/stdlib/queue.pyi +62 -0
  567. jaclang/vendor/mypy/typeshed/stdlib/quopri.pyi +17 -0
  568. jaclang/vendor/mypy/typeshed/stdlib/random.pyi +160 -0
  569. jaclang/vendor/mypy/typeshed/stdlib/re.pyi +376 -0
  570. jaclang/vendor/mypy/typeshed/stdlib/readline.pyi +40 -0
  571. jaclang/vendor/mypy/typeshed/stdlib/reprlib.pyi +65 -0
  572. jaclang/vendor/mypy/typeshed/stdlib/resource.pyi +116 -0
  573. jaclang/vendor/mypy/typeshed/stdlib/rlcompleter.pyi +9 -0
  574. jaclang/vendor/mypy/typeshed/stdlib/runpy.pyi +31 -0
  575. jaclang/vendor/mypy/typeshed/stdlib/sched.pyi +56 -0
  576. jaclang/vendor/mypy/typeshed/stdlib/secrets.pyi +24 -0
  577. jaclang/vendor/mypy/typeshed/stdlib/select.pyi +162 -0
  578. jaclang/vendor/mypy/typeshed/stdlib/selectors.pyi +85 -0
  579. jaclang/vendor/mypy/typeshed/stdlib/shelve.pyi +64 -0
  580. jaclang/vendor/mypy/typeshed/stdlib/shlex.pyi +47 -0
  581. jaclang/vendor/mypy/typeshed/stdlib/shutil.pyi +239 -0
  582. jaclang/vendor/mypy/typeshed/stdlib/signal.pyi +208 -0
  583. jaclang/vendor/mypy/typeshed/stdlib/site.pyi +33 -0
  584. jaclang/vendor/mypy/typeshed/stdlib/smtpd.pyi +102 -0
  585. jaclang/vendor/mypy/typeshed/stdlib/smtplib.pyi +223 -0
  586. jaclang/vendor/mypy/typeshed/stdlib/sndhdr.pyi +14 -0
  587. jaclang/vendor/mypy/typeshed/stdlib/socket.pyi +881 -0
  588. jaclang/vendor/mypy/typeshed/stdlib/socketserver.pyi +195 -0
  589. jaclang/vendor/mypy/typeshed/stdlib/spwd.pyi +43 -0
  590. jaclang/vendor/mypy/typeshed/stdlib/sqlite3/__init__.pyi +1 -0
  591. jaclang/vendor/mypy/typeshed/stdlib/sqlite3/dbapi2.pyi +519 -0
  592. jaclang/vendor/mypy/typeshed/stdlib/sre_compile.pyi +11 -0
  593. jaclang/vendor/mypy/typeshed/stdlib/sre_constants.pyi +132 -0
  594. jaclang/vendor/mypy/typeshed/stdlib/sre_parse.pyi +110 -0
  595. jaclang/vendor/mypy/typeshed/stdlib/ssl.pyi +559 -0
  596. jaclang/vendor/mypy/typeshed/stdlib/stat.pyi +1 -0
  597. jaclang/vendor/mypy/typeshed/stdlib/statistics.pyi +151 -0
  598. jaclang/vendor/mypy/typeshed/stdlib/string.pyi +112 -0
  599. jaclang/vendor/mypy/typeshed/stdlib/stringprep.pyi +27 -0
  600. jaclang/vendor/mypy/typeshed/stdlib/struct.pyi +43 -0
  601. jaclang/vendor/mypy/typeshed/stdlib/subprocess.pyi +2638 -0
  602. jaclang/vendor/mypy/typeshed/stdlib/sunau.pyi +86 -0
  603. jaclang/vendor/mypy/typeshed/stdlib/symbol.pyi +93 -0
  604. jaclang/vendor/mypy/typeshed/stdlib/symtable.pyi +63 -0
  605. jaclang/vendor/mypy/typeshed/stdlib/sys/__init__.pyi +396 -0
  606. jaclang/vendor/mypy/typeshed/stdlib/sys/_monitoring.pyi +54 -0
  607. jaclang/vendor/mypy/typeshed/stdlib/sysconfig.pyi +52 -0
  608. jaclang/vendor/mypy/typeshed/stdlib/syslog.pyi +48 -0
  609. jaclang/vendor/mypy/typeshed/stdlib/tabnanny.pyi +18 -0
  610. jaclang/vendor/mypy/typeshed/stdlib/tarfile.pyi +486 -0
  611. jaclang/vendor/mypy/typeshed/stdlib/telnetlib.pyi +129 -0
  612. jaclang/vendor/mypy/typeshed/stdlib/tempfile.pyi +521 -0
  613. jaclang/vendor/mypy/typeshed/stdlib/termios.pyi +273 -0
  614. jaclang/vendor/mypy/typeshed/stdlib/textwrap.pyi +107 -0
  615. jaclang/vendor/mypy/typeshed/stdlib/this.pyi +2 -0
  616. jaclang/vendor/mypy/typeshed/stdlib/threading.pyi +212 -0
  617. jaclang/vendor/mypy/typeshed/stdlib/time.pyi +122 -0
  618. jaclang/vendor/mypy/typeshed/stdlib/timeit.pyi +46 -0
  619. jaclang/vendor/mypy/typeshed/stdlib/tkinter/__init__.pyi +3950 -0
  620. jaclang/vendor/mypy/typeshed/stdlib/tkinter/colorchooser.pyi +28 -0
  621. jaclang/vendor/mypy/typeshed/stdlib/tkinter/commondialog.pyi +16 -0
  622. jaclang/vendor/mypy/typeshed/stdlib/tkinter/constants.pyi +80 -0
  623. jaclang/vendor/mypy/typeshed/stdlib/tkinter/dialog.pyi +21 -0
  624. jaclang/vendor/mypy/typeshed/stdlib/tkinter/dnd.pyi +20 -0
  625. jaclang/vendor/mypy/typeshed/stdlib/tkinter/filedialog.pyi +173 -0
  626. jaclang/vendor/mypy/typeshed/stdlib/tkinter/font.pyi +148 -0
  627. jaclang/vendor/mypy/typeshed/stdlib/tkinter/messagebox.pyi +60 -0
  628. jaclang/vendor/mypy/typeshed/stdlib/tkinter/scrolledtext.pyi +10 -0
  629. jaclang/vendor/mypy/typeshed/stdlib/tkinter/simpledialog.pyi +54 -0
  630. jaclang/vendor/mypy/typeshed/stdlib/tkinter/tix.pyi +395 -0
  631. jaclang/vendor/mypy/typeshed/stdlib/tkinter/ttk.pyi +1276 -0
  632. jaclang/vendor/mypy/typeshed/stdlib/token.pyi +159 -0
  633. jaclang/vendor/mypy/typeshed/stdlib/tokenize.pyi +185 -0
  634. jaclang/vendor/mypy/typeshed/stdlib/tomllib.pyi +12 -0
  635. jaclang/vendor/mypy/typeshed/stdlib/trace.pyi +114 -0
  636. jaclang/vendor/mypy/typeshed/stdlib/traceback.pyi +297 -0
  637. jaclang/vendor/mypy/typeshed/stdlib/tracemalloc.pyi +142 -0
  638. jaclang/vendor/mypy/typeshed/stdlib/tty.pyi +30 -0
  639. jaclang/vendor/mypy/typeshed/stdlib/turtle.pyi +830 -0
  640. jaclang/vendor/mypy/typeshed/stdlib/types.pyi +647 -0
  641. jaclang/vendor/mypy/typeshed/stdlib/typing.pyi +1059 -0
  642. jaclang/vendor/mypy/typeshed/stdlib/typing_extensions.pyi +524 -0
  643. jaclang/vendor/mypy/typeshed/stdlib/unicodedata.pyi +71 -0
  644. jaclang/vendor/mypy/typeshed/stdlib/unittest/__init__.pyi +72 -0
  645. jaclang/vendor/mypy/typeshed/stdlib/unittest/_log.pyi +34 -0
  646. jaclang/vendor/mypy/typeshed/stdlib/unittest/async_case.pyi +28 -0
  647. jaclang/vendor/mypy/typeshed/stdlib/unittest/case.pyi +481 -0
  648. jaclang/vendor/mypy/typeshed/stdlib/unittest/loader.pyi +71 -0
  649. jaclang/vendor/mypy/typeshed/stdlib/unittest/main.pyi +75 -0
  650. jaclang/vendor/mypy/typeshed/stdlib/unittest/mock.pyi +468 -0
  651. jaclang/vendor/mypy/typeshed/stdlib/unittest/result.pyi +59 -0
  652. jaclang/vendor/mypy/typeshed/stdlib/unittest/runner.pyi +83 -0
  653. jaclang/vendor/mypy/typeshed/stdlib/unittest/signals.pyi +15 -0
  654. jaclang/vendor/mypy/typeshed/stdlib/unittest/suite.pyi +26 -0
  655. jaclang/vendor/mypy/typeshed/stdlib/unittest/util.pyi +31 -0
  656. jaclang/vendor/mypy/typeshed/stdlib/urllib/__init__.pyi +0 -0
  657. jaclang/vendor/mypy/typeshed/stdlib/urllib/error.pyi +27 -0
  658. jaclang/vendor/mypy/typeshed/stdlib/urllib/parse.pyi +245 -0
  659. jaclang/vendor/mypy/typeshed/stdlib/urllib/request.pyi +544 -0
  660. jaclang/vendor/mypy/typeshed/stdlib/urllib/response.pyi +50 -0
  661. jaclang/vendor/mypy/typeshed/stdlib/urllib/robotparser.pyi +20 -0
  662. jaclang/vendor/mypy/typeshed/stdlib/uu.pyi +23 -0
  663. jaclang/vendor/mypy/typeshed/stdlib/uuid.pyi +100 -0
  664. jaclang/vendor/mypy/typeshed/stdlib/warnings.pyi +144 -0
  665. jaclang/vendor/mypy/typeshed/stdlib/wave.pyi +87 -0
  666. jaclang/vendor/mypy/typeshed/stdlib/weakref.pyi +173 -0
  667. jaclang/vendor/mypy/typeshed/stdlib/webbrowser.pyi +80 -0
  668. jaclang/vendor/mypy/typeshed/stdlib/winreg.pyi +120 -0
  669. jaclang/vendor/mypy/typeshed/stdlib/winsound.pyi +28 -0
  670. jaclang/vendor/mypy/typeshed/stdlib/wsgiref/__init__.pyi +0 -0
  671. jaclang/vendor/mypy/typeshed/stdlib/wsgiref/handlers.pyi +109 -0
  672. jaclang/vendor/mypy/typeshed/stdlib/wsgiref/headers.pyi +28 -0
  673. jaclang/vendor/mypy/typeshed/stdlib/wsgiref/simple_server.pyi +49 -0
  674. jaclang/vendor/mypy/typeshed/stdlib/wsgiref/types.pyi +44 -0
  675. jaclang/vendor/mypy/typeshed/stdlib/wsgiref/util.pyi +31 -0
  676. jaclang/vendor/mypy/typeshed/stdlib/wsgiref/validate.pyi +52 -0
  677. jaclang/vendor/mypy/typeshed/stdlib/xdrlib.pyi +63 -0
  678. jaclang/vendor/mypy/typeshed/stdlib/xml/__init__.pyi +1 -0
  679. jaclang/vendor/mypy/typeshed/stdlib/xml/dom/NodeFilter.pyi +19 -0
  680. jaclang/vendor/mypy/typeshed/stdlib/xml/dom/__init__.pyi +72 -0
  681. jaclang/vendor/mypy/typeshed/stdlib/xml/dom/domreg.pyi +12 -0
  682. jaclang/vendor/mypy/typeshed/stdlib/xml/dom/expatbuilder.pyi +111 -0
  683. jaclang/vendor/mypy/typeshed/stdlib/xml/dom/minicompat.pyi +22 -0
  684. jaclang/vendor/mypy/typeshed/stdlib/xml/dom/minidom.pyi +467 -0
  685. jaclang/vendor/mypy/typeshed/stdlib/xml/dom/pulldom.pyi +101 -0
  686. jaclang/vendor/mypy/typeshed/stdlib/xml/dom/xmlbuilder.pyi +110 -0
  687. jaclang/vendor/mypy/typeshed/stdlib/xml/etree/ElementInclude.pyi +35 -0
  688. jaclang/vendor/mypy/typeshed/stdlib/xml/etree/ElementPath.pyi +49 -0
  689. jaclang/vendor/mypy/typeshed/stdlib/xml/etree/ElementTree.pyi +367 -0
  690. jaclang/vendor/mypy/typeshed/stdlib/xml/etree/__init__.pyi +0 -0
  691. jaclang/vendor/mypy/typeshed/stdlib/xml/etree/cElementTree.pyi +1 -0
  692. jaclang/vendor/mypy/typeshed/stdlib/xml/parsers/__init__.pyi +1 -0
  693. jaclang/vendor/mypy/typeshed/stdlib/xml/parsers/expat/__init__.pyi +1 -0
  694. jaclang/vendor/mypy/typeshed/stdlib/xml/parsers/expat/errors.pyi +1 -0
  695. jaclang/vendor/mypy/typeshed/stdlib/xml/parsers/expat/model.pyi +1 -0
  696. jaclang/vendor/mypy/typeshed/stdlib/xml/sax/__init__.pyi +34 -0
  697. jaclang/vendor/mypy/typeshed/stdlib/xml/sax/_exceptions.pyi +21 -0
  698. jaclang/vendor/mypy/typeshed/stdlib/xml/sax/handler.pyi +59 -0
  699. jaclang/vendor/mypy/typeshed/stdlib/xml/sax/saxutils.pyi +71 -0
  700. jaclang/vendor/mypy/typeshed/stdlib/xml/sax/xmlreader.pyi +89 -0
  701. jaclang/vendor/mypy/typeshed/stdlib/xmlrpc/__init__.pyi +0 -0
  702. jaclang/vendor/mypy/typeshed/stdlib/xmlrpc/client.pyi +348 -0
  703. jaclang/vendor/mypy/typeshed/stdlib/xmlrpc/server.pyi +186 -0
  704. jaclang/vendor/mypy/typeshed/stdlib/xxlimited.pyi +22 -0
  705. jaclang/vendor/mypy/typeshed/stdlib/zipapp.pyi +20 -0
  706. jaclang/vendor/mypy/typeshed/stdlib/zipfile/__init__.pyi +355 -0
  707. jaclang/vendor/mypy/typeshed/stdlib/zipfile/_path.pyi +105 -0
  708. jaclang/vendor/mypy/typeshed/stdlib/zipimport.pyi +40 -0
  709. jaclang/vendor/mypy/typeshed/stdlib/zlib.pyi +63 -0
  710. jaclang/vendor/mypy/typeshed/stdlib/zoneinfo/__init__.pyi +45 -0
  711. jaclang/vendor/mypy/typeshed/stubs/mypy-extensions/@tests/stubtest_allowlist.txt +2 -0
  712. jaclang/vendor/mypy/typeshed/stubs/mypy-extensions/METADATA.toml +4 -0
  713. jaclang/vendor/mypy/typeshed/stubs/mypy-extensions/mypy_extensions.pyi +238 -0
  714. jaclang/vendor/mypy/xml/mypy-html.css +104 -0
  715. jaclang/vendor/mypy/xml/mypy-html.xslt +81 -0
  716. jaclang/vendor/mypy/xml/mypy-txt.xslt +100 -0
  717. jaclang/vendor/mypy/xml/mypy.xsd +50 -0
  718. jaclang/vendor/mypyc/.readthedocs.yaml +18 -0
  719. jaclang/vendor/mypyc/README.md +133 -0
  720. jaclang/vendor/mypyc/doc/Makefile +20 -0
  721. jaclang/vendor/mypyc/doc/bool_operations.rst +27 -0
  722. jaclang/vendor/mypyc/doc/compilation_units.rst +20 -0
  723. jaclang/vendor/mypyc/doc/conf.py +59 -0
  724. jaclang/vendor/mypyc/doc/cpython-timings.md +25 -0
  725. jaclang/vendor/mypyc/doc/dev-intro.md +548 -0
  726. jaclang/vendor/mypyc/doc/dict_operations.rst +59 -0
  727. jaclang/vendor/mypyc/doc/differences_from_python.rst +332 -0
  728. jaclang/vendor/mypyc/doc/float_operations.rst +50 -0
  729. jaclang/vendor/mypyc/doc/future.md +42 -0
  730. jaclang/vendor/mypyc/doc/getting_started.rst +240 -0
  731. jaclang/vendor/mypyc/doc/index.rst +61 -0
  732. jaclang/vendor/mypyc/doc/int_operations.rst +162 -0
  733. jaclang/vendor/mypyc/doc/introduction.rst +150 -0
  734. jaclang/vendor/mypyc/doc/list_operations.rst +65 -0
  735. jaclang/vendor/mypyc/doc/make.bat +35 -0
  736. jaclang/vendor/mypyc/doc/native_classes.rst +206 -0
  737. jaclang/vendor/mypyc/doc/native_operations.rst +55 -0
  738. jaclang/vendor/mypyc/doc/performance_tips_and_tricks.rst +244 -0
  739. jaclang/vendor/mypyc/doc/set_operations.rst +47 -0
  740. jaclang/vendor/mypyc/doc/str_operations.rst +35 -0
  741. jaclang/vendor/mypyc/doc/tuple_operations.rst +33 -0
  742. jaclang/vendor/mypyc/doc/using_type_annotations.rst +398 -0
  743. jaclang/vendor/mypyc/external/googletest/LICENSE +28 -0
  744. jaclang/vendor/mypyc/external/googletest/README.md +280 -0
  745. jaclang/vendor/mypyc/external/googletest/include/gtest/gtest-death-test.h +294 -0
  746. jaclang/vendor/mypyc/external/googletest/include/gtest/gtest-message.h +250 -0
  747. jaclang/vendor/mypyc/external/googletest/include/gtest/gtest-param-test.h +1444 -0
  748. jaclang/vendor/mypyc/external/googletest/include/gtest/gtest-param-test.h.pump +510 -0
  749. jaclang/vendor/mypyc/external/googletest/include/gtest/gtest-printers.h +993 -0
  750. jaclang/vendor/mypyc/external/googletest/include/gtest/gtest-spi.h +232 -0
  751. jaclang/vendor/mypyc/external/googletest/include/gtest/gtest-test-part.h +179 -0
  752. jaclang/vendor/mypyc/external/googletest/include/gtest/gtest-typed-test.h +263 -0
  753. jaclang/vendor/mypyc/external/googletest/include/gtest/gtest.h +2236 -0
  754. jaclang/vendor/mypyc/external/googletest/include/gtest/gtest_pred_impl.h +358 -0
  755. jaclang/vendor/mypyc/external/googletest/include/gtest/gtest_prod.h +58 -0
  756. jaclang/vendor/mypyc/external/googletest/include/gtest/internal/custom/gtest-port.h +69 -0
  757. jaclang/vendor/mypyc/external/googletest/include/gtest/internal/custom/gtest-printers.h +42 -0
  758. jaclang/vendor/mypyc/external/googletest/include/gtest/internal/custom/gtest.h +41 -0
  759. jaclang/vendor/mypyc/external/googletest/include/gtest/internal/gtest-death-test-internal.h +319 -0
  760. jaclang/vendor/mypyc/external/googletest/include/gtest/internal/gtest-filepath.h +206 -0
  761. jaclang/vendor/mypyc/external/googletest/include/gtest/internal/gtest-internal.h +1238 -0
  762. jaclang/vendor/mypyc/external/googletest/include/gtest/internal/gtest-linked_ptr.h +243 -0
  763. jaclang/vendor/mypyc/external/googletest/include/gtest/internal/gtest-param-util-generated.h +5146 -0
  764. jaclang/vendor/mypyc/external/googletest/include/gtest/internal/gtest-param-util-generated.h.pump +286 -0
  765. jaclang/vendor/mypyc/external/googletest/include/gtest/internal/gtest-param-util.h +731 -0
  766. jaclang/vendor/mypyc/external/googletest/include/gtest/internal/gtest-port-arch.h +93 -0
  767. jaclang/vendor/mypyc/external/googletest/include/gtest/internal/gtest-port.h +2560 -0
  768. jaclang/vendor/mypyc/external/googletest/include/gtest/internal/gtest-string.h +167 -0
  769. jaclang/vendor/mypyc/external/googletest/include/gtest/internal/gtest-tuple.h +1020 -0
  770. jaclang/vendor/mypyc/external/googletest/include/gtest/internal/gtest-tuple.h.pump +347 -0
  771. jaclang/vendor/mypyc/external/googletest/include/gtest/internal/gtest-type-util.h +3331 -0
  772. jaclang/vendor/mypyc/external/googletest/include/gtest/internal/gtest-type-util.h.pump +297 -0
  773. jaclang/vendor/mypyc/external/googletest/make/Makefile +61 -0
  774. jaclang/vendor/mypyc/external/googletest/src/gtest-all.cc +48 -0
  775. jaclang/vendor/mypyc/external/googletest/src/gtest-death-test.cc +1342 -0
  776. jaclang/vendor/mypyc/external/googletest/src/gtest-filepath.cc +387 -0
  777. jaclang/vendor/mypyc/external/googletest/src/gtest-internal-inl.h +1183 -0
  778. jaclang/vendor/mypyc/external/googletest/src/gtest-port.cc +1259 -0
  779. jaclang/vendor/mypyc/external/googletest/src/gtest-printers.cc +373 -0
  780. jaclang/vendor/mypyc/external/googletest/src/gtest-test-part.cc +110 -0
  781. jaclang/vendor/mypyc/external/googletest/src/gtest-typed-test.cc +118 -0
  782. jaclang/vendor/mypyc/external/googletest/src/gtest.cc +5388 -0
  783. jaclang/vendor/mypyc/external/googletest/src/gtest_main.cc +38 -0
  784. jaclang/vendor/mypyc/lib-rt/CPy.h +643 -0
  785. jaclang/vendor/mypyc/lib-rt/bytes_ops.c +143 -0
  786. jaclang/vendor/mypyc/lib-rt/dict_ops.c +446 -0
  787. jaclang/vendor/mypyc/lib-rt/exc_ops.c +259 -0
  788. jaclang/vendor/mypyc/lib-rt/float_ops.c +192 -0
  789. jaclang/vendor/mypyc/lib-rt/generic_ops.c +64 -0
  790. jaclang/vendor/mypyc/lib-rt/getargs.c +450 -0
  791. jaclang/vendor/mypyc/lib-rt/getargsfast.c +569 -0
  792. jaclang/vendor/mypyc/lib-rt/init.c +13 -0
  793. jaclang/vendor/mypyc/lib-rt/int_ops.c +803 -0
  794. jaclang/vendor/mypyc/lib-rt/list_ops.c +335 -0
  795. jaclang/vendor/mypyc/lib-rt/misc_ops.c +942 -0
  796. jaclang/vendor/mypyc/lib-rt/module_shim.tmpl +18 -0
  797. jaclang/vendor/mypyc/lib-rt/mypyc_util.h +118 -0
  798. jaclang/vendor/mypyc/lib-rt/pythoncapi_compat.h +497 -0
  799. jaclang/vendor/mypyc/lib-rt/pythonsupport.h +548 -0
  800. jaclang/vendor/mypyc/lib-rt/set_ops.c +17 -0
  801. jaclang/vendor/mypyc/lib-rt/setup.py +76 -0
  802. jaclang/vendor/mypyc/lib-rt/str_ops.c +241 -0
  803. jaclang/vendor/mypyc/lib-rt/test_capi.cc +585 -0
  804. jaclang/vendor/mypyc/lib-rt/tuple_ops.c +61 -0
  805. jaclang/vendor/mypyc/test-data/alwaysdefined.test +732 -0
  806. jaclang/vendor/mypyc/test-data/analysis.test +603 -0
  807. jaclang/vendor/mypyc/test-data/commandline.test +245 -0
  808. jaclang/vendor/mypyc/test-data/driver/driver.py +50 -0
  809. jaclang/vendor/mypyc/test-data/exceptions-freq.test +125 -0
  810. jaclang/vendor/mypyc/test-data/exceptions.test +713 -0
  811. jaclang/vendor/mypyc/test-data/fixtures/ir.py +850 -0
  812. jaclang/vendor/mypyc/test-data/fixtures/testutil.py +117 -0
  813. jaclang/vendor/mypyc/test-data/fixtures/typing-full.pyi +212 -0
  814. jaclang/vendor/mypyc/test-data/irbuild-any.test +238 -0
  815. jaclang/vendor/mypyc/test-data/irbuild-basic.test +3690 -0
  816. jaclang/vendor/mypyc/test-data/irbuild-bool.test +463 -0
  817. jaclang/vendor/mypyc/test-data/irbuild-bytes.test +184 -0
  818. jaclang/vendor/mypyc/test-data/irbuild-classes.test +1303 -0
  819. jaclang/vendor/mypyc/test-data/irbuild-constant-fold.test +480 -0
  820. jaclang/vendor/mypyc/test-data/irbuild-dict.test +585 -0
  821. jaclang/vendor/mypyc/test-data/irbuild-dunders.test +223 -0
  822. jaclang/vendor/mypyc/test-data/irbuild-float.test +497 -0
  823. jaclang/vendor/mypyc/test-data/irbuild-generics.test +151 -0
  824. jaclang/vendor/mypyc/test-data/irbuild-glue-methods.test +437 -0
  825. jaclang/vendor/mypyc/test-data/irbuild-i16.test +526 -0
  826. jaclang/vendor/mypyc/test-data/irbuild-i32.test +598 -0
  827. jaclang/vendor/mypyc/test-data/irbuild-i64.test +2164 -0
  828. jaclang/vendor/mypyc/test-data/irbuild-int.test +235 -0
  829. jaclang/vendor/mypyc/test-data/irbuild-isinstance.test +109 -0
  830. jaclang/vendor/mypyc/test-data/irbuild-lists.test +547 -0
  831. jaclang/vendor/mypyc/test-data/irbuild-match.test +1708 -0
  832. jaclang/vendor/mypyc/test-data/irbuild-math.test +64 -0
  833. jaclang/vendor/mypyc/test-data/irbuild-nested.test +807 -0
  834. jaclang/vendor/mypyc/test-data/irbuild-optional.test +536 -0
  835. jaclang/vendor/mypyc/test-data/irbuild-set.test +838 -0
  836. jaclang/vendor/mypyc/test-data/irbuild-singledispatch.test +257 -0
  837. jaclang/vendor/mypyc/test-data/irbuild-statements.test +1149 -0
  838. jaclang/vendor/mypyc/test-data/irbuild-str.test +314 -0
  839. jaclang/vendor/mypyc/test-data/irbuild-strip-asserts.test +12 -0
  840. jaclang/vendor/mypyc/test-data/irbuild-try.test +523 -0
  841. jaclang/vendor/mypyc/test-data/irbuild-tuple.test +462 -0
  842. jaclang/vendor/mypyc/test-data/irbuild-u8.test +543 -0
  843. jaclang/vendor/mypyc/test-data/irbuild-unreachable.test +241 -0
  844. jaclang/vendor/mypyc/test-data/irbuild-vectorcall.test +153 -0
  845. jaclang/vendor/mypyc/test-data/refcount.test +1588 -0
  846. jaclang/vendor/mypyc/test-data/run-async.test +145 -0
  847. jaclang/vendor/mypyc/test-data/run-attrs.test +318 -0
  848. jaclang/vendor/mypyc/test-data/run-bench.test +196 -0
  849. jaclang/vendor/mypyc/test-data/run-bools.test +229 -0
  850. jaclang/vendor/mypyc/test-data/run-bytes.test +302 -0
  851. jaclang/vendor/mypyc/test-data/run-classes.test +2505 -0
  852. jaclang/vendor/mypyc/test-data/run-dicts.test +334 -0
  853. jaclang/vendor/mypyc/test-data/run-dunders.test +945 -0
  854. jaclang/vendor/mypyc/test-data/run-exceptions.test +448 -0
  855. jaclang/vendor/mypyc/test-data/run-floats.test +516 -0
  856. jaclang/vendor/mypyc/test-data/run-functions.test +1310 -0
  857. jaclang/vendor/mypyc/test-data/run-generators.test +681 -0
  858. jaclang/vendor/mypyc/test-data/run-i16.test +338 -0
  859. jaclang/vendor/mypyc/test-data/run-i32.test +336 -0
  860. jaclang/vendor/mypyc/test-data/run-i64.test +1519 -0
  861. jaclang/vendor/mypyc/test-data/run-imports.test +265 -0
  862. jaclang/vendor/mypyc/test-data/run-integers.test +540 -0
  863. jaclang/vendor/mypyc/test-data/run-lists.test +411 -0
  864. jaclang/vendor/mypyc/test-data/run-loops.test +485 -0
  865. jaclang/vendor/mypyc/test-data/run-match.test +283 -0
  866. jaclang/vendor/mypyc/test-data/run-math.test +106 -0
  867. jaclang/vendor/mypyc/test-data/run-misc.test +1168 -0
  868. jaclang/vendor/mypyc/test-data/run-multimodule.test +887 -0
  869. jaclang/vendor/mypyc/test-data/run-mypy-sim.test +138 -0
  870. jaclang/vendor/mypyc/test-data/run-primitives.test +375 -0
  871. jaclang/vendor/mypyc/test-data/run-python37.test +159 -0
  872. jaclang/vendor/mypyc/test-data/run-python38.test +88 -0
  873. jaclang/vendor/mypyc/test-data/run-sets.test +150 -0
  874. jaclang/vendor/mypyc/test-data/run-singledispatch.test +698 -0
  875. jaclang/vendor/mypyc/test-data/run-strings.test +641 -0
  876. jaclang/vendor/mypyc/test-data/run-traits.test +411 -0
  877. jaclang/vendor/mypyc/test-data/run-tuples.test +258 -0
  878. jaclang/vendor/mypyc/test-data/run-u8.test +303 -0
  879. jaclang/vendor/pluggy/LICENSE +21 -0
  880. jaclang-0.6.2.dist-info/METADATA +110 -0
  881. jaclang-0.6.2.dist-info/RECORD +1305 -0
  882. {jaclang-0.6.1.dist-info → jaclang-0.6.2.dist-info}/WHEEL +1 -2
  883. jaclang-0.6.2.dist-info/entry_points.txt +3 -0
  884. jaclang/compiler/generated/jac_parser.py +0 -4069
  885. jaclang-0.6.1.dist-info/METADATA +0 -17
  886. jaclang-0.6.1.dist-info/RECORD +0 -430
  887. jaclang-0.6.1.dist-info/entry_points.txt +0 -2
  888. jaclang-0.6.1.dist-info/top_level.txt +0 -1
  889. /jaclang/{compiler/generated/__init__.py → vendor/mypy/typeshed/stdlib/concurrent/__init__.pyi} +0 -0
@@ -0,0 +1,2310 @@
1
+ import _ast
2
+ import _typeshed
3
+ import sys
4
+ import types
5
+ from _collections_abc import dict_items, dict_keys, dict_values
6
+ from _typeshed import (
7
+ AnyStr_co,
8
+ ConvertibleToFloat,
9
+ ConvertibleToInt,
10
+ FileDescriptorOrPath,
11
+ OpenBinaryMode,
12
+ OpenBinaryModeReading,
13
+ OpenBinaryModeUpdating,
14
+ OpenBinaryModeWriting,
15
+ OpenTextMode,
16
+ ReadableBuffer,
17
+ SupportsAdd,
18
+ SupportsAiter,
19
+ SupportsAnext,
20
+ SupportsDivMod,
21
+ SupportsFlush,
22
+ SupportsIter,
23
+ SupportsKeysAndGetItem,
24
+ SupportsLenAndGetItem,
25
+ SupportsNext,
26
+ SupportsRAdd,
27
+ SupportsRDivMod,
28
+ SupportsRichComparison,
29
+ SupportsRichComparisonT,
30
+ SupportsWrite,
31
+ )
32
+ from collections.abc import (
33
+ Awaitable,
34
+ Callable,
35
+ Iterable,
36
+ Iterator,
37
+ MutableSet,
38
+ Reversible,
39
+ Set as AbstractSet,
40
+ Sized,
41
+ )
42
+ from io import BufferedRandom, BufferedReader, BufferedWriter, FileIO, TextIOWrapper
43
+ from types import CodeType, TracebackType, _Cell
44
+
45
+ # mypy crashes if any of {ByteString, Sequence, MutableSequence, Mapping, MutableMapping} are imported from collections.abc in builtins.pyi
46
+ from typing import ( # noqa: Y022
47
+ IO,
48
+ Any,
49
+ BinaryIO,
50
+ ClassVar,
51
+ Generic,
52
+ Mapping,
53
+ MutableMapping,
54
+ MutableSequence,
55
+ NoReturn,
56
+ Protocol,
57
+ Sequence,
58
+ SupportsAbs,
59
+ SupportsBytes,
60
+ SupportsComplex,
61
+ SupportsFloat,
62
+ SupportsIndex,
63
+ TypeVar,
64
+ final,
65
+ overload,
66
+ type_check_only,
67
+ )
68
+
69
+ # we can't import `Literal` from typing or mypy crashes: see #11247
70
+ from typing_extensions import ( # noqa: Y023
71
+ Concatenate,
72
+ Literal,
73
+ ParamSpec,
74
+ Self,
75
+ TypeAlias,
76
+ TypeGuard,
77
+ TypeVarTuple,
78
+ deprecated,
79
+ )
80
+
81
+ if sys.version_info >= (3, 9):
82
+ from types import GenericAlias
83
+
84
+ _T = TypeVar("_T")
85
+ _T_co = TypeVar("_T_co", covariant=True)
86
+ _T_contra = TypeVar("_T_contra", contravariant=True)
87
+ _R_co = TypeVar("_R_co", covariant=True)
88
+ _KT = TypeVar("_KT")
89
+ _VT = TypeVar("_VT")
90
+ _S = TypeVar("_S")
91
+ _T1 = TypeVar("_T1")
92
+ _T2 = TypeVar("_T2")
93
+ _T3 = TypeVar("_T3")
94
+ _T4 = TypeVar("_T4")
95
+ _T5 = TypeVar("_T5")
96
+ _SupportsNextT = TypeVar("_SupportsNextT", bound=SupportsNext[Any], covariant=True)
97
+ _SupportsAnextT = TypeVar("_SupportsAnextT", bound=SupportsAnext[Any], covariant=True)
98
+ _AwaitableT = TypeVar("_AwaitableT", bound=Awaitable[Any])
99
+ _AwaitableT_co = TypeVar("_AwaitableT_co", bound=Awaitable[Any], covariant=True)
100
+ _P = ParamSpec("_P")
101
+
102
+ class object:
103
+ __doc__: str | None
104
+ __dict__: dict[str, Any]
105
+ __module__: str
106
+ __annotations__: dict[str, Any]
107
+ @property
108
+ def __class__(self) -> type[Self]: ...
109
+ # Ignore errors about type mismatch between property getter and setter
110
+ @__class__.setter
111
+ def __class__(self, __type: type[object]) -> None: ... # noqa: F811
112
+ def __init__(self) -> None: ...
113
+ def __new__(cls) -> Self: ...
114
+ # N.B. `object.__setattr__` and `object.__delattr__` are heavily special-cased by type checkers.
115
+ # Overriding them in subclasses has different semantics, even if the override has an identical signature.
116
+ def __setattr__(self, __name: str, __value: Any) -> None: ...
117
+ def __delattr__(self, __name: str) -> None: ...
118
+ def __eq__(self, __value: object) -> bool: ...
119
+ def __ne__(self, __value: object) -> bool: ...
120
+ def __str__(self) -> str: ... # noqa: Y029
121
+ def __repr__(self) -> str: ... # noqa: Y029
122
+ def __hash__(self) -> int: ...
123
+ def __format__(self, __format_spec: str) -> str: ...
124
+ def __getattribute__(self, __name: str) -> Any: ...
125
+ def __sizeof__(self) -> int: ...
126
+ # return type of pickle methods is rather hard to express in the current type system
127
+ # see #6661 and https://docs.python.org/3/library/pickle.html#object.__reduce__
128
+ def __reduce__(self) -> str | tuple[Any, ...]: ...
129
+ def __reduce_ex__(self, __protocol: SupportsIndex) -> str | tuple[Any, ...]: ...
130
+ if sys.version_info >= (3, 11):
131
+ def __getstate__(self) -> object: ...
132
+
133
+ def __dir__(self) -> Iterable[str]: ...
134
+ def __init_subclass__(cls) -> None: ...
135
+ @classmethod
136
+ def __subclasshook__(cls, __subclass: type) -> bool: ...
137
+
138
+ class staticmethod(Generic[_P, _R_co]):
139
+ @property
140
+ def __func__(self) -> Callable[_P, _R_co]: ...
141
+ @property
142
+ def __isabstractmethod__(self) -> bool: ...
143
+ def __init__(self, __f: Callable[_P, _R_co]) -> None: ...
144
+ @overload
145
+ def __get__(self, __instance: None, __owner: type) -> Callable[_P, _R_co]: ...
146
+ @overload
147
+ def __get__(
148
+ self, __instance: _T, __owner: type[_T] | None = None
149
+ ) -> Callable[_P, _R_co]: ...
150
+ if sys.version_info >= (3, 10):
151
+ __name__: str
152
+ __qualname__: str
153
+ @property
154
+ def __wrapped__(self) -> Callable[_P, _R_co]: ...
155
+ def __call__(self, *args: _P.args, **kwargs: _P.kwargs) -> _R_co: ...
156
+
157
+ class classmethod(Generic[_T, _P, _R_co]):
158
+ @property
159
+ def __func__(self) -> Callable[Concatenate[type[_T], _P], _R_co]: ...
160
+ @property
161
+ def __isabstractmethod__(self) -> bool: ...
162
+ def __init__(self, __f: Callable[Concatenate[type[_T], _P], _R_co]) -> None: ...
163
+ @overload
164
+ def __get__(
165
+ self, __instance: _T, __owner: type[_T] | None = None
166
+ ) -> Callable[_P, _R_co]: ...
167
+ @overload
168
+ def __get__(self, __instance: None, __owner: type[_T]) -> Callable[_P, _R_co]: ...
169
+ if sys.version_info >= (3, 10):
170
+ __name__: str
171
+ __qualname__: str
172
+ @property
173
+ def __wrapped__(self) -> Callable[Concatenate[type[_T], _P], _R_co]: ...
174
+
175
+ class type:
176
+ # object.__base__ is None. Otherwise, it would be a type.
177
+ @property
178
+ def __base__(self) -> type | None: ...
179
+ __bases__: tuple[type, ...]
180
+ @property
181
+ def __basicsize__(self) -> int: ...
182
+ @property
183
+ def __dict__(self) -> types.MappingProxyType[str, Any]: ... # type: ignore[override]
184
+ @property
185
+ def __dictoffset__(self) -> int: ...
186
+ @property
187
+ def __flags__(self) -> int: ...
188
+ @property
189
+ def __itemsize__(self) -> int: ...
190
+ __module__: str
191
+ @property
192
+ def __mro__(self) -> tuple[type, ...]: ...
193
+ __name__: str
194
+ __qualname__: str
195
+ @property
196
+ def __text_signature__(self) -> str | None: ...
197
+ @property
198
+ def __weakrefoffset__(self) -> int: ...
199
+ @overload
200
+ def __init__(self, __o: object) -> None: ...
201
+ @overload
202
+ def __init__(
203
+ self,
204
+ __name: str,
205
+ __bases: tuple[type, ...],
206
+ __dict: dict[str, Any],
207
+ **kwds: Any,
208
+ ) -> None: ...
209
+ @overload
210
+ def __new__(cls, __o: object) -> type: ...
211
+ @overload
212
+ def __new__(
213
+ cls: type[_typeshed.Self],
214
+ __name: str,
215
+ __bases: tuple[type, ...],
216
+ __namespace: dict[str, Any],
217
+ **kwds: Any,
218
+ ) -> _typeshed.Self: ...
219
+ def __call__(self, *args: Any, **kwds: Any) -> Any: ...
220
+ def __subclasses__(self: _typeshed.Self) -> list[_typeshed.Self]: ...
221
+ # Note: the documentation doesn't specify what the return type is, the standard
222
+ # implementation seems to be returning a list.
223
+ def mro(self) -> list[type]: ...
224
+ def __instancecheck__(self, __instance: Any) -> bool: ...
225
+ def __subclasscheck__(self, __subclass: type) -> bool: ...
226
+ @classmethod
227
+ def __prepare__(
228
+ metacls, __name: str, __bases: tuple[type, ...], **kwds: Any
229
+ ) -> MutableMapping[str, object]: ...
230
+ if sys.version_info >= (3, 10):
231
+ def __or__(self, __value: Any) -> types.UnionType: ...
232
+ def __ror__(self, __value: Any) -> types.UnionType: ...
233
+ if sys.version_info >= (3, 12):
234
+ __type_params__: tuple[TypeVar | ParamSpec | TypeVarTuple, ...]
235
+
236
+ class super:
237
+ @overload
238
+ def __init__(self, __t: Any, __obj: Any) -> None: ...
239
+ @overload
240
+ def __init__(self, __t: Any) -> None: ...
241
+ @overload
242
+ def __init__(self) -> None: ...
243
+
244
+ _PositiveInteger: TypeAlias = Literal[
245
+ 1,
246
+ 2,
247
+ 3,
248
+ 4,
249
+ 5,
250
+ 6,
251
+ 7,
252
+ 8,
253
+ 9,
254
+ 10,
255
+ 11,
256
+ 12,
257
+ 13,
258
+ 14,
259
+ 15,
260
+ 16,
261
+ 17,
262
+ 18,
263
+ 19,
264
+ 20,
265
+ 21,
266
+ 22,
267
+ 23,
268
+ 24,
269
+ 25,
270
+ ]
271
+ _NegativeInteger: TypeAlias = Literal[
272
+ -1,
273
+ -2,
274
+ -3,
275
+ -4,
276
+ -5,
277
+ -6,
278
+ -7,
279
+ -8,
280
+ -9,
281
+ -10,
282
+ -11,
283
+ -12,
284
+ -13,
285
+ -14,
286
+ -15,
287
+ -16,
288
+ -17,
289
+ -18,
290
+ -19,
291
+ -20,
292
+ ]
293
+ _LiteralInteger = (
294
+ _PositiveInteger | _NegativeInteger | Literal[0]
295
+ ) # noqa: Y026 # TODO: Use TypeAlias once mypy bugs are fixed
296
+
297
+ class int:
298
+ @overload
299
+ def __new__(cls, __x: ConvertibleToInt = ...) -> Self: ...
300
+ @overload
301
+ def __new__(cls, __x: str | bytes | bytearray, base: SupportsIndex) -> Self: ...
302
+ def as_integer_ratio(self) -> tuple[int, Literal[1]]: ...
303
+ @property
304
+ def real(self) -> int: ...
305
+ @property
306
+ def imag(self) -> Literal[0]: ...
307
+ @property
308
+ def numerator(self) -> int: ...
309
+ @property
310
+ def denominator(self) -> Literal[1]: ...
311
+ def conjugate(self) -> int: ...
312
+ def bit_length(self) -> int: ...
313
+ if sys.version_info >= (3, 10):
314
+ def bit_count(self) -> int: ...
315
+
316
+ if sys.version_info >= (3, 11):
317
+ def to_bytes(
318
+ self,
319
+ length: SupportsIndex = 1,
320
+ byteorder: Literal["little", "big"] = "big",
321
+ *,
322
+ signed: bool = False,
323
+ ) -> bytes: ...
324
+ @classmethod
325
+ def from_bytes(
326
+ cls,
327
+ bytes: Iterable[SupportsIndex] | SupportsBytes | ReadableBuffer,
328
+ byteorder: Literal["little", "big"] = "big",
329
+ *,
330
+ signed: bool = False,
331
+ ) -> Self: ...
332
+ else:
333
+ def to_bytes(
334
+ self,
335
+ length: SupportsIndex,
336
+ byteorder: Literal["little", "big"],
337
+ *,
338
+ signed: bool = False,
339
+ ) -> bytes: ...
340
+ @classmethod
341
+ def from_bytes(
342
+ cls,
343
+ bytes: Iterable[SupportsIndex] | SupportsBytes | ReadableBuffer,
344
+ byteorder: Literal["little", "big"],
345
+ *,
346
+ signed: bool = False,
347
+ ) -> Self: ...
348
+
349
+ if sys.version_info >= (3, 12):
350
+ def is_integer(self) -> Literal[True]: ...
351
+
352
+ def __add__(self, __value: int) -> int: ...
353
+ def __sub__(self, __value: int) -> int: ...
354
+ def __mul__(self, __value: int) -> int: ...
355
+ def __floordiv__(self, __value: int) -> int: ...
356
+ def __truediv__(self, __value: int) -> float: ...
357
+ def __mod__(self, __value: int) -> int: ...
358
+ def __divmod__(self, __value: int) -> tuple[int, int]: ...
359
+ def __radd__(self, __value: int) -> int: ...
360
+ def __rsub__(self, __value: int) -> int: ...
361
+ def __rmul__(self, __value: int) -> int: ...
362
+ def __rfloordiv__(self, __value: int) -> int: ...
363
+ def __rtruediv__(self, __value: int) -> float: ...
364
+ def __rmod__(self, __value: int) -> int: ...
365
+ def __rdivmod__(self, __value: int) -> tuple[int, int]: ...
366
+ @overload
367
+ def __pow__(self, __x: Literal[0]) -> Literal[1]: ...
368
+ @overload
369
+ def __pow__(self, __value: Literal[0], __mod: None) -> Literal[1]: ...
370
+ @overload
371
+ def __pow__(self, __value: _PositiveInteger, __mod: None = None) -> int: ...
372
+ @overload
373
+ def __pow__(self, __value: _NegativeInteger, __mod: None = None) -> float: ...
374
+ # positive __value -> int; negative __value -> float
375
+ # return type must be Any as `int | float` causes too many false-positive errors
376
+ @overload
377
+ def __pow__(self, __value: int, __mod: None = None) -> Any: ...
378
+ @overload
379
+ def __pow__(self, __value: int, __mod: int) -> int: ...
380
+ def __rpow__(self, __value: int, __mod: int | None = None) -> Any: ...
381
+ def __and__(self, __value: int) -> int: ...
382
+ def __or__(self, __value: int) -> int: ...
383
+ def __xor__(self, __value: int) -> int: ...
384
+ def __lshift__(self, __value: int) -> int: ...
385
+ def __rshift__(self, __value: int) -> int: ...
386
+ def __rand__(self, __value: int) -> int: ...
387
+ def __ror__(self, __value: int) -> int: ...
388
+ def __rxor__(self, __value: int) -> int: ...
389
+ def __rlshift__(self, __value: int) -> int: ...
390
+ def __rrshift__(self, __value: int) -> int: ...
391
+ def __neg__(self) -> int: ...
392
+ def __pos__(self) -> int: ...
393
+ def __invert__(self) -> int: ...
394
+ def __trunc__(self) -> int: ...
395
+ def __ceil__(self) -> int: ...
396
+ def __floor__(self) -> int: ...
397
+ def __round__(self, __ndigits: SupportsIndex = ...) -> int: ...
398
+ def __getnewargs__(self) -> tuple[int]: ...
399
+ def __eq__(self, __value: object) -> bool: ...
400
+ def __ne__(self, __value: object) -> bool: ...
401
+ def __lt__(self, __value: int) -> bool: ...
402
+ def __le__(self, __value: int) -> bool: ...
403
+ def __gt__(self, __value: int) -> bool: ...
404
+ def __ge__(self, __value: int) -> bool: ...
405
+ def __float__(self) -> float: ...
406
+ def __int__(self) -> int: ...
407
+ def __abs__(self) -> int: ...
408
+ def __hash__(self) -> int: ...
409
+ def __bool__(self) -> bool: ...
410
+ def __index__(self) -> int: ...
411
+
412
+ class float:
413
+ def __new__(cls, __x: ConvertibleToFloat = ...) -> Self: ...
414
+ def as_integer_ratio(self) -> tuple[int, int]: ...
415
+ def hex(self) -> str: ...
416
+ def is_integer(self) -> bool: ...
417
+ @classmethod
418
+ def fromhex(cls, __string: str) -> Self: ...
419
+ @property
420
+ def real(self) -> float: ...
421
+ @property
422
+ def imag(self) -> float: ...
423
+ def conjugate(self) -> float: ...
424
+ def __add__(self, __value: float) -> float: ...
425
+ def __sub__(self, __value: float) -> float: ...
426
+ def __mul__(self, __value: float) -> float: ...
427
+ def __floordiv__(self, __value: float) -> float: ...
428
+ def __truediv__(self, __value: float) -> float: ...
429
+ def __mod__(self, __value: float) -> float: ...
430
+ def __divmod__(self, __value: float) -> tuple[float, float]: ...
431
+ @overload
432
+ def __pow__(self, __value: int, __mod: None = None) -> float: ...
433
+ # positive __value -> float; negative __value -> complex
434
+ # return type must be Any as `float | complex` causes too many false-positive errors
435
+ @overload
436
+ def __pow__(self, __value: float, __mod: None = None) -> Any: ...
437
+ def __radd__(self, __value: float) -> float: ...
438
+ def __rsub__(self, __value: float) -> float: ...
439
+ def __rmul__(self, __value: float) -> float: ...
440
+ def __rfloordiv__(self, __value: float) -> float: ...
441
+ def __rtruediv__(self, __value: float) -> float: ...
442
+ def __rmod__(self, __value: float) -> float: ...
443
+ def __rdivmod__(self, __value: float) -> tuple[float, float]: ...
444
+ @overload
445
+ def __rpow__(self, __value: _PositiveInteger, __mod: None = None) -> float: ...
446
+ @overload
447
+ def __rpow__(self, __value: _NegativeInteger, __mod: None = None) -> complex: ...
448
+ # Returning `complex` for the general case gives too many false-positive errors.
449
+ @overload
450
+ def __rpow__(self, __value: float, __mod: None = None) -> Any: ...
451
+ def __getnewargs__(self) -> tuple[float]: ...
452
+ def __trunc__(self) -> int: ...
453
+ if sys.version_info >= (3, 9):
454
+ def __ceil__(self) -> int: ...
455
+ def __floor__(self) -> int: ...
456
+
457
+ @overload
458
+ def __round__(self, __ndigits: None = None) -> int: ...
459
+ @overload
460
+ def __round__(self, __ndigits: SupportsIndex) -> float: ...
461
+ def __eq__(self, __value: object) -> bool: ...
462
+ def __ne__(self, __value: object) -> bool: ...
463
+ def __lt__(self, __value: float) -> bool: ...
464
+ def __le__(self, __value: float) -> bool: ...
465
+ def __gt__(self, __value: float) -> bool: ...
466
+ def __ge__(self, __value: float) -> bool: ...
467
+ def __neg__(self) -> float: ...
468
+ def __pos__(self) -> float: ...
469
+ def __int__(self) -> int: ...
470
+ def __float__(self) -> float: ...
471
+ def __abs__(self) -> float: ...
472
+ def __hash__(self) -> int: ...
473
+ def __bool__(self) -> bool: ...
474
+
475
+ class complex:
476
+ # Python doesn't currently accept SupportsComplex for the second argument
477
+ @overload
478
+ def __new__(
479
+ cls,
480
+ real: complex | SupportsComplex | SupportsFloat | SupportsIndex = ...,
481
+ imag: complex | SupportsFloat | SupportsIndex = ...,
482
+ ) -> Self: ...
483
+ @overload
484
+ def __new__(
485
+ cls, real: str | SupportsComplex | SupportsFloat | SupportsIndex | complex
486
+ ) -> Self: ...
487
+ @property
488
+ def real(self) -> float: ...
489
+ @property
490
+ def imag(self) -> float: ...
491
+ def conjugate(self) -> complex: ...
492
+ def __add__(self, __value: complex) -> complex: ...
493
+ def __sub__(self, __value: complex) -> complex: ...
494
+ def __mul__(self, __value: complex) -> complex: ...
495
+ def __pow__(self, __value: complex, __mod: None = None) -> complex: ...
496
+ def __truediv__(self, __value: complex) -> complex: ...
497
+ def __radd__(self, __value: complex) -> complex: ...
498
+ def __rsub__(self, __value: complex) -> complex: ...
499
+ def __rmul__(self, __value: complex) -> complex: ...
500
+ def __rpow__(self, __value: complex, __mod: None = None) -> complex: ...
501
+ def __rtruediv__(self, __value: complex) -> complex: ...
502
+ def __eq__(self, __value: object) -> bool: ...
503
+ def __ne__(self, __value: object) -> bool: ...
504
+ def __neg__(self) -> complex: ...
505
+ def __pos__(self) -> complex: ...
506
+ def __abs__(self) -> float: ...
507
+ def __hash__(self) -> int: ...
508
+ def __bool__(self) -> bool: ...
509
+ if sys.version_info >= (3, 11):
510
+ def __complex__(self) -> complex: ...
511
+
512
+ class _FormatMapMapping(Protocol):
513
+ def __getitem__(self, __key: str) -> Any: ...
514
+
515
+ class _TranslateTable(Protocol):
516
+ def __getitem__(self, __key: int) -> str | int | None: ...
517
+
518
+ class str(Sequence[str]):
519
+ @overload
520
+ def __new__(cls, object: object = ...) -> Self: ...
521
+ @overload
522
+ def __new__(
523
+ cls, object: ReadableBuffer, encoding: str = ..., errors: str = ...
524
+ ) -> Self: ...
525
+ def capitalize(self) -> str: ... # type: ignore[misc]
526
+ def casefold(self) -> str: ... # type: ignore[misc]
527
+ def center(self, __width: SupportsIndex, __fillchar: str = " ") -> str: ... # type: ignore[misc]
528
+ def count(
529
+ self,
530
+ x: str,
531
+ __start: SupportsIndex | None = ...,
532
+ __end: SupportsIndex | None = ...,
533
+ ) -> int: ...
534
+ def encode(self, encoding: str = "utf-8", errors: str = "strict") -> bytes: ...
535
+ def endswith(
536
+ self,
537
+ __suffix: str | tuple[str, ...],
538
+ __start: SupportsIndex | None = ...,
539
+ __end: SupportsIndex | None = ...,
540
+ ) -> bool: ...
541
+ def expandtabs(self, tabsize: SupportsIndex = 8) -> str: ... # type: ignore[misc]
542
+ def find(
543
+ self,
544
+ __sub: str,
545
+ __start: SupportsIndex | None = ...,
546
+ __end: SupportsIndex | None = ...,
547
+ ) -> int: ...
548
+ def format(self, *args: object, **kwargs: object) -> str: ...
549
+ def format_map(self, map: _FormatMapMapping) -> str: ...
550
+ def index(
551
+ self,
552
+ __sub: str,
553
+ __start: SupportsIndex | None = ...,
554
+ __end: SupportsIndex | None = ...,
555
+ ) -> int: ...
556
+ def isalnum(self) -> bool: ...
557
+ def isalpha(self) -> bool: ...
558
+ def isascii(self) -> bool: ...
559
+ def isdecimal(self) -> bool: ...
560
+ def isdigit(self) -> bool: ...
561
+ def isidentifier(self) -> bool: ...
562
+ def islower(self) -> bool: ...
563
+ def isnumeric(self) -> bool: ...
564
+ def isprintable(self) -> bool: ...
565
+ def isspace(self) -> bool: ...
566
+ def istitle(self) -> bool: ...
567
+ def isupper(self) -> bool: ...
568
+ def join(self, __iterable: Iterable[str]) -> str: ... # type: ignore[misc]
569
+ def ljust(self, __width: SupportsIndex, __fillchar: str = " ") -> str: ... # type: ignore[misc]
570
+ def lower(self) -> str: ... # type: ignore[misc]
571
+ def lstrip(self, __chars: str | None = None) -> str: ... # type: ignore[misc]
572
+ def partition(self, __sep: str) -> tuple[str, str, str]: ... # type: ignore[misc]
573
+ def replace(self, __old: str, __new: str, __count: SupportsIndex = -1) -> str: ... # type: ignore[misc]
574
+ if sys.version_info >= (3, 9):
575
+ def removeprefix(self, __prefix: str) -> str: ... # type: ignore[misc]
576
+ def removesuffix(self, __suffix: str) -> str: ... # type: ignore[misc]
577
+
578
+ def rfind(
579
+ self,
580
+ __sub: str,
581
+ __start: SupportsIndex | None = ...,
582
+ __end: SupportsIndex | None = ...,
583
+ ) -> int: ...
584
+ def rindex(
585
+ self,
586
+ __sub: str,
587
+ __start: SupportsIndex | None = ...,
588
+ __end: SupportsIndex | None = ...,
589
+ ) -> int: ...
590
+ def rjust(self, __width: SupportsIndex, __fillchar: str = " ") -> str: ... # type: ignore[misc]
591
+ def rpartition(self, __sep: str) -> tuple[str, str, str]: ... # type: ignore[misc]
592
+ def rsplit(self, sep: str | None = None, maxsplit: SupportsIndex = -1) -> list[str]: ... # type: ignore[misc]
593
+ def rstrip(self, __chars: str | None = None) -> str: ... # type: ignore[misc]
594
+ def split(self, sep: str | None = None, maxsplit: SupportsIndex = -1) -> list[str]: ... # type: ignore[misc]
595
+ def splitlines(self, keepends: bool = False) -> list[str]: ... # type: ignore[misc]
596
+ def startswith(
597
+ self,
598
+ __prefix: str | tuple[str, ...],
599
+ __start: SupportsIndex | None = ...,
600
+ __end: SupportsIndex | None = ...,
601
+ ) -> bool: ...
602
+ def strip(self, __chars: str | None = None) -> str: ... # type: ignore[misc]
603
+ def swapcase(self) -> str: ... # type: ignore[misc]
604
+ def title(self) -> str: ... # type: ignore[misc]
605
+ def translate(self, __table: _TranslateTable) -> str: ...
606
+ def upper(self) -> str: ... # type: ignore[misc]
607
+ def zfill(self, __width: SupportsIndex) -> str: ... # type: ignore[misc]
608
+ @staticmethod
609
+ @overload
610
+ def maketrans(
611
+ __x: dict[int, _T] | dict[str, _T] | dict[str | int, _T]
612
+ ) -> dict[int, _T]: ...
613
+ @staticmethod
614
+ @overload
615
+ def maketrans(__x: str, __y: str) -> dict[int, int]: ...
616
+ @staticmethod
617
+ @overload
618
+ def maketrans(__x: str, __y: str, __z: str) -> dict[int, int | None]: ...
619
+ def __add__(self, __value: str) -> str: ... # type: ignore[misc]
620
+ # Incompatible with Sequence.__contains__
621
+ def __contains__(self, __key: str) -> bool: ... # type: ignore[override]
622
+ def __eq__(self, __value: object) -> bool: ...
623
+ def __ge__(self, __value: str) -> bool: ...
624
+ def __getitem__(self, __key: SupportsIndex | slice) -> str: ...
625
+ def __gt__(self, __value: str) -> bool: ...
626
+ def __hash__(self) -> int: ...
627
+ def __iter__(self) -> Iterator[str]: ... # type: ignore[misc]
628
+ def __le__(self, __value: str) -> bool: ...
629
+ def __len__(self) -> int: ...
630
+ def __lt__(self, __value: str) -> bool: ...
631
+ def __mod__(self, __value: Any) -> str: ...
632
+ def __mul__(self, __value: SupportsIndex) -> str: ... # type: ignore[misc]
633
+ def __ne__(self, __value: object) -> bool: ...
634
+ def __rmul__(self, __value: SupportsIndex) -> str: ... # type: ignore[misc]
635
+ def __getnewargs__(self) -> tuple[str]: ...
636
+
637
+ class bytes(Sequence[int]):
638
+ @overload
639
+ def __new__(
640
+ cls,
641
+ __o: Iterable[SupportsIndex] | SupportsIndex | SupportsBytes | ReadableBuffer,
642
+ ) -> Self: ...
643
+ @overload
644
+ def __new__(cls, __string: str, encoding: str, errors: str = ...) -> Self: ...
645
+ @overload
646
+ def __new__(cls) -> Self: ...
647
+ def capitalize(self) -> bytes: ...
648
+ def center(self, __width: SupportsIndex, __fillchar: bytes = b" ") -> bytes: ...
649
+ def count(
650
+ self,
651
+ __sub: ReadableBuffer | SupportsIndex,
652
+ __start: SupportsIndex | None = ...,
653
+ __end: SupportsIndex | None = ...,
654
+ ) -> int: ...
655
+ def decode(self, encoding: str = "utf-8", errors: str = "strict") -> str: ...
656
+ def endswith(
657
+ self,
658
+ __suffix: ReadableBuffer | tuple[ReadableBuffer, ...],
659
+ __start: SupportsIndex | None = ...,
660
+ __end: SupportsIndex | None = ...,
661
+ ) -> bool: ...
662
+ def expandtabs(self, tabsize: SupportsIndex = 8) -> bytes: ...
663
+ def find(
664
+ self,
665
+ __sub: ReadableBuffer | SupportsIndex,
666
+ __start: SupportsIndex | None = ...,
667
+ __end: SupportsIndex | None = ...,
668
+ ) -> int: ...
669
+ def hex(
670
+ self, sep: str | bytes = ..., bytes_per_sep: SupportsIndex = ...
671
+ ) -> str: ...
672
+ def index(
673
+ self,
674
+ __sub: ReadableBuffer | SupportsIndex,
675
+ __start: SupportsIndex | None = ...,
676
+ __end: SupportsIndex | None = ...,
677
+ ) -> int: ...
678
+ def isalnum(self) -> bool: ...
679
+ def isalpha(self) -> bool: ...
680
+ def isascii(self) -> bool: ...
681
+ def isdigit(self) -> bool: ...
682
+ def islower(self) -> bool: ...
683
+ def isspace(self) -> bool: ...
684
+ def istitle(self) -> bool: ...
685
+ def isupper(self) -> bool: ...
686
+ def join(self, __iterable_of_bytes: Iterable[ReadableBuffer]) -> bytes: ...
687
+ def ljust(
688
+ self, __width: SupportsIndex, __fillchar: bytes | bytearray = b" "
689
+ ) -> bytes: ...
690
+ def lower(self) -> bytes: ...
691
+ def lstrip(self, __bytes: ReadableBuffer | None = None) -> bytes: ...
692
+ def partition(self, __sep: ReadableBuffer) -> tuple[bytes, bytes, bytes]: ...
693
+ def replace(
694
+ self, __old: ReadableBuffer, __new: ReadableBuffer, __count: SupportsIndex = -1
695
+ ) -> bytes: ...
696
+ if sys.version_info >= (3, 9):
697
+ def removeprefix(self, __prefix: ReadableBuffer) -> bytes: ...
698
+ def removesuffix(self, __suffix: ReadableBuffer) -> bytes: ...
699
+
700
+ def rfind(
701
+ self,
702
+ __sub: ReadableBuffer | SupportsIndex,
703
+ __start: SupportsIndex | None = ...,
704
+ __end: SupportsIndex | None = ...,
705
+ ) -> int: ...
706
+ def rindex(
707
+ self,
708
+ __sub: ReadableBuffer | SupportsIndex,
709
+ __start: SupportsIndex | None = ...,
710
+ __end: SupportsIndex | None = ...,
711
+ ) -> int: ...
712
+ def rjust(
713
+ self, __width: SupportsIndex, __fillchar: bytes | bytearray = b" "
714
+ ) -> bytes: ...
715
+ def rpartition(self, __sep: ReadableBuffer) -> tuple[bytes, bytes, bytes]: ...
716
+ def rsplit(
717
+ self, sep: ReadableBuffer | None = None, maxsplit: SupportsIndex = -1
718
+ ) -> list[bytes]: ...
719
+ def rstrip(self, __bytes: ReadableBuffer | None = None) -> bytes: ...
720
+ def split(
721
+ self, sep: ReadableBuffer | None = None, maxsplit: SupportsIndex = -1
722
+ ) -> list[bytes]: ...
723
+ def splitlines(self, keepends: bool = False) -> list[bytes]: ...
724
+ def startswith(
725
+ self,
726
+ __prefix: ReadableBuffer | tuple[ReadableBuffer, ...],
727
+ __start: SupportsIndex | None = ...,
728
+ __end: SupportsIndex | None = ...,
729
+ ) -> bool: ...
730
+ def strip(self, __bytes: ReadableBuffer | None = None) -> bytes: ...
731
+ def swapcase(self) -> bytes: ...
732
+ def title(self) -> bytes: ...
733
+ def translate(
734
+ self, __table: ReadableBuffer | None, delete: bytes = b""
735
+ ) -> bytes: ...
736
+ def upper(self) -> bytes: ...
737
+ def zfill(self, __width: SupportsIndex) -> bytes: ...
738
+ @classmethod
739
+ def fromhex(cls, __string: str) -> Self: ...
740
+ @staticmethod
741
+ def maketrans(__frm: ReadableBuffer, __to: ReadableBuffer) -> bytes: ...
742
+ def __len__(self) -> int: ...
743
+ def __iter__(self) -> Iterator[int]: ...
744
+ def __hash__(self) -> int: ...
745
+ @overload
746
+ def __getitem__(self, __key: SupportsIndex) -> int: ...
747
+ @overload
748
+ def __getitem__(self, __key: slice) -> bytes: ...
749
+ def __add__(self, __value: ReadableBuffer) -> bytes: ...
750
+ def __mul__(self, __value: SupportsIndex) -> bytes: ...
751
+ def __rmul__(self, __value: SupportsIndex) -> bytes: ...
752
+ def __mod__(self, __value: Any) -> bytes: ...
753
+ # Incompatible with Sequence.__contains__
754
+ def __contains__(self, __key: SupportsIndex | ReadableBuffer) -> bool: ... # type: ignore[override]
755
+ def __eq__(self, __value: object) -> bool: ...
756
+ def __ne__(self, __value: object) -> bool: ...
757
+ def __lt__(self, __value: bytes) -> bool: ...
758
+ def __le__(self, __value: bytes) -> bool: ...
759
+ def __gt__(self, __value: bytes) -> bool: ...
760
+ def __ge__(self, __value: bytes) -> bool: ...
761
+ def __getnewargs__(self) -> tuple[bytes]: ...
762
+ if sys.version_info >= (3, 11):
763
+ def __bytes__(self) -> bytes: ...
764
+
765
+ def __buffer__(self, __flags: int) -> memoryview: ...
766
+
767
+ class bytearray(MutableSequence[int]):
768
+ @overload
769
+ def __init__(self) -> None: ...
770
+ @overload
771
+ def __init__(
772
+ self, __ints: Iterable[SupportsIndex] | SupportsIndex | ReadableBuffer
773
+ ) -> None: ...
774
+ @overload
775
+ def __init__(self, __string: str, encoding: str, errors: str = ...) -> None: ...
776
+ def append(self, __item: SupportsIndex) -> None: ...
777
+ def capitalize(self) -> bytearray: ...
778
+ def center(self, __width: SupportsIndex, __fillchar: bytes = b" ") -> bytearray: ...
779
+ def count(
780
+ self,
781
+ __sub: ReadableBuffer | SupportsIndex,
782
+ __start: SupportsIndex | None = ...,
783
+ __end: SupportsIndex | None = ...,
784
+ ) -> int: ...
785
+ def copy(self) -> bytearray: ...
786
+ def decode(self, encoding: str = "utf-8", errors: str = "strict") -> str: ...
787
+ def endswith(
788
+ self,
789
+ __suffix: ReadableBuffer | tuple[ReadableBuffer, ...],
790
+ __start: SupportsIndex | None = ...,
791
+ __end: SupportsIndex | None = ...,
792
+ ) -> bool: ...
793
+ def expandtabs(self, tabsize: SupportsIndex = 8) -> bytearray: ...
794
+ def extend(self, __iterable_of_ints: Iterable[SupportsIndex]) -> None: ...
795
+ def find(
796
+ self,
797
+ __sub: ReadableBuffer | SupportsIndex,
798
+ __start: SupportsIndex | None = ...,
799
+ __end: SupportsIndex | None = ...,
800
+ ) -> int: ...
801
+ def hex(
802
+ self, sep: str | bytes = ..., bytes_per_sep: SupportsIndex = ...
803
+ ) -> str: ...
804
+ def index(
805
+ self,
806
+ __sub: ReadableBuffer | SupportsIndex,
807
+ __start: SupportsIndex | None = ...,
808
+ __end: SupportsIndex | None = ...,
809
+ ) -> int: ...
810
+ def insert(self, __index: SupportsIndex, __item: SupportsIndex) -> None: ...
811
+ def isalnum(self) -> bool: ...
812
+ def isalpha(self) -> bool: ...
813
+ def isascii(self) -> bool: ...
814
+ def isdigit(self) -> bool: ...
815
+ def islower(self) -> bool: ...
816
+ def isspace(self) -> bool: ...
817
+ def istitle(self) -> bool: ...
818
+ def isupper(self) -> bool: ...
819
+ def join(self, __iterable_of_bytes: Iterable[ReadableBuffer]) -> bytearray: ...
820
+ def ljust(
821
+ self, __width: SupportsIndex, __fillchar: bytes | bytearray = b" "
822
+ ) -> bytearray: ...
823
+ def lower(self) -> bytearray: ...
824
+ def lstrip(self, __bytes: ReadableBuffer | None = None) -> bytearray: ...
825
+ def partition(
826
+ self, __sep: ReadableBuffer
827
+ ) -> tuple[bytearray, bytearray, bytearray]: ...
828
+ def pop(self, __index: int = -1) -> int: ...
829
+ def remove(self, __value: int) -> None: ...
830
+ if sys.version_info >= (3, 9):
831
+ def removeprefix(self, __prefix: ReadableBuffer) -> bytearray: ...
832
+ def removesuffix(self, __suffix: ReadableBuffer) -> bytearray: ...
833
+
834
+ def replace(
835
+ self, __old: ReadableBuffer, __new: ReadableBuffer, __count: SupportsIndex = -1
836
+ ) -> bytearray: ...
837
+ def rfind(
838
+ self,
839
+ __sub: ReadableBuffer | SupportsIndex,
840
+ __start: SupportsIndex | None = ...,
841
+ __end: SupportsIndex | None = ...,
842
+ ) -> int: ...
843
+ def rindex(
844
+ self,
845
+ __sub: ReadableBuffer | SupportsIndex,
846
+ __start: SupportsIndex | None = ...,
847
+ __end: SupportsIndex | None = ...,
848
+ ) -> int: ...
849
+ def rjust(
850
+ self, __width: SupportsIndex, __fillchar: bytes | bytearray = b" "
851
+ ) -> bytearray: ...
852
+ def rpartition(
853
+ self, __sep: ReadableBuffer
854
+ ) -> tuple[bytearray, bytearray, bytearray]: ...
855
+ def rsplit(
856
+ self, sep: ReadableBuffer | None = None, maxsplit: SupportsIndex = -1
857
+ ) -> list[bytearray]: ...
858
+ def rstrip(self, __bytes: ReadableBuffer | None = None) -> bytearray: ...
859
+ def split(
860
+ self, sep: ReadableBuffer | None = None, maxsplit: SupportsIndex = -1
861
+ ) -> list[bytearray]: ...
862
+ def splitlines(self, keepends: bool = False) -> list[bytearray]: ...
863
+ def startswith(
864
+ self,
865
+ __prefix: ReadableBuffer | tuple[ReadableBuffer, ...],
866
+ __start: SupportsIndex | None = ...,
867
+ __end: SupportsIndex | None = ...,
868
+ ) -> bool: ...
869
+ def strip(self, __bytes: ReadableBuffer | None = None) -> bytearray: ...
870
+ def swapcase(self) -> bytearray: ...
871
+ def title(self) -> bytearray: ...
872
+ def translate(
873
+ self, __table: ReadableBuffer | None, delete: bytes = b""
874
+ ) -> bytearray: ...
875
+ def upper(self) -> bytearray: ...
876
+ def zfill(self, __width: SupportsIndex) -> bytearray: ...
877
+ @classmethod
878
+ def fromhex(cls, __string: str) -> Self: ...
879
+ @staticmethod
880
+ def maketrans(__frm: ReadableBuffer, __to: ReadableBuffer) -> bytes: ...
881
+ def __len__(self) -> int: ...
882
+ def __iter__(self) -> Iterator[int]: ...
883
+ __hash__: ClassVar[None] # type: ignore[assignment]
884
+ @overload
885
+ def __getitem__(self, __key: SupportsIndex) -> int: ...
886
+ @overload
887
+ def __getitem__(self, __key: slice) -> bytearray: ...
888
+ @overload
889
+ def __setitem__(self, __key: SupportsIndex, __value: SupportsIndex) -> None: ...
890
+ @overload
891
+ def __setitem__(
892
+ self, __key: slice, __value: Iterable[SupportsIndex] | bytes
893
+ ) -> None: ...
894
+ def __delitem__(self, __key: SupportsIndex | slice) -> None: ...
895
+ def __add__(self, __value: ReadableBuffer) -> bytearray: ...
896
+ # The superclass wants us to accept Iterable[int], but that fails at runtime.
897
+ def __iadd__(self, __value: ReadableBuffer) -> Self: ... # type: ignore[override]
898
+ def __mul__(self, __value: SupportsIndex) -> bytearray: ...
899
+ def __rmul__(self, __value: SupportsIndex) -> bytearray: ...
900
+ def __imul__(self, __value: SupportsIndex) -> Self: ...
901
+ def __mod__(self, __value: Any) -> bytes: ...
902
+ # Incompatible with Sequence.__contains__
903
+ def __contains__(self, __key: SupportsIndex | ReadableBuffer) -> bool: ... # type: ignore[override]
904
+ def __eq__(self, __value: object) -> bool: ...
905
+ def __ne__(self, __value: object) -> bool: ...
906
+ def __lt__(self, __value: ReadableBuffer) -> bool: ...
907
+ def __le__(self, __value: ReadableBuffer) -> bool: ...
908
+ def __gt__(self, __value: ReadableBuffer) -> bool: ...
909
+ def __ge__(self, __value: ReadableBuffer) -> bool: ...
910
+ def __alloc__(self) -> int: ...
911
+ def __buffer__(self, __flags: int) -> memoryview: ...
912
+ def __release_buffer__(self, __buffer: memoryview) -> None: ...
913
+
914
+ @final
915
+ class memoryview(Sequence[int]):
916
+ @property
917
+ def format(self) -> str: ...
918
+ @property
919
+ def itemsize(self) -> int: ...
920
+ @property
921
+ def shape(self) -> tuple[int, ...] | None: ...
922
+ @property
923
+ def strides(self) -> tuple[int, ...] | None: ...
924
+ @property
925
+ def suboffsets(self) -> tuple[int, ...] | None: ...
926
+ @property
927
+ def readonly(self) -> bool: ...
928
+ @property
929
+ def ndim(self) -> int: ...
930
+ @property
931
+ def obj(self) -> ReadableBuffer: ...
932
+ @property
933
+ def c_contiguous(self) -> bool: ...
934
+ @property
935
+ def f_contiguous(self) -> bool: ...
936
+ @property
937
+ def contiguous(self) -> bool: ...
938
+ @property
939
+ def nbytes(self) -> int: ...
940
+ def __new__(cls, obj: ReadableBuffer) -> Self: ...
941
+ def __enter__(self) -> Self: ...
942
+ def __exit__(
943
+ self,
944
+ __exc_type: type[BaseException] | None,
945
+ __exc_val: BaseException | None,
946
+ __exc_tb: TracebackType | None,
947
+ ) -> None: ...
948
+ def cast(
949
+ self, format: str, shape: list[int] | tuple[int, ...] = ...
950
+ ) -> memoryview: ...
951
+ @overload
952
+ def __getitem__(self, __key: SupportsIndex | tuple[SupportsIndex, ...]) -> int: ...
953
+ @overload
954
+ def __getitem__(self, __key: slice) -> memoryview: ...
955
+ def __contains__(self, __x: object) -> bool: ...
956
+ def __iter__(self) -> Iterator[int]: ...
957
+ def __len__(self) -> int: ...
958
+ def __eq__(self, __value: object) -> bool: ...
959
+ def __hash__(self) -> int: ...
960
+ @overload
961
+ def __setitem__(self, __key: slice, __value: ReadableBuffer) -> None: ...
962
+ @overload
963
+ def __setitem__(
964
+ self, __key: SupportsIndex | tuple[SupportsIndex, ...], __value: SupportsIndex
965
+ ) -> None: ...
966
+ if sys.version_info >= (3, 10):
967
+ def tobytes(self, order: Literal["C", "F", "A"] | None = "C") -> bytes: ...
968
+ else:
969
+ def tobytes(self, order: Literal["C", "F", "A"] | None = None) -> bytes: ...
970
+
971
+ def tolist(self) -> list[int]: ...
972
+ def toreadonly(self) -> memoryview: ...
973
+ def release(self) -> None: ...
974
+ def hex(
975
+ self, sep: str | bytes = ..., bytes_per_sep: SupportsIndex = ...
976
+ ) -> str: ...
977
+ def __buffer__(self, __flags: int) -> memoryview: ...
978
+ def __release_buffer__(self, __buffer: memoryview) -> None: ...
979
+
980
+ @final
981
+ class bool(int):
982
+ def __new__(cls, __o: object = ...) -> Self: ...
983
+ # The following overloads could be represented more elegantly with a TypeVar("_B", bool, int),
984
+ # however mypy has a bug regarding TypeVar constraints (https://github.com/python/mypy/issues/11880).
985
+ @overload
986
+ def __and__(self, __value: bool) -> bool: ...
987
+ @overload
988
+ def __and__(self, __value: int) -> int: ...
989
+ @overload
990
+ def __or__(self, __value: bool) -> bool: ...
991
+ @overload
992
+ def __or__(self, __value: int) -> int: ...
993
+ @overload
994
+ def __xor__(self, __value: bool) -> bool: ...
995
+ @overload
996
+ def __xor__(self, __value: int) -> int: ...
997
+ @overload
998
+ def __rand__(self, __value: bool) -> bool: ...
999
+ @overload
1000
+ def __rand__(self, __value: int) -> int: ...
1001
+ @overload
1002
+ def __ror__(self, __value: bool) -> bool: ...
1003
+ @overload
1004
+ def __ror__(self, __value: int) -> int: ...
1005
+ @overload
1006
+ def __rxor__(self, __value: bool) -> bool: ...
1007
+ @overload
1008
+ def __rxor__(self, __value: int) -> int: ...
1009
+ def __getnewargs__(self) -> tuple[int]: ...
1010
+ @deprecated(
1011
+ "Will throw an error in Python 3.14. Use `not` for logical negation of bools instead."
1012
+ )
1013
+ def __invert__(self) -> int: ...
1014
+
1015
+ @final
1016
+ class slice:
1017
+ @property
1018
+ def start(self) -> Any: ...
1019
+ @property
1020
+ def step(self) -> Any: ...
1021
+ @property
1022
+ def stop(self) -> Any: ...
1023
+ @overload
1024
+ def __new__(cls, __stop: Any) -> Self: ...
1025
+ @overload
1026
+ def __new__(cls, __start: Any, __stop: Any, __step: Any = ...) -> Self: ...
1027
+ def __eq__(self, __value: object) -> bool: ...
1028
+ __hash__: ClassVar[None] # type: ignore[assignment]
1029
+ def indices(self, __len: SupportsIndex) -> tuple[int, int, int]: ...
1030
+
1031
+ class tuple(Sequence[_T_co]):
1032
+ def __new__(cls, __iterable: Iterable[_T_co] = ...) -> Self: ...
1033
+ def __len__(self) -> int: ...
1034
+ def __contains__(self, __key: object) -> bool: ...
1035
+ @overload
1036
+ def __getitem__(self, __key: SupportsIndex) -> _T_co: ...
1037
+ @overload
1038
+ def __getitem__(self, __key: slice) -> tuple[_T_co, ...]: ...
1039
+ def __iter__(self) -> Iterator[_T_co]: ...
1040
+ def __lt__(self, __value: tuple[_T_co, ...]) -> bool: ...
1041
+ def __le__(self, __value: tuple[_T_co, ...]) -> bool: ...
1042
+ def __gt__(self, __value: tuple[_T_co, ...]) -> bool: ...
1043
+ def __ge__(self, __value: tuple[_T_co, ...]) -> bool: ...
1044
+ def __eq__(self, __value: object) -> bool: ...
1045
+ def __hash__(self) -> int: ...
1046
+ @overload
1047
+ def __add__(self, __value: tuple[_T_co, ...]) -> tuple[_T_co, ...]: ...
1048
+ @overload
1049
+ def __add__(self, __value: tuple[_T, ...]) -> tuple[_T_co | _T, ...]: ...
1050
+ def __mul__(self, __value: SupportsIndex) -> tuple[_T_co, ...]: ...
1051
+ def __rmul__(self, __value: SupportsIndex) -> tuple[_T_co, ...]: ...
1052
+ def count(self, __value: Any) -> int: ...
1053
+ def index(
1054
+ self,
1055
+ __value: Any,
1056
+ __start: SupportsIndex = 0,
1057
+ __stop: SupportsIndex = sys.maxsize,
1058
+ ) -> int: ...
1059
+ if sys.version_info >= (3, 9):
1060
+ def __class_getitem__(cls, __item: Any) -> GenericAlias: ...
1061
+
1062
+ # Doesn't exist at runtime, but deleting this breaks mypy. See #2999
1063
+ @final
1064
+ @type_check_only
1065
+ class function:
1066
+ # Make sure this class definition stays roughly in line with `types.FunctionType`
1067
+ @property
1068
+ def __closure__(self) -> tuple[_Cell, ...] | None: ...
1069
+ __code__: CodeType
1070
+ __defaults__: tuple[Any, ...] | None
1071
+ __dict__: dict[str, Any]
1072
+ @property
1073
+ def __globals__(self) -> dict[str, Any]: ...
1074
+ __name__: str
1075
+ __qualname__: str
1076
+ __annotations__: dict[str, Any]
1077
+ __kwdefaults__: dict[str, Any]
1078
+ if sys.version_info >= (3, 10):
1079
+ @property
1080
+ def __builtins__(self) -> dict[str, Any]: ...
1081
+ if sys.version_info >= (3, 12):
1082
+ __type_params__: tuple[TypeVar | ParamSpec | TypeVarTuple, ...]
1083
+
1084
+ __module__: str
1085
+ # mypy uses `builtins.function.__get__` to represent methods, properties, and getset_descriptors so we type the return as Any.
1086
+ def __get__(self, __instance: object, __owner: type | None = None) -> Any: ...
1087
+
1088
+ class list(MutableSequence[_T]):
1089
+ @overload
1090
+ def __init__(self) -> None: ...
1091
+ @overload
1092
+ def __init__(self, __iterable: Iterable[_T]) -> None: ...
1093
+ def copy(self) -> list[_T]: ...
1094
+ def append(self, __object: _T) -> None: ...
1095
+ def extend(self, __iterable: Iterable[_T]) -> None: ...
1096
+ def pop(self, __index: SupportsIndex = -1) -> _T: ...
1097
+ # Signature of `list.index` should be kept in line with `collections.UserList.index()`
1098
+ # and multiprocessing.managers.ListProxy.index()
1099
+ def index(
1100
+ self,
1101
+ __value: _T,
1102
+ __start: SupportsIndex = 0,
1103
+ __stop: SupportsIndex = sys.maxsize,
1104
+ ) -> int: ...
1105
+ def count(self, __value: _T) -> int: ...
1106
+ def insert(self, __index: SupportsIndex, __object: _T) -> None: ...
1107
+ def remove(self, __value: _T) -> None: ...
1108
+ # Signature of `list.sort` should be kept inline with `collections.UserList.sort()`
1109
+ # and multiprocessing.managers.ListProxy.sort()
1110
+ #
1111
+ # Use list[SupportsRichComparisonT] for the first overload rather than [SupportsRichComparison]
1112
+ # to work around invariance
1113
+ @overload
1114
+ def sort(
1115
+ self: list[SupportsRichComparisonT], *, key: None = None, reverse: bool = False
1116
+ ) -> None: ...
1117
+ @overload
1118
+ def sort(
1119
+ self, *, key: Callable[[_T], SupportsRichComparison], reverse: bool = False
1120
+ ) -> None: ...
1121
+ def __len__(self) -> int: ...
1122
+ def __iter__(self) -> Iterator[_T]: ...
1123
+ __hash__: ClassVar[None] # type: ignore[assignment]
1124
+ @overload
1125
+ def __getitem__(self, __i: SupportsIndex) -> _T: ...
1126
+ @overload
1127
+ def __getitem__(self, __s: slice) -> list[_T]: ...
1128
+ @overload
1129
+ def __setitem__(self, __key: SupportsIndex, __value: _T) -> None: ...
1130
+ @overload
1131
+ def __setitem__(self, __key: slice, __value: Iterable[_T]) -> None: ...
1132
+ def __delitem__(self, __key: SupportsIndex | slice) -> None: ...
1133
+ # Overloading looks unnecessary, but is needed to work around complex mypy problems
1134
+ @overload
1135
+ def __add__(self, __value: list[_T]) -> list[_T]: ...
1136
+ @overload
1137
+ def __add__(self, __value: list[_S]) -> list[_S | _T]: ...
1138
+ def __iadd__(self, __value: Iterable[_T]) -> Self: ... # type: ignore[misc]
1139
+ def __mul__(self, __value: SupportsIndex) -> list[_T]: ...
1140
+ def __rmul__(self, __value: SupportsIndex) -> list[_T]: ...
1141
+ def __imul__(self, __value: SupportsIndex) -> Self: ...
1142
+ def __contains__(self, __key: object) -> bool: ...
1143
+ def __reversed__(self) -> Iterator[_T]: ...
1144
+ def __gt__(self, __value: list[_T]) -> bool: ...
1145
+ def __ge__(self, __value: list[_T]) -> bool: ...
1146
+ def __lt__(self, __value: list[_T]) -> bool: ...
1147
+ def __le__(self, __value: list[_T]) -> bool: ...
1148
+ def __eq__(self, __value: object) -> bool: ...
1149
+ if sys.version_info >= (3, 9):
1150
+ def __class_getitem__(cls, __item: Any) -> GenericAlias: ...
1151
+
1152
+ class dict(MutableMapping[_KT, _VT]):
1153
+ # __init__ should be kept roughly in line with `collections.UserDict.__init__`, which has similar semantics
1154
+ # Also multiprocessing.managers.SyncManager.dict()
1155
+ @overload
1156
+ def __init__(self) -> None: ...
1157
+ @overload
1158
+ def __init__(self: dict[str, _VT], **kwargs: _VT) -> None: ...
1159
+ @overload
1160
+ def __init__(self, __map: SupportsKeysAndGetItem[_KT, _VT]) -> None: ...
1161
+ @overload
1162
+ def __init__(
1163
+ self: dict[str, _VT], __map: SupportsKeysAndGetItem[str, _VT], **kwargs: _VT
1164
+ ) -> None: ...
1165
+ @overload
1166
+ def __init__(self, __iterable: Iterable[tuple[_KT, _VT]]) -> None: ...
1167
+ @overload
1168
+ def __init__(
1169
+ self: dict[str, _VT], __iterable: Iterable[tuple[str, _VT]], **kwargs: _VT
1170
+ ) -> None: ...
1171
+ # Next two overloads are for dict(string.split(sep) for string in iterable)
1172
+ # Cannot be Iterable[Sequence[_T]] or otherwise dict(["foo", "bar", "baz"]) is not an error
1173
+ @overload
1174
+ def __init__(self: dict[str, str], __iterable: Iterable[list[str]]) -> None: ...
1175
+ @overload
1176
+ def __init__(
1177
+ self: dict[bytes, bytes], __iterable: Iterable[list[bytes]]
1178
+ ) -> None: ...
1179
+ def __new__(cls, *args: Any, **kwargs: Any) -> Self: ...
1180
+ def copy(self) -> dict[_KT, _VT]: ...
1181
+ def keys(self) -> dict_keys[_KT, _VT]: ...
1182
+ def values(self) -> dict_values[_KT, _VT]: ...
1183
+ def items(self) -> dict_items[_KT, _VT]: ...
1184
+ # Signature of `dict.fromkeys` should be kept identical to `fromkeys` methods of `OrderedDict`/`ChainMap`/`UserDict` in `collections`
1185
+ # TODO: the true signature of `dict.fromkeys` is not expressible in the current type system.
1186
+ # See #3800 & https://github.com/python/typing/issues/548#issuecomment-683336963.
1187
+ @classmethod
1188
+ @overload
1189
+ def fromkeys(
1190
+ cls, __iterable: Iterable[_T], __value: None = None
1191
+ ) -> dict[_T, Any | None]: ...
1192
+ @classmethod
1193
+ @overload
1194
+ def fromkeys(cls, __iterable: Iterable[_T], __value: _S) -> dict[_T, _S]: ...
1195
+ # Positional-only in dict, but not in MutableMapping
1196
+ @overload # type: ignore[override]
1197
+ def get(self, __key: _KT) -> _VT | None: ...
1198
+ @overload
1199
+ def get(self, __key: _KT, __default: _VT) -> _VT: ...
1200
+ @overload
1201
+ def get(self, __key: _KT, __default: _T) -> _VT | _T: ...
1202
+ @overload
1203
+ def pop(self, __key: _KT) -> _VT: ...
1204
+ @overload
1205
+ def pop(self, __key: _KT, __default: _VT) -> _VT: ...
1206
+ @overload
1207
+ def pop(self, __key: _KT, __default: _T) -> _VT | _T: ...
1208
+ def __len__(self) -> int: ...
1209
+ def __getitem__(self, __key: _KT) -> _VT: ...
1210
+ def __setitem__(self, __key: _KT, __value: _VT) -> None: ...
1211
+ def __delitem__(self, __key: _KT) -> None: ...
1212
+ def __iter__(self) -> Iterator[_KT]: ...
1213
+ def __eq__(self, __value: object) -> bool: ...
1214
+ def __reversed__(self) -> Iterator[_KT]: ...
1215
+ __hash__: ClassVar[None] # type: ignore[assignment]
1216
+ if sys.version_info >= (3, 9):
1217
+ def __class_getitem__(cls, __item: Any) -> GenericAlias: ...
1218
+ @overload
1219
+ def __or__(self, __value: dict[_KT, _VT]) -> dict[_KT, _VT]: ...
1220
+ @overload
1221
+ def __or__(self, __value: dict[_T1, _T2]) -> dict[_KT | _T1, _VT | _T2]: ...
1222
+ @overload
1223
+ def __ror__(self, __value: dict[_KT, _VT]) -> dict[_KT, _VT]: ...
1224
+ @overload
1225
+ def __ror__(self, __value: dict[_T1, _T2]) -> dict[_KT | _T1, _VT | _T2]: ...
1226
+ # dict.__ior__ should be kept roughly in line with MutableMapping.update()
1227
+ @overload # type: ignore[misc]
1228
+ def __ior__(self, __value: SupportsKeysAndGetItem[_KT, _VT]) -> Self: ...
1229
+ @overload
1230
+ def __ior__(self, __value: Iterable[tuple[_KT, _VT]]) -> Self: ...
1231
+
1232
+ class set(MutableSet[_T]):
1233
+ @overload
1234
+ def __init__(self) -> None: ...
1235
+ @overload
1236
+ def __init__(self, __iterable: Iterable[_T]) -> None: ...
1237
+ def add(self, __element: _T) -> None: ...
1238
+ def copy(self) -> set[_T]: ...
1239
+ def difference(self, *s: Iterable[Any]) -> set[_T]: ...
1240
+ def difference_update(self, *s: Iterable[Any]) -> None: ...
1241
+ def discard(self, __element: _T) -> None: ...
1242
+ def intersection(self, *s: Iterable[Any]) -> set[_T]: ...
1243
+ def intersection_update(self, *s: Iterable[Any]) -> None: ...
1244
+ def isdisjoint(self, __s: Iterable[Any]) -> bool: ...
1245
+ def issubset(self, __s: Iterable[Any]) -> bool: ...
1246
+ def issuperset(self, __s: Iterable[Any]) -> bool: ...
1247
+ def remove(self, __element: _T) -> None: ...
1248
+ def symmetric_difference(self, __s: Iterable[_T]) -> set[_T]: ...
1249
+ def symmetric_difference_update(self, __s: Iterable[_T]) -> None: ...
1250
+ def union(self, *s: Iterable[_S]) -> set[_T | _S]: ...
1251
+ def update(self, *s: Iterable[_T]) -> None: ...
1252
+ def __len__(self) -> int: ...
1253
+ def __contains__(self, __o: object) -> bool: ...
1254
+ def __iter__(self) -> Iterator[_T]: ...
1255
+ def __and__(self, __value: AbstractSet[object]) -> set[_T]: ...
1256
+ def __iand__(self, __value: AbstractSet[object]) -> Self: ...
1257
+ def __or__(self, __value: AbstractSet[_S]) -> set[_T | _S]: ...
1258
+ def __ior__(self, __value: AbstractSet[_T]) -> Self: ... # type: ignore[override,misc]
1259
+ def __sub__(self, __value: AbstractSet[_T | None]) -> set[_T]: ...
1260
+ def __isub__(self, __value: AbstractSet[object]) -> Self: ...
1261
+ def __xor__(self, __value: AbstractSet[_S]) -> set[_T | _S]: ...
1262
+ def __ixor__(self, __value: AbstractSet[_T]) -> Self: ... # type: ignore[override,misc]
1263
+ def __le__(self, __value: AbstractSet[object]) -> bool: ...
1264
+ def __lt__(self, __value: AbstractSet[object]) -> bool: ...
1265
+ def __ge__(self, __value: AbstractSet[object]) -> bool: ...
1266
+ def __gt__(self, __value: AbstractSet[object]) -> bool: ...
1267
+ def __eq__(self, __value: object) -> bool: ...
1268
+ __hash__: ClassVar[None] # type: ignore[assignment]
1269
+ if sys.version_info >= (3, 9):
1270
+ def __class_getitem__(cls, __item: Any) -> GenericAlias: ...
1271
+
1272
+ class frozenset(AbstractSet[_T_co]):
1273
+ @overload
1274
+ def __new__(cls) -> Self: ...
1275
+ @overload
1276
+ def __new__(cls, __iterable: Iterable[_T_co]) -> Self: ...
1277
+ def copy(self) -> frozenset[_T_co]: ...
1278
+ def difference(self, *s: Iterable[object]) -> frozenset[_T_co]: ...
1279
+ def intersection(self, *s: Iterable[object]) -> frozenset[_T_co]: ...
1280
+ def isdisjoint(self, __s: Iterable[_T_co]) -> bool: ...
1281
+ def issubset(self, __s: Iterable[object]) -> bool: ...
1282
+ def issuperset(self, __s: Iterable[object]) -> bool: ...
1283
+ def symmetric_difference(self, __s: Iterable[_T_co]) -> frozenset[_T_co]: ...
1284
+ def union(self, *s: Iterable[_S]) -> frozenset[_T_co | _S]: ...
1285
+ def __len__(self) -> int: ...
1286
+ def __contains__(self, __o: object) -> bool: ...
1287
+ def __iter__(self) -> Iterator[_T_co]: ...
1288
+ def __and__(self, __value: AbstractSet[_T_co]) -> frozenset[_T_co]: ...
1289
+ def __or__(self, __value: AbstractSet[_S]) -> frozenset[_T_co | _S]: ...
1290
+ def __sub__(self, __value: AbstractSet[_T_co]) -> frozenset[_T_co]: ...
1291
+ def __xor__(self, __value: AbstractSet[_S]) -> frozenset[_T_co | _S]: ...
1292
+ def __le__(self, __value: AbstractSet[object]) -> bool: ...
1293
+ def __lt__(self, __value: AbstractSet[object]) -> bool: ...
1294
+ def __ge__(self, __value: AbstractSet[object]) -> bool: ...
1295
+ def __gt__(self, __value: AbstractSet[object]) -> bool: ...
1296
+ def __eq__(self, __value: object) -> bool: ...
1297
+ def __hash__(self) -> int: ...
1298
+ if sys.version_info >= (3, 9):
1299
+ def __class_getitem__(cls, __item: Any) -> GenericAlias: ...
1300
+
1301
+ class enumerate(Iterator[tuple[int, _T]]):
1302
+ def __new__(cls, iterable: Iterable[_T], start: int = ...) -> Self: ...
1303
+ def __iter__(self) -> Self: ...
1304
+ def __next__(self) -> tuple[int, _T]: ...
1305
+ if sys.version_info >= (3, 9):
1306
+ def __class_getitem__(cls, __item: Any) -> GenericAlias: ...
1307
+
1308
+ @final
1309
+ class range(Sequence[int]):
1310
+ @property
1311
+ def start(self) -> int: ...
1312
+ @property
1313
+ def stop(self) -> int: ...
1314
+ @property
1315
+ def step(self) -> int: ...
1316
+ @overload
1317
+ def __new__(cls, __stop: SupportsIndex) -> Self: ...
1318
+ @overload
1319
+ def __new__(
1320
+ cls, __start: SupportsIndex, __stop: SupportsIndex, __step: SupportsIndex = ...
1321
+ ) -> Self: ...
1322
+ def count(self, __value: int) -> int: ...
1323
+ def index(self, __value: int) -> int: ... # type: ignore[override]
1324
+ def __len__(self) -> int: ...
1325
+ def __eq__(self, __value: object) -> bool: ...
1326
+ def __hash__(self) -> int: ...
1327
+ def __contains__(self, __key: object) -> bool: ...
1328
+ def __iter__(self) -> Iterator[int]: ...
1329
+ @overload
1330
+ def __getitem__(self, __key: SupportsIndex) -> int: ...
1331
+ @overload
1332
+ def __getitem__(self, __key: slice) -> range: ...
1333
+ def __reversed__(self) -> Iterator[int]: ...
1334
+
1335
+ class property:
1336
+ fget: Callable[[Any], Any] | None
1337
+ fset: Callable[[Any, Any], None] | None
1338
+ fdel: Callable[[Any], None] | None
1339
+ __isabstractmethod__: bool
1340
+ def __init__(
1341
+ self,
1342
+ fget: Callable[[Any], Any] | None = ...,
1343
+ fset: Callable[[Any, Any], None] | None = ...,
1344
+ fdel: Callable[[Any], None] | None = ...,
1345
+ doc: str | None = ...,
1346
+ ) -> None: ...
1347
+ def getter(self, __fget: Callable[[Any], Any]) -> property: ...
1348
+ def setter(self, __fset: Callable[[Any, Any], None]) -> property: ...
1349
+ def deleter(self, __fdel: Callable[[Any], None]) -> property: ...
1350
+ def __get__(self, __instance: Any, __owner: type | None = None) -> Any: ...
1351
+ def __set__(self, __instance: Any, __value: Any) -> None: ...
1352
+ def __delete__(self, __instance: Any) -> None: ...
1353
+
1354
+ @final
1355
+ class _NotImplementedType(Any):
1356
+ # A little weird, but typing the __call__ as NotImplemented makes the error message
1357
+ # for NotImplemented() much better
1358
+ __call__: NotImplemented # type: ignore[valid-type] # pyright: ignore[reportGeneralTypeIssues]
1359
+
1360
+ NotImplemented: _NotImplementedType
1361
+
1362
+ def abs(__x: SupportsAbs[_T]) -> _T: ...
1363
+ def all(__iterable: Iterable[object]) -> bool: ...
1364
+ def any(__iterable: Iterable[object]) -> bool: ...
1365
+ def ascii(__obj: object) -> str: ...
1366
+ def bin(__number: int | SupportsIndex) -> str: ...
1367
+ def breakpoint(*args: Any, **kws: Any) -> None: ...
1368
+ def callable(__obj: object) -> TypeGuard[Callable[..., object]]: ...
1369
+ def chr(__i: int) -> str: ...
1370
+
1371
+ # We define this here instead of using os.PathLike to avoid import cycle issues.
1372
+ # See https://github.com/python/typeshed/pull/991#issuecomment-288160993
1373
+ class _PathLike(Protocol[AnyStr_co]):
1374
+ def __fspath__(self) -> AnyStr_co: ...
1375
+
1376
+ if sys.version_info >= (3, 10):
1377
+ def aiter(__async_iterable: SupportsAiter[_SupportsAnextT]) -> _SupportsAnextT: ...
1378
+
1379
+ class _SupportsSynchronousAnext(Protocol[_AwaitableT_co]):
1380
+ def __anext__(self) -> _AwaitableT_co: ...
1381
+
1382
+ @overload
1383
+ # `anext` is not, in fact, an async function. When default is not provided
1384
+ # `anext` is just a passthrough for `obj.__anext__`
1385
+ # See discussion in #7491 and pure-Python implementation of `anext` at https://github.com/python/cpython/blob/ea786a882b9ed4261eafabad6011bc7ef3b5bf94/Lib/test/test_asyncgen.py#L52-L80
1386
+ def anext(__i: _SupportsSynchronousAnext[_AwaitableT]) -> _AwaitableT: ...
1387
+ @overload
1388
+ async def anext(__i: SupportsAnext[_T], __default: _VT) -> _T | _VT: ...
1389
+
1390
+ # compile() returns a CodeType, unless the flags argument includes PyCF_ONLY_AST (=1024),
1391
+ # in which case it returns ast.AST. We have overloads for flag 0 (the default) and for
1392
+ # explicitly passing PyCF_ONLY_AST. We fall back to Any for other values of flags.
1393
+ @overload
1394
+ def compile(
1395
+ source: str | ReadableBuffer | _ast.Module | _ast.Expression | _ast.Interactive,
1396
+ filename: str | ReadableBuffer | _PathLike[Any],
1397
+ mode: str,
1398
+ flags: Literal[0],
1399
+ dont_inherit: bool = False,
1400
+ optimize: int = -1,
1401
+ *,
1402
+ _feature_version: int = -1,
1403
+ ) -> CodeType: ...
1404
+ @overload
1405
+ def compile(
1406
+ source: str | ReadableBuffer | _ast.Module | _ast.Expression | _ast.Interactive,
1407
+ filename: str | ReadableBuffer | _PathLike[Any],
1408
+ mode: str,
1409
+ *,
1410
+ dont_inherit: bool = False,
1411
+ optimize: int = -1,
1412
+ _feature_version: int = -1,
1413
+ ) -> CodeType: ...
1414
+ @overload
1415
+ def compile(
1416
+ source: str | ReadableBuffer | _ast.Module | _ast.Expression | _ast.Interactive,
1417
+ filename: str | ReadableBuffer | _PathLike[Any],
1418
+ mode: str,
1419
+ flags: Literal[1024],
1420
+ dont_inherit: bool = False,
1421
+ optimize: int = -1,
1422
+ *,
1423
+ _feature_version: int = -1,
1424
+ ) -> _ast.AST: ...
1425
+ @overload
1426
+ def compile(
1427
+ source: str | ReadableBuffer | _ast.Module | _ast.Expression | _ast.Interactive,
1428
+ filename: str | ReadableBuffer | _PathLike[Any],
1429
+ mode: str,
1430
+ flags: int,
1431
+ dont_inherit: bool = False,
1432
+ optimize: int = -1,
1433
+ *,
1434
+ _feature_version: int = -1,
1435
+ ) -> Any: ...
1436
+ def copyright() -> None: ...
1437
+ def credits() -> None: ...
1438
+ def delattr(__obj: object, __name: str) -> None: ...
1439
+ def dir(__o: object = ...) -> list[str]: ...
1440
+ @overload
1441
+ def divmod(__x: SupportsDivMod[_T_contra, _T_co], __y: _T_contra) -> _T_co: ...
1442
+ @overload
1443
+ def divmod(__x: _T_contra, __y: SupportsRDivMod[_T_contra, _T_co]) -> _T_co: ...
1444
+
1445
+ # The `globals` argument to `eval` has to be `dict[str, Any]` rather than `dict[str, object]` due to invariance.
1446
+ # (The `globals` argument has to be a "real dict", rather than any old mapping, unlike the `locals` argument.)
1447
+ def eval(
1448
+ __source: str | ReadableBuffer | CodeType,
1449
+ __globals: dict[str, Any] | None = None,
1450
+ __locals: Mapping[str, object] | None = None,
1451
+ ) -> Any: ...
1452
+
1453
+ # Comment above regarding `eval` applies to `exec` as well
1454
+ if sys.version_info >= (3, 11):
1455
+ def exec(
1456
+ __source: str | ReadableBuffer | CodeType,
1457
+ __globals: dict[str, Any] | None = None,
1458
+ __locals: Mapping[str, object] | None = None,
1459
+ *,
1460
+ closure: tuple[_Cell, ...] | None = None,
1461
+ ) -> None: ...
1462
+
1463
+ else:
1464
+ def exec(
1465
+ __source: str | ReadableBuffer | CodeType,
1466
+ __globals: dict[str, Any] | None = None,
1467
+ __locals: Mapping[str, object] | None = None,
1468
+ ) -> None: ...
1469
+
1470
+ def exit(code: sys._ExitCode = None) -> NoReturn: ...
1471
+
1472
+ class filter(Iterator[_T]):
1473
+ @overload
1474
+ def __new__(cls, __function: None, __iterable: Iterable[_T | None]) -> Self: ...
1475
+ @overload
1476
+ def __new__(
1477
+ cls, __function: Callable[[_S], TypeGuard[_T]], __iterable: Iterable[_S]
1478
+ ) -> Self: ...
1479
+ @overload
1480
+ def __new__(
1481
+ cls, __function: Callable[[_T], Any], __iterable: Iterable[_T]
1482
+ ) -> Self: ...
1483
+ def __iter__(self) -> Self: ...
1484
+ def __next__(self) -> _T: ...
1485
+
1486
+ def format(__value: object, __format_spec: str = "") -> str: ...
1487
+ @overload
1488
+ def getattr(__o: object, __name: str) -> Any: ...
1489
+
1490
+ # While technically covered by the last overload, spelling out the types for None, bool
1491
+ # and basic containers help mypy out in some tricky situations involving type context
1492
+ # (aka bidirectional inference)
1493
+ @overload
1494
+ def getattr(__o: object, __name: str, __default: None) -> Any | None: ...
1495
+ @overload
1496
+ def getattr(__o: object, __name: str, __default: bool) -> Any | bool: ...
1497
+ @overload
1498
+ def getattr(__o: object, __name: str, __default: list[Any]) -> Any | list[Any]: ...
1499
+ @overload
1500
+ def getattr(
1501
+ __o: object, __name: str, __default: dict[Any, Any]
1502
+ ) -> Any | dict[Any, Any]: ...
1503
+ @overload
1504
+ def getattr(__o: object, __name: str, __default: _T) -> Any | _T: ...
1505
+ def globals() -> dict[str, Any]: ...
1506
+ def hasattr(__obj: object, __name: str) -> bool: ...
1507
+ def hash(__obj: object) -> int: ...
1508
+ def help(request: object = ...) -> None: ...
1509
+ def hex(__number: int | SupportsIndex) -> str: ...
1510
+ def id(__obj: object) -> int: ...
1511
+ def input(__prompt: object = "") -> str: ...
1512
+
1513
+ class _GetItemIterable(Protocol[_T_co]):
1514
+ def __getitem__(self, __i: int) -> _T_co: ...
1515
+
1516
+ @overload
1517
+ def iter(__object: SupportsIter[_SupportsNextT]) -> _SupportsNextT: ...
1518
+ @overload
1519
+ def iter(__object: _GetItemIterable[_T]) -> Iterator[_T]: ...
1520
+ @overload
1521
+ def iter(__object: Callable[[], _T | None], __sentinel: None) -> Iterator[_T]: ...
1522
+ @overload
1523
+ def iter(__object: Callable[[], _T], __sentinel: object) -> Iterator[_T]: ...
1524
+
1525
+ # Keep this alias in sync with unittest.case._ClassInfo
1526
+ if sys.version_info >= (3, 10):
1527
+ _ClassInfo: TypeAlias = type | types.UnionType | tuple[_ClassInfo, ...]
1528
+ else:
1529
+ _ClassInfo: TypeAlias = type | tuple[_ClassInfo, ...]
1530
+
1531
+ def isinstance(__obj: object, __class_or_tuple: _ClassInfo) -> bool: ...
1532
+ def issubclass(__cls: type, __class_or_tuple: _ClassInfo) -> bool: ...
1533
+ def len(__obj: Sized) -> int: ...
1534
+ def license() -> None: ...
1535
+ def locals() -> dict[str, Any]: ...
1536
+
1537
+ class map(Iterator[_S]):
1538
+ @overload
1539
+ def __new__(cls, __func: Callable[[_T1], _S], __iter1: Iterable[_T1]) -> Self: ...
1540
+ @overload
1541
+ def __new__(
1542
+ cls,
1543
+ __func: Callable[[_T1, _T2], _S],
1544
+ __iter1: Iterable[_T1],
1545
+ __iter2: Iterable[_T2],
1546
+ ) -> Self: ...
1547
+ @overload
1548
+ def __new__(
1549
+ cls,
1550
+ __func: Callable[[_T1, _T2, _T3], _S],
1551
+ __iter1: Iterable[_T1],
1552
+ __iter2: Iterable[_T2],
1553
+ __iter3: Iterable[_T3],
1554
+ ) -> Self: ...
1555
+ @overload
1556
+ def __new__(
1557
+ cls,
1558
+ __func: Callable[[_T1, _T2, _T3, _T4], _S],
1559
+ __iter1: Iterable[_T1],
1560
+ __iter2: Iterable[_T2],
1561
+ __iter3: Iterable[_T3],
1562
+ __iter4: Iterable[_T4],
1563
+ ) -> Self: ...
1564
+ @overload
1565
+ def __new__(
1566
+ cls,
1567
+ __func: Callable[[_T1, _T2, _T3, _T4, _T5], _S],
1568
+ __iter1: Iterable[_T1],
1569
+ __iter2: Iterable[_T2],
1570
+ __iter3: Iterable[_T3],
1571
+ __iter4: Iterable[_T4],
1572
+ __iter5: Iterable[_T5],
1573
+ ) -> Self: ...
1574
+ @overload
1575
+ def __new__(
1576
+ cls,
1577
+ __func: Callable[..., _S],
1578
+ __iter1: Iterable[Any],
1579
+ __iter2: Iterable[Any],
1580
+ __iter3: Iterable[Any],
1581
+ __iter4: Iterable[Any],
1582
+ __iter5: Iterable[Any],
1583
+ __iter6: Iterable[Any],
1584
+ *iterables: Iterable[Any],
1585
+ ) -> Self: ...
1586
+ def __iter__(self) -> Self: ...
1587
+ def __next__(self) -> _S: ...
1588
+
1589
+ @overload
1590
+ def max(
1591
+ __arg1: SupportsRichComparisonT,
1592
+ __arg2: SupportsRichComparisonT,
1593
+ *_args: SupportsRichComparisonT,
1594
+ key: None = None,
1595
+ ) -> SupportsRichComparisonT: ...
1596
+ @overload
1597
+ def max(
1598
+ __arg1: _T, __arg2: _T, *_args: _T, key: Callable[[_T], SupportsRichComparison]
1599
+ ) -> _T: ...
1600
+ @overload
1601
+ def max(
1602
+ __iterable: Iterable[SupportsRichComparisonT], *, key: None = None
1603
+ ) -> SupportsRichComparisonT: ...
1604
+ @overload
1605
+ def max(
1606
+ __iterable: Iterable[_T], *, key: Callable[[_T], SupportsRichComparison]
1607
+ ) -> _T: ...
1608
+ @overload
1609
+ def max(
1610
+ __iterable: Iterable[SupportsRichComparisonT], *, key: None = None, default: _T
1611
+ ) -> SupportsRichComparisonT | _T: ...
1612
+ @overload
1613
+ def max(
1614
+ __iterable: Iterable[_T1],
1615
+ *,
1616
+ key: Callable[[_T1], SupportsRichComparison],
1617
+ default: _T2,
1618
+ ) -> _T1 | _T2: ...
1619
+ @overload
1620
+ def min(
1621
+ __arg1: SupportsRichComparisonT,
1622
+ __arg2: SupportsRichComparisonT,
1623
+ *_args: SupportsRichComparisonT,
1624
+ key: None = None,
1625
+ ) -> SupportsRichComparisonT: ...
1626
+ @overload
1627
+ def min(
1628
+ __arg1: _T, __arg2: _T, *_args: _T, key: Callable[[_T], SupportsRichComparison]
1629
+ ) -> _T: ...
1630
+ @overload
1631
+ def min(
1632
+ __iterable: Iterable[SupportsRichComparisonT], *, key: None = None
1633
+ ) -> SupportsRichComparisonT: ...
1634
+ @overload
1635
+ def min(
1636
+ __iterable: Iterable[_T], *, key: Callable[[_T], SupportsRichComparison]
1637
+ ) -> _T: ...
1638
+ @overload
1639
+ def min(
1640
+ __iterable: Iterable[SupportsRichComparisonT], *, key: None = None, default: _T
1641
+ ) -> SupportsRichComparisonT | _T: ...
1642
+ @overload
1643
+ def min(
1644
+ __iterable: Iterable[_T1],
1645
+ *,
1646
+ key: Callable[[_T1], SupportsRichComparison],
1647
+ default: _T2,
1648
+ ) -> _T1 | _T2: ...
1649
+ @overload
1650
+ def next(__i: SupportsNext[_T]) -> _T: ...
1651
+ @overload
1652
+ def next(__i: SupportsNext[_T], __default: _VT) -> _T | _VT: ...
1653
+ def oct(__number: int | SupportsIndex) -> str: ...
1654
+
1655
+ _Opener: TypeAlias = Callable[[str, int], int]
1656
+
1657
+ # Text mode: always returns a TextIOWrapper
1658
+ @overload
1659
+ def open(
1660
+ file: FileDescriptorOrPath,
1661
+ mode: OpenTextMode = "r",
1662
+ buffering: int = -1,
1663
+ encoding: str | None = None,
1664
+ errors: str | None = None,
1665
+ newline: str | None = None,
1666
+ closefd: bool = True,
1667
+ opener: _Opener | None = None,
1668
+ ) -> TextIOWrapper: ...
1669
+
1670
+ # Unbuffered binary mode: returns a FileIO
1671
+ @overload
1672
+ def open(
1673
+ file: FileDescriptorOrPath,
1674
+ mode: OpenBinaryMode,
1675
+ buffering: Literal[0],
1676
+ encoding: None = None,
1677
+ errors: None = None,
1678
+ newline: None = None,
1679
+ closefd: bool = True,
1680
+ opener: _Opener | None = None,
1681
+ ) -> FileIO: ...
1682
+
1683
+ # Buffering is on: return BufferedRandom, BufferedReader, or BufferedWriter
1684
+ @overload
1685
+ def open(
1686
+ file: FileDescriptorOrPath,
1687
+ mode: OpenBinaryModeUpdating,
1688
+ buffering: Literal[-1, 1] = -1,
1689
+ encoding: None = None,
1690
+ errors: None = None,
1691
+ newline: None = None,
1692
+ closefd: bool = True,
1693
+ opener: _Opener | None = None,
1694
+ ) -> BufferedRandom: ...
1695
+ @overload
1696
+ def open(
1697
+ file: FileDescriptorOrPath,
1698
+ mode: OpenBinaryModeWriting,
1699
+ buffering: Literal[-1, 1] = -1,
1700
+ encoding: None = None,
1701
+ errors: None = None,
1702
+ newline: None = None,
1703
+ closefd: bool = True,
1704
+ opener: _Opener | None = None,
1705
+ ) -> BufferedWriter: ...
1706
+ @overload
1707
+ def open(
1708
+ file: FileDescriptorOrPath,
1709
+ mode: OpenBinaryModeReading,
1710
+ buffering: Literal[-1, 1] = -1,
1711
+ encoding: None = None,
1712
+ errors: None = None,
1713
+ newline: None = None,
1714
+ closefd: bool = True,
1715
+ opener: _Opener | None = None,
1716
+ ) -> BufferedReader: ...
1717
+
1718
+ # Buffering cannot be determined: fall back to BinaryIO
1719
+ @overload
1720
+ def open(
1721
+ file: FileDescriptorOrPath,
1722
+ mode: OpenBinaryMode,
1723
+ buffering: int = -1,
1724
+ encoding: None = None,
1725
+ errors: None = None,
1726
+ newline: None = None,
1727
+ closefd: bool = True,
1728
+ opener: _Opener | None = None,
1729
+ ) -> BinaryIO: ...
1730
+
1731
+ # Fallback if mode is not specified
1732
+ @overload
1733
+ def open(
1734
+ file: FileDescriptorOrPath,
1735
+ mode: str,
1736
+ buffering: int = -1,
1737
+ encoding: str | None = None,
1738
+ errors: str | None = None,
1739
+ newline: str | None = None,
1740
+ closefd: bool = True,
1741
+ opener: _Opener | None = None,
1742
+ ) -> IO[Any]: ...
1743
+ def ord(__c: str | bytes | bytearray) -> int: ...
1744
+
1745
+ class _SupportsWriteAndFlush(
1746
+ SupportsWrite[_T_contra], SupportsFlush, Protocol[_T_contra]
1747
+ ): ...
1748
+
1749
+ @overload
1750
+ def print(
1751
+ *values: object,
1752
+ sep: str | None = " ",
1753
+ end: str | None = "\n",
1754
+ file: SupportsWrite[str] | None = None,
1755
+ flush: Literal[False] = False,
1756
+ ) -> None: ...
1757
+ @overload
1758
+ def print(
1759
+ *values: object,
1760
+ sep: str | None = " ",
1761
+ end: str | None = "\n",
1762
+ file: _SupportsWriteAndFlush[str] | None = None,
1763
+ flush: bool,
1764
+ ) -> None: ...
1765
+
1766
+ _E = TypeVar("_E", contravariant=True)
1767
+ _M = TypeVar("_M", contravariant=True)
1768
+
1769
+ class _SupportsPow2(Protocol[_E, _T_co]):
1770
+ def __pow__(self, __other: _E) -> _T_co: ...
1771
+
1772
+ class _SupportsPow3NoneOnly(Protocol[_E, _T_co]):
1773
+ def __pow__(self, __other: _E, __modulo: None = None) -> _T_co: ...
1774
+
1775
+ class _SupportsPow3(Protocol[_E, _M, _T_co]):
1776
+ def __pow__(self, __other: _E, __modulo: _M) -> _T_co: ...
1777
+
1778
+ _SupportsSomeKindOfPow = ( # noqa: Y026 # TODO: Use TypeAlias once mypy bugs are fixed
1779
+ _SupportsPow2[Any, Any]
1780
+ | _SupportsPow3NoneOnly[Any, Any]
1781
+ | _SupportsPow3[Any, Any, Any]
1782
+ )
1783
+
1784
+ # TODO: `pow(int, int, Literal[0])` fails at runtime,
1785
+ # but adding a `NoReturn` overload isn't a good solution for expressing that (see #8566).
1786
+ @overload
1787
+ def pow(base: int, exp: int, mod: int) -> int: ...
1788
+ @overload
1789
+ def pow(base: int, exp: Literal[0], mod: None = None) -> Literal[1]: ...
1790
+ @overload
1791
+ def pow(base: int, exp: _PositiveInteger, mod: None = None) -> int: ...
1792
+ @overload
1793
+ def pow(base: int, exp: _NegativeInteger, mod: None = None) -> float: ...
1794
+
1795
+ # int base & positive-int exp -> int; int base & negative-int exp -> float
1796
+ # return type must be Any as `int | float` causes too many false-positive errors
1797
+ @overload
1798
+ def pow(base: int, exp: int, mod: None = None) -> Any: ...
1799
+ @overload
1800
+ def pow(base: _PositiveInteger, exp: float, mod: None = None) -> float: ...
1801
+ @overload
1802
+ def pow(base: _NegativeInteger, exp: float, mod: None = None) -> complex: ...
1803
+ @overload
1804
+ def pow(base: float, exp: int, mod: None = None) -> float: ...
1805
+
1806
+ # float base & float exp could return float or complex
1807
+ # return type must be Any (same as complex base, complex exp),
1808
+ # as `float | complex` causes too many false-positive errors
1809
+ @overload
1810
+ def pow(
1811
+ base: float, exp: complex | _SupportsSomeKindOfPow, mod: None = None
1812
+ ) -> Any: ...
1813
+ @overload
1814
+ def pow(
1815
+ base: complex, exp: complex | _SupportsSomeKindOfPow, mod: None = None
1816
+ ) -> complex: ...
1817
+ @overload
1818
+ def pow(base: _SupportsPow2[_E, _T_co], exp: _E, mod: None = None) -> _T_co: ...
1819
+ @overload
1820
+ def pow(base: _SupportsPow3NoneOnly[_E, _T_co], exp: _E, mod: None = None) -> _T_co: ...
1821
+ @overload
1822
+ def pow(base: _SupportsPow3[_E, _M, _T_co], exp: _E, mod: _M) -> _T_co: ...
1823
+ @overload
1824
+ def pow(base: _SupportsSomeKindOfPow, exp: float, mod: None = None) -> Any: ...
1825
+ @overload
1826
+ def pow(base: _SupportsSomeKindOfPow, exp: complex, mod: None = None) -> complex: ...
1827
+ def quit(code: sys._ExitCode = None) -> NoReturn: ...
1828
+
1829
+ class reversed(Iterator[_T]):
1830
+ @overload
1831
+ def __init__(self, __sequence: Reversible[_T]) -> None: ...
1832
+ @overload
1833
+ def __init__(self, __sequence: SupportsLenAndGetItem[_T]) -> None: ...
1834
+ def __iter__(self) -> Self: ...
1835
+ def __next__(self) -> _T: ...
1836
+ def __length_hint__(self) -> int: ...
1837
+
1838
+ def repr(__obj: object) -> str: ...
1839
+
1840
+ # See https://github.com/python/typeshed/pull/9141
1841
+ # and https://github.com/python/typeshed/pull/9151
1842
+ # on why we don't use `SupportsRound` from `typing.pyi`
1843
+
1844
+ class _SupportsRound1(Protocol[_T_co]):
1845
+ def __round__(self) -> _T_co: ...
1846
+
1847
+ class _SupportsRound2(Protocol[_T_co]):
1848
+ def __round__(self, __ndigits: int) -> _T_co: ...
1849
+
1850
+ @overload
1851
+ def round(number: _SupportsRound1[_T], ndigits: None = None) -> _T: ...
1852
+ @overload
1853
+ def round(number: _SupportsRound2[_T], ndigits: SupportsIndex) -> _T: ...
1854
+
1855
+ # See https://github.com/python/typeshed/pull/6292#discussion_r748875189
1856
+ # for why arg 3 of `setattr` should be annotated with `Any` and not `object`
1857
+ def setattr(__obj: object, __name: str, __value: Any) -> None: ...
1858
+ @overload
1859
+ def sorted(
1860
+ __iterable: Iterable[SupportsRichComparisonT],
1861
+ *,
1862
+ key: None = None,
1863
+ reverse: bool = False,
1864
+ ) -> list[SupportsRichComparisonT]: ...
1865
+ @overload
1866
+ def sorted(
1867
+ __iterable: Iterable[_T],
1868
+ *,
1869
+ key: Callable[[_T], SupportsRichComparison],
1870
+ reverse: bool = False,
1871
+ ) -> list[_T]: ...
1872
+
1873
+ _AddableT1 = TypeVar("_AddableT1", bound=SupportsAdd[Any, Any])
1874
+ _AddableT2 = TypeVar("_AddableT2", bound=SupportsAdd[Any, Any])
1875
+
1876
+ class _SupportsSumWithNoDefaultGiven(
1877
+ SupportsAdd[Any, Any], SupportsRAdd[int, Any], Protocol
1878
+ ): ...
1879
+
1880
+ _SupportsSumNoDefaultT = TypeVar(
1881
+ "_SupportsSumNoDefaultT", bound=_SupportsSumWithNoDefaultGiven
1882
+ )
1883
+
1884
+ # In general, the return type of `x + x` is *not* guaranteed to be the same type as x.
1885
+ # However, we can't express that in the stub for `sum()`
1886
+ # without creating many false-positive errors (see #7578).
1887
+ # Instead, we special-case the most common examples of this: bool and literal integers.
1888
+ @overload
1889
+ def sum(__iterable: Iterable[bool], start: int = 0) -> int: ... # type: ignore[overload-overlap]
1890
+ @overload
1891
+ def sum(
1892
+ __iterable: Iterable[_SupportsSumNoDefaultT],
1893
+ ) -> _SupportsSumNoDefaultT | Literal[0]: ...
1894
+ @overload
1895
+ def sum(
1896
+ __iterable: Iterable[_AddableT1], start: _AddableT2
1897
+ ) -> _AddableT1 | _AddableT2: ...
1898
+
1899
+ # The argument to `vars()` has to have a `__dict__` attribute, so the second overload can't be annotated with `object`
1900
+ # (A "SupportsDunderDict" protocol doesn't work)
1901
+ # Use a type: ignore to make complaints about overlapping overloads go away
1902
+ @overload
1903
+ def vars(__object: type) -> types.MappingProxyType[str, Any]: ... # type: ignore[overload-overlap]
1904
+ @overload
1905
+ def vars(__object: Any = ...) -> dict[str, Any]: ...
1906
+
1907
+ class zip(Iterator[_T_co]):
1908
+ if sys.version_info >= (3, 10):
1909
+ @overload
1910
+ def __new__(cls, *, strict: bool = ...) -> zip[Any]: ...
1911
+ @overload
1912
+ def __new__(
1913
+ cls, __iter1: Iterable[_T1], *, strict: bool = ...
1914
+ ) -> zip[tuple[_T1]]: ...
1915
+ @overload
1916
+ def __new__(
1917
+ cls, __iter1: Iterable[_T1], __iter2: Iterable[_T2], *, strict: bool = ...
1918
+ ) -> zip[tuple[_T1, _T2]]: ...
1919
+ @overload
1920
+ def __new__(
1921
+ cls,
1922
+ __iter1: Iterable[_T1],
1923
+ __iter2: Iterable[_T2],
1924
+ __iter3: Iterable[_T3],
1925
+ *,
1926
+ strict: bool = ...,
1927
+ ) -> zip[tuple[_T1, _T2, _T3]]: ...
1928
+ @overload
1929
+ def __new__(
1930
+ cls,
1931
+ __iter1: Iterable[_T1],
1932
+ __iter2: Iterable[_T2],
1933
+ __iter3: Iterable[_T3],
1934
+ __iter4: Iterable[_T4],
1935
+ *,
1936
+ strict: bool = ...,
1937
+ ) -> zip[tuple[_T1, _T2, _T3, _T4]]: ...
1938
+ @overload
1939
+ def __new__(
1940
+ cls,
1941
+ __iter1: Iterable[_T1],
1942
+ __iter2: Iterable[_T2],
1943
+ __iter3: Iterable[_T3],
1944
+ __iter4: Iterable[_T4],
1945
+ __iter5: Iterable[_T5],
1946
+ *,
1947
+ strict: bool = ...,
1948
+ ) -> zip[tuple[_T1, _T2, _T3, _T4, _T5]]: ...
1949
+ @overload
1950
+ def __new__(
1951
+ cls,
1952
+ __iter1: Iterable[Any],
1953
+ __iter2: Iterable[Any],
1954
+ __iter3: Iterable[Any],
1955
+ __iter4: Iterable[Any],
1956
+ __iter5: Iterable[Any],
1957
+ __iter6: Iterable[Any],
1958
+ *iterables: Iterable[Any],
1959
+ strict: bool = ...,
1960
+ ) -> zip[tuple[Any, ...]]: ...
1961
+ else:
1962
+ @overload
1963
+ def __new__(cls) -> zip[Any]: ...
1964
+ @overload
1965
+ def __new__(cls, __iter1: Iterable[_T1]) -> zip[tuple[_T1]]: ...
1966
+ @overload
1967
+ def __new__(
1968
+ cls, __iter1: Iterable[_T1], __iter2: Iterable[_T2]
1969
+ ) -> zip[tuple[_T1, _T2]]: ...
1970
+ @overload
1971
+ def __new__(
1972
+ cls, __iter1: Iterable[_T1], __iter2: Iterable[_T2], __iter3: Iterable[_T3]
1973
+ ) -> zip[tuple[_T1, _T2, _T3]]: ...
1974
+ @overload
1975
+ def __new__(
1976
+ cls,
1977
+ __iter1: Iterable[_T1],
1978
+ __iter2: Iterable[_T2],
1979
+ __iter3: Iterable[_T3],
1980
+ __iter4: Iterable[_T4],
1981
+ ) -> zip[tuple[_T1, _T2, _T3, _T4]]: ...
1982
+ @overload
1983
+ def __new__(
1984
+ cls,
1985
+ __iter1: Iterable[_T1],
1986
+ __iter2: Iterable[_T2],
1987
+ __iter3: Iterable[_T3],
1988
+ __iter4: Iterable[_T4],
1989
+ __iter5: Iterable[_T5],
1990
+ ) -> zip[tuple[_T1, _T2, _T3, _T4, _T5]]: ...
1991
+ @overload
1992
+ def __new__(
1993
+ cls,
1994
+ __iter1: Iterable[Any],
1995
+ __iter2: Iterable[Any],
1996
+ __iter3: Iterable[Any],
1997
+ __iter4: Iterable[Any],
1998
+ __iter5: Iterable[Any],
1999
+ __iter6: Iterable[Any],
2000
+ *iterables: Iterable[Any],
2001
+ ) -> zip[tuple[Any, ...]]: ...
2002
+
2003
+ def __iter__(self) -> Self: ...
2004
+ def __next__(self) -> _T_co: ...
2005
+
2006
+ # Signature of `builtins.__import__` should be kept identical to `importlib.__import__`
2007
+ # Return type of `__import__` should be kept the same as return type of `importlib.import_module`
2008
+ def __import__(
2009
+ name: str,
2010
+ globals: Mapping[str, object] | None = None,
2011
+ locals: Mapping[str, object] | None = None,
2012
+ fromlist: Sequence[str] = (),
2013
+ level: int = 0,
2014
+ ) -> types.ModuleType: ...
2015
+ def __build_class__(
2016
+ __func: Callable[[], _Cell | Any],
2017
+ __name: str,
2018
+ *bases: Any,
2019
+ metaclass: Any = ...,
2020
+ **kwds: Any,
2021
+ ) -> Any: ...
2022
+
2023
+ if sys.version_info >= (3, 10):
2024
+ from types import EllipsisType
2025
+
2026
+ # Backwards compatibility hack for folks who relied on the ellipsis type
2027
+ # existing in typeshed in Python 3.9 and earlier.
2028
+ ellipsis = EllipsisType
2029
+
2030
+ Ellipsis: EllipsisType
2031
+
2032
+ else:
2033
+ # Actually the type of Ellipsis is <type 'ellipsis'>, but since it's
2034
+ # not exposed anywhere under that name, we make it private here.
2035
+ @final
2036
+ @type_check_only
2037
+ class ellipsis: ...
2038
+
2039
+ Ellipsis: ellipsis
2040
+
2041
+ class BaseException:
2042
+ args: tuple[Any, ...]
2043
+ __cause__: BaseException | None
2044
+ __context__: BaseException | None
2045
+ __suppress_context__: bool
2046
+ __traceback__: TracebackType | None
2047
+ def __init__(self, *args: object) -> None: ...
2048
+ def __setstate__(self, __state: dict[str, Any] | None) -> None: ...
2049
+ def with_traceback(self, __tb: TracebackType | None) -> Self: ...
2050
+ if sys.version_info >= (3, 11):
2051
+ # only present after add_note() is called
2052
+ __notes__: list[str]
2053
+ def add_note(self, __note: str) -> None: ...
2054
+
2055
+ class GeneratorExit(BaseException): ...
2056
+ class KeyboardInterrupt(BaseException): ...
2057
+
2058
+ class SystemExit(BaseException):
2059
+ code: sys._ExitCode
2060
+
2061
+ class Exception(BaseException): ...
2062
+
2063
+ class StopIteration(Exception):
2064
+ value: Any
2065
+
2066
+ class OSError(Exception):
2067
+ errno: int
2068
+ strerror: str
2069
+ # filename, filename2 are actually str | bytes | None
2070
+ filename: Any
2071
+ filename2: Any
2072
+ if sys.platform == "win32":
2073
+ winerror: int
2074
+
2075
+ EnvironmentError = OSError
2076
+ IOError = OSError
2077
+ if sys.platform == "win32":
2078
+ WindowsError = OSError
2079
+
2080
+ class ArithmeticError(Exception): ...
2081
+ class AssertionError(Exception): ...
2082
+
2083
+ class AttributeError(Exception):
2084
+ if sys.version_info >= (3, 10):
2085
+ def __init__(
2086
+ self, *args: object, name: str | None = ..., obj: object = ...
2087
+ ) -> None: ...
2088
+ name: str
2089
+ obj: object
2090
+
2091
+ class BufferError(Exception): ...
2092
+ class EOFError(Exception): ...
2093
+
2094
+ class ImportError(Exception):
2095
+ def __init__(
2096
+ self, *args: object, name: str | None = ..., path: str | None = ...
2097
+ ) -> None: ...
2098
+ name: str | None
2099
+ path: str | None
2100
+ msg: str # undocumented
2101
+ if sys.version_info >= (3, 12):
2102
+ name_from: str | None # undocumented
2103
+
2104
+ class LookupError(Exception): ...
2105
+ class MemoryError(Exception): ...
2106
+
2107
+ class NameError(Exception):
2108
+ if sys.version_info >= (3, 10):
2109
+ name: str
2110
+
2111
+ class ReferenceError(Exception): ...
2112
+ class RuntimeError(Exception): ...
2113
+
2114
+ class StopAsyncIteration(Exception):
2115
+ value: Any
2116
+
2117
+ class SyntaxError(Exception):
2118
+ msg: str
2119
+ lineno: int | None
2120
+ offset: int | None
2121
+ text: str | None
2122
+ filename: str | None
2123
+ if sys.version_info >= (3, 10):
2124
+ end_lineno: int | None
2125
+ end_offset: int | None
2126
+
2127
+ class SystemError(Exception): ...
2128
+ class TypeError(Exception): ...
2129
+ class ValueError(Exception): ...
2130
+ class FloatingPointError(ArithmeticError): ...
2131
+ class OverflowError(ArithmeticError): ...
2132
+ class ZeroDivisionError(ArithmeticError): ...
2133
+ class ModuleNotFoundError(ImportError): ...
2134
+ class IndexError(LookupError): ...
2135
+ class KeyError(LookupError): ...
2136
+ class UnboundLocalError(NameError): ...
2137
+
2138
+ class BlockingIOError(OSError):
2139
+ characters_written: int
2140
+
2141
+ class ChildProcessError(OSError): ...
2142
+ class ConnectionError(OSError): ...
2143
+ class BrokenPipeError(ConnectionError): ...
2144
+ class ConnectionAbortedError(ConnectionError): ...
2145
+ class ConnectionRefusedError(ConnectionError): ...
2146
+ class ConnectionResetError(ConnectionError): ...
2147
+ class FileExistsError(OSError): ...
2148
+ class FileNotFoundError(OSError): ...
2149
+ class InterruptedError(OSError): ...
2150
+ class IsADirectoryError(OSError): ...
2151
+ class NotADirectoryError(OSError): ...
2152
+ class PermissionError(OSError): ...
2153
+ class ProcessLookupError(OSError): ...
2154
+ class TimeoutError(OSError): ...
2155
+ class NotImplementedError(RuntimeError): ...
2156
+ class RecursionError(RuntimeError): ...
2157
+ class IndentationError(SyntaxError): ...
2158
+ class TabError(IndentationError): ...
2159
+ class UnicodeError(ValueError): ...
2160
+
2161
+ class UnicodeDecodeError(UnicodeError):
2162
+ encoding: str
2163
+ object: bytes
2164
+ start: int
2165
+ end: int
2166
+ reason: str
2167
+ def __init__(
2168
+ self,
2169
+ __encoding: str,
2170
+ __object: ReadableBuffer,
2171
+ __start: int,
2172
+ __end: int,
2173
+ __reason: str,
2174
+ ) -> None: ...
2175
+
2176
+ class UnicodeEncodeError(UnicodeError):
2177
+ encoding: str
2178
+ object: str
2179
+ start: int
2180
+ end: int
2181
+ reason: str
2182
+ def __init__(
2183
+ self, __encoding: str, __object: str, __start: int, __end: int, __reason: str
2184
+ ) -> None: ...
2185
+
2186
+ class UnicodeTranslateError(UnicodeError):
2187
+ encoding: None
2188
+ object: str
2189
+ start: int
2190
+ end: int
2191
+ reason: str
2192
+ def __init__(
2193
+ self, __object: str, __start: int, __end: int, __reason: str
2194
+ ) -> None: ...
2195
+
2196
+ class Warning(Exception): ...
2197
+ class UserWarning(Warning): ...
2198
+ class DeprecationWarning(Warning): ...
2199
+ class SyntaxWarning(Warning): ...
2200
+ class RuntimeWarning(Warning): ...
2201
+ class FutureWarning(Warning): ...
2202
+ class PendingDeprecationWarning(Warning): ...
2203
+ class ImportWarning(Warning): ...
2204
+ class UnicodeWarning(Warning): ...
2205
+ class BytesWarning(Warning): ...
2206
+ class ResourceWarning(Warning): ...
2207
+
2208
+ if sys.version_info >= (3, 10):
2209
+ class EncodingWarning(Warning): ...
2210
+
2211
+ if sys.version_info >= (3, 11):
2212
+ _BaseExceptionT_co = TypeVar(
2213
+ "_BaseExceptionT_co", bound=BaseException, covariant=True
2214
+ )
2215
+ _BaseExceptionT = TypeVar("_BaseExceptionT", bound=BaseException)
2216
+ _ExceptionT_co = TypeVar("_ExceptionT_co", bound=Exception, covariant=True)
2217
+ _ExceptionT = TypeVar("_ExceptionT", bound=Exception)
2218
+
2219
+ # See `check_exception_group.py` for use-cases and comments.
2220
+ class BaseExceptionGroup(BaseException, Generic[_BaseExceptionT_co]):
2221
+ def __new__(
2222
+ cls, __message: str, __exceptions: Sequence[_BaseExceptionT_co]
2223
+ ) -> Self: ...
2224
+ def __init__(
2225
+ self, __message: str, __exceptions: Sequence[_BaseExceptionT_co]
2226
+ ) -> None: ...
2227
+ @property
2228
+ def message(self) -> str: ...
2229
+ @property
2230
+ def exceptions(
2231
+ self,
2232
+ ) -> tuple[
2233
+ _BaseExceptionT_co | BaseExceptionGroup[_BaseExceptionT_co], ...
2234
+ ]: ...
2235
+ @overload
2236
+ def subgroup(
2237
+ self, __condition: type[_ExceptionT] | tuple[type[_ExceptionT], ...]
2238
+ ) -> ExceptionGroup[_ExceptionT] | None: ...
2239
+ @overload
2240
+ def subgroup(
2241
+ self, __condition: type[_BaseExceptionT] | tuple[type[_BaseExceptionT], ...]
2242
+ ) -> BaseExceptionGroup[_BaseExceptionT] | None: ...
2243
+ @overload
2244
+ def subgroup(
2245
+ self, __condition: Callable[[_BaseExceptionT_co | Self], bool]
2246
+ ) -> BaseExceptionGroup[_BaseExceptionT_co] | None: ...
2247
+ @overload
2248
+ def split(
2249
+ self, __condition: type[_ExceptionT] | tuple[type[_ExceptionT], ...]
2250
+ ) -> tuple[
2251
+ ExceptionGroup[_ExceptionT] | None,
2252
+ BaseExceptionGroup[_BaseExceptionT_co] | None,
2253
+ ]: ...
2254
+ @overload
2255
+ def split(
2256
+ self, __condition: type[_BaseExceptionT] | tuple[type[_BaseExceptionT], ...]
2257
+ ) -> tuple[
2258
+ BaseExceptionGroup[_BaseExceptionT] | None,
2259
+ BaseExceptionGroup[_BaseExceptionT_co] | None,
2260
+ ]: ...
2261
+ @overload
2262
+ def split(
2263
+ self, __condition: Callable[[_BaseExceptionT_co | Self], bool]
2264
+ ) -> tuple[
2265
+ BaseExceptionGroup[_BaseExceptionT_co] | None,
2266
+ BaseExceptionGroup[_BaseExceptionT_co] | None,
2267
+ ]: ...
2268
+ # In reality it is `NonEmptySequence`:
2269
+ @overload
2270
+ def derive(
2271
+ self, __excs: Sequence[_ExceptionT]
2272
+ ) -> ExceptionGroup[_ExceptionT]: ...
2273
+ @overload
2274
+ def derive(
2275
+ self, __excs: Sequence[_BaseExceptionT]
2276
+ ) -> BaseExceptionGroup[_BaseExceptionT]: ...
2277
+ def __class_getitem__(cls, __item: Any) -> GenericAlias: ...
2278
+
2279
+ class ExceptionGroup(BaseExceptionGroup[_ExceptionT_co], Exception):
2280
+ def __new__(
2281
+ cls, __message: str, __exceptions: Sequence[_ExceptionT_co]
2282
+ ) -> Self: ...
2283
+ def __init__(
2284
+ self, __message: str, __exceptions: Sequence[_ExceptionT_co]
2285
+ ) -> None: ...
2286
+ @property
2287
+ def exceptions(
2288
+ self,
2289
+ ) -> tuple[_ExceptionT_co | ExceptionGroup[_ExceptionT_co], ...]: ...
2290
+ # We accept a narrower type, but that's OK.
2291
+ @overload # type: ignore[override]
2292
+ def subgroup(
2293
+ self, __condition: type[_ExceptionT] | tuple[type[_ExceptionT], ...]
2294
+ ) -> ExceptionGroup[_ExceptionT] | None: ...
2295
+ @overload
2296
+ def subgroup(
2297
+ self, __condition: Callable[[_ExceptionT_co | Self], bool]
2298
+ ) -> ExceptionGroup[_ExceptionT_co] | None: ...
2299
+ @overload # type: ignore[override]
2300
+ def split(
2301
+ self, __condition: type[_ExceptionT] | tuple[type[_ExceptionT], ...]
2302
+ ) -> tuple[
2303
+ ExceptionGroup[_ExceptionT] | None, ExceptionGroup[_ExceptionT_co] | None
2304
+ ]: ...
2305
+ @overload
2306
+ def split(
2307
+ self, __condition: Callable[[_ExceptionT_co | Self], bool]
2308
+ ) -> tuple[
2309
+ ExceptionGroup[_ExceptionT_co] | None, ExceptionGroup[_ExceptionT_co] | None
2310
+ ]: ...