Skip to content

Commit

Permalink
Correct typos.
Browse files Browse the repository at this point in the history
  • Loading branch information
knutnergaard authored Nov 20, 2024
1 parent a499b74 commit e357156
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Lib/fontParts/base/glyph.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]:
Expand Down Expand Up @@ -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]:
Expand Down Expand Up @@ -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]:
Expand Down

0 comments on commit e357156

Please sign in to comment.