[issue37496] Support annotations in signature strings.

2020-05-17 Thread Filipe Laíns
Change by Filipe Laíns : -- nosy: +FFY00 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue37496] Support annotations in signature strings.

2020-05-16 Thread Eric Wieser
Eric Wieser added the comment: This seems somewhat related to https://bugs.python.org/issue31939 -- nosy: +Eric Wieser ___ Python tracker ___

[issue37496] Support annotations in signature strings.

2019-12-01 Thread Giovanni Cappellotto
Giovanni Cappellotto added the comment: Thanks for the info. Yes, I’m still interested in working on the issue, but lately I didn’t have much time to do it. If this is a high priority feel free to re-assign to someone else, otherwise I’ll start working on it next week. On Sun, Dec 1, 2019 at

[issue37496] Support annotations in signature strings.

2019-12-01 Thread Batuhan
Batuhan added the comment: We have exposed Tools/unparse.py under ast module, so that option also can help. @potomak are you still interested in working on this issue? -- nosy: +BTaskaya, pablogsal ___ Python tracker

[issue37496] Support annotations in signature strings.

2019-08-11 Thread hai shi
Change by hai shi : -- nosy: +shihai1991 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue37496] Support annotations in signature strings.

2019-08-07 Thread Guido van Rossum
Guido van Rossum added the comment: > 1. Should I create a new function in the `ast` module that exposes that C > function in Python in order to use it in `Lib/inspect.py`? > 2. Would it be better to just re-use the _AST to string_ implementation in > `Tools/unparse.py`? I would vote for

[issue37496] Support annotations in signature strings.

2019-08-07 Thread Ivan Levkivskyi
Ivan Levkivskyi added the comment: > I have a couple of questions about how to use `ast_unparse.c`'s > `expr_as_unicode` function: > 1. Should I create a new function in the `ast` module that exposes that C > function in Python in order to use it in `Lib/inspect.py`? > 2. Would it be better

[issue37496] Support annotations in signature strings.

2019-07-29 Thread Joannah Nanjekye
Change by Joannah Nanjekye : -- nosy: -nanjekyejoannah ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue37496] Support annotations in signature strings.

2019-07-27 Thread Giovanni Cappellotto
Giovanni Cappellotto added the comment: > You might want to look into how PEP 563 is implemented, it has a utility to > turn an AST back into a string (I assume this is what you want). Thanks for your suggestion @levkivskyi. I took a look at https://github.com/python/cpython/pull/4390, that

[issue37496] Support annotations in signature strings.

2019-07-26 Thread Eric Snow
Eric Snow added the comment: +1 on using a string for Parameter.annotation and Signature.return_annotation. -- ___ Python tracker ___

[issue37496] Support annotations in signature strings.

2019-07-22 Thread Joannah Nanjekye
Change by Joannah Nanjekye : -- nosy: +nanjekyejoannah ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue37496] Support annotations in signature strings.

2019-07-19 Thread Ivan Levkivskyi
Ivan Levkivskyi added the comment: You might want to look into how PEP 563 is implemented, it has a utility to turn an AST back into a string (I assume this is what you want). -- ___ Python tracker

[issue37496] Support annotations in signature strings.

2019-07-18 Thread Giovanni Cappellotto
Giovanni Cappellotto added the comment: I'd like to work on this, but I'm kind of new to the codebase. Do you think I should leave this task to someone more expert on the matter? I took a look at the function you mentioned and I was able to support simple annotations, for instance `x: int`,

[issue37496] Support annotations in signature strings.

2019-07-14 Thread Giovanni Cappellotto
Change by Giovanni Cappellotto : -- nosy: +potomak ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue37496] Support annotations in signature strings.

2019-07-05 Thread Ivan Levkivskyi
Change by Ivan Levkivskyi : -- nosy: +levkivskyi ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue37496] Support annotations in signature strings.

2019-07-03 Thread Eric Snow
New submission from Eric Snow : In early 2014 (3.3), when argument clinic was added, we added support for turning func.__text_signature__ into an inspect.Signature object. However, at that time we did not add support for annotations (see the nested "parse_name()" in _signature_fromstr().