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

Improves TypeVar error messages #11448

Merged
merged 1 commit into from
Nov 16, 2021
Merged

Improves TypeVar error messages #11448

merged 1 commit into from
Nov 16, 2021

Conversation

sobolevn
Copy link
Member

@sobolevn sobolevn commented Nov 3, 2021

Changes:

  1. I've change some wordings
  2. Moved the same strings into message_registry
  3. Added extra tests for new feature. You can now specify TypeVar('A', covariant=False) to mirror the CPython

Closes #11442

@sobolevn sobolevn closed this Nov 3, 2021
@sobolevn sobolevn reopened this Nov 3, 2021
@sobolevn
Copy link
Member Author

Rebased! 🎉

@JelleZijlstra JelleZijlstra merged commit 7f0ad94 into python:master Nov 16, 2021
tushar-deepsource pushed a commit to DeepSourceCorp/mypy that referenced this pull request Jan 20, 2022
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.

Better error messages for some TypeVar init cases
2 participants