mirror of
https://github.com/Mayuri-Chan/pyrofork.git
synced 2026-01-05 23:04:51 +00:00
Fix pycharm warnings
This commit is contained in:
parent
47d5889612
commit
35e1a76cef
1 changed files with 2 additions and 2 deletions
|
|
@ -68,10 +68,10 @@ class ChatAction(Enum):
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def from_string(action: str) -> "ChatAction":
|
def from_string(action: str) -> "ChatAction":
|
||||||
for a in iter(ChatAction):
|
for a in ChatAction:
|
||||||
if a.name.lower() == action.lower():
|
if a.name.lower() == action.lower():
|
||||||
return a
|
return a
|
||||||
|
|
||||||
raise ValueError("Invalid ChatAction: '{}'. Possible types are {}".format(
|
raise ValueError("Invalid ChatAction: '{}'. Possible types are {}".format(
|
||||||
action, [x.name.lower() for x in iter(ChatAction)]
|
action, [x.name.lower() for x in ChatAction]
|
||||||
))
|
))
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue