blob: 758aad057a7f2a2b59e55127867d5aa119b38b2b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
"""Regression test from https://github.com/PyCQA/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
|