Skip to content

Commit

Permalink
Fix alias (Saransh-cpp#23)
Browse files Browse the repository at this point in the history
* Fix alias

* style: pre-commit fixes

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
Saransh-cpp and pre-commit-ci[bot] authored Sep 29, 2022
1 parent ea8dc45 commit 36eab04
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions riemapp/geometry.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,9 @@ def __init__(
manim.Polygon.__init__(self, *vertices, **kwargs)

def __repr__(self) -> str:
return f"Polygon(vertices={[v for v in self.vertices]}) (alias for manim.Rectangle)"
return (
f"Polygon(vertices={[v for v in self.vertices]}) (alias for manim.Polygon)"
)


class RegularPolygon(manim.RegularPolygon):
Expand All @@ -73,7 +75,7 @@ def __init__(self, n: int, **kwargs: dict[str, Any]) -> None:
manim.RegularPolygon.__init__(self, self.n, **kwargs)

def __repr__(self) -> str:
return f"RegularPolygon(n={self.n}) (alias for manim.Rectangle)"
return f"RegularPolygon(n={self.n}) (alias for manim.RegularPolygon)"


class Triangle(manim.Triangle):
Expand Down

0 comments on commit 36eab04

Please sign in to comment.