This repository has been archived by the owner on Sep 12, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 20
Mypy symbol resolve #537
Merged
Merged
Mypy symbol resolve #537
Changes from 4 commits
Commits
Show all changes
33 commits
Select commit
Hold shift + click to select a range
1c59831
Extracting nodde info from nameExpr
mgtm98 4c5ee9e
Doing PyRaise based on extracting python dependacies using MyPy
mgtm98 3a49bbe
Merge branch 'main' into mypy_symbol_resolve
marsninja 8f45096
Merge branch 'main' into mypy_symbol_resolve
marsninja 4abaff1
Importing python module the same way jac files are included
mgtm98 f80c902
Support from import in python imports, handled the linking to symbol …
mgtm98 f3018fd
Adding test for python module raising
mgtm98 9dbe1f2
Support import alias with pythin raise
mgtm98 6447817
Run symbol table link check only on Jac modules
mgtm98 a46aeb2
Merge pull request #557 from Jaseci-Labs/main
mgtm98 b8e0a49
Add the module path to mypy path to correctly detect python imports i…
mgtm98 8a2ef5a
Allow tree printer to print raised python modules
mgtm98 3c9b020
Disable symbol link warning with the name token that indicate the typ…
mgtm98 0c24374
Fixing tests
mgtm98 93b6bb4
Initial implementation to populate type symbol table info from import…
mgtm98 a66e91e
chore: man merge
marsninja accae9c
refactor: for linter passing and cleanliness
marsninja 7af5574
refactor: more descriptive name
marsninja 3d8e4b4
test: removed random stragler
marsninja ff6eeae
Removing print statements from jac engine
mgtm98 67d422f
Merge branch 'mypy_symbol_resolve' of https://github.com/Jaseci-Labs/…
mgtm98 4bc514e
Replacing pygame to a mock python module in tests
mgtm98 c142e93
Fixing a test issue
mgtm98 06a7bc7
Fixing an issue with JacImportPass
mgtm98 97964fd
man merge
marsninja 66523fe
test: many more passing now
marsninja afcc974
test: i think im making the fixture better
marsninja 3761ebd
test: i think im making the fixture better
marsninja a9a658f
test: better
marsninja b947ee1
feat: can now follow python symbols
marsninja a2fe74e
refactor: cleanup
marsninja fff63a3
refactor: cleanup
marsninja dc84535
refactor: clean up glob var hack
marsninja File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've looked into it and i think the approach shoudl be something like this except that when its a paackage/directory you automatically create import nodes for the relevant modules based on the python raise list
Basically, in teh import_py_module function you only import the module path if its in the list. You should naturally end up keeping the right parent relationship.