You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
test.py:10: error: On Python 3 formatting "b'abc'" with "{}" produces "b'abc'", not "abc"; use "{!r}" if this is desired behavior
Found 1 error in 1 file (checked 1 source file)
If you change to return sublike("asdf", reveal_type(lambda m: f"{m}")), you get:
asdf.py:10: note: Revealed type is "def (m: Any) -> builtins.str"
asdf.py:10: note: Revealed type is "def (builtins.str) -> builtins.str"
asdf.py:10: error: On Python 3 formatting "b'abc'" with "{}" produces "b'abc'", not "abc"; use "{!r}" if this is desired behavior
Found 1 error in 1 file (checked 1 source file)
So possibly related to the multipass logic for lambdas.
The text was updated successfully, but these errors were encountered:
Discovered as part of python/typeshed#7679
Given the following:
mypy produces:
If you change to
return sublike("asdf", reveal_type(lambda m: f"{m}"))
, you get:So possibly related to the multipass logic for lambdas.
The text was updated successfully, but these errors were encountered: