summaryrefslogtreecommitdiffstatshomepage
path: root/src
diff options
context:
space:
mode:
author苏向夜 <fu050409@163.com>2023-12-14 16:53:12 +0800
committer苏向夜 <fu050409@163.com>2023-12-14 16:53:12 +0800
commit7a52c069c1eaa01341bb4101eb2ffede72c432d7 (patch)
treefac8b49152a399555938adfd07d84f925fcfaba8 /src
parentddb8dbae2fc97b35c9cdf595ea926f925e987fcc (diff)
downloadinfini-7a52c069c1eaa01341bb4101eb2ffede72c432d7.tar.gz
infini-7a52c069c1eaa01341bb4101eb2ffede72c432d7.zip
:bug: 修复Result传参问题
Diffstat (limited to 'src')
-rw-r--r--src/infini/handler.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/infini/handler.py b/src/infini/handler.py
index fb6d50e5..30eac0ab 100644
--- a/src/infini/handler.py
+++ b/src/infini/handler.py
@@ -13,7 +13,9 @@ class Result(metaclass=ABCMeta):
status: bool
exception: HydroError | None = None
- def __init__(self, event: str, status: bool, exception: HydroError | None) -> None:
+ def __init__(
+ self, event: str, status: bool, exception: HydroError | None = None
+ ) -> None:
self.event = event
self.status = status
self.exception = exception