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

branch analysis #715

Open
asottile opened this issue Jul 11, 2022 · 0 comments
Open

branch analysis #715

asottile opened this issue Jul 11, 2022 · 0 comments

Comments

@asottile
Copy link
Member

I'm creating this mostly as a duplicate target

pyflakes currently does not do any branch analysis and as such can't really know when things are conditionally defined / undefined / dead code / etc.

doing accurate branch analysis is a hard problem and often requires some amount of dynamic analysis so it is unlikely pyflakes will ever actually implement this

there are better alternatives which attempt to do this such as type checkers (mypy, pyright) and to some extent pylint

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

No branches or pull requests

1 participant