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

Dealing with recursive functions that are only called by themselves #354

Open
johndoknjas opened this issue Mar 16, 2024 · 0 comments · May be fixed by #374
Open

Dealing with recursive functions that are only called by themselves #354

johndoknjas opened this issue Mar 16, 2024 · 0 comments · May be fixed by #374

Comments

@johndoknjas
Copy link
Contributor

johndoknjas commented Mar 16, 2024

def Rec():
    Rec()

class MyClass:
    def __init__(self):
        pass

    def classRec():
        MyClass.classRec()

For this code snippet, vulture doesn't label any of the functions as unused, even though their only calls are to themselves. So to see if a function is used, I'd propose not considering recursive calls.

@johndoknjas johndoknjas linked a pull request Oct 6, 2024 that will close this issue
4 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant