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

Set up initial Mypy configuration for type checking #352

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

jstasiak
Copy link
Contributor

@jstasiak jstasiak commented Feb 7, 2024

The plan is to have full static type/type hint coverage in the codebase, this is a first step towards that goal.

Some module-level variables needed types right away so that's included in this patch.

Including IPython in dev dependencies because we import it in the netaddr.cli module and Mypy would complain otherwise when we get to providing type hints in the module.

The plan is to have full static type/type hint coverage
in the codebase, this is a first step towards that goal.

Some module-level variables needed types right away so that's included
in this patch.
@jstasiak
Copy link
Contributor Author

jstasiak commented Feb 7, 2024

I think it'll be easiest to park this until Python 3.7 support is dropped as recent Mypy versions only support Python 3.8+.

@ogenstad
Copy link

Are there any plans for when this will move forward since Python 3.7 is end of life as of last summer?

@jstasiak
Copy link
Contributor Author

@ogenstad yeah, I need to make a small release with some bug fixes first but then we're good to drop Python 3.7 support and get this thing going.

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.

None yet

2 participants