Skip to content

Commit 6ca0d90

Browse files
committed
Move pyright ignore to from-line for parenthesized imports
basedpyright reports reportMissingImports on the 'from' line, not on the inner item line where ruff moved the comment.
1 parent 00fbf23 commit 6ca0d90

2 files changed

Lines changed: 8 additions & 8 deletions

File tree

sumpy/test/test_recurrence.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,11 @@
3232
import meshmode.mesh.generation as mgen # type: ignore # pyright: ignore[reportMissingImports]
3333
import numpy as np
3434
import sympy as sp
35-
from meshmode import (
36-
_acf as _acf_meshmode, # type: ignore # pyright: ignore[reportMissingImports]
35+
from meshmode import ( # pyright: ignore[reportMissingImports]
36+
_acf as _acf_meshmode, # type: ignore
3737
)
38-
from meshmode.discretization import (
39-
Discretization, # type: ignore # pyright: ignore[reportMissingImports]
38+
from meshmode.discretization import ( # pyright: ignore[reportMissingImports]
39+
Discretization, # type: ignore
4040
)
4141
from meshmode.discretization.poly_element import ( # type: ignore # pyright: ignore[reportMissingImports]
4242
default_simplex_group_factory,

sumpy/test/test_recurrence_qbx.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,11 @@
3232
import meshmode.mesh.generation as mgen # type: ignore # pyright: ignore[reportMissingImports]
3333
import numpy as np
3434
import sympy as sp
35-
from meshmode import (
36-
_acf as _acf_meshmode, # type: ignore # pyright: ignore[reportMissingImports]
35+
from meshmode import ( # pyright: ignore[reportMissingImports]
36+
_acf as _acf_meshmode, # type: ignore
3737
)
38-
from meshmode.discretization import (
39-
Discretization, # type: ignore # pyright: ignore[reportMissingImports]
38+
from meshmode.discretization import ( # pyright: ignore[reportMissingImports]
39+
Discretization, # type: ignore
4040
)
4141
from meshmode.discretization.poly_element import ( # type: ignore # pyright: ignore[reportMissingImports]
4242
default_simplex_group_factory,

0 commit comments

Comments
 (0)