Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with regenerating empty param docstring #34

Closed
dohsimpson opened this issue Feb 24, 2017 · 2 comments
Closed

Problem with regenerating empty param docstring #34

dohsimpson opened this issue Feb 24, 2017 · 2 comments
Labels

Comments

@dohsimpson
Copy link

First of all, thanks for this great project! I'm seeing undesired behaviors when trying to run pyment twice in a row with the following function:

def fun(a, b):
    pass

The first run generates the following code:

def fun(a, b):
    """
    
    :param a:
    :param b:
    
    """
    pass

Run it again on the same file gives:

def fun(a, b):
    """
    
    :param a: param b:
    :param b:
    
    """
    pass

Whereas I am expecting the second run to not modify anything. However, running it a third time would not generate a patch.

@dadadel
Copy link
Owner

dadadel commented Sep 27, 2017

Indeed this is a bug. I will address this. Thanks!

@dadadel dadadel added the bug label Sep 27, 2017
dadadel added a commit that referenced this issue Sep 27, 2017
@dadadel
Copy link
Owner

dadadel commented Mar 8, 2021

This is a specific case of more general issue #95

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants