Skip to content

Commit 3eba3a0

Browse files
Creating a list from a list is equivalent to a copy
In that case, I find calling .copy() is more readable.
1 parent b4bb70c commit 3eba3a0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/highdicom/seg/sop.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2174,7 +2174,7 @@ def _get_ref_instance_uids(self) -> List[Tuple[str, str, str]]:
21742174
f'duplicated referenced SOP Instance UID items: {display_str}.'
21752175
)
21762176

2177-
return list(unique_instance_data)
2177+
return unique_instance_data.copy()
21782178

21792179
def _build_luts(self) -> None:
21802180
"""Build lookup tables for efficient querying.

0 commit comments

Comments
 (0)