Derived from the flake8-pyi linter.
What it does#
Checks for uses of
collections.namedtuple in stub files.
Why is this bad?#
typing.NamedTuple is the "typed version" of
The class generated by subclassing
typing.NamedTuple is equivalent to
collections.namedtuple, with the exception that
__annotations__ attribute, which allows type checkers to
infer the types of the fields.