-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
Bytes formatting error gets produced during failed overload match #12665
Comments
Hmm, this happened to me too with that exact same PR: #8814 (comment) . Since it's unexpected, seems worth understanding the mechanism / adding regression tests. |
Oh, looks like it's actually not entirely unexpected: Jelle mentioned in #12631 (comment) that the PR was touching logic that impacted this bug. But we should definitely add a test, agreed. |
I'm getting the same error
mypy: 1.0.0 (strict=True) |
Sorry, ignore my previous comment, it went away when I upgraded |
This appears to have been fixed in mypy 0.960. |
We were keeping this open so that we didn't forget to add a regression test, since this was a strange bug that was fixed somewhat by accident: #12665 (comment). But it looks like we forgot to anyway :) I filed #15867 to add a regression test. |
Adds a regression test for #12665, which is a strange bug that was fixed somewhat by accident
Bug Report
On Python 3 formatting "b'abc'" with "{}" produces "b'abc'", not "abc"
gets produced during bidirectional inference in a failed overload match.To Reproduce
Expected Behavior
No errors
Actual Behavior
Your Environment
Found in python/typeshed#7679, the repro case minified from some code in homeassistant.
The text was updated successfully, but these errors were encountered: