Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Astroid Infinite loop when __len__(self) is mistakenly defined as return len(self) #777

Closed
simonepri opened this issue Apr 28, 2020 · 0 comments · Fixed by #805
Closed
Assignees
Labels

Comments

@simonepri
Copy link

Steps to reproduce

Lint the following program with pylint

class Crash:
    def __len__(self) -> int:
        return len(self)

Current behavior

The following error is thrown and pylint crashes

RecursionError: maximum recursion depth exceeded

Expected behavior

It should not crash.

Asteroid version

2.4.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants