|
13 | 13 | from concurrent.futures import ThreadPoolExecutor |
14 | 14 | from io import StringIO |
15 | 15 | from multiprocessing import cpu_count |
16 | | -from typing import Any, Callable, Mapping, TypeVar |
| 16 | +from typing import Any, Callable, Mapping, Sequence, TypeVar |
17 | 17 |
|
18 | 18 | import numpy as np |
19 | 19 | import pandas as pd |
@@ -461,8 +461,7 @@ def sample( |
461 | 461 | Mapping[str, Any] |
462 | 462 | | float |
463 | 463 | | str |
464 | | - | list[str] |
465 | | - | list[Mapping[str, Any]] |
| 464 | + | Sequence[str | Mapping[str, Any]] |
466 | 465 | | None |
467 | 466 | ) = None, |
468 | 467 | iter_warmup: int | None = None, |
@@ -493,7 +492,7 @@ def sample( |
493 | 492 | str |
494 | 493 | | np.ndarray |
495 | 494 | | Mapping[str, Any] |
496 | | - | list[str | np.ndarray | Mapping[str, Any]] |
| 495 | + | Sequence[str | np.ndarray | Mapping[str, Any]] |
497 | 496 | | None |
498 | 497 | ) = None, |
499 | 498 | ) -> CmdStanMCMC: |
@@ -1360,7 +1359,13 @@ def pathfinder( |
1360 | 1359 | calculate_lp: bool = True, |
1361 | 1360 | # arguments standard to all methods |
1362 | 1361 | seed: int | None = None, |
1363 | | - inits: dict[str, float] | float | str | os.PathLike | None = None, |
| 1362 | + inits: ( |
| 1363 | + Mapping[str, Any] |
| 1364 | + | float |
| 1365 | + | str |
| 1366 | + | Sequence[str | Mapping[str, Any]] |
| 1367 | + | None |
| 1368 | + ) = None, |
1364 | 1369 | output_dir: OptionalPath = None, |
1365 | 1370 | sig_figs: int | None = None, |
1366 | 1371 | save_profile: bool = False, |
|
0 commit comments