Skip to content

Commit 84a0cfa

Browse files
committed
Add missing type annotation for inner check_tag
1 parent e4eb5e9 commit 84a0cfa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

heudiconv/dicoms.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -537,7 +537,7 @@ def get_datetime_from_dcm(dcm_data: dcm.FileDataset) -> Optional[datetime.dateti
537537
538538
"""
539539

540-
def check_tag(x):
540+
def check_tag(x: str) -> bool:
541541
return x in dcm_data and dcm_data[x].value.strip()
542542

543543
if check_tag("AcquisitionDate") and check_tag("AcquisitionTime"):

0 commit comments

Comments
 (0)