Error codes for optional checks

This section documents various errors codes that mypy generates onlyif you enable certain options. See Error codes for generaldocumentation about error codes. Error codes enabled by default documentserror codes that are enabled by default.

Note

The examples in this section use inline configuration to specify mypy options. You can also set the sameoptions by using a configuration file orcommand-line options.