blob: 6329187f77d3ac492b7d2925e4f8017f2f1889f8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
"""Regression test from https://github.com/pylint-dev/pylint/issues/7631
The following code should NOT raise no-member.
"""
# pylint: disable=missing-docstring,too-few-public-methods
class Base:
attr: int = 2
class Parent(Base):
attr: int
class Child(Parent):
attr = 2
def __init__(self):
self.attr = self.attr | 4
|