You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"Module docstring"
from dataclasses import dataclass, InitVar
@dataclass
class Hello:
"Class docstring"
a_1: int
a_2: int
a_3: int
a_4: int
a_5: int
a_6: int
a_7: int
a_8: InitVar[int]
def __post_init__(self, a_8):
self.a_7 += a_8
Run pylint --reports no --persistent no example
Current behavior
too-many-instance-attributes (8/7) are reported but a_8 is not an instance attribute so it should not be counted.
Steps to reproduce
example.py
pylint --reports no --persistent no example
Current behavior
too-many-instance-attributes (8/7) are reported but
a_8
is not an instance attribute so it should not be counted.Expected behavior
pylint should report no error.
pylint --version output
The text was updated successfully, but these errors were encountered: