[code-quality] pylint crashes with RuntimeError: maximum recursion depth exceeded