mirror of
https://github.com/nonebot/nonebot2.git
synced 2025-09-07 04:26:45 +00:00
🏷️ add pre-commit flow
This commit is contained in:
@ -2,7 +2,6 @@ import abc
|
||||
from contextlib import asynccontextmanager
|
||||
from typing import Any, Dict, AsyncGenerator
|
||||
|
||||
from ._bot import Bot
|
||||
from nonebot.config import Config
|
||||
from nonebot.drivers import (
|
||||
Driver,
|
||||
@ -15,6 +14,8 @@ from nonebot.drivers import (
|
||||
WebSocketServerSetup,
|
||||
)
|
||||
|
||||
from ._bot import Bot
|
||||
|
||||
|
||||
class Adapter(abc.ABC):
|
||||
def __init__(self, driver: Driver, **kwargs: Any):
|
||||
|
@ -2,9 +2,10 @@ import abc
|
||||
|
||||
from pydantic import BaseModel
|
||||
|
||||
from ._message import Message
|
||||
from nonebot.utils import DataclassEncoder
|
||||
|
||||
from ._message import Message
|
||||
|
||||
|
||||
class Event(abc.ABC, BaseModel):
|
||||
"""Event 基类。提供获取关键信息的方法,其余信息可直接获取。"""
|
||||
|
Reference in New Issue
Block a user