From 6224a232ea86562dfc9cf745bedc765f7f02beee Mon Sep 17 00:00:00 2001 From: "deepsource-autofix[bot]" <62050782+deepsource-autofix[bot]@users.noreply.github.com> Date: Sun, 8 Nov 2020 21:39:21 +0000 Subject: [PATCH] Change `NotImplemented` to `NotImplementedError` --- aiogram/types/base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aiogram/types/base.py b/aiogram/types/base.py index 3aca7456..20290a98 100644 --- a/aiogram/types/base.py +++ b/aiogram/types/base.py @@ -194,7 +194,7 @@ class TelegramObject(ContextInstanceMixin, metaclass=MetaTelegramObject): @classmethod def create(cls: typing.Type[T], *args: typing.Any, **kwargs: typing.Any) -> T: - raise NotImplemented + raise NotImplementedError def __str__(self) -> str: """