Closed napseis closed 7 years ago
@napseis Hi, sorry for late response.
Currently no, but your suggestion is very interesting. I think there are few points to consider.
:%s/arg1/arg2/
)Anyway, I'll consider about this.
No problem for late response of course. Thanks for considering !
Sorry for late respose.
I consider this but currently this is very complicated. If updating args are same is ok, but if add/remove arg(s) is hard to reflect to docstring. For example,
before:
def foo(arg1, arg2):
pass
after
def foo(arg1):
pass
arg2
is gone, so we need detect docstring and remove it.
It's possible but too complicated.
It's better to use regex command to replace user's operation.
And I don't have resource to impliment this.
I'm sorry.
BTW if you sent me PR, I'll check it 😊
hi,
I was wondering if it was possible to update the docstring in case a function is modified ? Currently, if I write a function, add a docstring, and then add an argument, if I rerun :Pydocstring, they get imbricated.
Thanks !