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

Support and test mypy 0.910, 0.920, and 0.921 #3572

Conversation

christianbundy
Copy link
Contributor

@christianbundy christianbundy commented Dec 24, 2021

Change Summary

Problem: We aren't testing mypy version compatibility, which makes it hard to know when we're making/breaking compatibility. In my local testing, it seems that we've recently broken mypy 0.910 compatibility.

Solution: Add mypy version matrix to CI and fix compatibility regressions.

Related issue number

Link: #3538 (comment)

See-also: #3175

Checklist

  • Unit tests for the changes exist
  • Tests pass on CI and coverage remains at 100%
  • Documentation reflects the changes where applicable
  • changes/<pull request or issue id>-<github username>.md file added describing change
    (see changes/README.md for details)
  • My PR is ready to review, please add a comment including the phrase "please review" to assign reviewers

When I upgraded mypy I started getting new mypy and flake8 errors. I
understand the mypy linter errors, but I'm confused at why I got the
flake8 ones now.
@christianbundy christianbundy changed the title Add mypy version matrix to CI Fix compatibility for mypy 0.910 and add support (and tests) for mypy 0.921 Dec 24, 2021
@christianbundy christianbundy changed the title Fix compatibility for mypy 0.910 and add support (and tests) for mypy 0.921 Support and test mypy 0.910, 0.920, and 0.921 Dec 24, 2021
@christianbundy
Copy link
Contributor Author

please review

@samuelcolvin
Copy link
Member

samuelcolvin commented Dec 29, 2021

Thanks for this, I'm stealing some ideas for #3594.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants