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

Handle mypy error codes #36

Closed
cdleonard opened this issue Nov 22, 2022 · 0 comments · Fixed by #43
Closed

Handle mypy error codes #36

cdleonard opened this issue Nov 22, 2022 · 0 comments · Fixed by #43
Labels
enhancement New feature or request

Comments

@cdleonard
Copy link

Recent versions of mypy added string error codes next to the messages. I don't remember seeing this in older versions.

If you have older pytest-mypy-testing assertions you have two options:

  • Adjust all assertion messages
  • Use "hide_error_codes = True" to make them still pass.

It would be nice if this plugin would parse the message from mypy and allow matching based on error codes. Stability is not guaranteed but they're still likely to be more stable that messages. The fact that error codes are short strings would also alleviate #29.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants