We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
16:01 ~ $ cat test.py """Test module"""
from aenum import AutoNumberEnum
class Status(AutoNumberEnum, init='task_idx'): """Status enum""" STARTED = () RUNNING = () FINISTED = () FAILED = ()
def test(): """test method""" print(Status['STARTED'].task_idx)
16:01 ~ $ pylint test.py ************* Module test test.py:14:10: E1136: Value 'Status' is unsubscriptable (unsubscriptable-object)
16:01 ~ $ pylint --version pylint 2.13.9 astroid 2.11.5 Python 3.9.10 (main, Jan 15 2022, 11:48:00) [Clang 13.0.0 (clang-1300.0.29.3)]
The text was updated successfully, but these errors were encountered:
No branches or pull requests
16:01 ~ $ cat test.py
"""Test module"""
from aenum import AutoNumberEnum
class Status(AutoNumberEnum, init='task_idx'):
"""Status enum"""
STARTED = ()
RUNNING = ()
FINISTED = ()
FAILED = ()
def test():
"""test method"""
print(Status['STARTED'].task_idx)
16:01 ~ $ pylint test.py
************* Module test
test.py:14:10: E1136: Value 'Status' is unsubscriptable (unsubscriptable-object)
16:01 ~ $ pylint --version
pylint 2.13.9
astroid 2.11.5
Python 3.9.10 (main, Jan 15 2022, 11:48:00)
[Clang 13.0.0 (clang-1300.0.29.3)]
The text was updated successfully, but these errors were encountered: