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.
2 parents f868bf6 + 59f9e6f commit f7ec9f8Copy full SHA for f7ec9f8
lib/pycall/pyobject_wrapper.rb
@@ -178,7 +178,7 @@ def check_ismodule(pyptr)
178
def check_isclass(pyptr)
179
pyptr = pyptr.__pyptr__ if pyptr.kind_of? PyObjectWrapper
180
return if pyptr.kind_of? LibPython::API::PyType_Type
181
- 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)
182
raise TypeError, "PyType object is required"
183
end
184
0 commit comments