From f93d25b4b8a8cf9922d87d618c6514df841a8f40 Mon Sep 17 00:00:00 2001 From: BobTheBuidler Date: Tue, 26 Nov 2024 01:24:03 +0000 Subject: [PATCH] chore: refactor --- a_sync/a_sync/base.pyx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/a_sync/a_sync/base.pyx b/a_sync/a_sync/base.pyx index f76e6a34..3e189086 100644 --- a/a_sync/a_sync/base.pyx +++ b/a_sync/a_sync/base.pyx @@ -58,11 +58,9 @@ class ASyncGenericBase(ASyncABC): """ def __init__(self): - cdef str cls_name if type(self) is ASyncGenericBase: - cls_name = type(self).__name__ raise NotImplementedError( - f"You should not create instances of `{cls_name}` directly, you should subclass `ASyncGenericBase` instead." + f"You should not create instances of `ASyncGenericBase` directly, you should subclass `ASyncGenericBase` instead." ) ASyncABC.__init__(self)