diff --git a/src/melobot/adapter/model.py b/src/melobot/adapter/model.py index da17fd5..e1b0e85 100644 --- a/src/melobot/adapter/model.py +++ b/src/melobot/adapter/model.py @@ -199,7 +199,7 @@ class _ChainStep: @dataclass(kw_only=True) -class _ChainCtxStep(_ChainStep): +class _ChainCtxStep(_ChainStep): # type: ignore[override] ctx_var: Context ctx_val: Any coros: Sequence[Coroutine] = field(default_factory=tuple) diff --git a/src/melobot/protocols/onebot/v11/io/packet.py b/src/melobot/protocols/onebot/v11/io/packet.py index 2799ac3..5f6ecba 100644 --- a/src/melobot/protocols/onebot/v11/io/packet.py +++ b/src/melobot/protocols/onebot/v11/io/packet.py @@ -8,13 +8,13 @@ @dataclass(kw_only=True) -class InPacket(RootInPak): +class InPacket(RootInPak): # type: ignore[override] data: dict protocol: str = PROTOCOL_IDENTIFIER @dataclass(kw_only=True) -class OutPacket(RootOutPak): +class OutPacket(RootOutPak): # type: ignore[override] data: str action_type: str action_params: dict @@ -23,7 +23,7 @@ class OutPacket(RootOutPak): @dataclass(kw_only=True) -class EchoPacket(RootEchoPak): +class EchoPacket(RootEchoPak): # type: ignore[override] action_type: str = "" data: dict = field(default_factory=dict) protocol: str = PROTOCOL_IDENTIFIER