mirror of
https://github.com/astral-sh/ruff.git
synced 2025-11-25 22:29:02 +00:00
[ty] add support for nonlocal statements
This commit is contained in:
parent
110765154f
commit
78bd73f25a
11 changed files with 625 additions and 44 deletions
|
|
@ -1304,7 +1304,7 @@ scope of the name that was declared `global`, can add a symbol to the global nam
|
|||
def f():
|
||||
global g, h
|
||||
|
||||
g: bool = True
|
||||
g = True
|
||||
|
||||
f()
|
||||
```
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue