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

Finalizes typing and updates documentation #232

Merged
merged 12 commits into from
May 27, 2024
Merged

Finalizes typing and updates documentation #232

merged 12 commits into from
May 27, 2024

Conversation

dgasmith
Copy link
Owner

Description

The PR provides a comprehensive typing overhaul which should provide a fully consistent typing paradigm. Given we will remove numpy as a dependency shortly (#204) we have several constraints on the typing update to avoid the np.typing module. While we can implement ArrayType as a Protocol, I'm unsure it's worth the effort.

Todos

Notable points that this PR has either accomplished or will accomplish.

  • There are several overrides remaining which are required for MyPy to pass.

Status

  • Ready to go

@dgasmith dgasmith requested a review from jcmgray May 20, 2024 01:45
@dgasmith dgasmith mentioned this pull request May 20, 2024
7 tasks
Copy link
Collaborator

@jcmgray jcmgray left a comment

Choose a reason for hiding this comment

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

All seems good to me, though I don't really use mypy/types in python so not an expert.

For the test failures, I guess the py3.9 ones are to do with https://peps.python.org/pep-0604/.

@dgasmith
Copy link
Owner Author

@jcmgray Final tweaks are in, please re-review! I'll tackle #204 next.

@dgasmith dgasmith merged commit eede8fa into master May 27, 2024
7 checks passed
@dgasmith dgasmith deleted the docs_mypy branch May 27, 2024 14:51
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