Repository: ManimCommunity/manim
File: manim/scene/graph_scene.py (Python)

Code before:
        self,
        secant_slope_group,
        target_dx=None,
        target_x=None,
        run_time=3,
        added_anims=None,
        **anim_kwargs,
    ):
        """This method animates the change of the secant slope group  from
        the old secant slope group, into a new secant slope group.

        Parameters
        ----------
        secant_slope_group : :class:`~.VGroup`
            The old secant_slope_group

        target_dx : Optional[:class:`float`]
            The new dx value.

        target_x : Optional[:class:`float`]
            The new x value at which the secant should be.

        run_time : Optional[:class:`float`]
            The run time for this change when animated.

        added_anims : Optional[Sequence[:class:`~.Animation]]
            Any exta animations that should be played alongside.

        **anim_kwargs
            Any valid kwargs of a :meth:`self.play` call.

        NOTE: At least one of target_dx and target_x should be not None.
        """
        if target_dx is None and target_x is None:
            raise ValueError("At least one of target_x and target_dx must not be None")
        if added_anims is None:
            added_anims = []

        start_dx = secant_slope_group.kwargs["dx"]
        start_x = secant_slope_group.kwargs["x"]
        if target_dx is None:
            target_dx = start_dx
        if target_x is None:
            target_x = start_x

        def update_func(group, alpha):
            dx = interpolate(start_dx, target_dx, alpha)
            x = interpolate(start_x, target_x, alpha)
            kwargs = dict(secant_slope_group.kwargs)
            kwargs["dx"] = dx
            kwargs["x"] = x

Review comment (suggestion):
```suggestion
        added_anims : Optional[Sequence[:class:`~.Animation`]]
```

Code after:
        self,
        secant_slope_group,
        target_dx=None,
        target_x=None,
        run_time=3,
        added_anims=None,
        **anim_kwargs,
    ):
        """This method animates the change of the secant slope group  from
        the old secant slope group, into a new secant slope group.

        Parameters
        ----------
        secant_slope_group : :class:`~.VGroup`
            The old secant_slope_group

        target_dx : Optional[:class:`float`]
            The new dx value.

        target_x : Optional[:class:`float`]
            The new x value at which the secant should be.

        run_time : Optional[:class:`float`]
            The run time for this change when animated.

        added_anims : Optional[Sequence[:class:`~.Animation`]]
            Any exta animations that should be played alongside.

        **anim_kwargs
            Any valid kwargs of a :meth:`self.play` call.

        NOTE: At least one of target_dx and target_x should be not None.
        """
        if target_dx is None and target_x is None:
            raise ValueError("At least one of target_x and target_dx must not be None")
        if added_anims is None:
            added_anims = []

        start_dx = secant_slope_group.kwargs["dx"]
        start_x = secant_slope_group.kwargs["x"]
        if target_dx is None:
            target_dx = start_dx
        if target_x is None:
            target_x = start_x

        def update_func(group, alpha):
            dx = interpolate(start_dx, target_dx, alpha)
            x = interpolate(start_x, target_x, alpha)
            kwargs = dict(secant_slope_group.kwargs)
            kwargs["dx"] = dx
            kwargs["x"] = x