# docstrings not neede here (the type handler interfaces are fully
# documented in base.py) pylint: disable-msg=C0111

from base import ReturnValue


class VoidReturn(ReturnValue):

    CTYPES = ['void']
    
    def get_c_error_return(self):
        return "return;"
    
    def convert_python_to_c(self, wrapper):
        wrapper.parse_params.add_parameter("", [], prepend=True)

    def convert_c_to_python(self, wrapper):
        wrapper.build_params.add_parameter("O", ['Py_None'], prepend=True)

@@ -432,71 +432,9 @@
     
-wrapper.build_params.add_parameter(%22O%22, %5B'Py_None'%5D, prepend=True)
+pass
 %0A

make the void return type not return an explicit Py_None, to prevent a bug hwere None is being returned as first element of tuple when there are out/inout parameters