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/core/construct.py
CHANGED
|
@@ -2,15 +2,15 @@
|
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
4
|
|
|
5
|
-
# import shelve
|
|
6
|
-
import types
|
|
7
5
|
import unittest
|
|
8
6
|
from dataclasses import dataclass, field
|
|
9
|
-
from typing import
|
|
10
|
-
|
|
7
|
+
from typing import Callable, Optional
|
|
8
|
+
from uuid import UUID, uuid4
|
|
11
9
|
|
|
12
10
|
from jaclang.compiler.constant import EdgeDir
|
|
13
11
|
from jaclang.core.utils import collect_node_connections
|
|
12
|
+
from jaclang.plugin.feature import JacFeature as Jac
|
|
13
|
+
from jaclang.plugin.spec import DSFunc
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
@dataclass(eq=False)
|
|
@@ -18,6 +18,7 @@ class ElementAnchor:
|
|
|
18
18
|
"""Element Anchor."""
|
|
19
19
|
|
|
20
20
|
obj: Architype
|
|
21
|
+
id: UUID = field(default_factory=uuid4)
|
|
21
22
|
|
|
22
23
|
|
|
23
24
|
@dataclass(eq=False)
|
|
@@ -35,6 +36,37 @@ class NodeAnchor(ObjectAnchor):
|
|
|
35
36
|
|
|
36
37
|
obj: NodeArchitype
|
|
37
38
|
edges: list[EdgeArchitype] = field(default_factory=lambda: [])
|
|
39
|
+
edge_ids: list[UUID] = field(default_factory=lambda: [])
|
|
40
|
+
persistent: bool = False
|
|
41
|
+
|
|
42
|
+
def __getstate__(self) -> dict:
|
|
43
|
+
"""Override getstate for pickle and shelve."""
|
|
44
|
+
state = self.__dict__.copy()
|
|
45
|
+
state.pop("obj")
|
|
46
|
+
if self.edges and "edges" in state:
|
|
47
|
+
edges = state.pop("edges")
|
|
48
|
+
state["edge_ids"] = [e._jac_.id for e in edges]
|
|
49
|
+
|
|
50
|
+
return state
|
|
51
|
+
|
|
52
|
+
def __setstate__(self, state: dict) -> None:
|
|
53
|
+
"""Override setstate for pickle and shelve."""
|
|
54
|
+
self.__dict__.update(state)
|
|
55
|
+
if "edge_ids" in state:
|
|
56
|
+
self.edge_ids = state.pop("edge_ids")
|
|
57
|
+
|
|
58
|
+
def populate_edges(self) -> None:
|
|
59
|
+
"""Populate edges from edge ids."""
|
|
60
|
+
if len(self.edges) == 0 and len(self.edge_ids) > 0:
|
|
61
|
+
for e_id in self.edge_ids:
|
|
62
|
+
edge = Jac.context().get_obj(e_id)
|
|
63
|
+
if edge is None:
|
|
64
|
+
raise ValueError(f"Edge with id {e_id} not found.")
|
|
65
|
+
elif not isinstance(edge, EdgeArchitype):
|
|
66
|
+
raise ValueError(f"Object with id {e_id} is not an edge.")
|
|
67
|
+
else:
|
|
68
|
+
self.edges.append(edge)
|
|
69
|
+
self.edge_ids.clear()
|
|
38
70
|
|
|
39
71
|
def connect_node(self, nd: NodeArchitype, edg: EdgeArchitype) -> NodeArchitype:
|
|
40
72
|
"""Connect a node with given edge."""
|
|
@@ -48,6 +80,8 @@ class NodeAnchor(ObjectAnchor):
|
|
|
48
80
|
target_obj: Optional[list[NodeArchitype]],
|
|
49
81
|
) -> list[EdgeArchitype]:
|
|
50
82
|
"""Get edges connected to this node."""
|
|
83
|
+
self.populate_edges()
|
|
84
|
+
|
|
51
85
|
edge_list: list[EdgeArchitype] = [*self.edges]
|
|
52
86
|
ret_edges: list[EdgeArchitype] = []
|
|
53
87
|
edge_list = filter_func(edge_list) if filter_func else edge_list
|
|
@@ -76,6 +110,9 @@ class NodeAnchor(ObjectAnchor):
|
|
|
76
110
|
target_obj: Optional[list[NodeArchitype]],
|
|
77
111
|
) -> list[NodeArchitype]:
|
|
78
112
|
"""Get set of nodes connected to this node."""
|
|
113
|
+
self.populate_edges()
|
|
114
|
+
for edge in self.edges:
|
|
115
|
+
edge.populate_nodes()
|
|
79
116
|
edge_list: list[EdgeArchitype] = [*self.edges]
|
|
80
117
|
node_list: list[NodeArchitype] = []
|
|
81
118
|
edge_list = filter_func(edge_list) if filter_func else edge_list
|
|
@@ -126,7 +163,29 @@ class EdgeAnchor(ObjectAnchor):
|
|
|
126
163
|
obj: EdgeArchitype
|
|
127
164
|
source: Optional[NodeArchitype] = None
|
|
128
165
|
target: Optional[NodeArchitype] = None
|
|
166
|
+
source_id: Optional[UUID] = None
|
|
167
|
+
target_id: Optional[UUID] = None
|
|
129
168
|
is_undirected: bool = False
|
|
169
|
+
persistent: bool = False
|
|
170
|
+
|
|
171
|
+
def __getstate__(self) -> dict:
|
|
172
|
+
"""Override getstate for pickle and shelve."""
|
|
173
|
+
state = self.__dict__.copy()
|
|
174
|
+
state.pop("obj")
|
|
175
|
+
|
|
176
|
+
if self.source:
|
|
177
|
+
state["source_id"] = self.source._jac_.id
|
|
178
|
+
state.pop("source")
|
|
179
|
+
|
|
180
|
+
if self.target:
|
|
181
|
+
state["target_id"] = self.target._jac_.id
|
|
182
|
+
state.pop("target")
|
|
183
|
+
|
|
184
|
+
return state
|
|
185
|
+
|
|
186
|
+
def __setstate__(self, state: dict) -> None:
|
|
187
|
+
"""Override setstate for pickle and shelve."""
|
|
188
|
+
self.__dict__.update(state)
|
|
130
189
|
|
|
131
190
|
def attach(
|
|
132
191
|
self, src: NodeArchitype, trg: NodeArchitype, is_undirected: bool = False
|
|
@@ -268,26 +327,113 @@ class Architype:
|
|
|
268
327
|
"""Create default architype."""
|
|
269
328
|
self._jac_: ObjectAnchor = ObjectAnchor(obj=self)
|
|
270
329
|
|
|
330
|
+
def __hash__(self) -> int:
|
|
331
|
+
"""Override hash for architype."""
|
|
332
|
+
return hash(self._jac_.id)
|
|
333
|
+
|
|
334
|
+
def __eq__(self, other: object) -> bool:
|
|
335
|
+
"""Override equality for architype."""
|
|
336
|
+
if not isinstance(other, Architype):
|
|
337
|
+
return False
|
|
338
|
+
else:
|
|
339
|
+
return self._jac_.id == other._jac_.id
|
|
340
|
+
|
|
341
|
+
def __repr__(self) -> str:
|
|
342
|
+
"""Override repr for architype."""
|
|
343
|
+
return f"{self.__class__.__name__}"
|
|
344
|
+
|
|
345
|
+
def __getstate__(self) -> dict:
|
|
346
|
+
"""Override getstate for pickle and shelve."""
|
|
347
|
+
raise NotImplementedError
|
|
348
|
+
|
|
271
349
|
|
|
272
350
|
class NodeArchitype(Architype):
|
|
273
351
|
"""Node Architype Protocol."""
|
|
274
352
|
|
|
353
|
+
_jac_: NodeAnchor
|
|
354
|
+
|
|
275
355
|
def __init__(self) -> None:
|
|
276
356
|
"""Create node architype."""
|
|
277
357
|
self._jac_: NodeAnchor = NodeAnchor(obj=self)
|
|
358
|
+
Jac.context().save_obj(self, persistent=self._jac_.persistent)
|
|
359
|
+
|
|
360
|
+
def save(self) -> None:
|
|
361
|
+
"""Save the node to the memory/storage hierarchy."""
|
|
362
|
+
self._jac_.persistent = True
|
|
363
|
+
Jac.context().save_obj(self, persistent=True)
|
|
364
|
+
|
|
365
|
+
def __getstate__(self) -> dict:
|
|
366
|
+
"""Override getstate for pickle and shelve."""
|
|
367
|
+
state = self.__dict__.copy()
|
|
368
|
+
state["_jac_"] = self._jac_.__getstate__()
|
|
369
|
+
return state
|
|
370
|
+
|
|
371
|
+
def __setstate__(self, state: dict) -> None:
|
|
372
|
+
"""Override setstate for pickle and shelve."""
|
|
373
|
+
self.__dict__.update(state)
|
|
374
|
+
self._jac_ = NodeAnchor(obj=self)
|
|
375
|
+
self._jac_.__setstate__(state["_jac_"])
|
|
278
376
|
|
|
279
377
|
|
|
280
378
|
class EdgeArchitype(Architype):
|
|
281
379
|
"""Edge Architype Protocol."""
|
|
282
380
|
|
|
381
|
+
_jac_: EdgeAnchor
|
|
382
|
+
persistent: bool = False
|
|
383
|
+
|
|
283
384
|
def __init__(self) -> None:
|
|
284
385
|
"""Create edge architype."""
|
|
285
386
|
self._jac_: EdgeAnchor = EdgeAnchor(obj=self)
|
|
387
|
+
Jac.context().save_obj(self, persistent=self.persistent)
|
|
388
|
+
|
|
389
|
+
def save(self) -> None:
|
|
390
|
+
"""Save the edge to the memory/storage hierarchy."""
|
|
391
|
+
self.persistent = True
|
|
392
|
+
Jac.context().save_obj(self, persistent=True)
|
|
393
|
+
|
|
394
|
+
def __getstate__(self) -> dict:
|
|
395
|
+
"""Override getstate for pickle and shelve."""
|
|
396
|
+
state = self.__dict__.copy()
|
|
397
|
+
state["_jac_"] = self._jac_.__getstate__()
|
|
398
|
+
return state
|
|
399
|
+
|
|
400
|
+
def __setstate__(self, state: dict) -> None:
|
|
401
|
+
"""Override setstate for pickle and shelve."""
|
|
402
|
+
self.__dict__.update(state)
|
|
403
|
+
self._jac_ = EdgeAnchor(obj=self)
|
|
404
|
+
self._jac_.__setstate__(state["_jac_"])
|
|
405
|
+
|
|
406
|
+
def populate_nodes(self) -> None:
|
|
407
|
+
"""Populate nodes for the edges from node ids."""
|
|
408
|
+
if self._jac_.source_id:
|
|
409
|
+
obj = Jac.context().get_obj(self._jac_.source_id)
|
|
410
|
+
if obj is None:
|
|
411
|
+
raise ValueError(f"Node with id {self._jac_.source_id} not found.")
|
|
412
|
+
elif not isinstance(obj, NodeArchitype):
|
|
413
|
+
raise ValueError(
|
|
414
|
+
f"Object with id {self._jac_.source_id} is not a node."
|
|
415
|
+
)
|
|
416
|
+
else:
|
|
417
|
+
self._jac_.source = obj
|
|
418
|
+
self._jac_.source_id = None
|
|
419
|
+
if self._jac_.target_id:
|
|
420
|
+
obj = Jac.context().get_obj(self._jac_.target_id)
|
|
421
|
+
if obj is None:
|
|
422
|
+
raise ValueError(f"Node with id {self._jac_.target_id} not found.")
|
|
423
|
+
elif not isinstance(obj, NodeArchitype):
|
|
424
|
+
raise ValueError(
|
|
425
|
+
f"Object with id {self._jac_.target_id} is not a node."
|
|
426
|
+
)
|
|
427
|
+
else:
|
|
428
|
+
self._jac_.target = obj
|
|
429
|
+
self._jac_.target_id = None
|
|
286
430
|
|
|
287
431
|
|
|
288
432
|
class WalkerArchitype(Architype):
|
|
289
433
|
"""Walker Architype Protocol."""
|
|
290
434
|
|
|
435
|
+
_jac_: WalkerAnchor
|
|
436
|
+
|
|
291
437
|
def __init__(self) -> None:
|
|
292
438
|
"""Create walker architype."""
|
|
293
439
|
self._jac_: WalkerAnchor = WalkerAnchor(obj=self)
|
|
@@ -301,6 +447,12 @@ class Root(NodeArchitype):
|
|
|
301
447
|
reachable_nodes: list[NodeArchitype] = []
|
|
302
448
|
connections: set[tuple[NodeArchitype, NodeArchitype, EdgeArchitype]] = set()
|
|
303
449
|
|
|
450
|
+
def __init__(self) -> None:
|
|
451
|
+
"""Create root node."""
|
|
452
|
+
super().__init__()
|
|
453
|
+
self._jac_.id = UUID(int=0)
|
|
454
|
+
self._jac_.persistent = True
|
|
455
|
+
|
|
304
456
|
def reset(self) -> None:
|
|
305
457
|
"""Reset the root."""
|
|
306
458
|
self.reachable_nodes = []
|
|
@@ -315,19 +467,6 @@ class GenericEdge(EdgeArchitype):
|
|
|
315
467
|
_jac_exit_funcs_ = []
|
|
316
468
|
|
|
317
469
|
|
|
318
|
-
@dataclass(eq=False)
|
|
319
|
-
class DSFunc:
|
|
320
|
-
"""Data Spatial Function."""
|
|
321
|
-
|
|
322
|
-
name: str
|
|
323
|
-
trigger: type | types.UnionType | tuple[type | types.UnionType, ...] | None
|
|
324
|
-
func: Callable[[Any, Any], Any] | None = None
|
|
325
|
-
|
|
326
|
-
def resolve(self, cls: type) -> None:
|
|
327
|
-
"""Resolve the function."""
|
|
328
|
-
self.func = getattr(cls, self.name)
|
|
329
|
-
|
|
330
|
-
|
|
331
470
|
class JacTestResult(unittest.TextTestResult):
|
|
332
471
|
"""Jac test result class."""
|
|
333
472
|
|
|
@@ -407,9 +546,6 @@ class JacTestCheck:
|
|
|
407
546
|
"""Create a new test."""
|
|
408
547
|
JacTestCheck.test_suite.addTest(unittest.FunctionTestCase(test_fun))
|
|
409
548
|
|
|
410
|
-
def __getattr__(self, name: str) ->
|
|
549
|
+
def __getattr__(self, name: str) -> object:
|
|
411
550
|
"""Make convenient check.Equal(...) etc."""
|
|
412
551
|
return getattr(JacTestCheck.test_case, name)
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
root = Root()
|
jaclang/core/importer.py
CHANGED
|
@@ -32,9 +32,13 @@ def jac_importer(
|
|
|
32
32
|
module_name = path.splitext(file_name)[0]
|
|
33
33
|
package_path = dir_path.replace(path.sep, ".")
|
|
34
34
|
|
|
35
|
-
if
|
|
35
|
+
if (
|
|
36
|
+
not override_name
|
|
37
|
+
and package_path
|
|
38
|
+
and f"{package_path}.{module_name}" in sys.modules
|
|
39
|
+
):
|
|
36
40
|
return sys.modules[f"{package_path}.{module_name}"]
|
|
37
|
-
elif not package_path and module_name in sys.modules:
|
|
41
|
+
elif not override_name and not package_path and module_name in sys.modules:
|
|
38
42
|
return sys.modules[module_name]
|
|
39
43
|
|
|
40
44
|
caller_dir = get_caller_dir(target, base_path, dir_path)
|
jaclang/core/memory.py
ADDED
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
"""Memory abstraction for jaseci plugin."""
|
|
2
|
+
|
|
3
|
+
from uuid import UUID
|
|
4
|
+
|
|
5
|
+
from jaclang.core.construct import Architype
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class Memory:
|
|
9
|
+
"""Memory module interface."""
|
|
10
|
+
|
|
11
|
+
mem: dict[UUID, Architype] = {}
|
|
12
|
+
save_obj_list: dict[UUID, Architype] = {}
|
|
13
|
+
|
|
14
|
+
def __init__(self) -> None:
|
|
15
|
+
"""init."""
|
|
16
|
+
pass
|
|
17
|
+
|
|
18
|
+
def get_obj(self, obj_id: UUID) -> Architype | None:
|
|
19
|
+
"""Get object from memory."""
|
|
20
|
+
return self.get_obj_from_store(obj_id)
|
|
21
|
+
|
|
22
|
+
def get_obj_from_store(self, obj_id: UUID) -> Architype | None:
|
|
23
|
+
"""Get object from the underlying store."""
|
|
24
|
+
ret = self.mem.get(obj_id)
|
|
25
|
+
return ret
|
|
26
|
+
|
|
27
|
+
def has_obj(self, obj_id: UUID) -> bool:
|
|
28
|
+
"""Check if the object exists."""
|
|
29
|
+
return self.has_obj_in_store(obj_id)
|
|
30
|
+
|
|
31
|
+
def has_obj_in_store(self, obj_id: UUID) -> bool:
|
|
32
|
+
"""Check if the object exists in the underlying store."""
|
|
33
|
+
return obj_id in self.mem
|
|
34
|
+
|
|
35
|
+
def save_obj(self, item: Architype, persistent: bool) -> None:
|
|
36
|
+
"""Save object."""
|
|
37
|
+
self.mem[item._jac_.id] = item
|
|
38
|
+
if persistent:
|
|
39
|
+
# TODO: check if it needs to be saved, i.e. dirty or not
|
|
40
|
+
self.save_obj_list[item._jac_.id] = item
|
|
41
|
+
|
|
42
|
+
def commit(self) -> None:
|
|
43
|
+
"""Commit changes to persistent storage, if applicable."""
|
|
44
|
+
pass
|
|
45
|
+
|
|
46
|
+
def close(self) -> None:
|
|
47
|
+
"""Close any connection, if applicable."""
|
|
48
|
+
self.mem.clear()
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
"""Shelve storage for persistence storage of jaclang runtime object."""
|
|
2
|
+
|
|
3
|
+
import shelve
|
|
4
|
+
from uuid import UUID
|
|
5
|
+
|
|
6
|
+
from jaclang.core.construct import Architype
|
|
7
|
+
from jaclang.core.memory import Memory
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class ShelveStorage(Memory):
|
|
11
|
+
"""Shelve storage for jaclang runtime object."""
|
|
12
|
+
|
|
13
|
+
storage: shelve.Shelf | None = None
|
|
14
|
+
|
|
15
|
+
def __init__(self, session: str = "") -> None:
|
|
16
|
+
"""Init shelve storage."""
|
|
17
|
+
super().__init__()
|
|
18
|
+
if session:
|
|
19
|
+
self.connect(session)
|
|
20
|
+
|
|
21
|
+
def get_obj_from_store(self, obj_id: UUID) -> Architype | None:
|
|
22
|
+
"""Get object from the underlying store."""
|
|
23
|
+
obj = super().get_obj_from_store(obj_id)
|
|
24
|
+
if obj is None and self.storage:
|
|
25
|
+
obj = self.storage.get(str(obj_id))
|
|
26
|
+
if obj is not None:
|
|
27
|
+
self.mem[obj_id] = obj
|
|
28
|
+
|
|
29
|
+
return obj
|
|
30
|
+
|
|
31
|
+
def has_obj_in_store(self, obj_id: UUID | str) -> bool:
|
|
32
|
+
"""Check if the object exists in the underlying store."""
|
|
33
|
+
return obj_id in self.mem or (
|
|
34
|
+
str(obj_id) in self.storage if self.storage else False
|
|
35
|
+
)
|
|
36
|
+
|
|
37
|
+
def commit(self) -> None:
|
|
38
|
+
"""Commit changes to persistent storage."""
|
|
39
|
+
if self.storage is not None:
|
|
40
|
+
for obj_id, obj in self.save_obj_list.items():
|
|
41
|
+
self.storage[str(obj_id)] = obj
|
|
42
|
+
self.save_obj_list.clear()
|
|
43
|
+
|
|
44
|
+
def connect(self, session: str) -> None:
|
|
45
|
+
"""Connect to storage."""
|
|
46
|
+
self.session = session
|
|
47
|
+
self.storage = shelve.open(session)
|
|
48
|
+
|
|
49
|
+
def close(self) -> None:
|
|
50
|
+
"""Close the storage."""
|
|
51
|
+
super().close()
|
|
52
|
+
self.commit()
|
|
53
|
+
if self.storage:
|
|
54
|
+
self.storage.close()
|
|
55
|
+
self.storage = None
|
jaclang/plugin/__init__.py
CHANGED
jaclang/plugin/builtin.py
CHANGED
|
@@ -20,9 +20,9 @@ def dotgen(
|
|
|
20
20
|
dot_file: Optional[str] = None,
|
|
21
21
|
) -> str:
|
|
22
22
|
"""Print the dot graph."""
|
|
23
|
-
from jaclang.core.construct import root
|
|
24
23
|
from jaclang.plugin.feature import pm
|
|
25
24
|
|
|
25
|
+
root = pm.hook.get_root()
|
|
26
26
|
node = node if node is not None else root
|
|
27
27
|
depth = depth if depth is not None else -1
|
|
28
28
|
traverse = traverse if traverse is not None else False
|
jaclang/plugin/default.py
CHANGED
|
@@ -7,9 +7,11 @@ import html
|
|
|
7
7
|
import os
|
|
8
8
|
import pickle
|
|
9
9
|
import types
|
|
10
|
+
from contextvars import ContextVar
|
|
10
11
|
from dataclasses import field
|
|
11
12
|
from functools import wraps
|
|
12
13
|
from typing import Any, Callable, Optional, Type, Union
|
|
14
|
+
from uuid import UUID
|
|
13
15
|
|
|
14
16
|
from jaclang.compiler.absyntree import Module
|
|
15
17
|
from jaclang.compiler.constant import EdgeDir, colors
|
|
@@ -34,10 +36,11 @@ from jaclang.core.construct import (
|
|
|
34
36
|
Root,
|
|
35
37
|
WalkerAnchor,
|
|
36
38
|
WalkerArchitype,
|
|
37
|
-
root,
|
|
38
39
|
)
|
|
39
40
|
from jaclang.core.importer import jac_importer
|
|
41
|
+
from jaclang.core.memory import Memory
|
|
40
42
|
from jaclang.core.registry import SemInfo, SemRegistry, SemScope
|
|
43
|
+
from jaclang.core.shelve_storage import ShelveStorage
|
|
41
44
|
from jaclang.core.utils import traverse_graph
|
|
42
45
|
from jaclang.plugin.feature import JacFeature as Jac
|
|
43
46
|
from jaclang.plugin.spec import T
|
|
@@ -55,11 +58,10 @@ __all__ = [
|
|
|
55
58
|
"WalkerAnchor",
|
|
56
59
|
"NodeArchitype",
|
|
57
60
|
"EdgeArchitype",
|
|
61
|
+
"Root",
|
|
58
62
|
"WalkerArchitype",
|
|
59
63
|
"Architype",
|
|
60
64
|
"DSFunc",
|
|
61
|
-
"root",
|
|
62
|
-
"Root",
|
|
63
65
|
"jac_importer",
|
|
64
66
|
"T",
|
|
65
67
|
]
|
|
@@ -68,11 +70,95 @@ __all__ = [
|
|
|
68
70
|
hookimpl = pluggy.HookimplMarker("jac")
|
|
69
71
|
|
|
70
72
|
|
|
73
|
+
class ExecutionContext:
|
|
74
|
+
"""Default Execution Context implementation."""
|
|
75
|
+
|
|
76
|
+
mem: Optional[Memory]
|
|
77
|
+
root: Optional[Root]
|
|
78
|
+
|
|
79
|
+
def __init__(self) -> None:
|
|
80
|
+
super().__init__()
|
|
81
|
+
self.mem = ShelveStorage()
|
|
82
|
+
self.root = None
|
|
83
|
+
|
|
84
|
+
def init_memory(self, session: str = "") -> None:
|
|
85
|
+
if session:
|
|
86
|
+
self.mem = ShelveStorage(session)
|
|
87
|
+
else:
|
|
88
|
+
self.mem = Memory()
|
|
89
|
+
|
|
90
|
+
def get_root(self) -> Root:
|
|
91
|
+
if self.mem is None:
|
|
92
|
+
raise ValueError("Memory not initialized")
|
|
93
|
+
|
|
94
|
+
if not self.root:
|
|
95
|
+
root = self.mem.get_obj(UUID(int=0))
|
|
96
|
+
if root is None:
|
|
97
|
+
self.root = Root()
|
|
98
|
+
self.mem.save_obj(self.root, persistent=self.root._jac_.persistent)
|
|
99
|
+
elif not isinstance(root, Root):
|
|
100
|
+
raise ValueError(f"Invalid root object: {root}")
|
|
101
|
+
else:
|
|
102
|
+
self.root = root
|
|
103
|
+
return self.root
|
|
104
|
+
|
|
105
|
+
def get_obj(self, obj_id: UUID) -> Architype | None:
|
|
106
|
+
"""Get object from memory."""
|
|
107
|
+
if self.mem is None:
|
|
108
|
+
raise ValueError("Memory not initialized")
|
|
109
|
+
|
|
110
|
+
return self.mem.get_obj(obj_id)
|
|
111
|
+
|
|
112
|
+
def save_obj(self, item: Architype, persistent: bool) -> None:
|
|
113
|
+
"""Save object to memory."""
|
|
114
|
+
if self.mem is None:
|
|
115
|
+
raise ValueError("Memory not initialized")
|
|
116
|
+
|
|
117
|
+
self.mem.save_obj(item, persistent)
|
|
118
|
+
|
|
119
|
+
def reset(self) -> None:
|
|
120
|
+
"""Reset the execution context."""
|
|
121
|
+
if self.mem:
|
|
122
|
+
self.mem.close()
|
|
123
|
+
self.mem = None
|
|
124
|
+
self.root = None
|
|
125
|
+
|
|
126
|
+
|
|
127
|
+
ExecContext: ContextVar[ExecutionContext | None] = ContextVar(
|
|
128
|
+
"ExecutionContext", default=None
|
|
129
|
+
)
|
|
130
|
+
|
|
131
|
+
|
|
71
132
|
class JacFeatureDefaults:
|
|
72
133
|
"""Jac Feature."""
|
|
73
134
|
|
|
74
135
|
pm = pluggy.PluginManager("jac")
|
|
75
136
|
|
|
137
|
+
@staticmethod
|
|
138
|
+
@hookimpl
|
|
139
|
+
def context(session: str = "") -> ExecutionContext:
|
|
140
|
+
"""Get the execution context."""
|
|
141
|
+
ctx = ExecContext.get()
|
|
142
|
+
if ctx is None:
|
|
143
|
+
ctx = ExecutionContext()
|
|
144
|
+
ExecContext.set(ctx)
|
|
145
|
+
return ctx
|
|
146
|
+
|
|
147
|
+
@staticmethod
|
|
148
|
+
@hookimpl
|
|
149
|
+
def reset_context() -> None:
|
|
150
|
+
"""Reset the execution context."""
|
|
151
|
+
ctx = ExecContext.get()
|
|
152
|
+
if ctx:
|
|
153
|
+
ctx.reset()
|
|
154
|
+
ExecContext.set(None)
|
|
155
|
+
|
|
156
|
+
@staticmethod
|
|
157
|
+
@hookimpl
|
|
158
|
+
def memory_hook() -> Memory | None:
|
|
159
|
+
"""Return the memory hook."""
|
|
160
|
+
return Jac.context().mem
|
|
161
|
+
|
|
76
162
|
@staticmethod
|
|
77
163
|
@hookimpl
|
|
78
164
|
def make_architype(
|
|
@@ -377,6 +463,12 @@ class JacFeatureDefaults:
|
|
|
377
463
|
conn_edge = edge_spec()
|
|
378
464
|
edges.append(conn_edge)
|
|
379
465
|
i._jac_.connect_node(j, conn_edge)
|
|
466
|
+
|
|
467
|
+
if i._jac_.persistent or j._jac_.persistent:
|
|
468
|
+
conn_edge.save()
|
|
469
|
+
j.save()
|
|
470
|
+
i.save()
|
|
471
|
+
|
|
380
472
|
return right if not edges_only else edges
|
|
381
473
|
|
|
382
474
|
@staticmethod
|
|
@@ -429,7 +521,7 @@ class JacFeatureDefaults:
|
|
|
429
521
|
@hookimpl
|
|
430
522
|
def get_root() -> Root:
|
|
431
523
|
"""Jac's assign comprehension feature."""
|
|
432
|
-
return
|
|
524
|
+
return Jac.context().get_root()
|
|
433
525
|
|
|
434
526
|
@staticmethod
|
|
435
527
|
@hookimpl
|
|
@@ -603,6 +695,7 @@ class JacFeatureDefaults:
|
|
|
603
695
|
)
|
|
604
696
|
|
|
605
697
|
type_collector: list = []
|
|
698
|
+
incl_info = [x for x in incl_info if not isinstance(x[1], type)]
|
|
606
699
|
information, collected_types = get_info_types(_scope, mod_registry, incl_info)
|
|
607
700
|
type_collector.extend(collected_types)
|
|
608
701
|
inputs_information_list = []
|
jaclang/plugin/feature.py
CHANGED
|
@@ -3,18 +3,22 @@
|
|
|
3
3
|
from __future__ import annotations
|
|
4
4
|
|
|
5
5
|
import types
|
|
6
|
-
from typing import Any, Callable, Optional, Type, Union
|
|
6
|
+
from typing import Any, Callable, Optional, TYPE_CHECKING, Type, Union
|
|
7
7
|
|
|
8
8
|
from jaclang.compiler.absyntree import Module
|
|
9
|
-
from jaclang.core.construct import (
|
|
10
|
-
Architype,
|
|
11
|
-
EdgeArchitype,
|
|
12
|
-
NodeArchitype,
|
|
13
|
-
Root,
|
|
14
|
-
WalkerArchitype,
|
|
15
|
-
)
|
|
16
9
|
from jaclang.plugin.spec import JacBuiltin, JacCmdSpec, JacFeatureSpec, T
|
|
17
10
|
|
|
11
|
+
if TYPE_CHECKING:
|
|
12
|
+
from jaclang.core.construct import (
|
|
13
|
+
Architype,
|
|
14
|
+
EdgeArchitype,
|
|
15
|
+
NodeArchitype,
|
|
16
|
+
WalkerArchitype,
|
|
17
|
+
Root,
|
|
18
|
+
)
|
|
19
|
+
from jaclang.plugin.default import ExecutionContext
|
|
20
|
+
from jaclang.core.memory import Memory
|
|
21
|
+
|
|
18
22
|
|
|
19
23
|
import pluggy
|
|
20
24
|
|
|
@@ -28,8 +32,23 @@ class JacFeature:
|
|
|
28
32
|
"""Jac Feature."""
|
|
29
33
|
|
|
30
34
|
import abc
|
|
31
|
-
from jaclang.plugin.spec import DSFunc
|
|
32
35
|
from jaclang.compiler.constant import EdgeDir
|
|
36
|
+
from jaclang.plugin.spec import DSFunc
|
|
37
|
+
|
|
38
|
+
@staticmethod
|
|
39
|
+
def context(session: str = "") -> ExecutionContext:
|
|
40
|
+
"""Create execution context."""
|
|
41
|
+
return pm.hook.context(session=session)
|
|
42
|
+
|
|
43
|
+
@staticmethod
|
|
44
|
+
def reset_context() -> None:
|
|
45
|
+
"""Reset execution context."""
|
|
46
|
+
return pm.hook.reset_context()
|
|
47
|
+
|
|
48
|
+
@staticmethod
|
|
49
|
+
def memory_hook() -> Memory | None:
|
|
50
|
+
"""Create memory abstraction."""
|
|
51
|
+
return pm.hook.memory_hook()
|
|
33
52
|
|
|
34
53
|
@staticmethod
|
|
35
54
|
def make_architype(
|