Skip to content

Default value for argument is used in place of argument's name #57

@JPFrancoia

Description

@JPFrancoia

I have this function:

    def addInputPercentage(
        self,
        name: str,
        height_per: float = 100,
        angle: float = 180,
        diameter: Optional[float] = None,
        external: bool = False,
    ) -> None:

And generating a docstring with this plugin yielded:

        """addInputPercentage

        Args:
            name (str):
            100:
            180:
            diameter (Optional[float]):
            None:
            False:

        Returns:
            None
        """

The default value for the type-hinted argument was used instead of the argument's name in the docstring.

I think it's a bug.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions