Skip to content
New issue

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

AttributeError: 'Starred' object has no attribute 'name' #835

Closed
mristin opened this issue Aug 23, 2020 · 1 comment · Fixed by #870
Closed

AttributeError: 'Starred' object has no attribute 'name' #835

mristin opened this issue Aug 23, 2020 · 1 comment · Fixed by #870
Assignees
Labels

Comments

@mristin
Copy link

mristin commented Aug 23, 2020

The parsing of the following file:

"""Module for ContentType class."""

from enum import Enum


class ContentType(Enum):
    """Enumerable to represent different `telereddit.models.post.Post` types."""

    TEXT, PHOTO, VIDEO, GIF, YOUTUBE, *_ = range(20)

causes the error AttributeError: 'Starred' object has no attribute 'name' in brain\brain_namedtuple_enum.py, line 350, in infer_enum_class.

The version 2.4.2 of astroid was used. Perhaps somehow related to #36 ?

@PCManticore
Copy link
Contributor

Thanks for the report, this will be fixed by #870

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants