Changelog
[v2.5.0]
Added
- #103 add
--allow-untyped-nested
to suppress all errors from dynamically typted nested functions. A function is considered dynamically typed if it does not contain any type hints.
Additional Details
Per #102, nested functions can fall into an interesting spot semantically for a project. They're distinct enough from private/secret functions that one may not want to strictly enforce annotation (e.g. decorator definitions) but there does not exist a mechanism to do so without either noqa
or just allowing all dynamically typed functions (via --allow-untyped-defs
). The --allow-untyped-nested
flag allows for this stricter subset of dynamic functions.