From e357156b31f20c151f50650b5d198515676e96fc Mon Sep 17 00:00:00 2001 From: Knut Nergaard Date: Wed, 20 Nov 2024 11:18:07 +0100 Subject: [PATCH] Correct typos. --- Lib/fontParts/base/glyph.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Lib/fontParts/base/glyph.py b/Lib/fontParts/base/glyph.py index 3a3b111c..d7e0be57 100644 --- a/Lib/fontParts/base/glyph.py +++ b/Lib/fontParts/base/glyph.py @@ -561,7 +561,7 @@ def _set_base_leftMargin(self, value: IntFloatType) -> None: normalizedValue = normalizers.normalizeGlyphLeftMargin(value) # Avoid mypy conflict with normalizeGlyphLeftMargin -> Optional[IntFloat] if normalizedValue is None: - raise TypeError("The value for bottomMargin cannot be None.") + raise TypeError("The value for leftMargin cannot be None.") self._set_leftMargin(normalizedValue) def _get_leftMargin(self) -> Optional[IntFloatType]: @@ -629,7 +629,7 @@ def _set_base_rightMargin(self, value: IntFloatType) -> None: normalizedValue = normalizers.normalizeGlyphRightMargin(value) # Avoid mypy conflict with normalizeGlyphRightMargin -> Optional[IntFloat] if normalizedValue is None: - raise TypeError("The value for bottomMargin cannot be None.") + raise TypeError("The value for rightMargin cannot be None.") self._set_rightMargin(normalizedValue) def _get_rightMargin(self) -> Optional[IntFloatType]: @@ -829,7 +829,7 @@ def _set_base_topMargin(self, value: IntFloatType) -> None: normalizedValue = normalizers.normalizeGlyphTopMargin(value) # Avoid mypy conflict with normalizeGlyphTopMargin -> Optional[IntFloat] if normalizedValue is None: - raise TypeError("The value for bottomMargin cannot be None.") + raise TypeError("The value for topMargin cannot be None.") self._set_topMargin(normalizedValue) def _get_topMargin(self) -> Optional[IntFloatType]: