Fix default updates (#592)

* fix: default updates

* fix: removed redundant cache import
This commit is contained in:
Oleg A 2021-05-25 10:12:52 +03:00 committed by GitHub
parent 0e28756a10
commit 5f6e5a646b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,7 +1,5 @@
from __future__ import annotations
from functools import lru_cache
from . import base
from . import fields
from .callback_query import CallbackQuery
@ -76,7 +74,5 @@ class AllowedUpdates(helper.Helper):
)
@classmethod
@lru_cache(1)
def default(cls):
excluded = cls.CHAT_MEMBER + cls.MY_CHAT_MEMBER
return list(filter(lambda item: item not in excluded, cls.all()))
return []