Skip to content

Commit 60fed1b

Browse files
committed
Linting
1 parent c6c3b28 commit 60fed1b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/pachyderm/binned_data.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1140,8 +1140,9 @@ def to_boost_histogram(self) -> Any:
11401140
h = bh.Histogram(*axes, storage=bh.storage.Weight())
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)
1143-
arr["value"] = self.values
1144-
arr["variance"] = self.variances
1143+
# 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]
11451146
h[...] = arr
11461147

11471148
return h

0 commit comments

Comments
 (0)