Menu

#298 Automatically insert @return and @rtype tags

open
nobody
5
2008-07-03
2008-07-03
No

PyDev right now automatically adds the @param tags for parameters with the "Make Docstring" auto-completion feature (optionally @type tags can be added too if configured to do so), and it works great.

I propose that PyDev should also include the @return tag (and optionally @rtype tags) to the docstring. Even if a method does not actually return anything, it is easy to just delete these two lines.

Also, it would be interesting that the @return and @rtype tags do not be generated when the method is known to don't return anything, like __init__ and __del__ for example.

Discussion

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.