File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -84,11 +84,11 @@ def __init__(
84
84
root : TypePath ,
85
85
split : TypeSplit = 'train' ,
86
86
* ,
87
- token : Optional [ str ] = None ,
87
+ token : str | None = None ,
88
88
download : bool = False ,
89
- num_subjects : Optional [ int ] = None ,
89
+ num_subjects : int | None = None ,
90
90
report_key : str = 'report' ,
91
- sizes : Optional [ list [int ]] = None ,
91
+ sizes : list [int ] | None = None ,
92
92
** kwargs ,
93
93
):
94
94
self ._root_dir = Path (root )
@@ -347,7 +347,7 @@ def _get_subject(
347
347
DataFrame containing metadata for all images associated to that subject.
348
348
"""
349
349
subject_id , subject_df = subject_id_and_metadata
350
- subject_dict : dict [str , Union [ str , ScalarImage ] ] = {'subject_id' : subject_id }
350
+ subject_dict : dict [str , str | ScalarImage ] = {'subject_id' : subject_id }
351
351
for _ , image_row in subject_df .iterrows ():
352
352
image = self ._instantiate_image (image_row )
353
353
scan_id = image_row ['scan_id' ]
You can’t perform that action at this time.
0 commit comments