Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix mypy compliance in Ghidra scripts #69

Merged
merged 2 commits into from
Jan 11, 2025

Conversation

jonschz
Copy link
Collaborator

@jonschz jonschz commented Jan 11, 2025

The basic type safety should now be complete.

Comment on lines +110 to +112
from reccmp.ghidra_scripts.lego_util.globals import GLOBALS

logging.root.setLevel(GLOBALS.loglevel)
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This had to be reordered because we can't import GLOBALS before setting up the venv now. On the other hand, mypy doesn't allow me to import from lego_util.globals because the package can be referenced by two different paths.

@jonschz jonschz merged commit 4101d3b into isledecomp:master Jan 11, 2025
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants