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
When a decorator factory function is used in a dict literal, type inference fails. Adding explicit type fixes the issue but it's rather inconvenient. This bug seems to be introduced in mypy==1.6.0 since versions prior have no such issue.
Bug Report
When a decorator factory function is used in a dict literal, type inference fails. Adding explicit type fixes the issue but it's rather inconvenient. This bug seems to be introduced in
mypy==1.6.0
since versions prior have no such issue.To Reproduce
https://mypy-play.net/?mypy=latest&python=3.12&gist=f4e28d815f2832367905e3f4628b024a
https://gist.github.com/mypy-play/f4e28d815f2832367905e3f4628b024a
Expected Behavior
Mypy should infer the type correctly and no errors should be reported.
Actual Behavior
Your Environment
The text was updated successfully, but these errors were encountered: