Skip to content

Commit

Permalink
Allow abitrary arguments to base __cinit__
Browse files Browse the repository at this point in the history
  • Loading branch information
dschwoerer committed Dec 10, 2024
1 parent 1e57417 commit 87ba52e
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions tools/pylib/_boutpp_build/boutpp.pyx.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 87ba52e

Please sign in to comment.