jgdv.decorators
Idenpotent Decorators, as an extendable class
Key Classes: - DecoratorBase : Simplifies decorations to writing a _wrap_[method/fn/class] method. - MetaDecorator : Adds metadata to callable, without changing the behaviour of it. - DataDecorator : Stacks data onto the callable, with only one wrapping function
Submodules
Classes
A mixin for building Decorator Accessors like DKeyed. |
Package Contents
- class jgdv.decorators.DecoratorAccessor_m[source]
A mixin for building Decorator Accessors like DKeyed. Holds a _decoration_builder class, and helps you build it
- classmethod get_keys(target) <Unknown>[source]
Retrieve key annotations from a Decorated
- Parameters:
target (_interface.Decorated)
- Return type:
list[jgdv.Ident]
- _decoration_builder: ClassVar[type[_core.Decorator]]