Skip to content

Commit

Permalink
Add a type: ignore for lpot_exprs in skeletonizatoin
Browse files Browse the repository at this point in the history
  • Loading branch information
inducer committed Dec 27, 2024
1 parent 0957223 commit 688541e
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions pytential/linalg/skeletonization.py
Original file line number Diff line number Diff line change
Expand Up @@ -399,7 +399,7 @@ def make_skeletonization_wrangler(
try:
lpot_exprs = list(exprs)
except TypeError:
lpot_exprs = [exprs]
lpot_exprs = [exprs] # type: ignore[list-item]

try:
input_exprs = list(input_exprs)
Expand Down Expand Up @@ -796,8 +796,7 @@ def skeletonize_by_proxy(
skels: np.ndarray = np.empty((wrangler.nrows, wrangler.ncols), dtype=object)
for ibrow in range(wrangler.nrows):
for ibcol in range(wrangler.ncols):
# NOTE: type annotations for object arrays are not there yet
skels[ibrow, ibcol] = _skeletonize_block_by_proxy_with_mats( # type: ignore[call-overload]
skels[ibrow, ibcol] = _skeletonize_block_by_proxy_with_mats(
actx, ibrow, ibcol, places, proxy, wrangler, tgt_src_index,
id_eps=id_eps, id_rank=id_rank,
max_particles_in_box=max_particles_in_box)
Expand Down

0 comments on commit 688541e

Please sign in to comment.