Allow None to mean ReturnValue.new('void') for functions and methods.
This commit is contained in:
1 parent
f9e6ebf370
commit
9bed1c4a45
3 files changed
+8
-2
No files matched your search
@@ -70,6 +70,9 @@ class CppMethod(ForwardWrapperBase):
|
||||
DeprecationWarning, stacklevel=2)
|
||||
method_name, return_value = return_value, method_name
|
||||
|
||||
if return_value is None:
|
||||
return_value = ReturnValue.new('void')
|
||||
|
||||
if unblock_threads is None:
|
||||
unblock_threads = settings.unblock_threads
|
||||
super(CppMethod, self).__init__(
|
||||
|
||||
Reference in new issue
Block a user