|
7 | 7 | from functools import partial |
8 | 8 | from logging import getLogger |
9 | 9 | from pathlib import Path |
10 | | -from typing import Annotated, Any, Dict, List, Optional |
| 10 | +from typing import Annotated, Any, Optional |
11 | 11 | from urllib.parse import urlparse |
12 | 12 |
|
13 | 13 | import requests |
|
27 | 27 |
|
28 | 28 | logger = getLogger("murfey.instrument_server.api") |
29 | 29 |
|
30 | | -watchers: Dict[str | int, MultigridDirWatcher] = {} |
31 | | -rsyncers: Dict[str, RSyncer] = {} |
32 | | -controllers: Dict[int, MultigridController] = {} |
| 30 | +watchers: dict[str | int, MultigridDirWatcher] = {} |
| 31 | +rsyncers: dict[str, RSyncer] = {} |
| 32 | +controllers: dict[int, MultigridController] = {} |
33 | 33 | data_collection_parameters: dict = {} |
34 | 34 | tokens = {} |
35 | 35 |
|
@@ -321,7 +321,7 @@ def register_processing_parameters( |
321 | 321 | ) |
322 | 322 | def get_possible_gain_references( |
323 | 323 | instrument_name: str, session_id: MurfeySessionID |
324 | | -) -> List[File]: |
| 324 | +) -> list[File]: |
325 | 325 | machine_config = requests.get( |
326 | 326 | f"{_get_murfey_url()}/instruments/{sanitise_nonpath(instrument_name)}/machine", |
327 | 327 | headers={"Authorization": f"Bearer {tokens[session_id]}"}, |
|
0 commit comments