blob: 9b0dd37cd34f8017ef2d805b19902cf4b3bb8422 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
""" Regression test for https://github.com/PyCQA/pylint/issues/3405. """
import dataclasses
from typing import ClassVar
@dataclasses.dataclass
class Foo:
"""ClassVar attribute should be matched against class-attribute-rgx, not attr-rgx"""
# class-attribute-rgx='^y$'
x: ClassVar[int] = 0 # [invalid-name]
|