Skip to content

Commit

Permalink
Update test to mention the astroid issue that addresses the missing…
Browse files Browse the repository at this point in the history
… ``__members__`` object.
  • Loading branch information
mbyrnepr2 committed Oct 3, 2023
1 parent df63e42 commit aedcb3a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
7 changes: 5 additions & 2 deletions tests/functional/i/invalid/invalid_name/invalid_name_enum.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
""" Tests for invalid-name checker in the context of enums. """
# pylint: disable=too-few-public-methods, missing-class-docstring
# pylint: disable=too-few-public-methods


from dataclasses import dataclass
Expand Down Expand Up @@ -33,4 +33,7 @@ def as_hex(self) -> str:

@dataclass
class Something(str, Enum):
asd: str = 'sdf'
""" A false positive for ``invalid-name``
which should be fixed by https://github.com/pylint-dev/astroid/issues/2317
"""
ASD: str = 1 # [invalid-name]
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
invalid-name:17:4:17:14:Color:"Class constant name ""aquamarine"" doesn't conform to UPPER_CASE naming style":HIGH
invalid-name:39:4:None:None:Something:"Attribute name ""ASD"" doesn't conform to snake_case naming style":HIGH

0 comments on commit aedcb3a

Please sign in to comment.