Skip to content

inherit-non-class false positive: NamedTuple (Python 3.9) #3876

Closed
pylint-dev/astroid
#858
@belm0

Description

@belm0

Steps to reproduce

class Employee(NamedTuple):
    name: str
    id: int

Current behavior

E0239: Inheriting 'NamedTuple', which is not a class. (inherit-non-class)

Expected behavior

no error

pylint --version output

$ pylint --version
pylint 2.6.0
astroid 2.4.2
Python 3.9.0rc2+ (heads/3.9:d571924, Oct  5 2020, 11:56:25)
[Clang 9.0.0 (clang-900.0.39.2)]

Metadata

Metadata

Assignees

Labels

Bug 🪲False Positive 🦟A message is emitted but nothing is wrong with the codeHelp wanted 🙏Outside help would be appreciated, good for new contributorspython 3.9

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions