pyrefly
pyrefly copied to clipboard
[Bug][CLI]: built-in `__debug__` constant flagged as unknown-name
Describe the Bug
if __debug__:
pass
Note that, although it’s not a keyword, you can’t assign a value to it or use it as a creation definition. ruff_python_parser reports an error for these cases via the SemanticSyntaxChecker in newer versions.
Codebase
No response
Other Attempts
No response