Repository: ManimCommunity/manim
File: manim/mobject/coordinate_systems.py (Python)

Code before:
        """Adds labels to the axes.

        axes_numbers
            The the numbers to be added to the axes. Use ``None`` to represent an axis without labels.

        Examples
        --------

        .. code-block:: python

            ax = ThreeDAxes()
            x_labels = range(1, 11)
            z_labels = range(2, 12, 2)
            ax.add_coordinates(x_labels, None, z_labels)  # x & z labels
            ax.add_coordinates(x_labels)  # only x labels

        Returns
        -------
        VGroup
            A :class:`VGroup` of the number mobjects.
        """

        self.coordinate_labels = VGroup()
        # if nothing is passed to axes_numbers, produce axes with default labelling
        if not axes_numbers:
            axes_numbers = [None for x in self.axes]

        for axis, values in zip(self.axes, axes_numbers):
            labels = axis.add_numbers(values, **kwargs)
            self.coordinate_labels.add(labels)

        return self.coordinate_labels

    def get_line_from_axis_to_point(
        self,
        index: int,
        point: Sequence[float],
        line_func: Line = DashedLine,
        color: Color = LIGHT_GREY,
        stroke_width: float = 2,
    ) -> Line:
        """Returns a straight line from a given axis to a point in the scene.

        Parameters
        ----------
        index
            Specifies the axis from which to draw the line. `0 = x_axis`, `1 = y_axis`
        point
            The point to which the line will be drawn.
        line_func
            The function of the :class:`~.Line` mobject used to construct the line.

Review comment (suggestion):
Since we aren't really using any value from the `self.axes` iterations...
```suggestion
            axes_numbers = [None for _ in range(self.dimension)]
```

Code after:
        """Adds labels to the axes.

        axes_numbers
            The numbers to be added to the axes. Use ``None`` to represent an axis with default labels.

        Examples
        --------

        .. code-block:: python

            ax = ThreeDAxes()
            x_labels = range(-4, 5)
            z_labels = range(-4, 4, 2)
            ax.add_coordinates(x_labels, None, z_labels)  # default y labels, custom x & z labels
            ax.add_coordinates(x_labels)  # only x labels

        Returns
        -------
        VGroup
            A :class:`VGroup` of the number mobjects.
        """

        self.coordinate_labels = VGroup()
        # if nothing is passed to axes_numbers, produce axes with default labelling
        if not axes_numbers:
            axes_numbers = [None for _ in range(self.dimension)]

        for axis, values in zip(self.axes, axes_numbers):
            labels = axis.add_numbers(values, **kwargs)
            self.coordinate_labels.add(labels)

        return self.coordinate_labels

    def get_line_from_axis_to_point(
        self,
        index: int,
        point: Sequence[float],
        line_func: Line = DashedLine,
        color: Color = LIGHT_GREY,
        stroke_width: float = 2,
    ) -> Line:
        """Returns a straight line from a given axis to a point in the scene.

        Parameters
        ----------
        index
            Specifies the axis from which to draw the line. `0 = x_axis`, `1 = y_axis`
        point
            The point to which the line will be drawn.
        line_func
            The function of the :class:`~.Line` mobject used to construct the line.