ignore some lint

This commit is contained in:
Forgejo Actions 2026-04-21 21:20:34 -07:00
commit a1568a6f16
6 changed files with 30 additions and 24 deletions

View file

@ -262,7 +262,7 @@ def maxwell_operator(
else:
# transform from mn to xyz
b_xyz = (m * b_m
+ n * b_n) # noqa: E128
+ n * b_n) # noqa
# divide by mu
temp = ifftn(b_xyz, axes=range(3))
@ -409,7 +409,7 @@ def inverse_maxwell_operator_approx(
else:
# transform from mn to xyz
h_xyz = (m * hin_m
+ n * hin_n) # noqa: E128
+ n * hin_n) # noqa
# multiply by mu
temp = ifftn(h_xyz, axes=range(3))
@ -474,7 +474,7 @@ def find_k(
`(k, actual_frequency, eigenvalues, eigenvectors)`
The found k-vector and its frequency, along with all eigenvalues and eigenvectors.
"""
direction = numpy.array(direction) / norm(direction)
direction = numpy.array(direction) / norm(direction) # type: ignore[operator]
k_bounds = tuple(sorted(k_bounds)) # type: ignore # we know the length already...
assert len(k_bounds) == 2
@ -504,7 +504,7 @@ def find_k(
assert n is not None
assert v is not None
actual_frequency = get_f(float(res.x), band)
return direction * float(res.x), float(actual_frequency), n, v
return direction * float(res.x), float(actual_frequency), n, v # type: ignore[operator,return-value]
def eigsolve(