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
mypy believes that a function with a specific output type can not be used as the default value for a method expecting a function with a generic output type. It interprets the difference as a problem instead of as a constraint.
mypy believes that a function with a specific output type can not be used as the default value for a method expecting a function with a generic output type. It interprets the difference as a problem instead of as a constraint.
Repro code
Expected output
No type error. When the default value for
producer
is used, the type variableT
is inferred to beint
.Actual output
The text was updated successfully, but these errors were encountered: