Skip to content

Commit b63d948

Browse files
committed
Remove unneeded None typing
1 parent 3c08806 commit b63d948

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

pandas/core/util/hashing.py

+2-5
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ def hash_pandas_object(
8585
obj: Index | DataFrame | Series,
8686
index: bool = True,
8787
encoding: str = "utf8",
88-
hash_key: str | None = _default_hash_key,
88+
hash_key: str = _default_hash_key,
8989
categorize: bool = True,
9090
) -> Series:
9191
"""
@@ -98,7 +98,7 @@ def hash_pandas_object(
9898
Include the index in the hash (if Series/DataFrame).
9999
encoding : str, default 'utf8'
100100
Encoding for data & key when strings.
101-
hash_key : str, default _default_hash_key
101+
hash_key : str, default '0123456789123456'
102102
Hash_key for string key to encode.
103103
categorize : bool, default True
104104
Whether to first categorize object arrays before hashing. This is more
@@ -110,9 +110,6 @@ def hash_pandas_object(
110110
"""
111111
from pandas import Series
112112

113-
if hash_key is None:
114-
hash_key = _default_hash_key
115-
116113
if isinstance(obj, ABCMultiIndex):
117114
return Series(hash_tuples(obj, encoding, hash_key), dtype="uint64", copy=False)
118115

0 commit comments

Comments
 (0)