Skip to content

Commit

Permalink
mitigation for dask/distributed#7471
Browse files Browse the repository at this point in the history
Also make the function conform to its specified type signature. :-)
  • Loading branch information
uellue committed Jan 13, 2023
1 parent 75b6c3c commit 874d73e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libertem/common/shape.py
Expand Up @@ -87,7 +87,7 @@ def size(self) -> int:
shape_tuple = self.to_tuple()
if len(shape_tuple) == 0:
return 0
return functools.reduce(operator.mul, shape_tuple)
return int(functools.reduce(operator.mul, shape_tuple))

def flatten_nav(self) -> "Shape":
"""
Expand Down

0 comments on commit 874d73e

Please sign in to comment.