diff --git a/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F401_F401_0.py.snap b/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F401_F401_0.py.snap index ec452ef039..d42a9e481b 100644 --- a/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F401_F401_0.py.snap +++ b/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F401_F401_0.py.snap @@ -4,9 +4,9 @@ expression: diagnostics --- - kind: UnusedImport: - - functools - - false - - false + name: functools + ignore_init: false + multiple: false location: row: 2 column: 7 @@ -25,9 +25,9 @@ expression: diagnostics parent: ~ - kind: UnusedImport: - - collections.OrderedDict - - false - - false + name: collections.OrderedDict + ignore_init: false + multiple: false location: row: 6 column: 4 @@ -51,9 +51,9 @@ expression: diagnostics column: 0 - kind: UnusedImport: - - logging.handlers - - false - - false + name: logging.handlers + ignore_init: false + multiple: false location: row: 12 column: 7 @@ -72,9 +72,9 @@ expression: diagnostics parent: ~ - kind: UnusedImport: - - shelve - - false - - false + name: shelve + ignore_init: false + multiple: false location: row: 32 column: 11 @@ -93,9 +93,9 @@ expression: diagnostics parent: ~ - kind: UnusedImport: - - importlib - - false - - false + name: importlib + ignore_init: false + multiple: false location: row: 33 column: 11 @@ -114,9 +114,9 @@ expression: diagnostics parent: ~ - kind: UnusedImport: - - pathlib - - false - - false + name: pathlib + ignore_init: false + multiple: false location: row: 37 column: 11 @@ -135,9 +135,9 @@ expression: diagnostics parent: ~ - kind: UnusedImport: - - pickle - - false - - false + name: pickle + ignore_init: false + multiple: false location: row: 52 column: 15 diff --git a/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F401_F401_5.py.snap b/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F401_F401_5.py.snap index b6a0ead0e3..dc0fadb652 100644 --- a/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F401_F401_5.py.snap +++ b/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F401_F401_5.py.snap @@ -4,9 +4,9 @@ expression: diagnostics --- - kind: UnusedImport: - - a.b.c - - false - - false + name: a.b.c + ignore_init: false + multiple: false location: row: 2 column: 16 @@ -25,9 +25,9 @@ expression: diagnostics parent: ~ - kind: UnusedImport: - - d.e.f - - false - - false + name: d.e.f + ignore_init: false + multiple: false location: row: 3 column: 16 @@ -46,9 +46,9 @@ expression: diagnostics parent: ~ - kind: UnusedImport: - - h.i - - false - - false + name: h.i + ignore_init: false + multiple: false location: row: 4 column: 7 @@ -67,9 +67,9 @@ expression: diagnostics parent: ~ - kind: UnusedImport: - - j.k - - false - - false + name: j.k + ignore_init: false + multiple: false location: row: 5 column: 7 diff --git a/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F401_F401_6.py.snap b/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F401_F401_6.py.snap index a1da560b3d..9710ccd47e 100644 --- a/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F401_F401_6.py.snap +++ b/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F401_F401_6.py.snap @@ -4,9 +4,9 @@ expression: diagnostics --- - kind: UnusedImport: - - ".background.BackgroundTasks" - - false - - false + name: ".background.BackgroundTasks" + ignore_init: false + multiple: false location: row: 7 column: 24 @@ -25,9 +25,9 @@ expression: diagnostics parent: ~ - kind: UnusedImport: - - ".datastructures.UploadFile" - - false - - false + name: ".datastructures.UploadFile" + ignore_init: false + multiple: false location: row: 10 column: 28 @@ -46,9 +46,9 @@ expression: diagnostics parent: ~ - kind: UnusedImport: - - background - - false - - false + name: background + ignore_init: false + multiple: false location: row: 16 column: 7 @@ -67,9 +67,9 @@ expression: diagnostics parent: ~ - kind: UnusedImport: - - datastructures - - false - - false + name: datastructures + ignore_init: false + multiple: false location: row: 19 column: 7 diff --git a/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F401_F401_7.py.snap b/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F401_F401_7.py.snap index 0f70e21db3..455b8732a7 100644 --- a/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F401_F401_7.py.snap +++ b/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F401_F401_7.py.snap @@ -4,9 +4,9 @@ expression: diagnostics --- - kind: UnusedImport: - - typing.Union - - false - - false + name: typing.Union + ignore_init: false + multiple: false location: row: 30 column: 4 @@ -29,9 +29,9 @@ expression: diagnostics column: 0 - kind: UnusedImport: - - typing.Awaitable - - false - - true + name: typing.Awaitable + ignore_init: false + multiple: true location: row: 66 column: 19 @@ -50,9 +50,9 @@ expression: diagnostics parent: ~ - kind: UnusedImport: - - typing.AwaitableGenerator - - false - - true + name: typing.AwaitableGenerator + ignore_init: false + multiple: true location: row: 66 column: 30 diff --git a/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__future_annotations.snap b/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__future_annotations.snap index 4ea805c696..8677f069a3 100644 --- a/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__future_annotations.snap +++ b/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__future_annotations.snap @@ -4,9 +4,9 @@ expression: diagnostics --- - kind: UnusedImport: - - models.Nut - - false - - false + name: models.Nut + ignore_init: false + multiple: false location: row: 8 column: 4 diff --git a/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__multi_statement_lines.snap b/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__multi_statement_lines.snap index 20b5d2dabe..2071052eca 100644 --- a/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__multi_statement_lines.snap +++ b/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__multi_statement_lines.snap @@ -4,9 +4,9 @@ expression: diagnostics --- - kind: UnusedImport: - - foo1 - - false - - false + name: foo1 + ignore_init: false + multiple: false location: row: 3 column: 11 @@ -25,9 +25,9 @@ expression: diagnostics parent: ~ - kind: UnusedImport: - - foo2 - - false - - false + name: foo2 + ignore_init: false + multiple: false location: row: 4 column: 11 @@ -46,9 +46,9 @@ expression: diagnostics parent: ~ - kind: UnusedImport: - - foo3 - - false - - false + name: foo3 + ignore_init: false + multiple: false location: row: 7 column: 11 @@ -67,9 +67,9 @@ expression: diagnostics parent: ~ - kind: UnusedImport: - - foo4 - - false - - false + name: foo4 + ignore_init: false + multiple: false location: row: 11 column: 11 @@ -88,9 +88,9 @@ expression: diagnostics parent: ~ - kind: UnusedImport: - - foo5 - - false - - false + name: foo5 + ignore_init: false + multiple: false location: row: 16 column: 18 @@ -109,9 +109,9 @@ expression: diagnostics parent: ~ - kind: UnusedImport: - - foo6 - - false - - false + name: foo6 + ignore_init: false + multiple: false location: row: 21 column: 16 @@ -130,9 +130,9 @@ expression: diagnostics parent: ~ - kind: UnusedImport: - - foo7 - - false - - false + name: foo7 + ignore_init: false + multiple: false location: row: 26 column: 17 @@ -151,9 +151,9 @@ expression: diagnostics parent: ~ - kind: UnusedImport: - - foo8 - - false - - false + name: foo8 + ignore_init: false + multiple: false location: row: 30 column: 18 @@ -172,9 +172,9 @@ expression: diagnostics parent: ~ - kind: UnusedImport: - - foo9 - - false - - false + name: foo9 + ignore_init: false + multiple: false location: row: 31 column: 22 @@ -193,9 +193,9 @@ expression: diagnostics parent: ~ - kind: UnusedImport: - - foo10 - - false - - false + name: foo10 + ignore_init: false + multiple: false location: row: 35 column: 15 @@ -214,9 +214,9 @@ expression: diagnostics parent: ~ - kind: UnusedImport: - - foo11 - - false - - false + name: foo11 + ignore_init: false + multiple: false location: row: 40 column: 16 @@ -235,9 +235,9 @@ expression: diagnostics parent: ~ - kind: UnusedImport: - - foo12 - - false - - false + name: foo12 + ignore_init: false + multiple: false location: row: 46 column: 7 @@ -256,9 +256,9 @@ expression: diagnostics parent: ~ - kind: UnusedImport: - - foo13 - - false - - false + name: foo13 + ignore_init: false + multiple: false location: row: 51 column: 7 diff --git a/src/rules/ruff/snapshots/ruff__rules__ruff__tests__ruf100_0.snap b/src/rules/ruff/snapshots/ruff__rules__ruff__tests__ruf100_0.snap index 60a3adfbfb..fb675a31b9 100644 --- a/src/rules/ruff/snapshots/ruff__rules__ruff__tests__ruf100_0.snap +++ b/src/rules/ruff/snapshots/ruff__rules__ruff__tests__ruf100_0.snap @@ -238,9 +238,9 @@ expression: diagnostics parent: ~ - kind: UnusedImport: - - shelve - - false - - false + name: shelve + ignore_init: false + multiple: false location: row: 85 column: 7 diff --git a/src/rules/ruff/snapshots/ruff__rules__ruff__tests__ruf100_1.snap b/src/rules/ruff/snapshots/ruff__rules__ruff__tests__ruf100_1.snap index a16795b2e6..753b298607 100644 --- a/src/rules/ruff/snapshots/ruff__rules__ruff__tests__ruf100_1.snap +++ b/src/rules/ruff/snapshots/ruff__rules__ruff__tests__ruf100_1.snap @@ -4,9 +4,9 @@ expression: diagnostics --- - kind: UnusedImport: - - typing.Union - - false - - false + name: typing.Union + ignore_init: false + multiple: false location: row: 37 column: 8 @@ -117,9 +117,9 @@ expression: diagnostics parent: ~ - kind: UnusedImport: - - typing.Awaitable - - false - - true + name: typing.Awaitable + ignore_init: false + multiple: true location: row: 89 column: 23 @@ -138,9 +138,9 @@ expression: diagnostics parent: ~ - kind: UnusedImport: - - typing.AwaitableGenerator - - false - - true + name: typing.AwaitableGenerator + ignore_init: false + multiple: true location: row: 89 column: 34