polymerist.genutils.decorators.meta
Decorators for modifying other decorators
Attributes
Functions
|
Meta-decorator; modifies an existing decorator definition to be transferrable to methods with no additional code |
Module Contents
- polymerist.genutils.decorators.meta.Params
- polymerist.genutils.decorators.meta.ReturnType
- type polymerist.genutils.decorators.meta.Decorator = Callable[[Callable[Params, ReturnType]], Callable[Params, ReturnType]]
- polymerist.genutils.decorators.meta.extend_to_methods(dec: Decorator) Decorator[source]
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