autoDocstring icon indicating copy to clipboard operation
autoDocstring copied to clipboard

[Feature Request] Regenerate docstring with docstring commands

Open Gauraviitkgp opened this issue 7 months ago • 0 comments
trafficstars

What

Docstring should be regenerated when the function arguments are updated. For example


    def search(self, request:model.Request, k=2) -> list[model.Response]:
        """Searchs for vectors closest to the request

        Args:
            request (model.Request): Request with neccessary information to find the closest vectors
            k (int, optional): Number of search results. Defaults to 2.
            

        Returns:
            list[model.Response]: Results
        """

Now if I add a new kwarg


    def search(self, request:model.Request, k=2, fetch_k=20) -> list[model.Response]:
        """Searchs for vectors closest to the request

        Args:
            request (model.Request): Request with neccessary information to find the closest vectors
            k (int, optional): Number of search results. Defaults to 2.
            

        Returns:
            list[model.Response]: Results
        """

I feel re-running the extension should add fetch_k in the args.

Gauraviitkgp avatar Mar 22 '25 00:03 Gauraviitkgp