ruff/crates/ty_python_semantic/resources/mdtest/scopes/global-constants.md

293 B

Global Constants

__debug__ constant

The __debug__ constant should be globally available:

reveal_type(__debug__)  # revealed: bool

def foo():
    reveal_type(__debug__)  # revealed: bool