@@ -352,9 +352,9 @@ def _munsell_value_ASTMD1535_interpolator() -> Extrapolator:
352
352
return extrapolator
353
353
354
354
355
- def _munsell_maximum_chromas_from_renotation () -> (
356
- Tuple [Tuple [Tuple [ float , float ], float ], ...]
357
- ) :
355
+ def _munsell_maximum_chromas_from_renotation () -> Tuple [
356
+ Tuple [Tuple [float , float ], float ], ...
357
+ ] :
358
358
"""
359
359
Return the maximum *Munsell* chromas from *Munsell Renotation System* data
360
360
and caches them if not existing.
@@ -1658,8 +1658,7 @@ def munsell_specification_to_munsell_colour(
1658
1658
hue = round (hue , hue_decimals )
1659
1659
attest (
1660
1660
0 <= hue <= 10 ,
1661
- f'"{ specification !r} " specification hue must be normalised to '
1662
- f"domain [0, 10]!" ,
1661
+ f'"{ specification !r} " specification hue must be normalised to domain [0, 10]!' ,
1663
1662
)
1664
1663
1665
1664
value = round (value , value_decimals )
@@ -2055,8 +2054,7 @@ def interpolation_method_from_renotation_ovoid(
2055
2054
2056
2055
attest (
2057
2056
abs (2 * (chroma / 2 - round (chroma / 2 ))) <= THRESHOLD_INTEGER ,
2058
- f'"{ specification } " specification chroma must be an int and '
2059
- f"multiple of 2!" ,
2057
+ f'"{ specification } " specification chroma must be an int and multiple of 2!' ,
2060
2058
)
2061
2059
2062
2060
chroma = 2 * round (chroma / 2 )
@@ -2318,8 +2316,7 @@ def xy_from_renotation_ovoid(specification: ArrayLike) -> NDArrayFloat:
2318
2316
2319
2317
attest (
2320
2318
1 <= value <= 9 ,
2321
- f'"{ specification } " specification value must be normalised to '
2322
- f"domain [1, 9]!" ,
2319
+ f'"{ specification } " specification value must be normalised to domain [1, 9]!' ,
2323
2320
)
2324
2321
2325
2322
attest (
@@ -2331,8 +2328,7 @@ def xy_from_renotation_ovoid(specification: ArrayLike) -> NDArrayFloat:
2331
2328
2332
2329
attest (
2333
2330
2 <= chroma <= 50 ,
2334
- f'"{ specification } " specification chroma must be normalised to '
2335
- f"domain [2, 50]!" ,
2331
+ f'"{ specification } " specification chroma must be normalised to domain [2, 50]!' ,
2336
2332
)
2337
2333
2338
2334
attest (
@@ -2398,7 +2394,7 @@ def xy_from_renotation_ovoid(specification: ArrayLike) -> NDArrayFloat:
2398
2394
2399
2395
attest (
2400
2396
interpolation_method is not None ,
2401
- f" Interpolation method must be one of: \" { ' Linear, Radial' } \" " ,
2397
+ f' Interpolation method must be one of: " { " Linear, Radial" } "' ,
2402
2398
)
2403
2399
2404
2400
hue_angle_lower_upper = np .squeeze ([hue_angle_lower , hue_angle_upper ])
@@ -2615,8 +2611,7 @@ def munsell_specification_to_xy(specification: ArrayLike) -> NDArrayFloat:
2615
2611
2616
2612
attest (
2617
2613
0 <= value <= 10 ,
2618
- f'"{ specification } " specification value must be normalised to '
2619
- f"domain [0, 10]!" ,
2614
+ f'"{ specification } " specification value must be normalised to domain [0, 10]!' ,
2620
2615
)
2621
2616
2622
2617
attest (
0 commit comments