💩 find errors need to fix

This commit is contained in:
yanyongyu 2021-12-04 22:57:44 +08:00
parent b52954a240
commit 59e139724b
3 changed files with 5 additions and 0 deletions

View File

@ -131,6 +131,7 @@ def get_dependent(
return dependent return dependent
# FIXME: check param types first then run dependencies
async def solve_dependencies( async def solve_dependencies(
*, *,
_dependent: Dependent, _dependent: Dependent,

View File

@ -97,6 +97,9 @@ def run_postprocessor(func: T_RunPostProcessor) -> T_RunPostProcessor:
return func return func
# FIXME: run handler with try/except skipped exception
async def _check_matcher( async def _check_matcher(
priority: int, priority: int,
Matcher: Type[Matcher], Matcher: Type[Matcher],

View File

@ -31,6 +31,7 @@ class EventParam(Param):
return event return event
# FIXME: may detect error param
class StateParam(Param): class StateParam(Param):
@classmethod @classmethod
def _check(cls, name: str, param: inspect.Parameter) -> bool: def _check(cls, name: str, param: inspect.Parameter) -> bool: