[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
|
|
@ -11,7 +11,7 @@ import numpy
|
|||
from numpy import pi
|
||||
from numpy.typing import ArrayLike, NDArray
|
||||
|
||||
from .traits import PositionableImpl, Rotatable, PivotableImpl, Copyable, Flippable
|
||||
from .traits import PositionableImpl, PivotableImpl, Copyable, Mirrorable, Flippable
|
||||
from .utils import rotate_offsets_around, rotation_matrix_2d
|
||||
from .error import PortError, format_stacktrace
|
||||
|
||||
|
|
@ -20,7 +20,7 @@ logger = logging.getLogger(__name__)
|
|||
|
||||
|
||||
@functools.total_ordering
|
||||
class Port(PositionableImpl, Rotatable, PivotableImpl, Copyable, Flippable):
|
||||
class Port(PivotableImpl, PositionableImpl, Mirrorable, Flippable, Copyable):
|
||||
"""
|
||||
A point at which a `Device` can be snapped to another `Device`.
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue