@@ -1573,20 +1573,16 @@ def __init__(
15731573 PersonObserverIdentifyingAttributes ):
15741574 raise TypeError (
15751575 'Observer identifying attributes must have '
1576- 'type {} for observer type "{}".' .format (
1577- PersonObserverIdentifyingAttributes .__name__ ,
1578- observer_type .meaning
1579- )
1576+ f'type { PersonObserverIdentifyingAttributes .__name__ } '
1577+ f'for observer type "{ observer_type .meaning } ".'
15801578 )
15811579 elif observer_type == codes .cid270 .Device :
15821580 if not isinstance (observer_identifying_attributes ,
15831581 DeviceObserverIdentifyingAttributes ):
15841582 raise TypeError (
15851583 'Observer identifying attributes must have '
1586- 'type {} for observer type "{}".' .format (
1587- DeviceObserverIdentifyingAttributes .__name__ ,
1588- observer_type .meaning ,
1589- )
1584+ f'type { DeviceObserverIdentifyingAttributes .__name__ } '
1585+ f'for observer type "{ observer_type .meaning } ".'
15901586 )
15911587 else :
15921588 raise ValueError (
@@ -2184,26 +2180,21 @@ def __init__(
21842180 if not isinstance (observer_person_context , ObserverContext ):
21852181 raise TypeError (
21862182 'Argument "observer_person_context" must '
2187- 'have type {}' .format (
2188- ObserverContext .__name__
2189- )
2183+ f'have type { ObserverContext .__name__ } '
21902184 )
21912185 self .extend (observer_person_context )
21922186 if observer_device_context is not None :
21932187 if not isinstance (observer_device_context , ObserverContext ):
21942188 raise TypeError (
21952189 'Argument "observer_device_context" must '
2196- 'have type {}' .format (
2197- ObserverContext .__name__
2198- )
2190+ f'have type { ObserverContext .__name__ } '
21992191 )
22002192 self .extend (observer_device_context )
22012193 if subject_context is not None :
22022194 if not isinstance (subject_context , SubjectContext ):
22032195 raise TypeError (
2204- 'Argument "subject_context" must have type {}' .format (
2205- SubjectContext .__name__
2206- )
2196+ f'Argument "subject_context" must have '
2197+ f'type { SubjectContext .__name__ } '
22072198 )
22082199 self .extend (subject_context )
22092200
@@ -3495,10 +3486,7 @@ def from_sequence(
34953486 Content Sequence containing root CONTAINER SR Content Item
34963487
34973488 """
3498- instance = super (
3499- PlanarROIMeasurementsAndQualitativeEvaluations ,
3500- cls
3501- ).from_sequence (sequence )
3489+ instance = super ().from_sequence (sequence )
35023490 instance .__class__ = PlanarROIMeasurementsAndQualitativeEvaluations
35033491 return cast (PlanarROIMeasurementsAndQualitativeEvaluations , instance )
35043492
@@ -3773,10 +3761,7 @@ def from_sequence(
37733761 Content Sequence containing root CONTAINER SR Content Item
37743762
37753763 """
3776- instance = super (
3777- VolumetricROIMeasurementsAndQualitativeEvaluations ,
3778- cls
3779- ).from_sequence (sequence )
3764+ instance = super ().from_sequence (sequence )
37803765 instance .__class__ = VolumetricROIMeasurementsAndQualitativeEvaluations
37813766 return cast (
37823767 VolumetricROIMeasurementsAndQualitativeEvaluations ,
0 commit comments