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
Passing a dict literal works because mypy is able to infer the static type from type context. When you assign variables, mypy uses the explicit type hint or infers a type for the variable from the expression in the left hand side.
Activity
hauntsaninja commentedon Sep 13, 2023
mypydoes not infer that a stringLiteralis astrin the context of adictorMapping#18494 as a duplicate of this issue