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

A new attempt to add type annotations #27

Merged
merged 1 commit into from
Jun 28, 2023
Merged

A new attempt to add type annotations #27

merged 1 commit into from
Jun 28, 2023

Conversation

pfmoore
Copy link
Owner

@pfmoore pfmoore commented Jun 28, 2023

I messed up #14 trying to update it.

I've revised my view on type annotations, this now has annotations in the source code, and adds mypy to the lint checks. I'm deliberately not type checking the test directory as the dynamic import hacking is just going to confuse a static checker and I see no reason to enable type checks and then manually disable them again in a big chunk of the code.

@pfmoore
Copy link
Owner Author

pfmoore commented Jun 28, 2023

I'm just going to merge this. It's low-impact and my reluctance to add type annotations has gone down, as things start to stabilise in newer Python versions.

@pfmoore pfmoore merged commit 6e6b597 into main Jun 28, 2023
@pfmoore pfmoore deleted the typing branch June 28, 2023 16:25
gotmax23 added a commit to gotmax23/editables that referenced this pull request Jul 8, 2023
Type hints were added in pfmoore#27,
but the py.typed file to make tools actually recognize them was not.
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.

1 participant