Per-module and global options
Some of the config options may be set either globally (in the [mypy]
section)or on a per-module basis (in sections like [mypy-foo.bar]
).
If you set an option both globally and for a specific module, the module configurationoptions take precedence. This lets you set global defaults and override them on amodule-by-module basis. If multiple pattern sections match a module, the options from themost specific section are used where they disagree.
Some other options, as specified in their description,may only be set in the global section ([mypy]
).