Disallow dynamic typing
For more information, see the Disallow dynamic typingsection of the command line docs.
disallow_any_unimported
(bool, default False)- Disallows usage of types that come from unfollowed imports (anything imported froman unfollowed import is automatically given a type of
Any
). disallow_any_expr
(bool, default False)- Disallows all expressions in the module that have type
Any
. disallow_any_decorated
(bool, default False)- Disallows functions that have
Any
in their signature after decorator transformation. disallow_any_explicit
(bool, default False)- Disallows explicit
Any
in type positions such as type annotations and generictype parameters. disallow_any_generics
(bool, default False)- Disallows usage of generic types that do not specify explicit type parameters.
disallow_subclassing_any
(bool, default False)- Disallows subclassing a value of type
Any
.