🐛 fix rule checker not parsed

This commit is contained in:
yanyongyu
2021-12-23 19:36:29 +08:00
parent e3aba26080
commit 76104d3237
4 changed files with 31 additions and 11 deletions

View File

@ -98,7 +98,9 @@ class Rule:
self.checkers: Set[Dependent[bool]] = set(
checker
if isinstance(checker, Dependent)
else Dependent[bool](call=checker, allow_types=self.HANDLER_PARAM_TYPES)
else Dependent[bool].parse(
call=checker, allow_types=self.HANDLER_PARAM_TYPES
)
for checker in checkers
)
"""