From 87ba52e2fff0d4e14e1d5290379ed1e85422ab3f Mon Sep 17 00:00:00 2001 From: David Bold Date: Tue, 10 Dec 2024 11:12:59 +0100 Subject: [PATCH] Allow abitrary arguments to base __cinit__ --- tools/pylib/_boutpp_build/boutpp.pyx.jinja | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/tools/pylib/_boutpp_build/boutpp.pyx.jinja b/tools/pylib/_boutpp_build/boutpp.pyx.jinja index 1e19e3307c..3ed31df46d 100644 --- a/tools/pylib/_boutpp_build/boutpp.pyx.jinja +++ b/tools/pylib/_boutpp_build/boutpp.pyx.jinja @@ -28,10 +28,8 @@ cdef class BOUTppBase: Base class that provides some mechanism for deallocation """ cdef c.bool _is_freed - cdef c.bool _is_init - def __cinit__(self, c.bool init=True): + def __cinit__(self, *args, **kwargs): self._is_freed = False - self._is_init = init def _boutpp_dealloc(self): self._is_freed = True