Skip to content

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

@mristin

Description

@mristin

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 ?

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions