Skip to content

Commit 5b2bc09

Browse files
committed
add comments
1 parent 0c97a82 commit 5b2bc09

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pandas/tests/dtypes/test_inference.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -453,6 +453,8 @@ class UnhashableClass2:
453453
def __hash__(self):
454454
raise TypeError("Not hashable")
455455

456+
# Temporary helper for Python 3.11 compatibility.
457+
# This can be removed once support for Python 3.11 is dropped.
456458
class HashableSlice:
457459
def __init__(self, start, stop, step=None):
458460
self.slice = slice(start, stop, step)

0 commit comments

Comments
 (0)