Miscellaneous checks [misc]
Mypy performs numerous other, less commonly failing checks that don’thave specific error codes. These use the misc
error code. Otherthan being used for multiple unrelated errors, the misc
error codeis not special. For example, you can ignore all errors in thiscategory by using # type: ignore[misc]
comment. Since these errorsare not expected to be common, it’s unlikely that you’ll see twodifferent errors with the misc
code on a single line – thoughthis can certainly happen once in a while.
Note
Future mypy versions will likely add new error codes for some errorsthat currently use the misc
error code.