Skip to content

Commit e7cb830

Browse files
committed
Remove integer as a return type hint
1 parent e33d2bb commit e7cb830

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/mdio/converters/segy.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -499,15 +499,14 @@ def segy_to_mdio( # noqa: C901
499499
zarr.consolidate_metadata(store_nocache)
500500

501501

502-
def _calculate_live_mask_chunksize(grid: Grid) -> Sequence[int] | int:
502+
def _calculate_live_mask_chunksize(grid: Grid) -> Sequence[int]:
503503
"""Calculate the optimal chunksize for the live mask.
504504
505505
Args:
506506
grid: The grid to calculate the chunksize for.
507507
508508
Returns:
509-
Either a single integer (-1) if no chunking is needed, or a sequence of integers
510-
representing the optimal chunk size for each dimension of the grid.
509+
A sequence of integers representing the optimal chunk size for each dimension of the grid.
511510
"""
512511
# Use nbytes for the initial check, since we are limited by Blosc's maximum
513512
# chunk size in bytes.

0 commit comments

Comments
 (0)