Skip to content

Commit

Permalink
Remove superflous normalizeColor call and adjust docs.
Browse files Browse the repository at this point in the history
  • Loading branch information
knutnergaard committed Feb 27, 2025
1 parent c41a8d6 commit 34caaab
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions Lib/fontParts/base/image.py
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,7 @@ def _set_scale(self, value: PairType[float]) -> None:
The value must be a :ref:`type-color` or :obj`None`.
:return: A :ref:`type-color` representing the color of the image,
:return: A :class:`Color` instance representing the color of the image,
or :obj:`None`.
Example::
Expand All @@ -370,7 +370,6 @@ def _set_scale(self, value: PairType[float]) -> None:
def _get_base_color(self) -> Optional[Color]:
value = self._get_color()
if value is not None:
value = normalizers.normalizeColor(value)
value = Color(value)
return value

Expand All @@ -389,7 +388,7 @@ def _get_color(self) -> Optional[QuadrupleCollectionType[IntFloatType]]:
:return: A :ref:`type-color` representing the color of the image,
or :obj:`None`. The value will be normalized
with :func:`normalizers.normalizeColor`.
with :func:`normalizers.normalizeColor`.
:raises NotImplementedError: If the method has not been overridden by a
subclass.
Expand Down

0 comments on commit 34caaab

Please sign in to comment.