[traits] Formalize Flippable and Pivotable depending on Positionable
This commit is contained in:
parent
8a56679884
commit
48f7569c1f
5 changed files with 26 additions and 34 deletions
|
|
@ -6,8 +6,8 @@ import numpy
|
|||
from numpy.typing import NDArray, ArrayLike
|
||||
|
||||
from ..traits import (
|
||||
Rotatable, Copyable, Scalable, FlippableImpl,
|
||||
Positionable, Pivotable, PivotableImpl, RepeatableImpl, AnnotatableImpl,
|
||||
Copyable, Scalable, FlippableImpl,
|
||||
PivotableImpl, RepeatableImpl, AnnotatableImpl,
|
||||
)
|
||||
|
||||
if TYPE_CHECKING:
|
||||
|
|
@ -26,8 +26,8 @@ normalized_shape_tuple = tuple[
|
|||
DEFAULT_POLY_NUM_VERTICES = 24
|
||||
|
||||
|
||||
class Shape(Positionable, Rotatable, FlippableImpl, Copyable, Scalable,
|
||||
AnnotatableImpl, RepeatableImpl, PivotableImpl, Pivotable,
|
||||
class Shape(FlippableImpl, PivotableImpl, RepeatableImpl, AnnotatableImpl,
|
||||
Copyable, Scalable,
|
||||
metaclass=ABCMeta):
|
||||
"""
|
||||
Class specifying functions common to all shapes.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue