Skip to content

Commit

Permalink
chore: refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
BobTheBuidler committed Nov 26, 2024
1 parent 9c78cf5 commit f93d25b
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions a_sync/a_sync/base.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit f93d25b

Please sign in to comment.