fix @abstractmethod on wrong function

This commit is contained in:
Jan Petykiewicz 2020-08-15 17:40:49 -07:00
parent d14182998b
commit b4a19a3176

View File

@ -89,6 +89,7 @@ class Pivotable(metaclass=ABCMeta):
"""
__slots__ = ()
@abstractmethod
def rotate_around(self: P, pivot: vector2, rotation: float) -> P:
"""
Rotate the object around a point.
@ -109,7 +110,6 @@ class PivotableImpl(Pivotable, metaclass=ABCMeta):
"""
__slots__ = ()
@abstractmethod
def rotate_around(self: J, pivot: vector2, rotation: float) -> J:
pivot = numpy.array(pivot, dtype=float)
self.translate(-pivot)