From 77f6f957480d3674756ab6e5166641a3bab3e696 Mon Sep 17 00:00:00 2001 From: Asko Nõmm Date: Tue, 31 Dec 2024 00:30:06 +0200 Subject: bump --- htmtl/expression_modifier.py | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'htmtl/expression_modifier.py') 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 -- cgit v1.2.3