Inline configuration

Mypy supports setting per-file configuration options inside files themselvesusing # mypy: comments. For example:

  1. # mypy: disallow-any-generics

Inline configuration comments take precedence over all otherconfiguration mechanisms.