ruff/crates/red_knot_python_semantic/resources/mdtest/scopes
Brent Westbrook bfc1650198
[red-knot] Add mdtests for global statement (#17563)
## Summary

This is a first step toward `global` support in red-knot (#15385). I
went through all the matches for `global` in the `mypy/test-data`
directory, but I didn't find anything too interesting that wasn't
already covered by @carljm's suggestions on Discord. I still pulled in a
couple of cases for a little extra variety. I also included a section
from the
[PLE0118](https://docs.astral.sh/ruff/rules/load-before-global-declaration/)
tests in ruff that will become syntax errors once #17463 is merged and
we handle `global` statements.

I don't think I figured out how to use `@Todo` properly, so please let
me know if I need to fix that. I hope this is a good start to the test
suite otherwise.

---------

Co-authored-by: Carl Meyer <carl@astral.sh>
2025-04-23 17:18:42 -04:00
..
builtin.md [red-knot] improve function/bound method type display (#17294) 2025-04-14 15:56:18 -07:00
eager.md [red-knot] Trust module-level undeclared symbols in stubs (#17577) 2025-04-23 19:31:14 +02:00
global.md [red-knot] Add mdtests for global statement (#17563) 2025-04-23 17:18:42 -04:00
moduletype_attrs.md [red-knot] Handle explicit class specialization in type expressions (#17434) 2025-04-18 11:49:22 -04:00
nonlocal.md [red-knot] Add mdtests for global statement (#17563) 2025-04-23 17:18:42 -04:00
unbound.md [red-knot] Use Unknown | T_inferred for undeclared public symbols (#15674) 2025-01-24 12:47:48 +01:00