Skip to content

Commit ea3f90c

Browse files
Add missing : after noqa (#289)
1 parent 7abac6b commit ea3f90c

3 files changed

Lines changed: 6 additions & 6 deletions

File tree

src/highdicom/seg/sop.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2157,7 +2157,7 @@ def add_segments(
21572157
method was deprecated in highdicom 0.8.0. For more information
21582158
and migration instructions see :ref:`here <add-segments-deprecation>`.
21592159
2160-
""" # noqa E510
2160+
""" # noqa: E510
21612161
raise AttributeError(
21622162
'To ensure correctness of segmentation images, the add_segments '
21632163
'method was deprecated in highdicom 0.8.0. For more information '

src/highdicom/sr/templates.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -558,8 +558,8 @@ def _get_coded_modality(sop_class_uid: str) -> Code:
558558
'1.2.840.10008.5.1.4.1.1.13.1.1': codes.cid29.XRayAngiography,
559559
'1.2.840.10008.5.1.4.1.1.13.1.2': codes.cid29.DigitalRadiography,
560560
'1.2.840.10008.5.1.4.1.1.13.1.3': codes.cid29.Mammography,
561-
'1.2.840.10008.5.1.4.1.1.14.1': codes.cid29.IntravascularOpticalCoherenceTomography, # noqa E501
562-
'1.2.840.10008.5.1.4.1.1.14.2': codes.cid29.IntravascularOpticalCoherenceTomography, # noqa E501
561+
'1.2.840.10008.5.1.4.1.1.14.1': codes.cid29.IntravascularOpticalCoherenceTomography, # noqa: E501
562+
'1.2.840.10008.5.1.4.1.1.14.2': codes.cid29.IntravascularOpticalCoherenceTomography, # noqa: E501
563563
'1.2.840.10008.5.1.4.1.1.20': codes.cid29.NuclearMedicine,
564564
'1.2.840.10008.5.1.4.1.1.66.1': codes.cid32.Registration,
565565
'1.2.840.10008.5.1.4.1.1.66.2': codes.cid32.SpatialFiducials,
@@ -574,10 +574,10 @@ def _get_coded_modality(sop_class_uid: str) -> Code:
574574
'1.2.840.10008.5.1.4.1.1.77.1.2.1': codes.cid29.GeneralMicroscopy,
575575
'1.2.840.10008.5.1.4.1.1.77.1.3': codes.cid29.SlideMicroscopy,
576576
'1.2.840.10008.5.1.4.1.1.77.1.4': codes.cid29.ExternalCameraPhotography,
577-
'1.2.840.10008.5.1.4.1.1.77.1.4.1': codes.cid29.ExternalCameraPhotography, # noqa E501
577+
'1.2.840.10008.5.1.4.1.1.77.1.4.1': codes.cid29.ExternalCameraPhotography, # noqa: E501
578578
'1.2.840.10008.5.1.4.1.1.77.1.5.1': codes.cid29.OphthalmicPhotography,
579579
'1.2.840.10008.5.1.4.1.1.77.1.5.2': codes.cid29.OphthalmicPhotography,
580-
'1.2.840.10008.5.1.4.1.1.77.1.5.3': codes.cid32.StereometricRelationship, # noqa E501
580+
'1.2.840.10008.5.1.4.1.1.77.1.5.3': codes.cid32.StereometricRelationship, # noqa: E501
581581
'1.2.840.10008.5.1.4.1.1.77.1.5.4': codes.cid29.OphthalmicTomography,
582582
'1.2.840.10008.5.1.4.1.1.77.1.6': codes.cid29.SlideMicroscopy,
583583
'1.2.840.10008.5.1.4.1.1.78.1': codes.cid29.Lensometry,

tests/test_content.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -528,7 +528,7 @@ def test_construction_sampling(self):
528528
assert method_item.relationship_type is None
529529

530530
parent_specimen_id_item = seq[3]
531-
assert parent_specimen_id_item.name == codes.DCM.ParentSpecimenIdentifier # noqa E501
531+
assert parent_specimen_id_item.name == codes.DCM.ParentSpecimenIdentifier # noqa: E501
532532
assert parent_specimen_id_item.value == parent_specimen_id
533533
assert parent_specimen_id_item.relationship_type is None
534534

0 commit comments

Comments
 (0)