[ty] Make the implicit shadowing message on invalid assignment diagnostic info (#22219)
This commit is contained in:
@@ -15,7 +15,7 @@ def f(x: str):
|
||||
```py
|
||||
def f(): ...
|
||||
|
||||
f = 1 # error: "Implicit shadowing of function `f`"
|
||||
f = 1 # error: [invalid-assignment]
|
||||
```
|
||||
|
||||
## Explicit shadowing
|
||||
|
||||
Reference in New Issue
Block a user