Skip to content

Commit 0fc752e

Browse files
fix precommit
1 parent 2462e30 commit 0fc752e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

pandas/_libs/include/pandas/vendored/klib/khash_python.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -191,9 +191,9 @@ static inline int tupleobject_cmp(PyTupleObject *a, PyTupleObject *b) {
191191
return 1;
192192
}
193193

194-
static inline int _is_pandas_NA_type(PyObject* o) {
194+
static inline int _is_pandas_NA_type(PyObject *o) {
195195
// TODO compare PyTypeObject* C_NA, not strings!
196-
PyObject* type_name = PyType_GetName(Py_TYPE(o));
196+
PyObject *type_name = PyType_GetName(Py_TYPE(o));
197197
return PyUnicode_CompareWithASCIIString(type_name, "NAType") == 0;
198198
}
199199

@@ -323,8 +323,8 @@ static inline khuint32_t kh_python_hash_func(PyObject *key) {
323323
// hash tuple subclasses as builtin tuples
324324
hash = tupleobject_hash((PyTupleObject *)key);
325325
} else if (PyDict_Check(key) || PyList_Check(key)) {
326-
// Before GH 57052 was fixed, all exceptions raised from PyObject_Hash were suppressed.
327-
// Existing code that relies on this behaviour is for example:
326+
// Before GH 57052 was fixed, all exceptions raised from PyObject_Hash were
327+
// suppressed. Existing code that relies on this behaviour is for example:
328328
// * _libs.hashtable.value_count_object via DataFrame.describe
329329
// * _libs.hashtable.ismember_object via Series.isin
330330
// Using hash = 0 puts all dict and list objects in the same bucket,

0 commit comments

Comments
 (0)