blob: 0b75f246ba7e989a92e2237d9d5ccf891a1fe7a3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
# pylint: disable=missing-docstring,invalid-name
from functools import cached_property
# https://github.com/PyCQA/pylint/issues/4023
# False-positive 'invalid-overridden-method' with 'cached_property'
class Parent:
@property
def value(self):
return 42
def func(self):
return False
class Child(Parent):
@cached_property
def value(self):
return 2**6
@cached_property
def func(self): # [invalid-overridden-method]
return 42
|