Skip to content

Commit c10f698

Browse files
fix(renumber): union type applied to wrong level
renumber outputs a 2-tuple, not a 3-tuple
1 parent 90c5cd1 commit c10f698

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fastremap/fastremap.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ def renumber(
158158
start: Union[int, float] = 1,
159159
preserve_zero: bool = True,
160160
in_place: bool = False,
161-
) -> Union[tuple[NDArray[Any], dict[int, int], dict[float, float]]]:
161+
) -> tuple[NDArray[Any], Union[dict[int, int], dict[float, float]]]:
162162
"""Renumber an array.
163163
164164
Given an array of integers, renumber all the unique values starting

0 commit comments

Comments
 (0)