Skip to content

Commit

Permalink
Improve docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
evhub committed Dec 30, 2022
1 parent da4c4f5 commit c82b426
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion coconut/compiler/templates/header.py_template
Original file line number Diff line number Diff line change
Expand Up @@ -450,7 +450,8 @@ class reversed(_coconut_base_hashable):
def __fmap__(self, func):
return self.__class__(_coconut_map(func, self.iter))
class flatten(_coconut_base_hashable):
"""Flatten an iterable of iterables into a single iterable."""
"""Flatten an iterable of iterables into a single iterable.
Flattens the first axis of numpy arrays."""
__slots__ = ("iter",)
def __new__(cls, iterable):
if iterable.__class__.__module__ in _coconut.numpy_modules:
Expand Down

0 comments on commit c82b426

Please sign in to comment.