mirror of
https://github.com/nonebot/nonebot2.git
synced 2024-11-28 05:16:48 +08:00
💩 find errors need to fix
This commit is contained in:
parent
b52954a240
commit
59e139724b
@ -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,
|
||||||
|
@ -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],
|
||||||
|
@ -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:
|
||||||
|
Loading…
Reference in New Issue
Block a user