Skip to content

Commit

Permalink
[melobot] Fix mypy complaint since python 3.13
Browse files Browse the repository at this point in the history
  • Loading branch information
aicorein committed Dec 25, 2024
1 parent 0134a66 commit 416234b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/melobot/adapter/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
6 changes: 3 additions & 3 deletions src/melobot/protocols/onebot/v11/io/packet.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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

0 comments on commit 416234b

Please sign in to comment.