summaryrefslogtreecommitdiff
path: root/tests/functional/r/regression_02/regression_5244.py
blob: 1bc811ca5c650d82231c92542283f20cbaf16556 (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/pylint-dev/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())