Skip to content

Commit bd5ad5d

Browse files
committed
BUG: Fix unreachable code
The type hint was too specific indicating the tuple required 2 strings, however there is code logic with an assumption that the tuple has a single element string.
1 parent 6edcadd commit bd5ad5d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/dicomweb_client/file.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -461,7 +461,7 @@ class _QueryResourceType(Enum):
461461

462462

463463
def _build_acceptable_media_type_lut(
464-
media_types: Tuple[Union[str, Tuple[str, str]], ...],
464+
media_types: Tuple[Union[str, Tuple[str, ...]], ...],
465465
supported_media_type_lut: Mapping[str, Iterable[str]]
466466
) -> Mapping[str, Iterable[str]]:
467467
# If no acceptable transfer syntax has been specified, then we just return

0 commit comments

Comments
 (0)