ruff/crates/ty_python_semantic/resources/mdtest/scopes
Felix Scherz d3a7cb3fe4
[ty] support accessing __builtins__ global (#18118)
## Summary

The PR adds an explicit check for `"__builtins__"` during name lookup,
similar to how `"__file__"` is implemented. The inferred type is
`Any`.

closes https://github.com/astral-sh/ty/issues/393

## Test Plan

Added a markdown test for `__builtins__`.

---------

Co-authored-by: David Peter <sharkdp@users.noreply.github.com>
2025-05-15 22:01:38 +02:00
..
builtin.md Rename Red Knot (#17820) 2025-05-03 19:49:15 +02:00
eager.md Rename Red Knot (#17820) 2025-05-03 19:49:15 +02:00
global.md [ty] Implement global handling and load-before-global-declaration syntax error (#17637) 2025-05-08 10:30:04 -04:00
moduletype_attrs.md [ty] support accessing __builtins__ global (#18118) 2025-05-15 22:01:38 +02:00
nonlocal.md Rename Red Knot (#17820) 2025-05-03 19:49:15 +02:00
unbound.md Update class literal display to use <class 'Foo'> style (#17889) 2025-05-06 20:11:25 -04:00