📝 update doc

This commit is contained in:
yanyongyu
2020-12-07 22:15:26 +08:00
parent 8443c01303
commit f220a01a30
2 changed files with 48 additions and 49 deletions

View File

@ -417,7 +417,6 @@ class Matcher(metaclass=MatcherMeta):
handler = self.handlers.pop(0)
signature = inspect.signature(handler)
BotType = signature.parameters.get("bot").annotation
print(BotType)
if BotType is not inspect.Parameter.empty and inspect.isclass(
BotType) and not isinstance(bot, BotType):
continue