From 35e1a76cefe6173058c7ad5c1697f74fa92ce182 Mon Sep 17 00:00:00 2001 From: Dan <14043624+delivrance@users.noreply.github.com> Date: Mon, 30 Apr 2018 19:53:03 +0200 Subject: [PATCH] Fix pycharm warnings --- pyrogram/client/chat_action.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pyrogram/client/chat_action.py b/pyrogram/client/chat_action.py index 62cd5891..96c5164e 100644 --- a/pyrogram/client/chat_action.py +++ b/pyrogram/client/chat_action.py @@ -68,10 +68,10 @@ class ChatAction(Enum): @staticmethod def from_string(action: str) -> "ChatAction": - for a in iter(ChatAction): + for a in ChatAction: if a.name.lower() == action.lower(): return a 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] ))