Skip to content

Commit 2e1b156

Browse files
fix: fix mypy errors
1 parent c1b0a7b commit 2e1b156

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/dicomweb_client/uri.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -638,7 +638,7 @@ def _validate_uid(uid: str, permissive: bool) -> None:
638638
if _REGEX_UID.fullmatch(uid) is None:
639639
raise ValueError(f'UID {uid!r} must match regex {_REGEX_UID!r} in '
640640
'conformance with the DICOM Standard.')
641-
elif permissive and _REGEX_PERMISSIVE_UID.fullmatch(uid) is None:
641+
elif _REGEX_PERMISSIVE_UID.fullmatch(uid) is None:
642642
raise ValueError(f'Permissive mode is enabled. UID {uid!r} must match '
643643
f'regex {_REGEX_PERMISSIVE_UID!r}.')
644644

0 commit comments

Comments
 (0)