Skip to content

Commit 30439b6

Browse files
committed
Update utils.pyx.
1 parent 181588c commit 30439b6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/utils.pyx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ cpdef py_bool IsFunctionOrMethod(object valueType):
7676
if (valueType == types.FunctionType
7777
or valueType == types.MethodType
7878
or valueType == types.BuiltinFunctionType
79-
or valueType == types.BuiltinMethodType):
79+
or valueType == types.BuiltinMethodType
80+
or valueType.__name__ == "cython_function_or_method"):
8081
return True
8182
return False

0 commit comments

Comments
 (0)