add fastapi routes, adapters

This commit is contained in:
yanyongyu
2020-07-05 20:39:34 +08:00
parent 4d242875d2
commit ea21d6ffcc
9 changed files with 64 additions and 18 deletions

View File

@ -5,10 +5,10 @@ from functools import wraps
from collections import defaultdict
from typing import Type, List, Dict, Optional, Callable
from .event import Event
from .typing import Handler
from .rule import Rule, user
from .exception import PausedException, RejectedException, FinishedException
from nonebot.event import Event
from nonebot.typing import Handler
from nonebot.rule import Rule, user
from nonebot.exception import PausedException, RejectedException, FinishedException
matchers: Dict[int, List[Type["Matcher"]]] = defaultdict(list)