We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
if
Pyre does not reason about complex if statements. This is used in e.g. aiohttp:
https://github.com/aio-libs/aiohttp/blob/master/aiohttp/client.py#L1034
Reproduction steps
(try commenting and uncommenting the various options to see the various results)
Expected behavior All of the above if statements should report a type error
Logs See playground link
The text was updated successfully, but these errors were encountered:
Per discussion with @stroxler this code would need to be updated:
https://github.com/facebook/pyre-check/blob/main/source/analysis/preprocessing.ml#L4773-L4774
The likely solution is to switch to a replace-special-values-with-constant-true phase followed by a merge-logical-expressions-phase
Sorry, something went wrong.
No branches or pull requests
Pyre Bug
Pyre does not reason about complex
if
statements. This is used in e.g. aiohttp:https://github.com/aio-libs/aiohttp/blob/master/aiohttp/client.py#L1034
Reproduction steps
(try commenting and uncommenting the various options to see the various results)
Expected behavior
All of the above
if
statements should report a type errorLogs
See playground link
The text was updated successfully, but these errors were encountered: