Check that no untyped functions are called [no-untyped-call] Check that no untyped functions are called [no-untyped-call] If you use —disallow-untyped-calls , mypy generates a...
Miscellaneous Miscellaneous —junit-xml JUNIT_XML Causes mypy to generate a JUnit XML test result document withtype checking results. This can make it easier to integrate my...
Silencing errors based on error codes Silencing errors based on error codes You can use a special comment # type: ignore[code, …] to onlyignore errors with a specific error co...
Dataclasses Caveats/Known Issues Dataclasses In Python 3.7, a new dataclasses module has been added to the standard library.This module allows defining and customizing simpl...
Check that function does not return Any value [no-any-return] Check that function does not return Any value [no-any-return] If you use —warn-return-any , mypy generates an err...
Miscellaneous checks [misc] Miscellaneous checks [misc] Mypy performs numerous other, less commonly failing checks that don’thave specific error codes. These use the misc erro...
Error codes Error codes Mypy can optionally display an error code such as [attr-defined] after each error message. Error codes serve two purposes: It’s possible to silence sp...
Specifying how to generate stubs Specifying how to generate stubs By default stubgen will try to import the target modules and packages.This allows stubgen to use runtime intro...
Error codes for optional checks Error codes for optional checks This section documents various errors codes that mypy generates onlyif you enable certain options. See Error cod...
Overriding statically typed methods Overriding statically typed methods When overriding a statically typed method, mypy checks that theoverride has a compatible signature: cla...