pypi flake8-annotations 2.5.0
Release v2.5.0

latest releases: 3.0.1, 3.0.0, 2.9.1...
3 years ago

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.

Don't miss a new flake8-annotations release

NewReleases is sending notifications on new releases.