Skip to content

Commit 9fcafc6

Browse files
committed
Linting
1 parent d6188c2 commit 9fcafc6

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/pachyderm/binned_data.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1141,8 +1141,8 @@ def to_boost_histogram(self) -> Any:
11411141
# Need to shape the array properly so that it will actually be able to assign to the boost histogram.
11421142
arr = np.zeros(shape=h.view().shape, dtype=h.view().dtype)
11431143
# NOTE: We're relying on the h.view() supporting structured arrays. Surprisingly, this seems to work.
1144-
arr["value"] = self.values # type: ignore[call-overload]
1145-
arr["variance"] = self.variances # type: ignore[call-overload]
1144+
arr["value"] = self.values
1145+
arr["variance"] = self.variances
11461146
h[...] = arr
11471147

11481148
return h

src/pachyderm/histogram.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -546,7 +546,7 @@ def _integral(
546546
# Provide the opportunity to scale by bin width
547547
widths = np.ones(len(self.y))
548548
if multiply_by_bin_width:
549-
widths = self.bin_widths # type: ignore[assignment]
549+
widths = self.bin_widths
550550

551551
# Integrate by summing up all of the bins and the errors.
552552
# Perform the integral.

0 commit comments

Comments
 (0)