diff --git a/nonebot/dependencies/__init__.py b/nonebot/dependencies/__init__.py index 80db9840..8cc331cc 100644 --- a/nonebot/dependencies/__init__.py +++ b/nonebot/dependencies/__init__.py @@ -131,6 +131,7 @@ def get_dependent( return dependent +# FIXME: check param types first then run dependencies async def solve_dependencies( *, _dependent: Dependent, diff --git a/nonebot/message.py b/nonebot/message.py index f2ff0ca9..3f89b971 100644 --- a/nonebot/message.py +++ b/nonebot/message.py @@ -97,6 +97,9 @@ def run_postprocessor(func: T_RunPostProcessor) -> T_RunPostProcessor: return func +# FIXME: run handler with try/except skipped exception + + async def _check_matcher( priority: int, Matcher: Type[Matcher], diff --git a/nonebot/params.py b/nonebot/params.py index 484c4d21..79747ca4 100644 --- a/nonebot/params.py +++ b/nonebot/params.py @@ -31,6 +31,7 @@ class EventParam(Param): return event +# FIXME: may detect error param class StateParam(Param): @classmethod def _check(cls, name: str, param: inspect.Parameter) -> bool: