refactor: get_class_name

This commit is contained in:
莘权 马 2023-11-10 15:59:50 +08:00
parent 710bc40b0a
commit 60bad18304

View file

@ -73,7 +73,7 @@ class Memory:
news.append(i)
return news
def get_by_action(self, action) -> list[Message]:
def get_by_action(self, action: str) -> list[Message]:
"""Return all messages triggered by a specified Action"""
return self.index[action]