summaryrefslogtreecommitdiff
path: root/tests/functional/r/recursion/recursion_error_2667.py
blob: 62868c3c6e6cbcb5afea0081f5a8bab8d9383a53 (plain)
1
2
3
4
5
6
7
8
9
"""Add regression test for https://github.com/pylint-dev/pylint/issues/2667"""
# pylint: disable=missing-docstring, too-few-public-methods

class MyClass:
    def __init__(self):
        self._slice = slice(0, 10)

    def incr(self):
        self._slice = slice(0, self._slice.stop + 1)