pytocs icon indicating copy to clipboard operation
pytocs copied to clipboard

Pytocs should parse docstrings looking for type annotations

Open uxmal opened this issue 7 years ago • 0 comments

Many Python projects use comments in doc strings as type annotations, e.g.

"""
:param str sender
:param str recipient
:param int copies
:rtype int
"""
def send_copies_to(sender, recipient, copies():
# more code here

which would translate to:

public static int send_copies_to(string senders, send recipient, int copies) {
// More code here

uxmal avatar Nov 27 '18 13:11 uxmal