We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2a6e7a1 commit 7b83c16Copy full SHA for 7b83c16
pandas/tests/dtypes/test_inference.py
@@ -491,6 +491,10 @@ def __repr__(self):
491
assert inference.is_hashable(hashable_slice, allow_slice=True)
492
assert inference.is_hashable(hashable_slice, allow_slice=False)
493
494
+ assert not inference.is_hashable(slice(1, 2))
495
+ assert not inference.is_hashable(slice(1, 2), allow_slice=True)
496
+ assert not inference.is_hashable(slice(1, 2), allow_slice=False)
497
+
498
assert not inference.is_hashable(tuple_with_slice)
499
assert not inference.is_hashable(tuple_with_slice, allow_slice=True)
500
assert not inference.is_hashable(tuple_with_slice, allow_slice=False)
0 commit comments