From b06a62cb0527338b584f9a87ccb75844cbfd35fe Mon Sep 17 00:00:00 2001 From: 简律纯 Date: Mon, 8 Jul 2024 07:42:12 +0800 Subject: style(examples): ruff format code --- hrc/rule/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'hrc/rule') diff --git a/hrc/rule/__init__.py b/hrc/rule/__init__.py index 8923f9e..ecced24 100644 --- a/hrc/rule/__init__.py +++ b/hrc/rule/__init__.py @@ -145,7 +145,7 @@ class Rule(ABC, Generic[EventT, StateT, ConfigT]): async def handle(self) -> None: """Method to handle events. iamai will call this method when the ``rule()`` method returns ``True``. Each plugin must implement this method.""" raise NotImplementedError - + @abstractmethod async def rule(self) -> bool: """Method to match the event. When the event is processed, this method will be called in sequence according to the priority of the plugin. When this method returns ``True``, the event will be handed over to this plugin for processing. Each plugin must implement this method. @@ -162,4 +162,4 @@ class Rule(ABC, Generic[EventT, StateT, ConfigT]): func._ignore_case = ignore_case return func - return decorator \ No newline at end of file + return decorator -- cgit v1.2.3-70-g09d2