From c58601c6d432b64ca7bf2b77edc3216a40366269 Mon Sep 17 00:00:00 2001 From: Chris Bridge Date: Sat, 19 Oct 2024 14:30:22 -0400 Subject: [PATCH] Mypy fixes --- src/dicomweb_client/web.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/dicomweb_client/web.py b/src/dicomweb_client/web.py index 36c7906..4066f9c 100644 --- a/src/dicomweb_client/web.py +++ b/src/dicomweb_client/web.py @@ -1083,7 +1083,7 @@ def _http_get_multipart( """ # noqa: E501 default_media_type = '*/*' - supported_media_types = { + supported_media_types: Dict[str, Union[str, Tuple[str, ...]]] = { '1.2.840.10008.1.2.1': 'application/octet-stream', '1.2.840.10008.1.2.5': ('image/dicom-rle', 'image/x-dicom-rle'), '1.2.840.10008.1.2.4.50': 'image/jpeg', @@ -1208,7 +1208,7 @@ def _http_get_multipart_image( """ # noqa: E501 headers = {} - supported_media_types = { + supported_media_types: Dict[str, Union[str, Tuple[str, ...]]] = { '1.2.840.10008.1.2.5': ('image/dicom-rle', 'image/x-dicom-rle'), '1.2.840.10008.1.2.4.50': 'image/jpeg', '1.2.840.10008.1.2.4.51': 'image/jpeg',