Skip to content

Commit

Permalink
improves: flatten improved (#185)
Browse files Browse the repository at this point in the history
  • Loading branch information
jlsneto authored Nov 18, 2022
1 parent 37be684 commit e2d354f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cereja/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
from . import experimental
from ._requests import request

VERSION = "1.7.9.final.0"
VERSION = "1.8.0.final.0"

__version__ = get_version_pep440_compliant(VERSION)

Expand Down
4 changes: 2 additions & 2 deletions cereja/array/_array.py
Original file line number Diff line number Diff line change
Expand Up @@ -307,11 +307,11 @@ def _iter(seq_, take_shapes=False):
sequence, has_sequence, shape = _iter(sequence, take_shapes=return_shapes)
except TypeError:
sequence, has_sequence, shape = _iter(sequence, take_shapes=return_shapes)
if not has_sequence:
break
deep += 1
if return_shapes:
shapes[deep] = shape
if not any(map(is_sequence, sequence)):
break
return (sequence, shapes) if return_shapes else sequence


Expand Down

0 comments on commit e2d354f

Please sign in to comment.