very late review comment: would it make sense to make is_hashable_non_slice or something? it wouldn't surprise me if many places that use is_hashable current assume non-slice but didn't get updated by this PR

Originally posted by @jbrockmendel in https://github.com/pandas-dev/pandas/pull/53743#discussion_r1326572366

Comment From: rhshadrach

Maybe an allow_slice argument to is_hashable?

Comment From: LirongMa

@rhshadrach @lithomas1 I'll work on this issue. Should I do this? def is_hashable(obj: object, allow_slice=False)?

Comment From: LirongMa

take