Skip to content

Commit

Permalink
Slight tweak to slots.
Browse files Browse the repository at this point in the history
  • Loading branch information
tetov committed Oct 31, 2020
1 parent a62a284 commit c3bc371
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/rapid_clay_formations_fab/robots/trajectories.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@
class _ListLike(MutableSequence):
"""Class to use as parent for listlike classes."""

__slots__ = ()

def __getitem__(self, index):
return self.list_[index]

Expand Down Expand Up @@ -50,6 +52,8 @@ class MinimalTrajectories(_ListLike):
Trajectory points.
"""

__slots__ = "list_"

def __init__(self, trajectories):
self.trajectories = list(trajectories)

Expand Down Expand Up @@ -128,6 +132,8 @@ class MinimalTrajectory(_ListLike):
Trajectory points.
"""

__slots__ = "list_"

JOINT_TRAJECTORY = 0
FRAME_TRAJECTORY = 1

Expand Down

0 comments on commit c3bc371

Please sign in to comment.