blob: 248c4a4a18d42d8648b064565c268830a2cae6da (
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
class MyClass:
def some_func(self):
return lambda: 42
def __len__(self):
return len(self.some_func())
|