Skip to content

Commit 5be146f

Browse files
committed
locally disable ruff warning about named lambdas
1 parent 864d219 commit 5be146f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

stagpy/stagyyparsers.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -675,7 +675,7 @@ def _ncores(meshes: List[Dict[str, ndarray]], twod: Optional[str]) -> ndarray:
675675
):
676676
nns[0] += 1
677677
nnpb -= 1
678-
cpu = lambda icy: icy * nns[0]
678+
cpu = lambda icy: icy * nns[0] # noqa: E731
679679
if twod is None or "Y" in twod:
680680
while (
681681
nnpb > 1
@@ -684,7 +684,7 @@ def _ncores(meshes: List[Dict[str, ndarray]], twod: Optional[str]) -> ndarray:
684684
):
685685
nns[1] += 1
686686
nnpb -= nns[0]
687-
cpu = lambda icz: icz * nns[0] * nns[1]
687+
cpu = lambda icz: icz * nns[0] * nns[1] # noqa: E731
688688
while (
689689
nnpb > 1
690690
and meshes[cpu(nns[2])]["Z"][0, 0, 0] == meshes[cpu(nns[2] - 1)]["Z"][0, 0, -1]

0 commit comments

Comments
 (0)