We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c54eff1 commit 59f9e6fCopy full SHA for 59f9e6f
lib/pycall/pyobject_wrapper.rb
@@ -201,7 +201,7 @@ def wrap_module(pymodptr)
201
def check_isclass(pyptr)
202
pyptr = pyptr.__pyptr__ if pyptr.kind_of? PyObjectWrapper
203
return if pyptr.kind_of? LibPython::API::PyType_Type
204
- return defined?(LibPython::API::PyClass_Type) && pyptr.kind_of?(LibPython::API::PyClass_Type)
+ return if defined?(LibPython::API::PyClass_Type) && pyptr.kind_of?(LibPython::API::PyClass_Type)
205
raise TypeError, "PyType object is required"
206
end
207
0 commit comments