mirror of https://github.com/astral-sh/ruff
clear a TODO in final.md that now fails as expected
This commit is contained in:
parent
062342c03b
commit
71cd7bb170
|
|
@ -147,8 +147,7 @@ def nonlocal_use():
|
||||||
X: Final[int] = 1
|
X: Final[int] = 1
|
||||||
def inner():
|
def inner():
|
||||||
nonlocal X
|
nonlocal X
|
||||||
# TODO: this should be an error
|
X = 2 # error: [invalid-assignment] "Reassignment of `Final` symbol `X` is not allowed: Reassignment of `Final` symbol"
|
||||||
X = 2
|
|
||||||
```
|
```
|
||||||
|
|
||||||
`main.py`:
|
`main.py`:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue