Skip to content

Commit ad19a31

Browse files
committed
Used built-in 'dict' and 'list' for type hinting instead of 'typing.Dict' and 'typing.List'
1 parent 67cc462 commit ad19a31

File tree

1 file changed

+5
-5
lines changed
  • src/murfey/instrument_server

1 file changed

+5
-5
lines changed

src/murfey/instrument_server/api.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
from functools import partial
88
from logging import getLogger
99
from pathlib import Path
10-
from typing import Annotated, Any, Dict, List, Optional
10+
from typing import Annotated, Any, Optional
1111
from urllib.parse import urlparse
1212

1313
import requests
@@ -27,9 +27,9 @@
2727

2828
logger = getLogger("murfey.instrument_server.api")
2929

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] = {}
3333
data_collection_parameters: dict = {}
3434
tokens = {}
3535

@@ -321,7 +321,7 @@ def register_processing_parameters(
321321
)
322322
def get_possible_gain_references(
323323
instrument_name: str, session_id: MurfeySessionID
324-
) -> List[File]:
324+
) -> list[File]:
325325
machine_config = requests.get(
326326
f"{_get_murfey_url()}/instruments/{sanitise_nonpath(instrument_name)}/machine",
327327
headers={"Authorization": f"Bearer {tokens[session_id]}"},

0 commit comments

Comments
 (0)