Skip to content

Commit

Permalink
Revert "Avoid forwarding positional arguments from Arrow to Line in t…
Browse files Browse the repository at this point in the history
…he constructor."

This reverts commit 80ae857.
  • Loading branch information
henrikmidtiby committed Oct 22, 2024
1 parent d477c9a commit a14b99a
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions manim/mobject/geometry/line.py
Original file line number Diff line number Diff line change
Expand Up @@ -548,10 +548,7 @@ def __init__(
self.max_tip_length_to_length_ratio = max_tip_length_to_length_ratio
self.max_stroke_width_to_length_ratio = max_stroke_width_to_length_ratio
tip_shape = kwargs.pop("tip_shape", ArrowTriangleFilledTip)
# The args argument have not been forwarded to the super() object,
# as that object do not accept any positional arguments.
# mobject/geometry/line.py#L44
super().__init__(buff=buff, stroke_width=stroke_width, **kwargs)
super().__init__(*args, buff=buff, stroke_width=stroke_width, **kwargs)
# TODO, should this be affected when
# Arrow.set_stroke is called?
self.initial_stroke_width = self.stroke_width
Expand Down

0 comments on commit a14b99a

Please sign in to comment.