Skip to content

Commit e9af555

Browse files
committed
ignoring mypy errors from numpy 2.1.3 -> 2.2.2
1 parent 129f23b commit e9af555

File tree

4 files changed

+4
-5
lines changed

4 files changed

+4
-5
lines changed

pyproject.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,6 @@ version-file = "src/mpol/mpol_version.py"
7979
line-length = 88
8080

8181
[tool.mypy]
82-
warn_return_any = true
8382
warn_unused_configs = true
8483

8584
[[tool.mypy.overrides]]

src/mpol/coordinates.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ def ground_q_centers_2D(self) -> npt.NDArray[np.floating[Any]]:
247247
@cached_property
248248
def sky_phi_centers_2D(self) -> npt.NDArray[np.floating[Any]]:
249249
# https://en.wikipedia.org/wiki/Atan2
250-
return np.arctan2(
250+
return np.arctan2( # type: ignore
251251
self.ground_v_centers_2D, self.ground_u_centers_2D
252252
) # (pi, pi]
253253

src/mpol/crossval.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -510,7 +510,7 @@ def __init__(
510510
self.cell_list = self.dartboard.get_nonzero_cell_indices(qs, phis)
511511

512512
# indices of cells in the smallest q bin that also have data
513-
small_q_idx = [i for i, l in enumerate(self.cell_list) if l[0] == 0]
513+
small_q_idx = [i for i, l in enumerate(self.cell_list) if l[0] == 0] #type: ignore
514514
# cells in the smallest q bin
515515
self.small_q = self.cell_list[: len(small_q_idx)]
516516

src/mpol/datasets.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -226,8 +226,8 @@ def get_polar_histogram(
226226

227227
histogram: NDArray
228228
# make a polar histogram
229-
histogram, *_ = np.histogram2d(
230-
qs, phis, bins=[self.q_edges.tolist(), self.phi_edges.tolist()]
229+
histogram, *_ = np.histogram2d( # type:ignore
230+
qs, phis, bins=[self.q_edges.tolist(), self.phi_edges.tolist()] # type:ignore
231231
)
232232

233233
return histogram

0 commit comments

Comments
 (0)