jaclang 0.6.0__py3-none-any.whl → 0.6.2__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- jaclang/cli/.gitignore +3 -0
- jaclang/cli/cli.md +190 -0
- jaclang/cli/cli.py +90 -3
- jaclang/cli/cmdreg.py +18 -6
- jaclang/compiler/.gitignore +1 -0
- jaclang/compiler/absyntree.py +1 -2
- jaclang/compiler/parser.py +1 -1
- jaclang/compiler/passes/main/def_impl_match_pass.py +4 -1
- jaclang/compiler/passes/main/fuse_typeinfo_pass.py +10 -7
- jaclang/compiler/passes/main/import_pass.py +39 -22
- jaclang/compiler/passes/main/pyast_gen_pass.py +6 -57
- jaclang/compiler/passes/main/pyjac_ast_link_pass.py +218 -0
- jaclang/compiler/passes/main/schedules.py +2 -0
- jaclang/compiler/passes/main/sym_tab_build_pass.py +9 -3
- jaclang/compiler/passes/main/tests/fixtures/autoimpl.impl/getme.impl.jac +3 -0
- jaclang/compiler/passes/main/tests/fixtures/autoimpl.impl.jac +3 -0
- jaclang/compiler/passes/main/tests/fixtures/autoimpl.jac +9 -0
- jaclang/compiler/passes/main/tests/fixtures/autoimpl.something.else.impl.jac +3 -0
- jaclang/compiler/passes/main/tests/fixtures/base.jac +13 -0
- jaclang/compiler/passes/main/tests/fixtures/base2.jac +14 -0
- jaclang/compiler/passes/main/tests/fixtures/blip.jac +2 -0
- jaclang/compiler/passes/main/tests/fixtures/codegentext.jac +31 -0
- jaclang/compiler/passes/main/tests/fixtures/decls.jac +10 -0
- jaclang/compiler/passes/main/tests/fixtures/defs_and_uses.jac +44 -0
- jaclang/compiler/passes/main/tests/fixtures/fstrings.jac +4 -0
- jaclang/compiler/passes/main/tests/fixtures/func.jac +18 -0
- jaclang/compiler/passes/main/tests/fixtures/func2.jac +8 -0
- jaclang/compiler/passes/main/tests/fixtures/game1.jac +15 -0
- jaclang/compiler/passes/main/tests/fixtures/impl/defs1.jac +8 -0
- jaclang/compiler/passes/main/tests/fixtures/impl/defs2.jac +8 -0
- jaclang/compiler/passes/main/tests/fixtures/impl/imps.jac +11 -0
- jaclang/compiler/passes/main/tests/fixtures/multi_def_err.jac +7 -0
- jaclang/compiler/passes/main/tests/fixtures/registry.jac +36 -0
- jaclang/compiler/passes/main/tests/test_import_pass.py +11 -0
- jaclang/compiler/passes/tool/tests/fixtures/corelib.jac +480 -0
- jaclang/compiler/passes/tool/tests/fixtures/corelib_fmt.jac +480 -0
- jaclang/compiler/passes/tool/tests/fixtures/genai/essay_review.jac +36 -0
- jaclang/compiler/passes/tool/tests/fixtures/genai/expert_answer.jac +17 -0
- jaclang/compiler/passes/tool/tests/fixtures/genai/joke_gen.jac +32 -0
- jaclang/compiler/passes/tool/tests/fixtures/genai/odd_word_out.jac +27 -0
- jaclang/compiler/passes/tool/tests/fixtures/genai/personality_finder.jac +35 -0
- jaclang/compiler/passes/tool/tests/fixtures/genai/text_to_type.jac +25 -0
- jaclang/compiler/passes/tool/tests/fixtures/genai/translator.jac +13 -0
- jaclang/compiler/passes/tool/tests/fixtures/genai/wikipedia.jac +63 -0
- jaclang/compiler/passes/tool/tests/fixtures/multi_def_err.dot +39 -0
- jaclang/compiler/passes/tool/tests/fixtures/multi_def_err.jac +7 -0
- jaclang/compiler/passes/tool/tests/fixtures/multi_def_err.txt +20 -0
- jaclang/compiler/passes/tool/tests/fixtures/myca_formatted_code/ability_impl_long_comprehension.jac +15 -0
- jaclang/compiler/passes/tool/tests/fixtures/myca_formatted_code/call_with_many_parameters.jac +24 -0
- jaclang/compiler/passes/tool/tests/fixtures/myca_formatted_code/entry_main.jac +4 -0
- jaclang/compiler/passes/tool/tests/fixtures/myca_formatted_code/long_line_nested_dict_access.jac +10 -0
- jaclang/compiler/passes/tool/tests/fixtures/myca_formatted_code/multiline_fstrings.jac +16 -0
- jaclang/compiler/passes/tool/tests/fixtures/myca_formatted_code/nested_dict.jac +15 -0
- jaclang/compiler/passes/tool/tests/fixtures/myca_formatted_code/nested_loop_and_incrementer.jac +13 -0
- jaclang/compiler/passes/tool/tests/fixtures/myca_formatted_code/simple_walker.jac +25 -0
- jaclang/compiler/passes/tool/tests/fixtures/myca_formatted_code/try_block_and_walker_spawn_and_fstrings.jac +26 -0
- jaclang/compiler/passes/tool/tests/fixtures/myca_formatted_code/tuple_iteration_and_not_negation.jac +20 -0
- jaclang/compiler/passes/tool/tests/fixtures/myca_formatted_code/type_annotation.jac +3 -0
- jaclang/compiler/passes/tool/tests/fixtures/myca_formatted_code/walker_decl_only.jac +12 -0
- jaclang/compiler/passes/tool/tests/fixtures/myca_formatted_code/walker_with_default_values_types_and_docstrings.jac +18 -0
- jaclang/compiler/passes/tool/tests/fixtures/myca_formatted_code/walker_with_inline_ability_impl.jac +8 -0
- jaclang/compiler/passes/tool/tests/fixtures/simple_walk.jac +47 -0
- jaclang/compiler/passes/tool/tests/fixtures/simple_walk_fmt.jac +47 -0
- jaclang/compiler/tests/fixtures/fam.jac +67 -0
- jaclang/compiler/tests/fixtures/hello_world.jac +5 -0
- jaclang/compiler/tests/fixtures/kwesc.jac +5 -0
- jaclang/compiler/tests/fixtures/mod_doc_test.jac +1 -0
- jaclang/compiler/tests/fixtures/staticcheck.jac +20 -0
- jaclang/compiler/tests/fixtures/stuff.jac +6 -0
- jaclang/core/aott.py +10 -1
- jaclang/core/construct.py +157 -21
- jaclang/core/importer.py +6 -2
- jaclang/core/memory.py +48 -0
- jaclang/core/shelve_storage.py +55 -0
- jaclang/plugin/__init__.py +1 -2
- jaclang/plugin/builtin.py +1 -1
- jaclang/plugin/default.py +97 -4
- jaclang/plugin/feature.py +28 -9
- jaclang/plugin/spec.py +45 -10
- jaclang/plugin/tests/fixtures/impl_match.jac +9 -0
- jaclang/plugin/tests/fixtures/impl_match_impl.jac +3 -0
- jaclang/plugin/tests/fixtures/simple_node_connection.jac +55 -0
- jaclang/plugin/tests/fixtures/simple_persistent.jac +41 -0
- jaclang/plugin/tests/test_jaseci.py +219 -0
- jaclang/tests/fixtures/abc.jac +73 -0
- jaclang/tests/fixtures/access_checker.jac +19 -0
- jaclang/tests/fixtures/access_modifier.jac +49 -0
- jaclang/tests/fixtures/aott_raise.jac +25 -0
- jaclang/tests/fixtures/arithmetic_bug.jac +13 -0
- jaclang/tests/fixtures/assign_compr.jac +15 -0
- jaclang/tests/fixtures/assign_compr_dup.jac +15 -0
- jaclang/tests/fixtures/builtin_dotgen.jac +41 -0
- jaclang/tests/fixtures/chandra_bugs.jac +11 -0
- jaclang/tests/fixtures/chandra_bugs2.jac +26 -0
- jaclang/tests/fixtures/circle_pysolo.py +91 -0
- jaclang/tests/fixtures/deep/deeper/deep_outer_import.jac +9 -0
- jaclang/tests/fixtures/deep/deeper/deep_outer_import2.jac +9 -0
- jaclang/tests/fixtures/deep/deeper/snd_lev.jac +6 -0
- jaclang/tests/fixtures/deep/mycode.jac +4 -0
- jaclang/tests/fixtures/deep/one_lev.jac +6 -0
- jaclang/tests/fixtures/deep/one_lev_dup.jac +6 -0
- jaclang/tests/fixtures/deep/one_lev_dup_py.py +6 -0
- jaclang/tests/fixtures/deep_import.jac +7 -0
- jaclang/tests/fixtures/deferred_field.jac +13 -0
- jaclang/tests/fixtures/disconn.jac +29 -0
- jaclang/tests/fixtures/edge_node_walk.jac +46 -0
- jaclang/tests/fixtures/edge_ops.jac +45 -0
- jaclang/tests/fixtures/edges_walk.jac +38 -0
- jaclang/tests/fixtures/enum_inside_archtype.jac +20 -0
- jaclang/tests/fixtures/err.jac +5 -0
- jaclang/tests/fixtures/err2.jac +5 -0
- jaclang/tests/fixtures/game1.jac +15 -0
- jaclang/tests/fixtures/gendot_bubble_sort.jac +77 -0
- jaclang/tests/fixtures/guess_game.jac +47 -0
- jaclang/tests/fixtures/has_goodness.jac +15 -0
- jaclang/tests/fixtures/hashcheck.jac +12 -0
- jaclang/tests/fixtures/hashcheck_dup.jac +12 -0
- jaclang/tests/fixtures/hello.jac +5 -0
- jaclang/tests/fixtures/hello_nc.jac +5 -0
- jaclang/tests/fixtures/ignore.jac +43 -0
- jaclang/tests/fixtures/ignore_dup.jac +43 -0
- jaclang/tests/fixtures/impl_grab.impl.jac +4 -0
- jaclang/tests/fixtures/impl_grab.jac +2 -0
- jaclang/tests/fixtures/inherit_check.jac +33 -0
- jaclang/tests/fixtures/jacsamp.jac +6 -0
- jaclang/tests/fixtures/jp_importer.jac +17 -0
- jaclang/tests/fixtures/lambda.jac +6 -0
- jaclang/tests/fixtures/maxfail_run_test.jac +5 -0
- jaclang/tests/fixtures/mtest.impl.jac +6 -0
- jaclang/tests/fixtures/mtest.jac +6 -0
- jaclang/tests/fixtures/needs_import.jac +18 -0
- jaclang/tests/fixtures/needs_import_1.jac +6 -0
- jaclang/tests/fixtures/needs_import_2.jac +6 -0
- jaclang/tests/fixtures/needs_import_3.jac +6 -0
- jaclang/tests/fixtures/needs_import_dup.jac +18 -0
- jaclang/tests/fixtures/package_import.jac +6 -0
- jaclang/tests/fixtures/pyfunc.py +11 -0
- jaclang/tests/fixtures/pyfunc_1.py +311 -0
- jaclang/tests/fixtures/pyfunc_2.py +279 -0
- jaclang/tests/fixtures/pyfunc_3.py +310 -0
- jaclang/tests/fixtures/random_check.jac +70 -0
- jaclang/tests/fixtures/raw_byte_string.jac +18 -0
- jaclang/tests/fixtures/registry.jac +37 -0
- jaclang/tests/fixtures/run_test.jac +5 -0
- jaclang/tests/fixtures/semstr.jac +33 -0
- jaclang/tests/fixtures/simple_archs.jac +26 -0
- jaclang/tests/fixtures/slice_vals.jac +7 -0
- jaclang/tests/fixtures/sub_abil_sep.jac +15 -0
- jaclang/tests/fixtures/sub_abil_sep_multilev.jac +17 -0
- jaclang/tests/fixtures/try_finally.jac +34 -0
- jaclang/tests/fixtures/tupleunpack.jac +6 -0
- jaclang/tests/fixtures/tuplytuples.jac +8 -0
- jaclang/tests/fixtures/type_info.jac +19 -0
- jaclang/tests/fixtures/with_context.jac +30 -0
- jaclang/tests/fixtures/with_llm_function.jac +33 -0
- jaclang/tests/fixtures/with_llm_lower.jac +45 -0
- jaclang/tests/fixtures/with_llm_method.jac +51 -0
- jaclang/tests/fixtures/with_llm_type.jac +52 -0
- jaclang/tests/test_cli.py +239 -0
- jaclang/tests/test_language.py +807 -0
- jaclang/tests/test_man_code.py +148 -0
- jaclang/tests/test_reference.py +95 -0
- jaclang/tests/test_settings.py +46 -0
- jaclang/utils/treeprinter.py +7 -2
- jaclang/vendor/LICENSE +18 -0
- jaclang/vendor/mypy/stubgen.py +0 -0
- jaclang/vendor/mypy/stubgenc.py +0 -0
- jaclang/vendor/mypy/typeshed/LICENSE +237 -0
- jaclang/vendor/mypy/typeshed/stdlib/VERSIONS +308 -0
- jaclang/vendor/mypy/typeshed/stdlib/__future__.pyi +41 -0
- jaclang/vendor/mypy/typeshed/stdlib/__main__.pyi +3 -0
- jaclang/vendor/mypy/typeshed/stdlib/_ast.pyi +632 -0
- jaclang/vendor/mypy/typeshed/stdlib/_bisect.pyi +106 -0
- jaclang/vendor/mypy/typeshed/stdlib/_bootlocale.pyi +1 -0
- jaclang/vendor/mypy/typeshed/stdlib/_codecs.pyi +198 -0
- jaclang/vendor/mypy/typeshed/stdlib/_collections_abc.pyi +94 -0
- jaclang/vendor/mypy/typeshed/stdlib/_compat_pickle.pyi +8 -0
- jaclang/vendor/mypy/typeshed/stdlib/_compression.pyi +25 -0
- jaclang/vendor/mypy/typeshed/stdlib/_csv.pyi +90 -0
- jaclang/vendor/mypy/typeshed/stdlib/_ctypes.pyi +219 -0
- jaclang/vendor/mypy/typeshed/stdlib/_curses.pyi +600 -0
- jaclang/vendor/mypy/typeshed/stdlib/_decimal.pyi +316 -0
- jaclang/vendor/mypy/typeshed/stdlib/_dummy_thread.pyi +43 -0
- jaclang/vendor/mypy/typeshed/stdlib/_dummy_threading.pyi +185 -0
- jaclang/vendor/mypy/typeshed/stdlib/_heapq.pyi +11 -0
- jaclang/vendor/mypy/typeshed/stdlib/_imp.pyi +32 -0
- jaclang/vendor/mypy/typeshed/stdlib/_json.pyi +49 -0
- jaclang/vendor/mypy/typeshed/stdlib/_locale.pyi +100 -0
- jaclang/vendor/mypy/typeshed/stdlib/_markupbase.pyi +16 -0
- jaclang/vendor/mypy/typeshed/stdlib/_msi.pyi +92 -0
- jaclang/vendor/mypy/typeshed/stdlib/_operator.pyi +172 -0
- jaclang/vendor/mypy/typeshed/stdlib/_osx_support.pyi +55 -0
- jaclang/vendor/mypy/typeshed/stdlib/_posixsubprocess.pyi +32 -0
- jaclang/vendor/mypy/typeshed/stdlib/_py_abc.pyi +17 -0
- jaclang/vendor/mypy/typeshed/stdlib/_pydecimal.pyi +43 -0
- jaclang/vendor/mypy/typeshed/stdlib/_random.pyi +12 -0
- jaclang/vendor/mypy/typeshed/stdlib/_sitebuiltins.pyi +18 -0
- jaclang/vendor/mypy/typeshed/stdlib/_socket.pyi +851 -0
- jaclang/vendor/mypy/typeshed/stdlib/_stat.pyi +103 -0
- jaclang/vendor/mypy/typeshed/stdlib/_thread.pyi +63 -0
- jaclang/vendor/mypy/typeshed/stdlib/_threading_local.pyi +17 -0
- jaclang/vendor/mypy/typeshed/stdlib/_tkinter.pyi +120 -0
- jaclang/vendor/mypy/typeshed/stdlib/_tracemalloc.pyi +17 -0
- jaclang/vendor/mypy/typeshed/stdlib/_typeshed/README.md +34 -0
- jaclang/vendor/mypy/typeshed/stdlib/_typeshed/__init__.pyi +374 -0
- jaclang/vendor/mypy/typeshed/stdlib/_typeshed/dbapi.pyi +45 -0
- jaclang/vendor/mypy/typeshed/stdlib/_typeshed/wsgi.pyi +51 -0
- jaclang/vendor/mypy/typeshed/stdlib/_typeshed/xml.pyi +13 -0
- jaclang/vendor/mypy/typeshed/stdlib/_warnings.pyi +65 -0
- jaclang/vendor/mypy/typeshed/stdlib/_weakref.pyi +45 -0
- jaclang/vendor/mypy/typeshed/stdlib/_weakrefset.pyi +51 -0
- jaclang/vendor/mypy/typeshed/stdlib/_winapi.pyi +275 -0
- jaclang/vendor/mypy/typeshed/stdlib/abc.pyi +61 -0
- jaclang/vendor/mypy/typeshed/stdlib/aifc.pyi +99 -0
- jaclang/vendor/mypy/typeshed/stdlib/antigravity.pyi +3 -0
- jaclang/vendor/mypy/typeshed/stdlib/argparse.pyi +675 -0
- jaclang/vendor/mypy/typeshed/stdlib/array.pyi +111 -0
- jaclang/vendor/mypy/typeshed/stdlib/ast.pyi +287 -0
- jaclang/vendor/mypy/typeshed/stdlib/asynchat.pyi +21 -0
- jaclang/vendor/mypy/typeshed/stdlib/asyncio/__init__.pyi +41 -0
- jaclang/vendor/mypy/typeshed/stdlib/asyncio/base_events.pyi +519 -0
- jaclang/vendor/mypy/typeshed/stdlib/asyncio/base_futures.pyi +21 -0
- jaclang/vendor/mypy/typeshed/stdlib/asyncio/base_subprocess.pyi +71 -0
- jaclang/vendor/mypy/typeshed/stdlib/asyncio/base_tasks.pyi +13 -0
- jaclang/vendor/mypy/typeshed/stdlib/asyncio/constants.pyi +20 -0
- jaclang/vendor/mypy/typeshed/stdlib/asyncio/coroutines.pyi +32 -0
- jaclang/vendor/mypy/typeshed/stdlib/asyncio/events.pyi +669 -0
- jaclang/vendor/mypy/typeshed/stdlib/asyncio/exceptions.pyi +43 -0
- jaclang/vendor/mypy/typeshed/stdlib/asyncio/format_helpers.pyi +26 -0
- jaclang/vendor/mypy/typeshed/stdlib/asyncio/futures.pyi +61 -0
- jaclang/vendor/mypy/typeshed/stdlib/asyncio/locks.pyi +131 -0
- jaclang/vendor/mypy/typeshed/stdlib/asyncio/log.pyi +3 -0
- jaclang/vendor/mypy/typeshed/stdlib/asyncio/mixins.pyi +9 -0
- jaclang/vendor/mypy/typeshed/stdlib/asyncio/proactor_events.pyi +72 -0
- jaclang/vendor/mypy/typeshed/stdlib/asyncio/protocols.pyi +40 -0
- jaclang/vendor/mypy/typeshed/stdlib/asyncio/queues.pyi +49 -0
- jaclang/vendor/mypy/typeshed/stdlib/asyncio/runners.pyi +44 -0
- jaclang/vendor/mypy/typeshed/stdlib/asyncio/selector_events.pyi +8 -0
- jaclang/vendor/mypy/typeshed/stdlib/asyncio/sslproto.pyi +189 -0
- jaclang/vendor/mypy/typeshed/stdlib/asyncio/staggered.pyi +13 -0
- jaclang/vendor/mypy/typeshed/stdlib/asyncio/streams.pyi +172 -0
- jaclang/vendor/mypy/typeshed/stdlib/asyncio/subprocess.pyi +234 -0
- jaclang/vendor/mypy/typeshed/stdlib/asyncio/taskgroups.pyi +36 -0
- jaclang/vendor/mypy/typeshed/stdlib/asyncio/tasks.pyi +566 -0
- jaclang/vendor/mypy/typeshed/stdlib/asyncio/threads.pyi +11 -0
- jaclang/vendor/mypy/typeshed/stdlib/asyncio/timeouts.pyi +22 -0
- jaclang/vendor/mypy/typeshed/stdlib/asyncio/transports.pyi +64 -0
- jaclang/vendor/mypy/typeshed/stdlib/asyncio/trsock.pyi +140 -0
- jaclang/vendor/mypy/typeshed/stdlib/asyncio/unix_events.pyi +268 -0
- jaclang/vendor/mypy/typeshed/stdlib/asyncio/windows_events.pyi +108 -0
- jaclang/vendor/mypy/typeshed/stdlib/asyncio/windows_utils.pyi +59 -0
- jaclang/vendor/mypy/typeshed/stdlib/asyncore.pyi +99 -0
- jaclang/vendor/mypy/typeshed/stdlib/atexit.pyi +14 -0
- jaclang/vendor/mypy/typeshed/stdlib/audioop.pyi +50 -0
- jaclang/vendor/mypy/typeshed/stdlib/base64.pyi +76 -0
- jaclang/vendor/mypy/typeshed/stdlib/bdb.pyi +133 -0
- jaclang/vendor/mypy/typeshed/stdlib/binascii.pyi +45 -0
- jaclang/vendor/mypy/typeshed/stdlib/binhex.pyi +47 -0
- jaclang/vendor/mypy/typeshed/stdlib/bisect.pyi +4 -0
- jaclang/vendor/mypy/typeshed/stdlib/builtins.pyi +2310 -0
- jaclang/vendor/mypy/typeshed/stdlib/bz2.pyi +177 -0
- jaclang/vendor/mypy/typeshed/stdlib/cProfile.pyi +49 -0
- jaclang/vendor/mypy/typeshed/stdlib/calendar.pyi +248 -0
- jaclang/vendor/mypy/typeshed/stdlib/cgi.pyi +122 -0
- jaclang/vendor/mypy/typeshed/stdlib/cgitb.pyi +44 -0
- jaclang/vendor/mypy/typeshed/stdlib/chunk.pyi +26 -0
- jaclang/vendor/mypy/typeshed/stdlib/cmath.pyi +38 -0
- jaclang/vendor/mypy/typeshed/stdlib/cmd.pyi +52 -0
- jaclang/vendor/mypy/typeshed/stdlib/code.pyi +46 -0
- jaclang/vendor/mypy/typeshed/stdlib/codecs.pyi +344 -0
- jaclang/vendor/mypy/typeshed/stdlib/codeop.pyi +17 -0
- jaclang/vendor/mypy/typeshed/stdlib/collections/__init__.pyi +571 -0
- jaclang/vendor/mypy/typeshed/stdlib/collections/abc.pyi +2 -0
- jaclang/vendor/mypy/typeshed/stdlib/colorsys.pyi +20 -0
- jaclang/vendor/mypy/typeshed/stdlib/compileall.pyi +111 -0
- jaclang/vendor/mypy/typeshed/stdlib/concurrent/futures/__init__.pyi +32 -0
- jaclang/vendor/mypy/typeshed/stdlib/concurrent/futures/_base.pyi +137 -0
- jaclang/vendor/mypy/typeshed/stdlib/concurrent/futures/process.pyi +272 -0
- jaclang/vendor/mypy/typeshed/stdlib/concurrent/futures/thread.pyi +86 -0
- jaclang/vendor/mypy/typeshed/stdlib/configparser.pyi +449 -0
- jaclang/vendor/mypy/typeshed/stdlib/contextlib.pyi +274 -0
- jaclang/vendor/mypy/typeshed/stdlib/contextvars.pyi +67 -0
- jaclang/vendor/mypy/typeshed/stdlib/copy.pyi +16 -0
- jaclang/vendor/mypy/typeshed/stdlib/copyreg.pyi +32 -0
- jaclang/vendor/mypy/typeshed/stdlib/crypt.pyi +12 -0
- jaclang/vendor/mypy/typeshed/stdlib/csv.pyi +147 -0
- jaclang/vendor/mypy/typeshed/stdlib/ctypes/__init__.pyi +211 -0
- jaclang/vendor/mypy/typeshed/stdlib/ctypes/_endian.pyi +29 -0
- jaclang/vendor/mypy/typeshed/stdlib/ctypes/util.pyi +6 -0
- jaclang/vendor/mypy/typeshed/stdlib/ctypes/wintypes.pyi +298 -0
- jaclang/vendor/mypy/typeshed/stdlib/curses/__init__.pyi +25 -0
- jaclang/vendor/mypy/typeshed/stdlib/curses/ascii.pyi +63 -0
- jaclang/vendor/mypy/typeshed/stdlib/curses/has_key.pyi +4 -0
- jaclang/vendor/mypy/typeshed/stdlib/curses/panel.pyi +25 -0
- jaclang/vendor/mypy/typeshed/stdlib/curses/textpad.pyi +15 -0
- jaclang/vendor/mypy/typeshed/stdlib/dataclasses.pyi +323 -0
- jaclang/vendor/mypy/typeshed/stdlib/datetime.pyi +334 -0
- jaclang/vendor/mypy/typeshed/stdlib/dbm/__init__.pyi +98 -0
- jaclang/vendor/mypy/typeshed/stdlib/dbm/dumb.pyi +34 -0
- jaclang/vendor/mypy/typeshed/stdlib/dbm/gnu.pyi +44 -0
- jaclang/vendor/mypy/typeshed/stdlib/dbm/ndbm.pyi +40 -0
- jaclang/vendor/mypy/typeshed/stdlib/decimal.pyi +5 -0
- jaclang/vendor/mypy/typeshed/stdlib/difflib.pyi +169 -0
- jaclang/vendor/mypy/typeshed/stdlib/dis.pyi +190 -0
- jaclang/vendor/mypy/typeshed/stdlib/distutils/__init__.pyi +5 -0
- jaclang/vendor/mypy/typeshed/stdlib/distutils/archive_util.pyi +22 -0
- jaclang/vendor/mypy/typeshed/stdlib/distutils/bcppcompiler.pyi +3 -0
- jaclang/vendor/mypy/typeshed/stdlib/distutils/ccompiler.pyi +183 -0
- jaclang/vendor/mypy/typeshed/stdlib/distutils/cmd.pyi +88 -0
- jaclang/vendor/mypy/typeshed/stdlib/distutils/command/__init__.pyi +0 -0
- jaclang/vendor/mypy/typeshed/stdlib/distutils/command/bdist.pyi +25 -0
- jaclang/vendor/mypy/typeshed/stdlib/distutils/command/bdist_dumb.pyi +21 -0
- jaclang/vendor/mypy/typeshed/stdlib/distutils/command/bdist_msi.pyi +45 -0
- jaclang/vendor/mypy/typeshed/stdlib/distutils/command/bdist_packager.pyi +0 -0
- jaclang/vendor/mypy/typeshed/stdlib/distutils/command/bdist_rpm.pyi +52 -0
- jaclang/vendor/mypy/typeshed/stdlib/distutils/command/bdist_wininst.pyi +21 -0
- jaclang/vendor/mypy/typeshed/stdlib/distutils/command/build.pyi +31 -0
- jaclang/vendor/mypy/typeshed/stdlib/distutils/command/build_clib.pyi +27 -0
- jaclang/vendor/mypy/typeshed/stdlib/distutils/command/build_ext.pyi +50 -0
- jaclang/vendor/mypy/typeshed/stdlib/distutils/command/build_py.pyi +44 -0
- jaclang/vendor/mypy/typeshed/stdlib/distutils/command/build_scripts.pyi +24 -0
- jaclang/vendor/mypy/typeshed/stdlib/distutils/command/check.pyi +39 -0
- jaclang/vendor/mypy/typeshed/stdlib/distutils/command/clean.pyi +17 -0
- jaclang/vendor/mypy/typeshed/stdlib/distutils/command/config.pyi +91 -0
- jaclang/vendor/mypy/typeshed/stdlib/distutils/command/install.pyi +63 -0
- jaclang/vendor/mypy/typeshed/stdlib/distutils/command/install_data.pyi +19 -0
- jaclang/vendor/mypy/typeshed/stdlib/distutils/command/install_egg_info.pyi +18 -0
- jaclang/vendor/mypy/typeshed/stdlib/distutils/command/install_headers.pyi +16 -0
- jaclang/vendor/mypy/typeshed/stdlib/distutils/command/install_lib.pyi +25 -0
- jaclang/vendor/mypy/typeshed/stdlib/distutils/command/install_scripts.pyi +18 -0
- jaclang/vendor/mypy/typeshed/stdlib/distutils/command/register.pyi +18 -0
- jaclang/vendor/mypy/typeshed/stdlib/distutils/command/sdist.pyi +42 -0
- jaclang/vendor/mypy/typeshed/stdlib/distutils/command/upload.pyi +17 -0
- jaclang/vendor/mypy/typeshed/stdlib/distutils/config.pyi +17 -0
- jaclang/vendor/mypy/typeshed/stdlib/distutils/core.pyi +59 -0
- jaclang/vendor/mypy/typeshed/stdlib/distutils/cygwinccompiler.pyi +20 -0
- jaclang/vendor/mypy/typeshed/stdlib/distutils/debug.pyi +1 -0
- jaclang/vendor/mypy/typeshed/stdlib/distutils/dep_util.pyi +3 -0
- jaclang/vendor/mypy/typeshed/stdlib/distutils/dir_util.pyi +21 -0
- jaclang/vendor/mypy/typeshed/stdlib/distutils/dist.pyi +155 -0
- jaclang/vendor/mypy/typeshed/stdlib/distutils/errors.pyi +19 -0
- jaclang/vendor/mypy/typeshed/stdlib/distutils/extension.pyi +36 -0
- jaclang/vendor/mypy/typeshed/stdlib/distutils/fancy_getopt.pyi +37 -0
- jaclang/vendor/mypy/typeshed/stdlib/distutils/file_util.pyi +14 -0
- jaclang/vendor/mypy/typeshed/stdlib/distutils/filelist.pyi +78 -0
- jaclang/vendor/mypy/typeshed/stdlib/distutils/log.pyi +25 -0
- jaclang/vendor/mypy/typeshed/stdlib/distutils/msvccompiler.pyi +3 -0
- jaclang/vendor/mypy/typeshed/stdlib/distutils/spawn.pyi +4 -0
- jaclang/vendor/mypy/typeshed/stdlib/distutils/sysconfig.pyi +24 -0
- jaclang/vendor/mypy/typeshed/stdlib/distutils/text_file.pyi +23 -0
- jaclang/vendor/mypy/typeshed/stdlib/distutils/unixccompiler.pyi +3 -0
- jaclang/vendor/mypy/typeshed/stdlib/distutils/util.pyi +50 -0
- jaclang/vendor/mypy/typeshed/stdlib/distutils/version.pyi +36 -0
- jaclang/vendor/mypy/typeshed/stdlib/doctest.pyi +282 -0
- jaclang/vendor/mypy/typeshed/stdlib/dummy_threading.pyi +2 -0
- jaclang/vendor/mypy/typeshed/stdlib/email/__init__.pyi +37 -0
- jaclang/vendor/mypy/typeshed/stdlib/email/_header_value_parser.pyi +392 -0
- jaclang/vendor/mypy/typeshed/stdlib/email/_policybase.pyi +51 -0
- jaclang/vendor/mypy/typeshed/stdlib/email/base64mime.pyi +22 -0
- jaclang/vendor/mypy/typeshed/stdlib/email/charset.pyi +39 -0
- jaclang/vendor/mypy/typeshed/stdlib/email/contentmanager.pyi +11 -0
- jaclang/vendor/mypy/typeshed/stdlib/email/encoders.pyi +8 -0
- jaclang/vendor/mypy/typeshed/stdlib/email/errors.pyi +39 -0
- jaclang/vendor/mypy/typeshed/stdlib/email/feedparser.pyi +31 -0
- jaclang/vendor/mypy/typeshed/stdlib/email/generator.pyi +42 -0
- jaclang/vendor/mypy/typeshed/stdlib/email/header.pyi +41 -0
- jaclang/vendor/mypy/typeshed/stdlib/email/headerregistry.pyi +214 -0
- jaclang/vendor/mypy/typeshed/stdlib/email/iterators.pyi +19 -0
- jaclang/vendor/mypy/typeshed/stdlib/email/message.pyi +220 -0
- jaclang/vendor/mypy/typeshed/stdlib/email/mime/__init__.pyi +0 -0
- jaclang/vendor/mypy/typeshed/stdlib/email/mime/application.pyi +17 -0
- jaclang/vendor/mypy/typeshed/stdlib/email/mime/audio.pyi +17 -0
- jaclang/vendor/mypy/typeshed/stdlib/email/mime/base.pyi +15 -0
- jaclang/vendor/mypy/typeshed/stdlib/email/mime/image.pyi +17 -0
- jaclang/vendor/mypy/typeshed/stdlib/email/mime/message.pyi +10 -0
- jaclang/vendor/mypy/typeshed/stdlib/email/mime/multipart.pyi +18 -0
- jaclang/vendor/mypy/typeshed/stdlib/email/mime/nonmultipart.pyi +5 -0
- jaclang/vendor/mypy/typeshed/stdlib/email/mime/text.pyi +14 -0
- jaclang/vendor/mypy/typeshed/stdlib/email/parser.pyi +44 -0
- jaclang/vendor/mypy/typeshed/stdlib/email/policy.pyi +51 -0
- jaclang/vendor/mypy/typeshed/stdlib/email/quoprimime.pyi +30 -0
- jaclang/vendor/mypy/typeshed/stdlib/email/utils.pyi +84 -0
- jaclang/vendor/mypy/typeshed/stdlib/encodings/__init__.pyi +10 -0
- jaclang/vendor/mypy/typeshed/stdlib/encodings/utf_8.pyi +25 -0
- jaclang/vendor/mypy/typeshed/stdlib/encodings/utf_8_sig.pyi +28 -0
- jaclang/vendor/mypy/typeshed/stdlib/ensurepip/__init__.pyi +12 -0
- jaclang/vendor/mypy/typeshed/stdlib/enum.pyi +347 -0
- jaclang/vendor/mypy/typeshed/stdlib/errno.pyi +222 -0
- jaclang/vendor/mypy/typeshed/stdlib/faulthandler.pyi +20 -0
- jaclang/vendor/mypy/typeshed/stdlib/fcntl.pyi +155 -0
- jaclang/vendor/mypy/typeshed/stdlib/filecmp.pyi +62 -0
- jaclang/vendor/mypy/typeshed/stdlib/fileinput.pyi +246 -0
- jaclang/vendor/mypy/typeshed/stdlib/fnmatch.pyi +9 -0
- jaclang/vendor/mypy/typeshed/stdlib/formatter.pyi +92 -0
- jaclang/vendor/mypy/typeshed/stdlib/fractions.pyi +152 -0
- jaclang/vendor/mypy/typeshed/stdlib/ftplib.pyi +214 -0
- jaclang/vendor/mypy/typeshed/stdlib/functools.pyi +261 -0
- jaclang/vendor/mypy/typeshed/stdlib/gc.pyi +39 -0
- jaclang/vendor/mypy/typeshed/stdlib/genericpath.pyi +62 -0
- jaclang/vendor/mypy/typeshed/stdlib/getopt.pyi +15 -0
- jaclang/vendor/mypy/typeshed/stdlib/getpass.pyi +8 -0
- jaclang/vendor/mypy/typeshed/stdlib/gettext.pyi +200 -0
- jaclang/vendor/mypy/typeshed/stdlib/glob.pyi +50 -0
- jaclang/vendor/mypy/typeshed/stdlib/graphlib.pyi +28 -0
- jaclang/vendor/mypy/typeshed/stdlib/grp.pyi +22 -0
- jaclang/vendor/mypy/typeshed/stdlib/gzip.pyi +162 -0
- jaclang/vendor/mypy/typeshed/stdlib/hashlib.pyi +191 -0
- jaclang/vendor/mypy/typeshed/stdlib/heapq.pyi +36 -0
- jaclang/vendor/mypy/typeshed/stdlib/hmac.pyi +45 -0
- jaclang/vendor/mypy/typeshed/stdlib/html/__init__.pyi +6 -0
- jaclang/vendor/mypy/typeshed/stdlib/html/entities.pyi +6 -0
- jaclang/vendor/mypy/typeshed/stdlib/html/parser.pyi +40 -0
- jaclang/vendor/mypy/typeshed/stdlib/http/__init__.pyi +105 -0
- jaclang/vendor/mypy/typeshed/stdlib/http/client.pyi +283 -0
- jaclang/vendor/mypy/typeshed/stdlib/http/cookiejar.pyi +206 -0
- jaclang/vendor/mypy/typeshed/stdlib/http/cookies.pyi +67 -0
- jaclang/vendor/mypy/typeshed/stdlib/http/server.pyi +93 -0
- jaclang/vendor/mypy/typeshed/stdlib/imaplib.pyi +221 -0
- jaclang/vendor/mypy/typeshed/stdlib/imghdr.pyi +17 -0
- jaclang/vendor/mypy/typeshed/stdlib/imp.pyi +75 -0
- jaclang/vendor/mypy/typeshed/stdlib/importlib/__init__.pyi +24 -0
- jaclang/vendor/mypy/typeshed/stdlib/importlib/_abc.pyi +15 -0
- jaclang/vendor/mypy/typeshed/stdlib/importlib/abc.pyi +195 -0
- jaclang/vendor/mypy/typeshed/stdlib/importlib/machinery.pyi +214 -0
- jaclang/vendor/mypy/typeshed/stdlib/importlib/metadata/__init__.pyi +310 -0
- jaclang/vendor/mypy/typeshed/stdlib/importlib/metadata/_meta.pyi +40 -0
- jaclang/vendor/mypy/typeshed/stdlib/importlib/readers.pyi +68 -0
- jaclang/vendor/mypy/typeshed/stdlib/importlib/resources/__init__.pyi +66 -0
- jaclang/vendor/mypy/typeshed/stdlib/importlib/resources/abc.pyi +12 -0
- jaclang/vendor/mypy/typeshed/stdlib/importlib/resources/readers.pyi +14 -0
- jaclang/vendor/mypy/typeshed/stdlib/importlib/resources/simple.pyi +55 -0
- jaclang/vendor/mypy/typeshed/stdlib/importlib/simple.pyi +16 -0
- jaclang/vendor/mypy/typeshed/stdlib/importlib/util.pyi +57 -0
- jaclang/vendor/mypy/typeshed/stdlib/inspect.pyi +709 -0
- jaclang/vendor/mypy/typeshed/stdlib/io.pyi +222 -0
- jaclang/vendor/mypy/typeshed/stdlib/ipaddress.pyi +229 -0
- jaclang/vendor/mypy/typeshed/stdlib/itertools.pyi +394 -0
- jaclang/vendor/mypy/typeshed/stdlib/json/__init__.pyi +69 -0
- jaclang/vendor/mypy/typeshed/stdlib/json/decoder.pyi +34 -0
- jaclang/vendor/mypy/typeshed/stdlib/json/encoder.pyi +38 -0
- jaclang/vendor/mypy/typeshed/stdlib/json/tool.pyi +1 -0
- jaclang/vendor/mypy/typeshed/stdlib/keyword.pyi +21 -0
- jaclang/vendor/mypy/typeshed/stdlib/lib2to3/__init__.pyi +0 -0
- jaclang/vendor/mypy/typeshed/stdlib/lib2to3/btm_matcher.pyi +32 -0
- jaclang/vendor/mypy/typeshed/stdlib/lib2to3/fixer_base.pyi +44 -0
- jaclang/vendor/mypy/typeshed/stdlib/lib2to3/fixes/__init__.pyi +0 -0
- jaclang/vendor/mypy/typeshed/stdlib/lib2to3/fixes/fix_apply.pyi +8 -0
- jaclang/vendor/mypy/typeshed/stdlib/lib2to3/fixes/fix_asserts.pyi +10 -0
- jaclang/vendor/mypy/typeshed/stdlib/lib2to3/fixes/fix_basestring.pyi +8 -0
- jaclang/vendor/mypy/typeshed/stdlib/lib2to3/fixes/fix_buffer.pyi +8 -0
- jaclang/vendor/mypy/typeshed/stdlib/lib2to3/fixes/fix_dict.pyi +16 -0
- jaclang/vendor/mypy/typeshed/stdlib/lib2to3/fixes/fix_except.pyi +14 -0
- jaclang/vendor/mypy/typeshed/stdlib/lib2to3/fixes/fix_exec.pyi +8 -0
- jaclang/vendor/mypy/typeshed/stdlib/lib2to3/fixes/fix_execfile.pyi +8 -0
- jaclang/vendor/mypy/typeshed/stdlib/lib2to3/fixes/fix_exitfunc.pyi +13 -0
- jaclang/vendor/mypy/typeshed/stdlib/lib2to3/fixes/fix_filter.pyi +9 -0
- jaclang/vendor/mypy/typeshed/stdlib/lib2to3/fixes/fix_funcattrs.pyi +8 -0
- jaclang/vendor/mypy/typeshed/stdlib/lib2to3/fixes/fix_future.pyi +8 -0
- jaclang/vendor/mypy/typeshed/stdlib/lib2to3/fixes/fix_getcwdu.pyi +8 -0
- jaclang/vendor/mypy/typeshed/stdlib/lib2to3/fixes/fix_has_key.pyi +8 -0
- jaclang/vendor/mypy/typeshed/stdlib/lib2to3/fixes/fix_idioms.pyi +15 -0
- jaclang/vendor/mypy/typeshed/stdlib/lib2to3/fixes/fix_import.pyi +16 -0
- jaclang/vendor/mypy/typeshed/stdlib/lib2to3/fixes/fix_imports.pyi +21 -0
- jaclang/vendor/mypy/typeshed/stdlib/lib2to3/fixes/fix_imports2.pyi +6 -0
- jaclang/vendor/mypy/typeshed/stdlib/lib2to3/fixes/fix_input.pyi +11 -0
- jaclang/vendor/mypy/typeshed/stdlib/lib2to3/fixes/fix_intern.pyi +9 -0
- jaclang/vendor/mypy/typeshed/stdlib/lib2to3/fixes/fix_isinstance.pyi +8 -0
- jaclang/vendor/mypy/typeshed/stdlib/lib2to3/fixes/fix_itertools.pyi +9 -0
- jaclang/vendor/mypy/typeshed/stdlib/lib2to3/fixes/fix_itertools_imports.pyi +7 -0
- jaclang/vendor/mypy/typeshed/stdlib/lib2to3/fixes/fix_long.pyi +7 -0
- jaclang/vendor/mypy/typeshed/stdlib/lib2to3/fixes/fix_map.pyi +9 -0
- jaclang/vendor/mypy/typeshed/stdlib/lib2to3/fixes/fix_metaclass.pyi +17 -0
- jaclang/vendor/mypy/typeshed/stdlib/lib2to3/fixes/fix_methodattrs.pyi +10 -0
- jaclang/vendor/mypy/typeshed/stdlib/lib2to3/fixes/fix_ne.pyi +8 -0
- jaclang/vendor/mypy/typeshed/stdlib/lib2to3/fixes/fix_next.pyi +19 -0
- jaclang/vendor/mypy/typeshed/stdlib/lib2to3/fixes/fix_nonzero.pyi +8 -0
- jaclang/vendor/mypy/typeshed/stdlib/lib2to3/fixes/fix_numliterals.pyi +8 -0
- jaclang/vendor/mypy/typeshed/stdlib/lib2to3/fixes/fix_operator.pyi +12 -0
- jaclang/vendor/mypy/typeshed/stdlib/lib2to3/fixes/fix_paren.pyi +8 -0
- jaclang/vendor/mypy/typeshed/stdlib/lib2to3/fixes/fix_print.pyi +12 -0
- jaclang/vendor/mypy/typeshed/stdlib/lib2to3/fixes/fix_raise.pyi +8 -0
- jaclang/vendor/mypy/typeshed/stdlib/lib2to3/fixes/fix_raw_input.pyi +8 -0
- jaclang/vendor/mypy/typeshed/stdlib/lib2to3/fixes/fix_reduce.pyi +8 -0
- jaclang/vendor/mypy/typeshed/stdlib/lib2to3/fixes/fix_reload.pyi +9 -0
- jaclang/vendor/mypy/typeshed/stdlib/lib2to3/fixes/fix_renames.pyi +17 -0
- jaclang/vendor/mypy/typeshed/stdlib/lib2to3/fixes/fix_repr.pyi +8 -0
- jaclang/vendor/mypy/typeshed/stdlib/lib2to3/fixes/fix_set_literal.pyi +7 -0
- jaclang/vendor/mypy/typeshed/stdlib/lib2to3/fixes/fix_standarderror.pyi +8 -0
- jaclang/vendor/mypy/typeshed/stdlib/lib2to3/fixes/fix_sys_exc.pyi +9 -0
- jaclang/vendor/mypy/typeshed/stdlib/lib2to3/fixes/fix_throw.pyi +8 -0
- jaclang/vendor/mypy/typeshed/stdlib/lib2to3/fixes/fix_tuple_params.pyi +17 -0
- jaclang/vendor/mypy/typeshed/stdlib/lib2to3/fixes/fix_types.pyi +8 -0
- jaclang/vendor/mypy/typeshed/stdlib/lib2to3/fixes/fix_unicode.pyi +12 -0
- jaclang/vendor/mypy/typeshed/stdlib/lib2to3/fixes/fix_urllib.pyi +18 -0
- jaclang/vendor/mypy/typeshed/stdlib/lib2to3/fixes/fix_ws_comma.pyi +12 -0
- jaclang/vendor/mypy/typeshed/stdlib/lib2to3/fixes/fix_xrange.pyi +20 -0
- jaclang/vendor/mypy/typeshed/stdlib/lib2to3/fixes/fix_xreadlines.pyi +8 -0
- jaclang/vendor/mypy/typeshed/stdlib/lib2to3/fixes/fix_zip.pyi +9 -0
- jaclang/vendor/mypy/typeshed/stdlib/lib2to3/main.pyi +46 -0
- jaclang/vendor/mypy/typeshed/stdlib/lib2to3/pgen2/__init__.pyi +9 -0
- jaclang/vendor/mypy/typeshed/stdlib/lib2to3/pgen2/driver.pyi +40 -0
- jaclang/vendor/mypy/typeshed/stdlib/lib2to3/pgen2/grammar.pyi +24 -0
- jaclang/vendor/mypy/typeshed/stdlib/lib2to3/pgen2/literals.pyi +7 -0
- jaclang/vendor/mypy/typeshed/stdlib/lib2to3/pgen2/parse.pyi +36 -0
- jaclang/vendor/mypy/typeshed/stdlib/lib2to3/pgen2/pgen.pyi +52 -0
- jaclang/vendor/mypy/typeshed/stdlib/lib2to3/pgen2/token.pyi +67 -0
- jaclang/vendor/mypy/typeshed/stdlib/lib2to3/pgen2/tokenize.pyi +98 -0
- jaclang/vendor/mypy/typeshed/stdlib/lib2to3/pygram.pyi +114 -0
- jaclang/vendor/mypy/typeshed/stdlib/lib2to3/pytree.pyi +142 -0
- jaclang/vendor/mypy/typeshed/stdlib/lib2to3/refactor.pyi +122 -0
- jaclang/vendor/mypy/typeshed/stdlib/linecache.pyi +29 -0
- jaclang/vendor/mypy/typeshed/stdlib/locale.pyi +165 -0
- jaclang/vendor/mypy/typeshed/stdlib/logging/__init__.pyi +685 -0
- jaclang/vendor/mypy/typeshed/stdlib/logging/config.pyi +161 -0
- jaclang/vendor/mypy/typeshed/stdlib/logging/handlers.pyi +315 -0
- jaclang/vendor/mypy/typeshed/stdlib/lzma.pyi +213 -0
- jaclang/vendor/mypy/typeshed/stdlib/mailbox.pyi +306 -0
- jaclang/vendor/mypy/typeshed/stdlib/mailcap.pyi +15 -0
- jaclang/vendor/mypy/typeshed/stdlib/marshal.pyi +35 -0
- jaclang/vendor/mypy/typeshed/stdlib/math.pyi +134 -0
- jaclang/vendor/mypy/typeshed/stdlib/mimetypes.pyi +50 -0
- jaclang/vendor/mypy/typeshed/stdlib/mmap.pyi +126 -0
- jaclang/vendor/mypy/typeshed/stdlib/modulefinder.pyi +84 -0
- jaclang/vendor/mypy/typeshed/stdlib/msilib/__init__.pyi +237 -0
- jaclang/vendor/mypy/typeshed/stdlib/msilib/schema.pyi +107 -0
- jaclang/vendor/mypy/typeshed/stdlib/msilib/sequence.pyi +13 -0
- jaclang/vendor/mypy/typeshed/stdlib/msilib/text.pyi +7 -0
- jaclang/vendor/mypy/typeshed/stdlib/msvcrt.pyi +32 -0
- jaclang/vendor/mypy/typeshed/stdlib/multiprocessing/__init__.pyi +94 -0
- jaclang/vendor/mypy/typeshed/stdlib/multiprocessing/connection.pyi +94 -0
- jaclang/vendor/mypy/typeshed/stdlib/multiprocessing/context.pyi +235 -0
- jaclang/vendor/mypy/typeshed/stdlib/multiprocessing/dummy/__init__.pyi +83 -0
- jaclang/vendor/mypy/typeshed/stdlib/multiprocessing/dummy/connection.pyi +50 -0
- jaclang/vendor/mypy/typeshed/stdlib/multiprocessing/forkserver.pyi +36 -0
- jaclang/vendor/mypy/typeshed/stdlib/multiprocessing/heap.pyi +38 -0
- jaclang/vendor/mypy/typeshed/stdlib/multiprocessing/managers.pyi +270 -0
- jaclang/vendor/mypy/typeshed/stdlib/multiprocessing/pool.pyi +137 -0
- jaclang/vendor/mypy/typeshed/stdlib/multiprocessing/popen_fork.pyi +23 -0
- jaclang/vendor/mypy/typeshed/stdlib/multiprocessing/popen_forkserver.pyi +16 -0
- jaclang/vendor/mypy/typeshed/stdlib/multiprocessing/popen_spawn_posix.pyi +20 -0
- jaclang/vendor/mypy/typeshed/stdlib/multiprocessing/popen_spawn_win32.pyi +30 -0
- jaclang/vendor/mypy/typeshed/stdlib/multiprocessing/process.pyi +39 -0
- jaclang/vendor/mypy/typeshed/stdlib/multiprocessing/queues.pyi +43 -0
- jaclang/vendor/mypy/typeshed/stdlib/multiprocessing/reduction.pyi +118 -0
- jaclang/vendor/mypy/typeshed/stdlib/multiprocessing/resource_sharer.pyi +20 -0
- jaclang/vendor/mypy/typeshed/stdlib/multiprocessing/resource_tracker.pyi +18 -0
- jaclang/vendor/mypy/typeshed/stdlib/multiprocessing/shared_memory.pyi +44 -0
- jaclang/vendor/mypy/typeshed/stdlib/multiprocessing/sharedctypes.pyi +140 -0
- jaclang/vendor/mypy/typeshed/stdlib/multiprocessing/spawn.pyi +34 -0
- jaclang/vendor/mypy/typeshed/stdlib/multiprocessing/synchronize.pyi +66 -0
- jaclang/vendor/mypy/typeshed/stdlib/multiprocessing/util.pyi +83 -0
- jaclang/vendor/mypy/typeshed/stdlib/netrc.pyi +28 -0
- jaclang/vendor/mypy/typeshed/stdlib/nis.pyi +9 -0
- jaclang/vendor/mypy/typeshed/stdlib/nntplib.pyi +151 -0
- jaclang/vendor/mypy/typeshed/stdlib/nt.pyi +114 -0
- jaclang/vendor/mypy/typeshed/stdlib/ntpath.pyi +119 -0
- jaclang/vendor/mypy/typeshed/stdlib/nturl2path.pyi +2 -0
- jaclang/vendor/mypy/typeshed/stdlib/numbers.pyi +154 -0
- jaclang/vendor/mypy/typeshed/stdlib/opcode.pyi +68 -0
- jaclang/vendor/mypy/typeshed/stdlib/operator.pyi +110 -0
- jaclang/vendor/mypy/typeshed/stdlib/optparse.pyi +290 -0
- jaclang/vendor/mypy/typeshed/stdlib/os/__init__.pyi +1317 -0
- jaclang/vendor/mypy/typeshed/stdlib/os/path.pyi +8 -0
- jaclang/vendor/mypy/typeshed/stdlib/ossaudiodev.pyi +131 -0
- jaclang/vendor/mypy/typeshed/stdlib/parser.pyi +28 -0
- jaclang/vendor/mypy/typeshed/stdlib/pathlib.pyi +282 -0
- jaclang/vendor/mypy/typeshed/stdlib/pdb.pyi +223 -0
- jaclang/vendor/mypy/typeshed/stdlib/pickle.pyi +286 -0
- jaclang/vendor/mypy/typeshed/stdlib/pickletools.pyi +173 -0
- jaclang/vendor/mypy/typeshed/stdlib/pipes.pyi +16 -0
- jaclang/vendor/mypy/typeshed/stdlib/pkgutil.pyi +61 -0
- jaclang/vendor/mypy/typeshed/stdlib/platform.pyi +56 -0
- jaclang/vendor/mypy/typeshed/stdlib/plistlib.pyi +176 -0
- jaclang/vendor/mypy/typeshed/stdlib/poplib.pyi +78 -0
- jaclang/vendor/mypy/typeshed/stdlib/posix.pyi +363 -0
- jaclang/vendor/mypy/typeshed/stdlib/posixpath.pyi +171 -0
- jaclang/vendor/mypy/typeshed/stdlib/pprint.pyi +122 -0
- jaclang/vendor/mypy/typeshed/stdlib/profile.pyi +43 -0
- jaclang/vendor/mypy/typeshed/stdlib/pstats.pyi +85 -0
- jaclang/vendor/mypy/typeshed/stdlib/pty.pyi +21 -0
- jaclang/vendor/mypy/typeshed/stdlib/pwd.pyi +36 -0
- jaclang/vendor/mypy/typeshed/stdlib/py_compile.pyi +40 -0
- jaclang/vendor/mypy/typeshed/stdlib/pyclbr.pyi +97 -0
- jaclang/vendor/mypy/typeshed/stdlib/pydoc.pyi +309 -0
- jaclang/vendor/mypy/typeshed/stdlib/pydoc_data/__init__.pyi +0 -0
- jaclang/vendor/mypy/typeshed/stdlib/pydoc_data/topics.pyi +1 -0
- jaclang/vendor/mypy/typeshed/stdlib/pyexpat/__init__.pyi +94 -0
- jaclang/vendor/mypy/typeshed/stdlib/pyexpat/errors.pyi +49 -0
- jaclang/vendor/mypy/typeshed/stdlib/pyexpat/model.pyi +11 -0
- jaclang/vendor/mypy/typeshed/stdlib/queue.pyi +62 -0
- jaclang/vendor/mypy/typeshed/stdlib/quopri.pyi +17 -0
- jaclang/vendor/mypy/typeshed/stdlib/random.pyi +160 -0
- jaclang/vendor/mypy/typeshed/stdlib/re.pyi +376 -0
- jaclang/vendor/mypy/typeshed/stdlib/readline.pyi +40 -0
- jaclang/vendor/mypy/typeshed/stdlib/reprlib.pyi +65 -0
- jaclang/vendor/mypy/typeshed/stdlib/resource.pyi +116 -0
- jaclang/vendor/mypy/typeshed/stdlib/rlcompleter.pyi +9 -0
- jaclang/vendor/mypy/typeshed/stdlib/runpy.pyi +31 -0
- jaclang/vendor/mypy/typeshed/stdlib/sched.pyi +56 -0
- jaclang/vendor/mypy/typeshed/stdlib/secrets.pyi +24 -0
- jaclang/vendor/mypy/typeshed/stdlib/select.pyi +162 -0
- jaclang/vendor/mypy/typeshed/stdlib/selectors.pyi +85 -0
- jaclang/vendor/mypy/typeshed/stdlib/shelve.pyi +64 -0
- jaclang/vendor/mypy/typeshed/stdlib/shlex.pyi +47 -0
- jaclang/vendor/mypy/typeshed/stdlib/shutil.pyi +239 -0
- jaclang/vendor/mypy/typeshed/stdlib/signal.pyi +208 -0
- jaclang/vendor/mypy/typeshed/stdlib/site.pyi +33 -0
- jaclang/vendor/mypy/typeshed/stdlib/smtpd.pyi +102 -0
- jaclang/vendor/mypy/typeshed/stdlib/smtplib.pyi +223 -0
- jaclang/vendor/mypy/typeshed/stdlib/sndhdr.pyi +14 -0
- jaclang/vendor/mypy/typeshed/stdlib/socket.pyi +881 -0
- jaclang/vendor/mypy/typeshed/stdlib/socketserver.pyi +195 -0
- jaclang/vendor/mypy/typeshed/stdlib/spwd.pyi +43 -0
- jaclang/vendor/mypy/typeshed/stdlib/sqlite3/__init__.pyi +1 -0
- jaclang/vendor/mypy/typeshed/stdlib/sqlite3/dbapi2.pyi +519 -0
- jaclang/vendor/mypy/typeshed/stdlib/sre_compile.pyi +11 -0
- jaclang/vendor/mypy/typeshed/stdlib/sre_constants.pyi +132 -0
- jaclang/vendor/mypy/typeshed/stdlib/sre_parse.pyi +110 -0
- jaclang/vendor/mypy/typeshed/stdlib/ssl.pyi +559 -0
- jaclang/vendor/mypy/typeshed/stdlib/stat.pyi +1 -0
- jaclang/vendor/mypy/typeshed/stdlib/statistics.pyi +151 -0
- jaclang/vendor/mypy/typeshed/stdlib/string.pyi +112 -0
- jaclang/vendor/mypy/typeshed/stdlib/stringprep.pyi +27 -0
- jaclang/vendor/mypy/typeshed/stdlib/struct.pyi +43 -0
- jaclang/vendor/mypy/typeshed/stdlib/subprocess.pyi +2638 -0
- jaclang/vendor/mypy/typeshed/stdlib/sunau.pyi +86 -0
- jaclang/vendor/mypy/typeshed/stdlib/symbol.pyi +93 -0
- jaclang/vendor/mypy/typeshed/stdlib/symtable.pyi +63 -0
- jaclang/vendor/mypy/typeshed/stdlib/sys/__init__.pyi +396 -0
- jaclang/vendor/mypy/typeshed/stdlib/sys/_monitoring.pyi +54 -0
- jaclang/vendor/mypy/typeshed/stdlib/sysconfig.pyi +52 -0
- jaclang/vendor/mypy/typeshed/stdlib/syslog.pyi +48 -0
- jaclang/vendor/mypy/typeshed/stdlib/tabnanny.pyi +18 -0
- jaclang/vendor/mypy/typeshed/stdlib/tarfile.pyi +486 -0
- jaclang/vendor/mypy/typeshed/stdlib/telnetlib.pyi +129 -0
- jaclang/vendor/mypy/typeshed/stdlib/tempfile.pyi +521 -0
- jaclang/vendor/mypy/typeshed/stdlib/termios.pyi +273 -0
- jaclang/vendor/mypy/typeshed/stdlib/textwrap.pyi +107 -0
- jaclang/vendor/mypy/typeshed/stdlib/this.pyi +2 -0
- jaclang/vendor/mypy/typeshed/stdlib/threading.pyi +212 -0
- jaclang/vendor/mypy/typeshed/stdlib/time.pyi +122 -0
- jaclang/vendor/mypy/typeshed/stdlib/timeit.pyi +46 -0
- jaclang/vendor/mypy/typeshed/stdlib/tkinter/__init__.pyi +3950 -0
- jaclang/vendor/mypy/typeshed/stdlib/tkinter/colorchooser.pyi +28 -0
- jaclang/vendor/mypy/typeshed/stdlib/tkinter/commondialog.pyi +16 -0
- jaclang/vendor/mypy/typeshed/stdlib/tkinter/constants.pyi +80 -0
- jaclang/vendor/mypy/typeshed/stdlib/tkinter/dialog.pyi +21 -0
- jaclang/vendor/mypy/typeshed/stdlib/tkinter/dnd.pyi +20 -0
- jaclang/vendor/mypy/typeshed/stdlib/tkinter/filedialog.pyi +173 -0
- jaclang/vendor/mypy/typeshed/stdlib/tkinter/font.pyi +148 -0
- jaclang/vendor/mypy/typeshed/stdlib/tkinter/messagebox.pyi +60 -0
- jaclang/vendor/mypy/typeshed/stdlib/tkinter/scrolledtext.pyi +10 -0
- jaclang/vendor/mypy/typeshed/stdlib/tkinter/simpledialog.pyi +54 -0
- jaclang/vendor/mypy/typeshed/stdlib/tkinter/tix.pyi +395 -0
- jaclang/vendor/mypy/typeshed/stdlib/tkinter/ttk.pyi +1276 -0
- jaclang/vendor/mypy/typeshed/stdlib/token.pyi +159 -0
- jaclang/vendor/mypy/typeshed/stdlib/tokenize.pyi +185 -0
- jaclang/vendor/mypy/typeshed/stdlib/tomllib.pyi +12 -0
- jaclang/vendor/mypy/typeshed/stdlib/trace.pyi +114 -0
- jaclang/vendor/mypy/typeshed/stdlib/traceback.pyi +297 -0
- jaclang/vendor/mypy/typeshed/stdlib/tracemalloc.pyi +142 -0
- jaclang/vendor/mypy/typeshed/stdlib/tty.pyi +30 -0
- jaclang/vendor/mypy/typeshed/stdlib/turtle.pyi +830 -0
- jaclang/vendor/mypy/typeshed/stdlib/types.pyi +647 -0
- jaclang/vendor/mypy/typeshed/stdlib/typing.pyi +1059 -0
- jaclang/vendor/mypy/typeshed/stdlib/typing_extensions.pyi +524 -0
- jaclang/vendor/mypy/typeshed/stdlib/unicodedata.pyi +71 -0
- jaclang/vendor/mypy/typeshed/stdlib/unittest/__init__.pyi +72 -0
- jaclang/vendor/mypy/typeshed/stdlib/unittest/_log.pyi +34 -0
- jaclang/vendor/mypy/typeshed/stdlib/unittest/async_case.pyi +28 -0
- jaclang/vendor/mypy/typeshed/stdlib/unittest/case.pyi +481 -0
- jaclang/vendor/mypy/typeshed/stdlib/unittest/loader.pyi +71 -0
- jaclang/vendor/mypy/typeshed/stdlib/unittest/main.pyi +75 -0
- jaclang/vendor/mypy/typeshed/stdlib/unittest/mock.pyi +468 -0
- jaclang/vendor/mypy/typeshed/stdlib/unittest/result.pyi +59 -0
- jaclang/vendor/mypy/typeshed/stdlib/unittest/runner.pyi +83 -0
- jaclang/vendor/mypy/typeshed/stdlib/unittest/signals.pyi +15 -0
- jaclang/vendor/mypy/typeshed/stdlib/unittest/suite.pyi +26 -0
- jaclang/vendor/mypy/typeshed/stdlib/unittest/util.pyi +31 -0
- jaclang/vendor/mypy/typeshed/stdlib/urllib/__init__.pyi +0 -0
- jaclang/vendor/mypy/typeshed/stdlib/urllib/error.pyi +27 -0
- jaclang/vendor/mypy/typeshed/stdlib/urllib/parse.pyi +245 -0
- jaclang/vendor/mypy/typeshed/stdlib/urllib/request.pyi +544 -0
- jaclang/vendor/mypy/typeshed/stdlib/urllib/response.pyi +50 -0
- jaclang/vendor/mypy/typeshed/stdlib/urllib/robotparser.pyi +20 -0
- jaclang/vendor/mypy/typeshed/stdlib/uu.pyi +23 -0
- jaclang/vendor/mypy/typeshed/stdlib/uuid.pyi +100 -0
- jaclang/vendor/mypy/typeshed/stdlib/warnings.pyi +144 -0
- jaclang/vendor/mypy/typeshed/stdlib/wave.pyi +87 -0
- jaclang/vendor/mypy/typeshed/stdlib/weakref.pyi +173 -0
- jaclang/vendor/mypy/typeshed/stdlib/webbrowser.pyi +80 -0
- jaclang/vendor/mypy/typeshed/stdlib/winreg.pyi +120 -0
- jaclang/vendor/mypy/typeshed/stdlib/winsound.pyi +28 -0
- jaclang/vendor/mypy/typeshed/stdlib/wsgiref/__init__.pyi +0 -0
- jaclang/vendor/mypy/typeshed/stdlib/wsgiref/handlers.pyi +109 -0
- jaclang/vendor/mypy/typeshed/stdlib/wsgiref/headers.pyi +28 -0
- jaclang/vendor/mypy/typeshed/stdlib/wsgiref/simple_server.pyi +49 -0
- jaclang/vendor/mypy/typeshed/stdlib/wsgiref/types.pyi +44 -0
- jaclang/vendor/mypy/typeshed/stdlib/wsgiref/util.pyi +31 -0
- jaclang/vendor/mypy/typeshed/stdlib/wsgiref/validate.pyi +52 -0
- jaclang/vendor/mypy/typeshed/stdlib/xdrlib.pyi +63 -0
- jaclang/vendor/mypy/typeshed/stdlib/xml/__init__.pyi +1 -0
- jaclang/vendor/mypy/typeshed/stdlib/xml/dom/NodeFilter.pyi +19 -0
- jaclang/vendor/mypy/typeshed/stdlib/xml/dom/__init__.pyi +72 -0
- jaclang/vendor/mypy/typeshed/stdlib/xml/dom/domreg.pyi +12 -0
- jaclang/vendor/mypy/typeshed/stdlib/xml/dom/expatbuilder.pyi +111 -0
- jaclang/vendor/mypy/typeshed/stdlib/xml/dom/minicompat.pyi +22 -0
- jaclang/vendor/mypy/typeshed/stdlib/xml/dom/minidom.pyi +467 -0
- jaclang/vendor/mypy/typeshed/stdlib/xml/dom/pulldom.pyi +101 -0
- jaclang/vendor/mypy/typeshed/stdlib/xml/dom/xmlbuilder.pyi +110 -0
- jaclang/vendor/mypy/typeshed/stdlib/xml/etree/ElementInclude.pyi +35 -0
- jaclang/vendor/mypy/typeshed/stdlib/xml/etree/ElementPath.pyi +49 -0
- jaclang/vendor/mypy/typeshed/stdlib/xml/etree/ElementTree.pyi +367 -0
- jaclang/vendor/mypy/typeshed/stdlib/xml/etree/__init__.pyi +0 -0
- jaclang/vendor/mypy/typeshed/stdlib/xml/etree/cElementTree.pyi +1 -0
- jaclang/vendor/mypy/typeshed/stdlib/xml/parsers/__init__.pyi +1 -0
- jaclang/vendor/mypy/typeshed/stdlib/xml/parsers/expat/__init__.pyi +1 -0
- jaclang/vendor/mypy/typeshed/stdlib/xml/parsers/expat/errors.pyi +1 -0
- jaclang/vendor/mypy/typeshed/stdlib/xml/parsers/expat/model.pyi +1 -0
- jaclang/vendor/mypy/typeshed/stdlib/xml/sax/__init__.pyi +34 -0
- jaclang/vendor/mypy/typeshed/stdlib/xml/sax/_exceptions.pyi +21 -0
- jaclang/vendor/mypy/typeshed/stdlib/xml/sax/handler.pyi +59 -0
- jaclang/vendor/mypy/typeshed/stdlib/xml/sax/saxutils.pyi +71 -0
- jaclang/vendor/mypy/typeshed/stdlib/xml/sax/xmlreader.pyi +89 -0
- jaclang/vendor/mypy/typeshed/stdlib/xmlrpc/__init__.pyi +0 -0
- jaclang/vendor/mypy/typeshed/stdlib/xmlrpc/client.pyi +348 -0
- jaclang/vendor/mypy/typeshed/stdlib/xmlrpc/server.pyi +186 -0
- jaclang/vendor/mypy/typeshed/stdlib/xxlimited.pyi +22 -0
- jaclang/vendor/mypy/typeshed/stdlib/zipapp.pyi +20 -0
- jaclang/vendor/mypy/typeshed/stdlib/zipfile/__init__.pyi +355 -0
- jaclang/vendor/mypy/typeshed/stdlib/zipfile/_path.pyi +105 -0
- jaclang/vendor/mypy/typeshed/stdlib/zipimport.pyi +40 -0
- jaclang/vendor/mypy/typeshed/stdlib/zlib.pyi +63 -0
- jaclang/vendor/mypy/typeshed/stdlib/zoneinfo/__init__.pyi +45 -0
- jaclang/vendor/mypy/typeshed/stubs/mypy-extensions/@tests/stubtest_allowlist.txt +2 -0
- jaclang/vendor/mypy/typeshed/stubs/mypy-extensions/METADATA.toml +4 -0
- jaclang/vendor/mypy/typeshed/stubs/mypy-extensions/mypy_extensions.pyi +238 -0
- jaclang/vendor/mypy/xml/mypy-html.css +104 -0
- jaclang/vendor/mypy/xml/mypy-html.xslt +81 -0
- jaclang/vendor/mypy/xml/mypy-txt.xslt +100 -0
- jaclang/vendor/mypy/xml/mypy.xsd +50 -0
- jaclang/vendor/mypyc/.readthedocs.yaml +18 -0
- jaclang/vendor/mypyc/README.md +133 -0
- jaclang/vendor/mypyc/doc/Makefile +20 -0
- jaclang/vendor/mypyc/doc/bool_operations.rst +27 -0
- jaclang/vendor/mypyc/doc/compilation_units.rst +20 -0
- jaclang/vendor/mypyc/doc/conf.py +59 -0
- jaclang/vendor/mypyc/doc/cpython-timings.md +25 -0
- jaclang/vendor/mypyc/doc/dev-intro.md +548 -0
- jaclang/vendor/mypyc/doc/dict_operations.rst +59 -0
- jaclang/vendor/mypyc/doc/differences_from_python.rst +332 -0
- jaclang/vendor/mypyc/doc/float_operations.rst +50 -0
- jaclang/vendor/mypyc/doc/future.md +42 -0
- jaclang/vendor/mypyc/doc/getting_started.rst +240 -0
- jaclang/vendor/mypyc/doc/index.rst +61 -0
- jaclang/vendor/mypyc/doc/int_operations.rst +162 -0
- jaclang/vendor/mypyc/doc/introduction.rst +150 -0
- jaclang/vendor/mypyc/doc/list_operations.rst +65 -0
- jaclang/vendor/mypyc/doc/make.bat +35 -0
- jaclang/vendor/mypyc/doc/native_classes.rst +206 -0
- jaclang/vendor/mypyc/doc/native_operations.rst +55 -0
- jaclang/vendor/mypyc/doc/performance_tips_and_tricks.rst +244 -0
- jaclang/vendor/mypyc/doc/set_operations.rst +47 -0
- jaclang/vendor/mypyc/doc/str_operations.rst +35 -0
- jaclang/vendor/mypyc/doc/tuple_operations.rst +33 -0
- jaclang/vendor/mypyc/doc/using_type_annotations.rst +398 -0
- jaclang/vendor/mypyc/external/googletest/LICENSE +28 -0
- jaclang/vendor/mypyc/external/googletest/README.md +280 -0
- jaclang/vendor/mypyc/external/googletest/include/gtest/gtest-death-test.h +294 -0
- jaclang/vendor/mypyc/external/googletest/include/gtest/gtest-message.h +250 -0
- jaclang/vendor/mypyc/external/googletest/include/gtest/gtest-param-test.h +1444 -0
- jaclang/vendor/mypyc/external/googletest/include/gtest/gtest-param-test.h.pump +510 -0
- jaclang/vendor/mypyc/external/googletest/include/gtest/gtest-printers.h +993 -0
- jaclang/vendor/mypyc/external/googletest/include/gtest/gtest-spi.h +232 -0
- jaclang/vendor/mypyc/external/googletest/include/gtest/gtest-test-part.h +179 -0
- jaclang/vendor/mypyc/external/googletest/include/gtest/gtest-typed-test.h +263 -0
- jaclang/vendor/mypyc/external/googletest/include/gtest/gtest.h +2236 -0
- jaclang/vendor/mypyc/external/googletest/include/gtest/gtest_pred_impl.h +358 -0
- jaclang/vendor/mypyc/external/googletest/include/gtest/gtest_prod.h +58 -0
- jaclang/vendor/mypyc/external/googletest/include/gtest/internal/custom/gtest-port.h +69 -0
- jaclang/vendor/mypyc/external/googletest/include/gtest/internal/custom/gtest-printers.h +42 -0
- jaclang/vendor/mypyc/external/googletest/include/gtest/internal/custom/gtest.h +41 -0
- jaclang/vendor/mypyc/external/googletest/include/gtest/internal/gtest-death-test-internal.h +319 -0
- jaclang/vendor/mypyc/external/googletest/include/gtest/internal/gtest-filepath.h +206 -0
- jaclang/vendor/mypyc/external/googletest/include/gtest/internal/gtest-internal.h +1238 -0
- jaclang/vendor/mypyc/external/googletest/include/gtest/internal/gtest-linked_ptr.h +243 -0
- jaclang/vendor/mypyc/external/googletest/include/gtest/internal/gtest-param-util-generated.h +5146 -0
- jaclang/vendor/mypyc/external/googletest/include/gtest/internal/gtest-param-util-generated.h.pump +286 -0
- jaclang/vendor/mypyc/external/googletest/include/gtest/internal/gtest-param-util.h +731 -0
- jaclang/vendor/mypyc/external/googletest/include/gtest/internal/gtest-port-arch.h +93 -0
- jaclang/vendor/mypyc/external/googletest/include/gtest/internal/gtest-port.h +2560 -0
- jaclang/vendor/mypyc/external/googletest/include/gtest/internal/gtest-string.h +167 -0
- jaclang/vendor/mypyc/external/googletest/include/gtest/internal/gtest-tuple.h +1020 -0
- jaclang/vendor/mypyc/external/googletest/include/gtest/internal/gtest-tuple.h.pump +347 -0
- jaclang/vendor/mypyc/external/googletest/include/gtest/internal/gtest-type-util.h +3331 -0
- jaclang/vendor/mypyc/external/googletest/include/gtest/internal/gtest-type-util.h.pump +297 -0
- jaclang/vendor/mypyc/external/googletest/make/Makefile +61 -0
- jaclang/vendor/mypyc/external/googletest/src/gtest-all.cc +48 -0
- jaclang/vendor/mypyc/external/googletest/src/gtest-death-test.cc +1342 -0
- jaclang/vendor/mypyc/external/googletest/src/gtest-filepath.cc +387 -0
- jaclang/vendor/mypyc/external/googletest/src/gtest-internal-inl.h +1183 -0
- jaclang/vendor/mypyc/external/googletest/src/gtest-port.cc +1259 -0
- jaclang/vendor/mypyc/external/googletest/src/gtest-printers.cc +373 -0
- jaclang/vendor/mypyc/external/googletest/src/gtest-test-part.cc +110 -0
- jaclang/vendor/mypyc/external/googletest/src/gtest-typed-test.cc +118 -0
- jaclang/vendor/mypyc/external/googletest/src/gtest.cc +5388 -0
- jaclang/vendor/mypyc/external/googletest/src/gtest_main.cc +38 -0
- jaclang/vendor/mypyc/lib-rt/CPy.h +643 -0
- jaclang/vendor/mypyc/lib-rt/bytes_ops.c +143 -0
- jaclang/vendor/mypyc/lib-rt/dict_ops.c +446 -0
- jaclang/vendor/mypyc/lib-rt/exc_ops.c +259 -0
- jaclang/vendor/mypyc/lib-rt/float_ops.c +192 -0
- jaclang/vendor/mypyc/lib-rt/generic_ops.c +64 -0
- jaclang/vendor/mypyc/lib-rt/getargs.c +450 -0
- jaclang/vendor/mypyc/lib-rt/getargsfast.c +569 -0
- jaclang/vendor/mypyc/lib-rt/init.c +13 -0
- jaclang/vendor/mypyc/lib-rt/int_ops.c +803 -0
- jaclang/vendor/mypyc/lib-rt/list_ops.c +335 -0
- jaclang/vendor/mypyc/lib-rt/misc_ops.c +942 -0
- jaclang/vendor/mypyc/lib-rt/module_shim.tmpl +18 -0
- jaclang/vendor/mypyc/lib-rt/mypyc_util.h +118 -0
- jaclang/vendor/mypyc/lib-rt/pythoncapi_compat.h +497 -0
- jaclang/vendor/mypyc/lib-rt/pythonsupport.h +548 -0
- jaclang/vendor/mypyc/lib-rt/set_ops.c +17 -0
- jaclang/vendor/mypyc/lib-rt/setup.py +76 -0
- jaclang/vendor/mypyc/lib-rt/str_ops.c +241 -0
- jaclang/vendor/mypyc/lib-rt/test_capi.cc +585 -0
- jaclang/vendor/mypyc/lib-rt/tuple_ops.c +61 -0
- jaclang/vendor/mypyc/test-data/alwaysdefined.test +732 -0
- jaclang/vendor/mypyc/test-data/analysis.test +603 -0
- jaclang/vendor/mypyc/test-data/commandline.test +245 -0
- jaclang/vendor/mypyc/test-data/driver/driver.py +50 -0
- jaclang/vendor/mypyc/test-data/exceptions-freq.test +125 -0
- jaclang/vendor/mypyc/test-data/exceptions.test +713 -0
- jaclang/vendor/mypyc/test-data/fixtures/ir.py +850 -0
- jaclang/vendor/mypyc/test-data/fixtures/testutil.py +117 -0
- jaclang/vendor/mypyc/test-data/fixtures/typing-full.pyi +212 -0
- jaclang/vendor/mypyc/test-data/irbuild-any.test +238 -0
- jaclang/vendor/mypyc/test-data/irbuild-basic.test +3690 -0
- jaclang/vendor/mypyc/test-data/irbuild-bool.test +463 -0
- jaclang/vendor/mypyc/test-data/irbuild-bytes.test +184 -0
- jaclang/vendor/mypyc/test-data/irbuild-classes.test +1303 -0
- jaclang/vendor/mypyc/test-data/irbuild-constant-fold.test +480 -0
- jaclang/vendor/mypyc/test-data/irbuild-dict.test +585 -0
- jaclang/vendor/mypyc/test-data/irbuild-dunders.test +223 -0
- jaclang/vendor/mypyc/test-data/irbuild-float.test +497 -0
- jaclang/vendor/mypyc/test-data/irbuild-generics.test +151 -0
- jaclang/vendor/mypyc/test-data/irbuild-glue-methods.test +437 -0
- jaclang/vendor/mypyc/test-data/irbuild-i16.test +526 -0
- jaclang/vendor/mypyc/test-data/irbuild-i32.test +598 -0
- jaclang/vendor/mypyc/test-data/irbuild-i64.test +2164 -0
- jaclang/vendor/mypyc/test-data/irbuild-int.test +235 -0
- jaclang/vendor/mypyc/test-data/irbuild-isinstance.test +109 -0
- jaclang/vendor/mypyc/test-data/irbuild-lists.test +547 -0
- jaclang/vendor/mypyc/test-data/irbuild-match.test +1708 -0
- jaclang/vendor/mypyc/test-data/irbuild-math.test +64 -0
- jaclang/vendor/mypyc/test-data/irbuild-nested.test +807 -0
- jaclang/vendor/mypyc/test-data/irbuild-optional.test +536 -0
- jaclang/vendor/mypyc/test-data/irbuild-set.test +838 -0
- jaclang/vendor/mypyc/test-data/irbuild-singledispatch.test +257 -0
- jaclang/vendor/mypyc/test-data/irbuild-statements.test +1149 -0
- jaclang/vendor/mypyc/test-data/irbuild-str.test +314 -0
- jaclang/vendor/mypyc/test-data/irbuild-strip-asserts.test +12 -0
- jaclang/vendor/mypyc/test-data/irbuild-try.test +523 -0
- jaclang/vendor/mypyc/test-data/irbuild-tuple.test +462 -0
- jaclang/vendor/mypyc/test-data/irbuild-u8.test +543 -0
- jaclang/vendor/mypyc/test-data/irbuild-unreachable.test +241 -0
- jaclang/vendor/mypyc/test-data/irbuild-vectorcall.test +153 -0
- jaclang/vendor/mypyc/test-data/refcount.test +1588 -0
- jaclang/vendor/mypyc/test-data/run-async.test +145 -0
- jaclang/vendor/mypyc/test-data/run-attrs.test +318 -0
- jaclang/vendor/mypyc/test-data/run-bench.test +196 -0
- jaclang/vendor/mypyc/test-data/run-bools.test +229 -0
- jaclang/vendor/mypyc/test-data/run-bytes.test +302 -0
- jaclang/vendor/mypyc/test-data/run-classes.test +2505 -0
- jaclang/vendor/mypyc/test-data/run-dicts.test +334 -0
- jaclang/vendor/mypyc/test-data/run-dunders.test +945 -0
- jaclang/vendor/mypyc/test-data/run-exceptions.test +448 -0
- jaclang/vendor/mypyc/test-data/run-floats.test +516 -0
- jaclang/vendor/mypyc/test-data/run-functions.test +1310 -0
- jaclang/vendor/mypyc/test-data/run-generators.test +681 -0
- jaclang/vendor/mypyc/test-data/run-i16.test +338 -0
- jaclang/vendor/mypyc/test-data/run-i32.test +336 -0
- jaclang/vendor/mypyc/test-data/run-i64.test +1519 -0
- jaclang/vendor/mypyc/test-data/run-imports.test +265 -0
- jaclang/vendor/mypyc/test-data/run-integers.test +540 -0
- jaclang/vendor/mypyc/test-data/run-lists.test +411 -0
- jaclang/vendor/mypyc/test-data/run-loops.test +485 -0
- jaclang/vendor/mypyc/test-data/run-match.test +283 -0
- jaclang/vendor/mypyc/test-data/run-math.test +106 -0
- jaclang/vendor/mypyc/test-data/run-misc.test +1168 -0
- jaclang/vendor/mypyc/test-data/run-multimodule.test +887 -0
- jaclang/vendor/mypyc/test-data/run-mypy-sim.test +138 -0
- jaclang/vendor/mypyc/test-data/run-primitives.test +375 -0
- jaclang/vendor/mypyc/test-data/run-python37.test +159 -0
- jaclang/vendor/mypyc/test-data/run-python38.test +88 -0
- jaclang/vendor/mypyc/test-data/run-sets.test +150 -0
- jaclang/vendor/mypyc/test-data/run-singledispatch.test +698 -0
- jaclang/vendor/mypyc/test-data/run-strings.test +641 -0
- jaclang/vendor/mypyc/test-data/run-traits.test +411 -0
- jaclang/vendor/mypyc/test-data/run-tuples.test +258 -0
- jaclang/vendor/mypyc/test-data/run-u8.test +303 -0
- jaclang/vendor/pluggy/LICENSE +21 -0
- jaclang-0.6.2.dist-info/METADATA +110 -0
- jaclang-0.6.2.dist-info/RECORD +1305 -0
- {jaclang-0.6.0.dist-info → jaclang-0.6.2.dist-info}/WHEEL +1 -2
- jaclang-0.6.2.dist-info/entry_points.txt +3 -0
- jaclang/compiler/generated/jac_parser.py +0 -4069
- jaclang-0.6.0.dist-info/METADATA +0 -17
- jaclang-0.6.0.dist-info/RECORD +0 -426
- jaclang-0.6.0.dist-info/entry_points.txt +0 -2
- jaclang-0.6.0.dist-info/top_level.txt +0 -1
- /jaclang/{compiler/generated/__init__.py → vendor/mypy/typeshed/stdlib/concurrent/__init__.pyi} +0 -0
jaclang/cli/.gitignore
ADDED
jaclang/cli/cli.md
ADDED
|
@@ -0,0 +1,190 @@
|
|
|
1
|
+
# **Jac Language Command Line Interface (CLI)**
|
|
2
|
+
|
|
3
|
+
Jac Language CLI is with a variety of commands to facilitate users. Additionally, Jac language offers users the ability to define custom CLI commands through plugins. This document aims to provide an overview of each command along with clear usage instructions.
|
|
4
|
+
|
|
5
|
+
> [!TIP]
|
|
6
|
+
> Type "help" on Jac CLI and see!
|
|
7
|
+
|
|
8
|
+
### Click one of the default commands below and see the usage.
|
|
9
|
+
- [tool](#tool) , [run](#run) , [clean](#clean) , [format](#format) , [check](#check) , [build](#build) , [enter](#enter) , [test](#test)
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
# 1. Command `tool`:
|
|
14
|
+
### tool
|
|
15
|
+
Jac Language offers language tools to perform various tasks efficiently. The `tool` command is utilized to execute specific language tools along with any optional arguments as needed. This command enables users to interact with language-specific command line tools designed to manage the language effectively.
|
|
16
|
+
### Usage:
|
|
17
|
+
```bash
|
|
18
|
+
$ jac tool <jac_tool> <args>
|
|
19
|
+
```
|
|
20
|
+
Parameters to execute the tool command:
|
|
21
|
+
- `jac_tool`: The name of the language tool to execute.
|
|
22
|
+
- `ir`, `pass_template`, `py_ast_nodes`, `md_doc`, `automate_ref` are the jac_tools used to handle (Usage instruction is below)
|
|
23
|
+
- `args`: Optional arguments for the specific language tool.
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
## 1. jac_tool `ir`:
|
|
27
|
+
`ir` tool generates an Abstract Syntax Tree (AST) and SymbolTable tree for a .jac file, or a Python AST for a .py file. `ir` tool is used with `tool` cli command.
|
|
28
|
+
### Usage
|
|
29
|
+
```bash
|
|
30
|
+
$ jac tool ir <output_type> <file_path>
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
### Parameters to use the ir tool:
|
|
34
|
+
- `output_type`: Choose one of the following options:
|
|
35
|
+
- `sym`: Provides the symbol table of the specified .jac file.
|
|
36
|
+
- `sym.`: Generates a dot graph representation of the symbol table for the specified .jac file.
|
|
37
|
+
- `ast`: Displays the Abstract Syntax Tree (AST) of the specified .jac file.
|
|
38
|
+
- `ast.`: Generates a dot graph representation of the AST for the specified .jac file.
|
|
39
|
+
- `pyast`: Generates the Python AST for a .py file or the relevant Python AST for the generated Python code from a .jac file.
|
|
40
|
+
- `py`: Displays the relevant generated Python code for the respective Jac code in a .jac file.
|
|
41
|
+
- `file_path`: Path to the .jac or .py file.
|
|
42
|
+
|
|
43
|
+
### Examples
|
|
44
|
+
>To get the symbol table tree of a Jac file:
|
|
45
|
+
>```bash
|
|
46
|
+
>$ jac tool ir sym <file_path>
|
|
47
|
+
>```
|
|
48
|
+
>To generate a dot graph of the symbol table tree for a Jac file:
|
|
49
|
+
>```bash
|
|
50
|
+
>$ jac tool ir sym. <file_path>
|
|
51
|
+
>```
|
|
52
|
+
>To view the AST tree of a Jac file:
|
|
53
|
+
>```bash
|
|
54
|
+
>$ jac tool ir ast <file_path>
|
|
55
|
+
>```
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
## 2. jac_tool `pass_template`:
|
|
59
|
+
`pass_template` tool generates pass template for jac.
|
|
60
|
+
```bash
|
|
61
|
+
$ jac tool pass_template
|
|
62
|
+
```
|
|
63
|
+
No Parameters needed to use the pass_template tool
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
## 3. jac_tool `py_ast_nodes`:
|
|
67
|
+
`py_ast_nodes` tool lists python ast nodes.
|
|
68
|
+
```bash
|
|
69
|
+
$ jac tool py_ast_nodes
|
|
70
|
+
```
|
|
71
|
+
No Parameters needed to use the py_ast_nodes tool
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+
## 4. jac_tool `md_doc`:
|
|
75
|
+
`md_doc` tool generate mermaid markdown doc.
|
|
76
|
+
```bash
|
|
77
|
+
$ jac tool md_doc
|
|
78
|
+
```
|
|
79
|
+
No Parameters needed to use the md_doc tool
|
|
80
|
+
|
|
81
|
+
|
|
82
|
+
## 5. jac_tool `automate_ref`:
|
|
83
|
+
`automate_ref` tool automates the reference guide generation.
|
|
84
|
+
```bash
|
|
85
|
+
$ jac tool automate_ref
|
|
86
|
+
```
|
|
87
|
+
No Parameters needed to use the automate_ref tool
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
|
|
91
|
+
# 2. Command `run`:
|
|
92
|
+
### run
|
|
93
|
+
The `run` command is utilized to run the specified .jac or .jir file.
|
|
94
|
+
### Usage:
|
|
95
|
+
```bash
|
|
96
|
+
$ jac run <file_path> [main] [cache]
|
|
97
|
+
```
|
|
98
|
+
Parameters to execute the run command:
|
|
99
|
+
- `file_path`: Path of .jac or .jir file to run.
|
|
100
|
+
- `main`: (Optional, bool) A flag indicating whether the module being executed is the main module. Defaults to True
|
|
101
|
+
- `cache` :The cache flag to cache
|
|
102
|
+
### Examples
|
|
103
|
+
>To run file_path Jac file:
|
|
104
|
+
>```bash
|
|
105
|
+
>$ jac run <file_path>
|
|
106
|
+
>```
|
|
107
|
+
|
|
108
|
+
|
|
109
|
+
|
|
110
|
+
# 3. Command `clean`:
|
|
111
|
+
### clean
|
|
112
|
+
The `clean` command is utilized to remove the __jac_gen__ , __pycache__ folders from the current directory recursively.
|
|
113
|
+
### Usage:
|
|
114
|
+
```bash
|
|
115
|
+
$ jac clean
|
|
116
|
+
```
|
|
117
|
+
No Parameters needed to execute the clean command
|
|
118
|
+
|
|
119
|
+
|
|
120
|
+
|
|
121
|
+
# 4. Command `format`:
|
|
122
|
+
### format
|
|
123
|
+
The `format` command is utilized to run the specified .jac file or format all .jac files in a given directory.
|
|
124
|
+
### Usage:
|
|
125
|
+
```bash
|
|
126
|
+
$ jac format <file_path/directory_path> [outfile] [debug]
|
|
127
|
+
```
|
|
128
|
+
Parameters to execute the format command:
|
|
129
|
+
- `file_path/directory_path`: The path to the .jac file or directory containing .jac files.
|
|
130
|
+
- `outfile`: (Optional) The output file path (only applies when formatting a single file).
|
|
131
|
+
- `debug` :(Optional) If True, print debug information. Defaults to False
|
|
132
|
+
### Examples
|
|
133
|
+
>To format all .jac files from walking through current located directory:
|
|
134
|
+
>```bash
|
|
135
|
+
>$ jac format .
|
|
136
|
+
>```
|
|
137
|
+
|
|
138
|
+
|
|
139
|
+
|
|
140
|
+
# 5. Command `check`:
|
|
141
|
+
### check
|
|
142
|
+
The `check` command is utilized to run type checker for a specified .jac file.
|
|
143
|
+
### Usage:
|
|
144
|
+
```bash
|
|
145
|
+
$ jac check <file_path>
|
|
146
|
+
```
|
|
147
|
+
Parameters to execute the check command:
|
|
148
|
+
- `file_path`: Path of .jac file to run type checker.
|
|
149
|
+
|
|
150
|
+
|
|
151
|
+
|
|
152
|
+
# 6. Command `build`:
|
|
153
|
+
### build
|
|
154
|
+
The `build` command is utilized to build the specified .jac file.
|
|
155
|
+
### Usage:
|
|
156
|
+
```bash
|
|
157
|
+
$ jac build <file_path>
|
|
158
|
+
```
|
|
159
|
+
Parameters to execute the build command:
|
|
160
|
+
- `file_path`: Path of .jac file to build.
|
|
161
|
+
|
|
162
|
+
|
|
163
|
+
|
|
164
|
+
# 7. Command `enter`:
|
|
165
|
+
### enter
|
|
166
|
+
The `enter` command is utilized to run the specified entrypoint function in the given .jac file.
|
|
167
|
+
### Usage:
|
|
168
|
+
```bash
|
|
169
|
+
$ jac enter <file_path> <entrypoint> <args>
|
|
170
|
+
```
|
|
171
|
+
Parameters to execute the enter command:
|
|
172
|
+
- `file_path`: The path to the .jac file.
|
|
173
|
+
- `entrypoint`: The name of the entrypoint function.
|
|
174
|
+
- `args`: Arguments to pass to the entrypoint function.
|
|
175
|
+
### Examples
|
|
176
|
+
>To enter file_path Jac file
|
|
177
|
+
>```bash
|
|
178
|
+
>$ jac enter <file_path>
|
|
179
|
+
>```
|
|
180
|
+
|
|
181
|
+
|
|
182
|
+
|
|
183
|
+
# 8. Command `test`:
|
|
184
|
+
### test
|
|
185
|
+
The `test` command is utilized to run the test suite in the specified .jac file.
|
|
186
|
+
```bash
|
|
187
|
+
$ jac test <file_path>
|
|
188
|
+
```
|
|
189
|
+
Parameters to execute the test command:
|
|
190
|
+
- `file_path`: The path to the .jac file.
|
jaclang/cli/cli.py
CHANGED
|
@@ -2,12 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
import ast as ast3
|
|
4
4
|
import importlib
|
|
5
|
+
import inspect
|
|
5
6
|
import marshal
|
|
6
7
|
import os
|
|
7
8
|
import pickle
|
|
8
9
|
import shutil
|
|
9
10
|
import types
|
|
10
11
|
from typing import Optional
|
|
12
|
+
from uuid import UUID
|
|
11
13
|
|
|
12
14
|
import jaclang.compiler.absyntree as ast
|
|
13
15
|
from jaclang import jac_import
|
|
@@ -17,6 +19,7 @@ from jaclang.compiler.constant import Constants
|
|
|
17
19
|
from jaclang.compiler.passes.main.pyast_load_pass import PyastBuildPass
|
|
18
20
|
from jaclang.compiler.passes.main.schedules import py_code_gen_typed
|
|
19
21
|
from jaclang.compiler.passes.tool.schedules import format_pass
|
|
22
|
+
from jaclang.core.construct import Architype
|
|
20
23
|
from jaclang.plugin.builtin import dotgen
|
|
21
24
|
from jaclang.plugin.feature import JacCmd as Cmd
|
|
22
25
|
from jaclang.plugin.feature import JacFeature as Jac
|
|
@@ -63,13 +66,33 @@ def format(path: str, outfile: str = "", debug: bool = False) -> None:
|
|
|
63
66
|
|
|
64
67
|
|
|
65
68
|
@cmd_registry.register
|
|
66
|
-
def run(
|
|
69
|
+
def run(
|
|
70
|
+
filename: str,
|
|
71
|
+
session: str = "",
|
|
72
|
+
main: bool = True,
|
|
73
|
+
cache: bool = True,
|
|
74
|
+
walker: str = "",
|
|
75
|
+
node: str = "",
|
|
76
|
+
) -> None:
|
|
67
77
|
"""Run the specified .jac file."""
|
|
78
|
+
# if no session specified, check if it was defined when starting the command shell
|
|
79
|
+
# otherwise default to jaclang.session
|
|
80
|
+
if session == "":
|
|
81
|
+
session = (
|
|
82
|
+
cmd_registry.args.session
|
|
83
|
+
if hasattr(cmd_registry, "args")
|
|
84
|
+
and hasattr(cmd_registry.args, "session")
|
|
85
|
+
and cmd_registry.args.session
|
|
86
|
+
else ""
|
|
87
|
+
)
|
|
88
|
+
|
|
89
|
+
Jac.context().init_memory(session)
|
|
90
|
+
|
|
68
91
|
base, mod = os.path.split(filename)
|
|
69
92
|
base = base if base else "./"
|
|
70
93
|
mod = mod[:-4]
|
|
71
94
|
if filename.endswith(".jac"):
|
|
72
|
-
jac_import(
|
|
95
|
+
loaded_mod = jac_import(
|
|
73
96
|
target=mod,
|
|
74
97
|
base_path=base,
|
|
75
98
|
cachable=cache,
|
|
@@ -78,7 +101,7 @@ def run(filename: str, main: bool = True, cache: bool = True) -> None:
|
|
|
78
101
|
elif filename.endswith(".jir"):
|
|
79
102
|
with open(filename, "rb") as f:
|
|
80
103
|
ir = pickle.load(f)
|
|
81
|
-
jac_import(
|
|
104
|
+
loaded_mod = jac_import(
|
|
82
105
|
target=mod,
|
|
83
106
|
base_path=base,
|
|
84
107
|
cachable=cache,
|
|
@@ -87,6 +110,49 @@ def run(filename: str, main: bool = True, cache: bool = True) -> None:
|
|
|
87
110
|
)
|
|
88
111
|
else:
|
|
89
112
|
print("Not a .jac file.")
|
|
113
|
+
return
|
|
114
|
+
|
|
115
|
+
if not node or node == "root":
|
|
116
|
+
entrypoint: Architype = Jac.get_root()
|
|
117
|
+
else:
|
|
118
|
+
obj = Jac.context().get_obj(UUID(node))
|
|
119
|
+
if obj is None:
|
|
120
|
+
print(f"Entrypoint {node} not found.")
|
|
121
|
+
return
|
|
122
|
+
entrypoint = obj
|
|
123
|
+
|
|
124
|
+
# TODO: handle no override name
|
|
125
|
+
if walker:
|
|
126
|
+
walker_module = dict(inspect.getmembers(loaded_mod)).get(walker)
|
|
127
|
+
if walker_module:
|
|
128
|
+
Jac.spawn_call(entrypoint, walker_module())
|
|
129
|
+
else:
|
|
130
|
+
print(f"Walker {walker} not found.")
|
|
131
|
+
|
|
132
|
+
Jac.reset_context()
|
|
133
|
+
|
|
134
|
+
|
|
135
|
+
@cmd_registry.register
|
|
136
|
+
def get_object(id: str, session: str = "") -> dict:
|
|
137
|
+
"""Get the object with the specified id."""
|
|
138
|
+
if session == "":
|
|
139
|
+
session = cmd_registry.args.session if "session" in cmd_registry.args else ""
|
|
140
|
+
|
|
141
|
+
Jac.context().init_memory(session)
|
|
142
|
+
|
|
143
|
+
if id == "root":
|
|
144
|
+
id_uuid = UUID(int=0)
|
|
145
|
+
else:
|
|
146
|
+
id_uuid = UUID(id)
|
|
147
|
+
|
|
148
|
+
obj = Jac.context().get_obj(id_uuid)
|
|
149
|
+
if obj is None:
|
|
150
|
+
print(f"Object with id {id} not found.")
|
|
151
|
+
Jac.reset_context()
|
|
152
|
+
return {}
|
|
153
|
+
else:
|
|
154
|
+
Jac.reset_context()
|
|
155
|
+
return obj.__getstate__()
|
|
90
156
|
|
|
91
157
|
|
|
92
158
|
@cmd_registry.register
|
|
@@ -242,6 +308,7 @@ def debug(filename: str, main: bool = True, cache: bool = False) -> None:
|
|
|
242
308
|
@cmd_registry.register
|
|
243
309
|
def dot(
|
|
244
310
|
filename: str,
|
|
311
|
+
session: str = "",
|
|
245
312
|
initial: str = "",
|
|
246
313
|
depth: int = -1,
|
|
247
314
|
traverse: bool = False,
|
|
@@ -263,6 +330,17 @@ def dot(
|
|
|
263
330
|
:param node_limit: The maximum number of nodes allowed in the graph.
|
|
264
331
|
:param saveto: Path to save the generated graph.
|
|
265
332
|
"""
|
|
333
|
+
if session == "":
|
|
334
|
+
session = (
|
|
335
|
+
cmd_registry.args.session
|
|
336
|
+
if hasattr(cmd_registry, "args")
|
|
337
|
+
and hasattr(cmd_registry.args, "session")
|
|
338
|
+
and cmd_registry.args.session
|
|
339
|
+
else ""
|
|
340
|
+
)
|
|
341
|
+
|
|
342
|
+
Jac.context().init_memory(session)
|
|
343
|
+
|
|
266
344
|
base, mod = os.path.split(filename)
|
|
267
345
|
base = base if base else "./"
|
|
268
346
|
mod = mod[:-4]
|
|
@@ -286,6 +364,10 @@ def dot(
|
|
|
286
364
|
)
|
|
287
365
|
except Exception as e:
|
|
288
366
|
print(f"Error while generating graph: {e}")
|
|
367
|
+
import traceback
|
|
368
|
+
|
|
369
|
+
traceback.print_exc()
|
|
370
|
+
Jac.reset_context()
|
|
289
371
|
return
|
|
290
372
|
file_name = saveto if saveto else f"{mod}.dot"
|
|
291
373
|
with open(file_name, "w") as file:
|
|
@@ -294,6 +376,8 @@ def dot(
|
|
|
294
376
|
else:
|
|
295
377
|
print("Not a .jac file.")
|
|
296
378
|
|
|
379
|
+
Jac.reset_context()
|
|
380
|
+
|
|
297
381
|
|
|
298
382
|
@cmd_registry.register
|
|
299
383
|
def py_to_jac(filename: str, tree: bool = False) -> None:
|
|
@@ -321,10 +405,13 @@ def start_cli() -> None:
|
|
|
321
405
|
"""
|
|
322
406
|
parser = cmd_registry.parser
|
|
323
407
|
args = parser.parse_args()
|
|
408
|
+
cmd_registry.args = args
|
|
324
409
|
command = cmd_registry.get(args.command)
|
|
325
410
|
if command:
|
|
326
411
|
args_dict = vars(args)
|
|
327
412
|
args_dict.pop("command")
|
|
413
|
+
if command not in ["run"]:
|
|
414
|
+
args_dict.pop("session")
|
|
328
415
|
ret = command.call(**args_dict)
|
|
329
416
|
if ret:
|
|
330
417
|
print(ret)
|
jaclang/cli/cmdreg.py
CHANGED
|
@@ -5,6 +5,7 @@ from __future__ import annotations
|
|
|
5
5
|
import argparse
|
|
6
6
|
import cmd
|
|
7
7
|
import inspect
|
|
8
|
+
import pprint
|
|
8
9
|
from typing import Callable, Optional
|
|
9
10
|
|
|
10
11
|
|
|
@@ -30,12 +31,17 @@ class CommandRegistry:
|
|
|
30
31
|
registry: dict[str, Command]
|
|
31
32
|
sub_parsers: argparse._SubParsersAction
|
|
32
33
|
parser: argparse.ArgumentParser
|
|
34
|
+
args: argparse.Namespace
|
|
33
35
|
|
|
34
36
|
def __init__(self) -> None:
|
|
35
37
|
"""Initialize a CommandRegistry instance."""
|
|
36
38
|
self.registry = {}
|
|
37
|
-
self.parser = argparse.ArgumentParser(prog="
|
|
39
|
+
self.parser = argparse.ArgumentParser(prog="jac")
|
|
40
|
+
self.parser.add_argument(
|
|
41
|
+
"--session", help="Session file path", nargs="?", default=""
|
|
42
|
+
)
|
|
38
43
|
self.sub_parsers = self.parser.add_subparsers(title="commands", dest="command")
|
|
44
|
+
self.args = argparse.Namespace()
|
|
39
45
|
|
|
40
46
|
def register(self, func: Callable) -> Callable:
|
|
41
47
|
"""Register a command in the registry."""
|
|
@@ -48,6 +54,11 @@ class CommandRegistry:
|
|
|
48
54
|
first = True
|
|
49
55
|
for param_name, param in cmd.sig.parameters.items():
|
|
50
56
|
arg_msg = f"type: {param.annotation.__name__}"
|
|
57
|
+
# shorthand is first character by default,
|
|
58
|
+
# If already taken, use the first 2 characters
|
|
59
|
+
shorthand = param_name[:1]
|
|
60
|
+
if f"-{shorthand}" in cmd_parser._option_string_actions:
|
|
61
|
+
shorthand = param_name[:2]
|
|
51
62
|
if param_name == "args":
|
|
52
63
|
cmd_parser.add_argument("args", nargs=argparse.REMAINDER, help=arg_msg)
|
|
53
64
|
elif param_name == "filepath":
|
|
@@ -76,7 +87,7 @@ class CommandRegistry:
|
|
|
76
87
|
)
|
|
77
88
|
else:
|
|
78
89
|
cmd_parser.add_argument(
|
|
79
|
-
f"-{
|
|
90
|
+
f"-{shorthand}",
|
|
80
91
|
f"--{param_name}",
|
|
81
92
|
required=True,
|
|
82
93
|
type=(
|
|
@@ -99,14 +110,14 @@ class CommandRegistry:
|
|
|
99
110
|
arg_msg += f", default: {param.default}"
|
|
100
111
|
if param.annotation == bool:
|
|
101
112
|
cmd_parser.add_argument(
|
|
102
|
-
f"-{
|
|
113
|
+
f"-{shorthand}",
|
|
103
114
|
f"--{param_name}",
|
|
104
115
|
default=param.default,
|
|
105
116
|
action="store_true",
|
|
106
117
|
help=arg_msg,
|
|
107
118
|
)
|
|
108
119
|
cmd_parser.add_argument(
|
|
109
|
-
f"-n{
|
|
120
|
+
f"-n{shorthand}",
|
|
110
121
|
f"--no-{param_name}",
|
|
111
122
|
dest=param_name,
|
|
112
123
|
action="store_false",
|
|
@@ -114,7 +125,7 @@ class CommandRegistry:
|
|
|
114
125
|
)
|
|
115
126
|
else:
|
|
116
127
|
cmd_parser.add_argument(
|
|
117
|
-
f"-{
|
|
128
|
+
f"-{shorthand}",
|
|
118
129
|
f"--{param_name}",
|
|
119
130
|
default=param.default,
|
|
120
131
|
help=arg_msg,
|
|
@@ -168,7 +179,8 @@ class CommandShell(cmd.Cmd):
|
|
|
168
179
|
args.pop("command")
|
|
169
180
|
ret = command.call(**args)
|
|
170
181
|
if ret:
|
|
171
|
-
|
|
182
|
+
ret_str = pprint.pformat(ret, indent=2)
|
|
183
|
+
self.stdout.write(f"{ret_str}\n")
|
|
172
184
|
except Exception as e:
|
|
173
185
|
print(e)
|
|
174
186
|
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
generated
|
jaclang/compiler/absyntree.py
CHANGED
|
@@ -391,7 +391,6 @@ class Module(AstDocNode):
|
|
|
391
391
|
body: Sequence[ElementStmt | String | EmptyToken],
|
|
392
392
|
is_imported: bool,
|
|
393
393
|
kid: Sequence[AstNode],
|
|
394
|
-
impl_mod: Optional[Module] = None,
|
|
395
394
|
test_mod: Optional[Module] = None,
|
|
396
395
|
registry: Optional[SemRegistry] = None,
|
|
397
396
|
) -> None:
|
|
@@ -400,7 +399,7 @@ class Module(AstDocNode):
|
|
|
400
399
|
self.source = source
|
|
401
400
|
self.body = body
|
|
402
401
|
self.is_imported = is_imported
|
|
403
|
-
self.impl_mod =
|
|
402
|
+
self.impl_mod: list[Module] = []
|
|
404
403
|
self.test_mod = test_mod
|
|
405
404
|
self.mod_deps: dict[str, Module] = {}
|
|
406
405
|
self.registry = registry
|
jaclang/compiler/parser.py
CHANGED
|
@@ -140,7 +140,7 @@ class JacParser(Pass):
|
|
|
140
140
|
body = kid[1:] if doc else kid
|
|
141
141
|
body = [i for i in body if isinstance(i, ast.ElementStmt)]
|
|
142
142
|
mod = ast.Module(
|
|
143
|
-
name=self.parse_ref.mod_path.split(os.path.sep)[-1].
|
|
143
|
+
name=self.parse_ref.mod_path.split(os.path.sep)[-1].rstrip(".jac"),
|
|
144
144
|
source=self.parse_ref.source,
|
|
145
145
|
doc=doc,
|
|
146
146
|
body=body,
|
|
@@ -72,7 +72,10 @@ class DeclDefMatchPass(Pass):
|
|
|
72
72
|
continue
|
|
73
73
|
decl_node.body = sym.decl # type: ignore
|
|
74
74
|
sym.decl.decl_link = decl_node # type: ignore
|
|
75
|
-
|
|
75
|
+
source_node = sym.decl.parent
|
|
76
|
+
decl_node.add_kids_right([sym.decl]) # type: ignore
|
|
77
|
+
if source_node and sym.decl in source_node.kid:
|
|
78
|
+
source_node.kid.remove(sym.decl)
|
|
76
79
|
decl_node.sym_tab.tab = sym.decl.sym_tab.tab # type: ignore
|
|
77
80
|
for i in sym_tab.kid:
|
|
78
81
|
self.connect_def_impl(i)
|
|
@@ -48,8 +48,16 @@ class FuseTypeInfoPass(Pass):
|
|
|
48
48
|
def __set_sym_table_link(self, node: ast.AstSymbolNode) -> None:
|
|
49
49
|
typ = node.sym_info.typ.split(".")
|
|
50
50
|
typ_sym_table = self.ir.sym_tab
|
|
51
|
-
|
|
52
|
-
|
|
51
|
+
|
|
52
|
+
if typ[0] == "builtins":
|
|
53
|
+
return
|
|
54
|
+
|
|
55
|
+
assert isinstance(self.ir, ast.Module)
|
|
56
|
+
|
|
57
|
+
if typ_sym_table:
|
|
58
|
+
for i in typ:
|
|
59
|
+
if i == self.ir.name:
|
|
60
|
+
continue
|
|
53
61
|
f = typ_sym_table.find_scope(i)
|
|
54
62
|
if f:
|
|
55
63
|
typ_sym_table = f
|
|
@@ -159,11 +167,6 @@ class FuseTypeInfoPass(Pass):
|
|
|
159
167
|
type(mypy_node),
|
|
160
168
|
)
|
|
161
169
|
|
|
162
|
-
def enter_import(self, node: ast.Import) -> None:
|
|
163
|
-
"""Pass handler for import nodes."""
|
|
164
|
-
# Pruning the import nodes
|
|
165
|
-
self.prune()
|
|
166
|
-
|
|
167
170
|
@__handle_node
|
|
168
171
|
def enter_name(self, node: ast.NameSpec) -> None:
|
|
169
172
|
"""Pass handler for name nodes."""
|
|
@@ -7,8 +7,8 @@ symbols are available for matching.
|
|
|
7
7
|
|
|
8
8
|
import ast as py_ast
|
|
9
9
|
import importlib.util
|
|
10
|
+
import os
|
|
10
11
|
import sys
|
|
11
|
-
from os import path
|
|
12
12
|
from typing import Optional
|
|
13
13
|
|
|
14
14
|
|
|
@@ -40,7 +40,6 @@ class JacImportPass(Pass):
|
|
|
40
40
|
self.process_import(node, i)
|
|
41
41
|
self.enter_module_path(i)
|
|
42
42
|
SubNodeTabPass(prior=self, input_ir=node)
|
|
43
|
-
self.annex_impl(node)
|
|
44
43
|
node.mod_deps = self.import_table
|
|
45
44
|
|
|
46
45
|
def process_import(self, node: ast.Module, i: ast.ModulePath) -> None:
|
|
@@ -53,7 +52,6 @@ class JacImportPass(Pass):
|
|
|
53
52
|
)
|
|
54
53
|
if mod:
|
|
55
54
|
self.run_again = True
|
|
56
|
-
self.annex_impl(mod)
|
|
57
55
|
i.sub_module = mod
|
|
58
56
|
i.add_kids_right([mod], pos_update=False)
|
|
59
57
|
|
|
@@ -61,22 +59,41 @@ class JacImportPass(Pass):
|
|
|
61
59
|
"""Annex impl and test modules."""
|
|
62
60
|
if not node.loc.mod_path:
|
|
63
61
|
self.error("Module has no path")
|
|
64
|
-
if node.loc.mod_path.endswith(".jac")
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
62
|
+
if not node.loc.mod_path.endswith(".jac"):
|
|
63
|
+
return
|
|
64
|
+
base_path = node.loc.mod_path[:-4]
|
|
65
|
+
directory = os.path.dirname(node.loc.mod_path)
|
|
66
|
+
if not directory:
|
|
67
|
+
directory = os.getcwd()
|
|
68
|
+
base_path = os.path.join(directory, base_path)
|
|
69
|
+
impl_folder = base_path + ".impl"
|
|
70
|
+
search_files = [
|
|
71
|
+
os.path.join(directory, impl_file) for impl_file in os.listdir(directory)
|
|
72
|
+
]
|
|
73
|
+
if os.path.exists(impl_folder):
|
|
74
|
+
search_files += [
|
|
75
|
+
os.path.join(impl_folder, impl_file)
|
|
76
|
+
for impl_file in os.listdir(impl_folder)
|
|
77
|
+
]
|
|
78
|
+
for impl_file in search_files:
|
|
79
|
+
if node.loc.mod_path.endswith(impl_file):
|
|
80
|
+
continue
|
|
81
|
+
if (
|
|
82
|
+
impl_file.startswith(f"{base_path}.") or impl_folder in impl_file
|
|
83
|
+
) and impl_file.endswith(".impl.jac"):
|
|
84
|
+
mod = self.import_mod_from_file(impl_file)
|
|
85
|
+
if mod:
|
|
86
|
+
node.impl_mod.append(mod)
|
|
87
|
+
node.add_kids_left([mod], pos_update=False)
|
|
88
|
+
mod.parent = node
|
|
89
|
+
if (
|
|
90
|
+
impl_file.startswith(f"{base_path}.") or impl_folder in impl_file
|
|
91
|
+
) and impl_file.endswith(".test.jac"):
|
|
92
|
+
mod = self.import_mod_from_file(impl_file)
|
|
93
|
+
if mod:
|
|
94
|
+
node.test_mod = mod
|
|
95
|
+
node.add_kids_right([mod], pos_update=False)
|
|
96
|
+
mod.parent = node
|
|
80
97
|
|
|
81
98
|
def enter_module_path(self, node: ast.ModulePath) -> None:
|
|
82
99
|
"""Sub objects.
|
|
@@ -96,7 +113,7 @@ class JacImportPass(Pass):
|
|
|
96
113
|
"""Import a module."""
|
|
97
114
|
self.cur_node = node # impacts error reporting
|
|
98
115
|
target = import_target_to_relative_path(
|
|
99
|
-
node.level, node.path_str, path.dirname(node.loc.mod_path)
|
|
116
|
+
node.level, node.path_str, os.path.dirname(node.loc.mod_path)
|
|
100
117
|
)
|
|
101
118
|
return self.import_mod_from_file(target)
|
|
102
119
|
|
|
@@ -105,7 +122,7 @@ class JacImportPass(Pass):
|
|
|
105
122
|
from jaclang.compiler.compile import jac_file_to_pass
|
|
106
123
|
from jaclang.compiler.passes.main import SubNodeTabPass
|
|
107
124
|
|
|
108
|
-
if not path.exists(target):
|
|
125
|
+
if not os.path.exists(target):
|
|
109
126
|
self.error(f"Could not find module {target}")
|
|
110
127
|
return None
|
|
111
128
|
if target in self.import_table:
|
|
@@ -133,7 +150,7 @@ class JacImportPass(Pass):
|
|
|
133
150
|
"""Import a module."""
|
|
134
151
|
from jaclang.compiler.passes.main import PyastBuildPass
|
|
135
152
|
|
|
136
|
-
base_dir = path.dirname(mod_path)
|
|
153
|
+
base_dir = os.path.dirname(mod_path)
|
|
137
154
|
sys.path.append(base_dir)
|
|
138
155
|
|
|
139
156
|
try:
|