From 23b64612495914eeb151949c8dd43b3716ba9bbe Mon Sep 17 00:00:00 2001 From: Alex Root Junior Date: Wed, 28 Sep 2022 00:14:47 +0300 Subject: [PATCH] Fixed mypy --- aiogram/types/update.py | 2 +- aiogram/utils/helper.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/aiogram/types/update.py b/aiogram/types/update.py index 8c7177f2..9f9eb413 100644 --- a/aiogram/types/update.py +++ b/aiogram/types/update.py @@ -61,7 +61,7 @@ class Update(TelegramObject): def __hash__(self) -> int: return hash((type(self), self.update_id)) - @property # type: ignore + @property @lru_cache() def event_type(self) -> str: """ diff --git a/aiogram/utils/helper.py b/aiogram/utils/helper.py index 9b4cd039..97b6f008 100644 --- a/aiogram/utils/helper.py +++ b/aiogram/utils/helper.py @@ -200,7 +200,7 @@ class ItemsList(List[str]): self.extend(other) return self - __iadd__ = __add__ = __rand__ = __and__ = __ror__ = __or__ = add + __iadd__ = __add__ = __rand__ = __and__ = __ror__ = __or__ = add # type: ignore class OrderedHelperMeta(type):