File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 2828def _get_bins (
2929 data : npt .NDArray [Any ],
3030 num_bins : int = 100 ,
31- ) -> npt .NDArray [Any ]:
31+ ) -> npt .NDArray [np . floating ]:
3232 """Create evenly spaced bins with a given interval.
3333
3434 Parameters
@@ -161,13 +161,13 @@ def draw(self) -> None:
161161 for i , c in enumerate ("rgb" ):
162162 self .axes .hist (
163163 data [..., i ].ravel (),
164- bins = bins .tolist (),
164+ bins = bins .tolist (), # type: ignore[arg-type]
165165 label = c ,
166166 histtype = "step" ,
167167 color = _COLORS [c ],
168168 )
169169 else :
170- self .axes .hist (data .ravel (), bins = bins .tolist (), label = layer .name )
170+ self .axes .hist (data .ravel (), bins = bins .tolist (), label = layer .name ) # type: ignore[arg-type]
171171
172172 self ._contrast_lines = [
173173 self .axes .axvline (lim , color = "white" )
@@ -297,7 +297,7 @@ def draw(self) -> None:
297297
298298 bins = _get_bins (data )
299299
300- _ , bins , patches = self .axes .hist (data , bins = bins .tolist ())
300+ _ , bins , patches = self .axes .hist (data , bins = bins .tolist ()) # type: ignore[arg-type]
301301 patches = cast (BarContainer , patches )
302302
303303 # recolor the histogram plot
You can’t perform that action at this time.
0 commit comments