curia.utils.python module¶
- class curia.utils.python.hybridmethod(fclass: type, finstance: object | None = None, doc: str | None = None)¶
Bases:
object
A decorator that allows for the creation of a method that can be called as a classmethod or an instancemethod. See https://stackoverflow.com/questions/28237955/same-name-for-classmethod-and-instancemethod
- classmethod(fclass: type)¶
- instancemethod(finstance: object)¶