@@ -176,7 +176,6 @@ def __init__(
176176 document_creation_date : str | None = None ,
177177 comments : str | None = None ,
178178 ) -> None :
179-
180179 self ._mapping : Structure = Structure (
181180 ** {
182181 "element" : "Header" ,
@@ -923,7 +922,6 @@ def __init__(
923922 bandwidth_corrected : bool | None = None ,
924923 ** kwargs ,
925924 ) -> None :
926-
927925 super ().__init__ (** kwargs )
928926
929927 self ._mapping : Structure = Structure (
@@ -1081,20 +1079,23 @@ def header(self, value: Header_IESTM2714):
10811079 @property
10821080 def spectral_quantity (
10831081 self ,
1084- ) -> Literal [
1085- "absorptance" ,
1086- "exitance" ,
1087- "flux" ,
1088- "intensity" ,
1089- "irradiance" ,
1090- "radiance" ,
1091- "reflectance" ,
1092- "relative" ,
1093- "transmittance" ,
1094- "R-Factor" ,
1095- "T-Factor" ,
1096- "other" ,
1097- ] | None :
1082+ ) -> (
1083+ Literal [
1084+ "absorptance" ,
1085+ "exitance" ,
1086+ "flux" ,
1087+ "intensity" ,
1088+ "irradiance" ,
1089+ "radiance" ,
1090+ "reflectance" ,
1091+ "relative" ,
1092+ "transmittance" ,
1093+ "R-Factor" ,
1094+ "T-Factor" ,
1095+ "other" ,
1096+ ]
1097+ | None
1098+ ):
10981099 """
10991100 Getter and setter property for the spectral quantity.
11001101
@@ -1143,20 +1144,23 @@ def spectral_quantity(
11431144 @property
11441145 def reflection_geometry (
11451146 self ,
1146- ) -> Literal [
1147- "di:8" ,
1148- "de:8" ,
1149- "8:di" ,
1150- "8:de" ,
1151- "d:d" ,
1152- "d:0" ,
1153- "45a:0" ,
1154- "45c:0" ,
1155- "0:45a" ,
1156- "45x:0" ,
1157- "0:45x" ,
1158- "other" ,
1159- ] | None :
1147+ ) -> (
1148+ Literal [
1149+ "di:8" ,
1150+ "de:8" ,
1151+ "8:di" ,
1152+ "8:de" ,
1153+ "d:d" ,
1154+ "d:0" ,
1155+ "45a:0" ,
1156+ "45c:0" ,
1157+ "0:45a" ,
1158+ "45x:0" ,
1159+ "0:45x" ,
1160+ "other" ,
1161+ ]
1162+ | None
1163+ ):
11601164 """
11611165 Getter and setter property for the reflection geometry.
11621166
@@ -1782,7 +1786,7 @@ def write(self) -> bool:
17821786 spectral_distribution = element
17831787
17841788 # Writing spectral data.
1785- for ( wavelength , value ) in tstack ([self .wavelengths , self .values ]):
1789+ for wavelength , value in tstack ([self .wavelengths , self .values ]):
17861790 element_child = ElementTree .SubElement (
17871791 spectral_distribution , mapping .data .element
17881792 )
0 commit comments