Skip to content

Commit 6d6344d

Browse files
committed
modify type hinting for backward compatibility
1 parent d422e42 commit 6d6344d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

python/kiss_icp/tools/point_cloud2.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
"""
3333

3434
import sys
35-
from typing import Iterable, List, Optional, Tuple
35+
from typing import Iterable, List, Optional, Tuple, Union
3636

3737
import numpy as np
3838

@@ -52,7 +52,7 @@
5252
DUMMY_FIELD_PREFIX = "unnamed_field"
5353

5454

55-
def read_point_cloud(msg) -> Tuple[np.ndarray, np.ndarray | None]:
55+
def read_point_cloud(msg) -> Tuple[np.ndarray, Union[np.ndarray, None]]:
5656
"""
5757
Extract poitns and timestamps from a PointCloud2 message.
5858

0 commit comments

Comments
 (0)