clear a TODO in final.md that now fails as expected

This commit is contained in:
Jack O'Connor 2025-07-09 11:30:46 -07:00
parent 062342c03b
commit 71cd7bb170
1 changed files with 1 additions and 2 deletions

View File

@ -147,8 +147,7 @@ def nonlocal_use():
X: Final[int] = 1
def inner():
nonlocal X
# TODO: this should be an error
X = 2
X = 2 # error: [invalid-assignment] "Reassignment of `Final` symbol `X` is not allowed: Reassignment of `Final` symbol"
```
`main.py`: