-
-
Notifications
You must be signed in to change notification settings - Fork 3k
Helpful detailed error message on Protocol structural subtyping missing when arg is Optional #10129
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
Labels
Comments
This should be easy to fix by modifying |
@JukkaL Can I work on this issue ? |
@AnubhavHooda feel free to do it |
can i work on this |
yeah feel free to do it |
Hi, @nipunn1313 @JukkaL , I just made a PR #10154 to fix this bug. |
TH3CHARLie
pushed a commit
that referenced
this issue
Mar 5, 2021
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Bug Report
I would expect the same error message for both func1 and func2. Instead we see a useful message on
14
and a less useful message on15
mypy-playground repro:
https://mypy-play.net/?mypy=latest&python=3.9&gist=d00664f08c00a13896bfa4e45f6e2bf1
The text was updated successfully, but these errors were encountered: