Skip to content

Commit

Permalink
Format fixes by ruff
Browse files Browse the repository at this point in the history
  • Loading branch information
knutnergaard authored and github-actions[bot] committed Dec 5, 2024
1 parent dfc01b7 commit c8d1a8e
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions Lib/fontParts/base/component.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,9 @@ def _get_base_transformation(self) -> SextupleType[float]:
value = normalizers.normalizeTransformationMatrix(value)
return value

def _set_base_transformation(self, value: SextupleCollectionType[IntFloatType]) -> None:
def _set_base_transformation(
self, value: SextupleCollectionType[IntFloatType]
) -> None:
value = normalizers.normalizeTransformationMatrix(value)
self._set_transformation(value)

Expand Down Expand Up @@ -310,7 +312,9 @@ def _drawPoints(self, pen: PointPenType, **kwargs: Any) -> None:
# Transformation
# --------------

def _transformBy(self, matrix: SextupleCollectionType[IntFloatType], **kwargs: Any) -> None:
def _transformBy(
self, matrix: SextupleCollectionType[IntFloatType], **kwargs: Any
) -> None:
"""
Subclasses may override this method.
"""
Expand Down Expand Up @@ -358,7 +362,9 @@ def _decompose(self) -> None:

compatibilityReporterClass = ComponentCompatibilityReporter

def isCompatible(self, other: BaseComponent) -> Tuple[bool, ComponentCompatibilityReporter]:
def isCompatible(
self, other: BaseComponent
) -> Tuple[bool, ComponentCompatibilityReporter]:
"""
Evaluate interpolation compatibility with **other**. ::
Expand All @@ -375,7 +381,9 @@ def isCompatible(self, other: BaseComponent) -> Tuple[bool, ComponentCompatibili
"""
return super(BaseComponent, self).isCompatible(other, BaseComponent)

def _isCompatible(self, other: BaseComponent, reporter: ComponentCompatibilityReporter) -> None:
def _isCompatible(
self, other: BaseComponent, reporter: ComponentCompatibilityReporter
) -> None:
"""
This is the environment implementation of
:meth:`BaseComponent.isCompatible`.
Expand Down

0 comments on commit c8d1a8e

Please sign in to comment.