Skip to content

Commit ac1aa18

Browse files
committed
typing fixes
1 parent 39d83ae commit ac1aa18

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

sed/loader/mpes/loader.py

+5-5
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
import glob
1010
import json
1111
import os
12-
from typing import Any
1312
from collections.abc import Sequence
13+
from typing import Any
1414
from urllib.error import HTTPError
1515
from urllib.error import URLError
1616
from urllib.request import urlopen
@@ -287,7 +287,7 @@ def get_datasets_and_aliases(
287287

288288
def hdf5_to_array(
289289
h5file: h5py.File,
290-
channels: Sequence[Dict[str, Any]],
290+
channels: Sequence[dict[str, Any]],
291291
time_stamps=False,
292292
ms_markers_key: str = "msMarkers",
293293
first_event_time_stamp_key: str = "FirstEventTimeStamp",
@@ -298,7 +298,7 @@ def hdf5_to_array(
298298
Args:
299299
h5file (h5py.File):
300300
hdf5 file handle to read from
301-
channels (Sequence[Dict[str, any]]):
301+
channels (Sequence[dict[str, any]]):
302302
channel dicts containing group names and types to read.
303303
time_stamps (bool, optional):
304304
Option to calculate time stamps. Defaults to False.
@@ -373,7 +373,7 @@ def hdf5_to_array(
373373

374374
def hdf5_to_timed_array(
375375
h5file: h5py.File,
376-
channels: Sequence[Dict[str, Any]],
376+
channels: Sequence[dict[str, Any]],
377377
time_stamps=False,
378378
ms_markers_key: str = "msMarkers",
379379
first_event_time_stamp_key: str = "FirstEventTimeStamp",
@@ -384,7 +384,7 @@ def hdf5_to_timed_array(
384384
Args:
385385
h5file (h5py.File):
386386
hdf5 file handle to read from
387-
channels (Sequence[Dict[str, any]]):
387+
channels (Sequence[dict[str, any]]):
388388
channel dicts containing group names and types to read.
389389
time_stamps (bool, optional):
390390
Option to calculate time stamps. Defaults to False.

0 commit comments

Comments
 (0)