Skip to content

Commit c54eff1

Browse files
authored
Merge pull request #51 from kou/remove-pycall-none
Use PyPtr.none? instead of removed PyCall.none?
2 parents 1076799 + 4530157 commit c54eff1

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)