Skip to content

Commit 2aff1c3

Browse files
committed
fix typing issues
1 parent 098867f commit 2aff1c3

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/sed/binning/binning.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ def bin_partition(
178178
ranges=ranges,
179179
)
180180
elif hist_mode == "numpy":
181-
hist_partition, edges = np.histogramdd(
181+
hist_partition, edges = np.histogramdd( # type: ignore
182182
vals,
183183
bins=bins,
184184
range=ranges,

src/sed/binning/numba_bin.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ def numba_histogramdd(
195195
num_rows, num_cols = sample.shape # pylint: disable=unused-variable
196196

197197
if isinstance(bins, (int, np.int_)): # bins provided as a single number
198-
bins = num_cols * [bins]
198+
bins = cast(int, num_cols) * [bins]
199199
num_bins = len(bins) # Number of dimensions in bins
200200

201201
if num_bins != num_cols: # check number of dimensions

0 commit comments

Comments
 (0)