-
Notifications
You must be signed in to change notification settings - Fork 180
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
Comments
This was referenced Jul 11, 2022
Closed
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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
The text was updated successfully, but these errors were encountered: