Closed crazyscientist closed 3 months ago
Thanks @crazyscientist. It feels like we could add this case to https://github.com/pylint-dev/pylint/issues/7891 and track everything there; quite a similar case.
@mbyrnepr2 Yes, that one looks very similar, but I failed to find it before reporting.
Bug description
Imagine this simplified example:
It accesses the
_fields
attribute oftyping.NamedTuple
. This works as expected.But pylint, complains.
Configuration
I used the default configuration
Command used
Pylint output
Expected behavior
NameTuple
provides the_fields
attribute and pylint should not complainPylint version
OS / Environment
Ubuntu 22.04
Additional dependencies
No response