blob: ee54506799e9e24971f643f24f9629042a1f81e0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
"""Test for the regression on inference of self referential __len__
Reported in https://github.com/PyCQA/pylint/issues/5244
"""
# pylint: disable=missing-class-docstring, missing-function-docstring, no-self-use
class MyClass:
def some_func(self):
return lambda: 42
def __len__(self):
return len(self.some_func())
|