diff options
| author | Asko Nõmm <asko@nmm.ee> | 2024-12-31 00:30:06 +0200 |
|---|---|---|
| committer | Asko Nõmm <asko@nmm.ee> | 2024-12-31 00:30:06 +0200 |
| commit | 77f6f957480d3674756ab6e5166641a3bab3e696 (patch) | |
| tree | 27b9cffcc646b44a71828a6ed95ddc811f125f8f /htmtl/expression_modifier.py | |
| parent | cc92131a707f05e54a8a74ca8a61a6953c1d3244 (diff) | |
bump
Diffstat (limited to 'htmtl/expression_modifier.py')
| -rw-r--r-- | htmtl/expression_modifier.py | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/htmtl/expression_modifier.py b/htmtl/expression_modifier.py index 1986d92..69d6a86 100644 --- a/htmtl/expression_modifier.py +++ b/htmtl/expression_modifier.py @@ -7,4 +7,13 @@ class ExpressionModifier(ABC): @abstractmethod def modify(self, value: Any, opts: list[Any]) -> Any: - pass
\ No newline at end of file + pass + + +def modifier(name: str): + def wrapper(cls: type[ExpressionModifier]): + cls.name = name + + return cls + + return wrapper
\ No newline at end of file |
