## Summary Closes https://github.com/astral-sh/ty/issues/577. Make global `__debug__` a `bool` constant. ## Test Plan Mdtest `global-constants.md` was created to check if resolved type was `bool`. --------- Co-authored-by: David Peter <mail@david-peter.de>
293 B
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