pylint-bot / pylint-unofficial

UNOFFICIAL playground for pylint github migration
0 stars 0 forks source link

Pylint 1.5 error on Enum no-member #690

Open pylint-bot opened 9 years ago

pylint-bot commented 9 years ago

Originally reported by: Pedro Rodriguez (BitBucket: pedrorodriguez, GitHub: @pedrorodriguez?)


I tested this by running

pip install hg+https://bitbucket.org/logilab/pylint@master
pip install hg+https://bitbucket.org/logilab/astroid@master

which grabbed commit: 99df5f6

When I run the following code through pylint I get an error that seems like a bug:

# in enum_lint.py
from enum import Enum

MyEnum = Enum('MyEnum', 'KEY VALUE')

value = MyEnum.KEY
$ pylint enum_lint.py
************* Module enum_lint
E:  5, 8: Class 'MyEnum' has no 'KEY' member (no-member)