Skip to content

Commit 4530157

Browse files
committed
Use PyPtr.none? instead of removed PyCall.none?
1 parent c2b83d2 commit 4530157

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/pycall/conversion.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ def self.python_type_mapping(pytype, rbtype)
3232
#
3333
# @return a Ruby object converted from `pyptr`.
3434
def self.to_ruby(pyptr)
35-
return nil if pyptr.null? || PyCall.none?(pyptr)
35+
return nil if pyptr.null? || pyptr.none?
3636

3737
case
3838
when PyCall::Types.pyisinstance(pyptr, LibPython.PyType_Type)

0 commit comments

Comments
 (0)