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

Cython stubs #811

Merged
merged 20 commits into from
Aug 13, 2024
Merged

Cython stubs #811

merged 20 commits into from
Aug 13, 2024

Conversation

omar-abdelgawad
Copy link
Contributor

📢 Describe your changes

  • 📌 changes Summary
    • Added .pyi stubs to invesalius_cy.
    • Type hinted all of invesalius/data/bases.py, invesalius/data/converters.py, invesalius/data/poly_data_utils.py, invesalius/data/vtk_utils.py, invesalius/data/watershed_process.py, invesalius/session.py, invesalius/pubsub/pub.py, and invesalius/gui/dialogs.py.
    • Changed all instances of wx._core.PyAssertionError to wx.PyAssertionError.
    • Type hinted half of invesalius/control.py, invesalius/data/coordinates.
    • Deleted invesalius/data/segmentation.py.
    • Added pyclaron and optitrack to requirements.txt.

🗒️ Notes for future improvements

I am currently facing some issues with mypy since writing the stubs and am currently relying on Pyright through Pylance. I will make sure to fix the problem and make sure that a type checker tool run tests.

@omar-abdelgawad
Copy link
Contributor Author

In addition to the fixing the review comments above I have also deleted the following modules:

@tfmoraes tfmoraes merged commit 1f59027 into invesalius:master Aug 13, 2024
1 check passed
@omar-abdelgawad omar-abdelgawad deleted the type-info-4 branch August 13, 2024 16:52
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