Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
martindurant committed Aug 20, 2024
1 parent 873e056 commit 10a3239
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/dask_histogram/boost.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ def _rebuild(

@property
def _in_memory_type(self) -> type[bh.Histogram]:
if type(self) != Histogram:
if type(self) is not Histogram:
warnings.warn(
"""dask_histogram.boost.Histogram has been subclassed without
overriding '_in_memory_type', please do so if you would like to
Expand Down
4 changes: 2 additions & 2 deletions tests/test_boost.py
Original file line number Diff line number Diff line change
Expand Up @@ -520,7 +520,7 @@ def test_add(use_weights):
def test_name_assignment():
import dask.array as da

hist = pytest.importorskip("hist")
pytest.importorskip("hist")
import hist.dask

x = da.random.normal(size=100)
Expand All @@ -545,7 +545,7 @@ def test_histref_pickle():

import dask.array as da

hist = pytest.importorskip("hist")
pytest.importorskip("hist")
import hist.dask

x = da.random.normal(size=100)
Expand Down

0 comments on commit 10a3239

Please sign in to comment.