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 running mypy on some code I get this error message: tesla_api/vehicle.py:70: error: Argument 2 to "setdefault" of "TypedDict" has incompatible type "None"; expected "int" [misc]
If i add a type: ignore[misc] to the line, then I get this error message: tesla_api/vehicle.py:70: error: Argument 2 to "setdefault" of "TypedDict" has incompatible type "None"; expected "int" [arg-type]
Seems that this error is under both misc and arg-type categories.
Excepted behaviour: The error should only appear under the arg-type category, and not require ignoring 2 categories.
The text was updated successfully, but these errors were encountered:
When running mypy on some code I get this error message:
tesla_api/vehicle.py:70: error: Argument 2 to "setdefault" of "TypedDict" has incompatible type "None"; expected "int" [misc]
If i add a
type: ignore[misc]
to the line, then I get this error message:tesla_api/vehicle.py:70: error: Argument 2 to "setdefault" of "TypedDict" has incompatible type "None"; expected "int" [arg-type]
Seems that this error is under both misc and arg-type categories.
Excepted behaviour: The error should only appear under the arg-type category, and not require ignoring 2 categories.
The text was updated successfully, but these errors were encountered: