continueClass¶
-
lsst.utils.
continueClass
(cls)¶ Re-open the decorated class, adding any new definitions into the original.
For example:
.. code-block:: python
- class Foo:
pass
@continueClass class Foo:
- def run(self):
return None
is equivalent to:
.. code-block:: python
- class Foo:
- def run(self):
return None
Warning
Python’s built-in
super
function does not behave properly in classes decorated withcontinueClass
. Base class methods must be invoked directly using their explicit types instead.