|
12 | 12 | """ |
13 | 13 |
|
14 | 14 | from enum import Enum, auto |
15 | | -from typing import Any, Final, List, Optional, Tuple |
| 15 | +from typing import Any, Final, Optional, Sequence, Tuple |
16 | 16 |
|
17 | 17 | import numpy as np |
18 | 18 | import numpy.typing as npt |
@@ -167,8 +167,8 @@ def compute_profiles( # noqa: D417 |
167 | 167 | # pylint: disable=unused-argument,too-many-arguments |
168 | 168 | **kwargs: Any, |
169 | 169 | ) -> Tuple[ |
170 | | - List[npt.NDArray[np.float64]], |
171 | | - List[npt.NDArray[np.float64]], |
| 170 | + Sequence[npt.NDArray[np.float64]], |
| 171 | + Sequence[npt.NDArray[np.float64]], |
172 | 172 | ]: |
173 | 173 | """Computes the density and speed profiles. |
174 | 174 |
|
@@ -260,7 +260,7 @@ def compute_density_profile( |
260 | 260 | grid_intersections_area: Optional[npt.NDArray[np.float64]] = None, |
261 | 261 | gaussian_width: Optional[float] = None, |
262 | 262 | # pylint: disable=too-many-arguments |
263 | | -) -> List[npt.NDArray[np.float64]]: |
| 263 | +) -> Sequence[npt.NDArray[np.float64]]: |
264 | 264 | """Compute the density profile. |
265 | 265 |
|
266 | 266 | Args: |
@@ -484,7 +484,7 @@ def compute_speed_profile( |
484 | 484 | fill_value: float = np.nan, |
485 | 485 | gaussian_width: float = 0.5, |
486 | 486 | # pylint: disable=too-many-arguments |
487 | | -) -> List[npt.NDArray[np.float64]]: |
| 487 | +) -> Sequence[npt.NDArray[np.float64]]: |
488 | 488 | """Computes the speed profile for pedestrians within an area. |
489 | 489 |
|
490 | 490 | This function calculates speed profiles based on pedestrian speed data |
|
0 commit comments