Skip to content

Commit

Permalink
corrected pre-commit error regarding type check conventions
Browse files Browse the repository at this point in the history
  • Loading branch information
Hoppe committed Nov 21, 2023
1 parent 83832bd commit 23e5cc6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion heat/dxarray/tests/test_dxarray.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def test_dim_name_idx_conversion(self):
idxs = ht.dxarray.dim_name_to_idx(dims, names)
# check for correct types (str, tuple or list)
self.assertTrue(
type(idxs) == type(names) or (isinstance(names, str) and isinstance(idxs, int))
type(idxs) is type(names) or (isinstance(names, str) and isinstance(idxs, int))
)
# check if dim_name_to_idx and dim_idx_to_name are inverse to each other
names_back = ht.dxarray.dim_idx_to_name(dims, idxs)
Expand Down

0 comments on commit 23e5cc6

Please sign in to comment.