blob: 678aaf076f04b0b264f41a87a57c4604ef661880 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
""" Regression test for https://github.com/pylint-dev/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]
|