pyrefly icon indicating copy to clipboard operation
pyrefly copied to clipboard

[Bug][CLI]: built-in `__debug__` constant flagged as unknown-name

Open gvozdvmozgu opened this issue 8 months ago • 0 comments

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

gvozdvmozgu avatar May 15 '25 15:05 gvozdvmozgu