Skip to content

Commit

Permalink
Improve docstrings
Browse files Browse the repository at this point in the history
  • Loading branch information
bwohlberg committed Dec 6, 2023
1 parent c573049 commit 897018c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scico/operator/_stack.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,10 @@ def is_collapsible(shapes: Sequence[Union[Shape, BlockShape]]) -> bool:


def is_blockable(shapes: Sequence[Union[Shape, BlockShape]]) -> TypeGuard[Union[Shape, BlockShape]]:
"""Determine whether a sequence of shapes could be a valid :class:`BlockArray` shape.
"""Determine whether a sequence of shapes could be a :class:`BlockArray` shape.
Return ``True`` if the sequence of shapes represent arrays that can be
combined into a :class:`BlockArray`, i.e., none are nested."""
Return ``True`` if the sequence of shapes represent arrays that can
be combined into a :class:`BlockArray`, i.e., none are nested."""
return not any(is_nested(s) for s in shapes)


Expand Down

0 comments on commit 897018c

Please sign in to comment.