Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: 修复适配器模板 typo #93

Merged
merged 2 commits into from
Aug 1, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
from typing import Any
from typing_extensions import override

from nonebot.exception import WebSocketClosed
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
from typing import Union, Any
from typing_extensions import override

from nonebot.adapters import Bot as BaseBot
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from typing_extensions import override
from typing import Type, Union, Mapping, Iterable
from typing_extensions import override

from nonebot.adapters import Message as BaseMessage, MessageSegment as BaseMessageSegment

Expand All @@ -8,8 +8,8 @@ class MessageSegment(BaseMessageSegment["Message"]):

@classmethod
@override
def get_message_class(cls) -> Type["Message]:
raise NotImplementedError
def get_message_class(cls) -> Type["Message"]:
return Message

@override
def __str__(self) -> str:
Expand All @@ -25,7 +25,7 @@ class Message(BaseMessage[MessageSegment]):
@classmethod
@override
def get_segment_class(cls) -> Type[MessageSegment]:
raise NotImplementedError
return MessageSegment

@staticmethod
@override
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@
"cross-env": "^7.0.3",
"prettier": "^2.5.0"
}
}
}
Loading