Skip to content

Commit

Permalink
Make Point and Velocity objects use __slots__ #16
Browse files Browse the repository at this point in the history
  • Loading branch information
RexBerry committed Nov 8, 2022
1 parent 8ecf43f commit 0e7b551
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion flight/avoidance/point.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
InputPoint = dict[str, float | int | str]


@dataclass(frozen=True)
@dataclass(frozen=True, slots=True)
class Point:
"""
A point in 3D space
Expand Down
2 changes: 1 addition & 1 deletion flight/avoidance/velocity.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
import mavsdk.telemetry


@dataclass(frozen=True)
@dataclass(frozen=True, slots=True)
class Velocity:
"""
A velocity in 3D space
Expand Down

0 comments on commit 0e7b551

Please sign in to comment.