Skip to content

Commit 49ea511

Browse files
author
hackermd
committed
Imporve type hints in method docstrings
1 parent 0da0ea5 commit 49ea511

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/dicomweb_client/api.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,7 @@ def _parse_qido_query_parameters(self, fuzzymatching, limit, offset,
342342
maximum number of results that should be returned
343343
offset: int, optional
344344
number of results that should be skipped
345-
fields: List[str], optional
345+
fields: Sequence[str], optional
346346
names of fields (attributes) that should be included in results
347347
search_filters: Dict[str, Any], optional
348348
search filter criteria as key-value pairs, where *key* is a keyword
@@ -600,7 +600,7 @@ def _http_get(self, url, params=None, headers=None):
600600

601601
def _http_get_application_json(self, url, params=None):
602602
'''Performs a HTTP GET request that accepts "applicaton/dicom+json"
603-
media type.
603+
or "application/json" media type.
604604
605605
Parameters
606606
----------
@@ -632,7 +632,7 @@ def _decode_multipart_message(self, body, headers):
632632
633633
Returns
634634
-------
635-
List[Union[str, bytes]]
635+
Sequence[Union[str, bytes]]
636636
data
637637
638638
'''
@@ -660,7 +660,7 @@ def _encode_multipart_message(self, data, content_type):
660660
661661
Parameters
662662
----------
663-
data: List[Union[str, bytes]]
663+
data: Sequence[Union[str, bytes]]
664664
data
665665
content_type: str
666666
content type of the multipart HTTP request message
@@ -1233,7 +1233,7 @@ def _http_post_multipart_application_dicom(self, url, data):
12331233
----------
12341234
url: str
12351235
unique resource locator
1236-
data: List[bytes]
1236+
data: Sequence[bytes]
12371237
DICOM data sets that should be posted
12381238
12391239
'''
@@ -1257,7 +1257,7 @@ def search_for_studies(self, fuzzymatching=None, limit=None, offset=None,
12571257
maximum number of results that should be returned
12581258
offset: int, optional
12591259
number of results that should be skipped
1260-
fields: List[str], optional
1260+
fields: Sequence[str], optional
12611261
names of fields (attributes) that should be included in results
12621262
search_filters: dict, optional
12631263
search filter criteria as key-value pairs, where *key* is a keyword
@@ -1820,7 +1820,7 @@ def store_instances(self, datasets, study_instance_uid=None):
18201820
18211821
Parameters
18221822
----------
1823-
datasets: List[pydicom.dataset.Dataset]
1823+
datasets: Sequence[pydicom.dataset.Dataset]
18241824
instances that should be stored
18251825
study_instance_uid: str, optional
18261826
unique study identifier
@@ -1955,7 +1955,7 @@ def retrieve_instance_frames(self, study_instance_uid, series_instance_uid,
19551955
unique series identifier
19561956
sop_instance_uid: str
19571957
unique instance identifier
1958-
frame_numbers: List[int]
1958+
frame_numbers: Sequence[int]
19591959
one-based positional indices of the frames within the instance
19601960
media_types: Tuple[Union[str, Tuple[str, str]]], optional
19611961
acceptable media types and optionally the UIDs of the

0 commit comments

Comments
 (0)