Skip to content

Commit

Permalink
Fix __repr__ in Waypoint
Browse files Browse the repository at this point in the history
Beforehand, __repr__ in Waypoint called __repr__ of
self.location_ground. However, LocationGround only had __str__. I
changed repr(self.location_ground) to str(self.location_ground)
  • Loading branch information
Evang264 committed Oct 4, 2024
1 parent fb31f61 commit b961b0f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/waypoint.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,4 +51,4 @@ def __repr__(self) -> str:
"""
String representation
"""
return f"LocationGroundAndAltitude: {repr(self.location_ground)}, altitude: {self.altitude}"
return f"LocationGroundAndAltitude: {str(self.location_ground)}, altitude: {self.altitude}"

0 comments on commit b961b0f

Please sign in to comment.