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
21: error: Unsupported operand types for + ("str" and "int")
22: error: Unsupported operand types for + ("str" and "T")
22: error: Argument "x" to "B" has incompatible type "int"; expected "T"
23: error: Unsupported operand types for + ("str" and "T")
23: error: Incompatible types (expression has type "int", TypedDict item "x" has type "T")
Expected output:
21: error: Unsupported operand types for + ("str" and "int")
22: error: Unsupported operand types for + ("str" and "int")
23: error: Unsupported operand types for + ("str" and "int")
The text was updated successfully, but these errors were encountered:
mypy 0.730 doesn't work correctly with classes that descend both from NamedTuple or TypedDict and from Generic. dataclasses instead work fine.
mypy output:
Expected output:
The text was updated successfully, but these errors were encountered: