Skip to content

Commit

Permalink
fix: init subclass docstring formatting for iterators
Browse files Browse the repository at this point in the history
  • Loading branch information
BobTheBuidler committed Nov 30, 2024
1 parent 50f92f9 commit b749bdf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions a_sync/iter.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -202,12 +202,12 @@ class _AwaitableAsyncIterableMixin(AsyncIterable[T]):
base_definition = getattr(_AwaitableAsyncIterableMixin, function_name)
if function_obj.__doc__ == base_definition.__doc__:
redefined_function_obj = deepcopy(base_definition)
elif hasattr(ASyncIterable, function_name):
elif cls.__name__ != "ASyncIterable" and hasattr(ASyncIterable, function_name):
base_definition = getattr(ASyncIterable, function_name)
if function_obj.__doc__ == base_definition.__doc__:
redefined_function_obj = deepcopy(base_definition)
elif hasattr(ASyncIterator, function_name):
base_definition = getattr(ASyncIterable, function_name)
elif cls.__name__ != "ASyncIterator" and hasattr(ASyncIterator, function_name):
base_definition = getattr(ASyncIterator, function_name)
if function_obj.__doc__ == base_definition.__doc__:
redefined_function_obj = deepcopy(base_definition)
Expand Down

0 comments on commit b749bdf

Please sign in to comment.