polymerist.genutils.decorators.meta =================================== .. py:module:: polymerist.genutils.decorators.meta .. autoapi-nested-parse:: Decorators for modifying other decorators Attributes ---------- .. autoapisummary:: polymerist.genutils.decorators.meta.Params polymerist.genutils.decorators.meta.ReturnType polymerist.genutils.decorators.meta.Decorator Functions --------- .. autoapisummary:: polymerist.genutils.decorators.meta.extend_to_methods Module Contents --------------- .. py:data:: Params .. py:data:: ReturnType .. py:type:: Decorator :canonical: Callable[[Callable[Params, ReturnType]], Callable[Params, ReturnType]] .. py:function:: extend_to_methods(dec: Decorator) -> Decorator Meta-decorator; modifies an existing decorator definition to be transferrable to methods with no additional code The modified decorator can be used interchangably to decorate both ordinary functions AND methods of classes