dyc icon indicating copy to clipboard operation
dyc copied to clipboard

Ignores functions if nested functions have docstrings

Open sandilsranasinghe opened this issue 4 years ago • 5 comments

If there is a function with a nested function inside and only the nested function has a docstring it isn't considered. eg:- It doesn't prompt to add a docstring for my_method in the example below.

def my_method(param):
    def nested_mymethod():
        """
        Function nested in my method.
        """
        pass
    pass

sandilsranasinghe avatar Nov 23 '20 07:11 sandilsranasinghe

Hello,

I would like to contribute to this issue if it is open.

Thank you.

srishtiganguly avatar Dec 09 '20 12:12 srishtiganguly

@srishtiganguly - you are welcome to contribute. Thank you so much!

Zarad1993 avatar Dec 09 '20 13:12 Zarad1993

Dear @Zarad1993 I have contributed to the issue, Please find the PR #65 .

surbhiagrawal22 avatar Mar 17 '21 12:03 surbhiagrawal22

I would like to contribute to this issue, if you can give me a chance to do so @Zarad1993

AshirGuptash avatar Apr 06 '21 01:04 AshirGuptash

Dear @Zarad1993 I have contributed to the issue, Please find the PR #65 .

Please review the PR and let me know if some changes are required.

surbhiagrawal22 avatar Apr 15 '21 10:04 surbhiagrawal22