diff --git a/CHANGELOG.md b/CHANGELOG.md index 7c2aae819..0efb2f8fa 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -36,6 +36,7 @@ straightforward as possible. ### Changed +- MNT: Add repr method to Parachute class [#490](https://github.com/RocketPy-Team/RocketPy/pull/490) - ENH: Function Reverse Arithmetic Priority [#488](https://github.com/RocketPy-Team/RocketPy/pull/488) ### Fixed diff --git a/rocketpy/rocket/parachute.py b/rocketpy/rocket/parachute.py index 3abd66ac2..31f9252ed 100644 --- a/rocketpy/rocket/parachute.py +++ b/rocketpy/rocket/parachute.py @@ -220,6 +220,13 @@ def __str__(self): self.cd_s, ) + def __repr__(self): + """Representation method for the class, useful when debugging.""" + return ( + f"" + ) + def info(self): """Prints information about the Parachute class.""" self.prints.all()