lib/pycall/pyobject_wrapper.rb in pycall-1.3.0.dev vs lib/pycall/pyobject_wrapper.rb in pycall-1.3.0

- old
+ new

@@ -176,9 +176,9 @@ end def check_isclass(pyptr) pyptr = pyptr.__pyptr__ if pyptr.kind_of? PyObjectWrapper return if pyptr.kind_of? LibPython::API::PyType_Type - 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) raise TypeError, "PyType object is required" end end