mirror of https://github.com/astral-sh/ruff
Delete crates/ruff_linter/src/snapshots/ruff_linter__linter__tests__semantic_syntax_error_annonated_global.py_3.14.snap
This commit is contained in:
parent
7c8cf7c4d3
commit
5469fee677
|
|
@ -1,46 +0,0 @@
|
||||||
---
|
|
||||||
source: crates/ruff_linter/src/linter.rs
|
|
||||||
---
|
|
||||||
invalid-syntax: annotated name `a` can't be global
|
|
||||||
--> resources/test/fixtures/semantic_errors/annonated_global.py:4:5
|
|
||||||
|
|
|
||||||
2 | def f1():
|
|
||||||
3 | global a
|
|
||||||
4 | a: str = "foo"
|
|
||||||
| ^
|
|
||||||
5 |
|
|
||||||
6 | b: int = 1
|
|
||||||
|
|
|
||||||
|
|
||||||
invalid-syntax: annotated name `b` can't be global
|
|
||||||
--> resources/test/fixtures/semantic_errors/annonated_global.py:10:9
|
|
||||||
|
|
|
||||||
8 | def inner():
|
|
||||||
9 | global b
|
|
||||||
10 | b: str = "nested"
|
|
||||||
| ^
|
|
||||||
11 |
|
|
||||||
12 | c: int = 1
|
|
||||||
|
|
|
||||||
|
|
||||||
invalid-syntax: annotated name `c` can't be global
|
|
||||||
--> resources/test/fixtures/semantic_errors/annonated_global.py:15:5
|
|
||||||
|
|
|
||||||
13 | def f2():
|
|
||||||
14 | global c
|
|
||||||
15 | c: list[str] = []
|
|
||||||
| ^
|
|
||||||
16 |
|
|
||||||
17 | d: int = 1
|
|
||||||
|
|
|
||||||
|
|
||||||
invalid-syntax: annotated name `d` can't be global
|
|
||||||
--> resources/test/fixtures/semantic_errors/annonated_global.py:20:5
|
|
||||||
|
|
|
||||||
18 | def f3():
|
|
||||||
19 | global d
|
|
||||||
20 | d: str
|
|
||||||
| ^
|
|
||||||
21 |
|
|
||||||
22 | e: int = 1
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue