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

Improve type annotations for the pyramid and tornado parsers #944

Merged
merged 3 commits into from
May 31, 2024

Conversation

sirosen
Copy link
Collaborator

@sirosen sirosen commented May 31, 2024

This changeset takes a few steps towards getting rid of mypy type checking overrides, and therefore enforcing that there are annotations everywhere.
It targets the tornado and pyramid modules.

As a related change, this updates the mypy version pinned in tox.ini to the latest.

- disable 'disallow_untyped_defs=false' for this module
- repair the resulting type errors (with liberal use of Any)
- Update 'mypy' to v1.10.0 in tox.ini
- Add annotations to pyramid module, such that mypy overrides are no
  longer needed

The mypy version bump is needed to match up with the pre-commit
version, and handles `__wrapped__` correctly.
@lafrech
Copy link
Member

lafrech commented May 31, 2024

Thanks for taking care of this.

CI errors on 3.8. Could it be a from future import missing ?

@sirosen
Copy link
Collaborator Author

sirosen commented May 31, 2024

That's exactly what it is; I'll get that fixed.

@sirosen sirosen merged commit e46313a into marshmallow-code:dev May 31, 2024
8 checks passed
@sirosen sirosen deleted the tighten-mypy branch May 31, 2024 18:34
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.

3 participants