[Python-Dev] Use more Argument Clinic Annotations? (original) (raw)
Serhiy Storchaka storchaka at gmail.com
Sun Mar 25 12:38:14 EDT 2018
- Previous message (by thread): [Python-Dev] Use more Argument Clinic Annotations?
- Next message (by thread): [Python-Dev] Use more Argument Clinic Annotations?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
25.03.18 15:36, Dave Halter пише:
I recently started testing Jedi with Python 3.7. Some tests broke. I realized that one of the things that changed in 3.7 was the use of argument clinic in methods like str.replace.
The issue is that the text signature doesn't contain a return annotation.
str.replace.textsignature '($self, old, new, count=-1, /) In Python < 3.7 there was a
S.replace(old, new[, count]) -> str
at_ _the top of the _doc_. T_ _If the _textsignature_ was'($self, old, new, count=-1, /) -> str
a lot of tools would be able to have the information again. Is this intentional or was this just forgotten? I'd like to note that this information is insanely helpful (at least for Jedi) to pick up type information. I really hope this information can make it back into 3.7, since it was there in earlier versions.
Argument Clinic convertors don't have any relations with annotations. Annotations are not supported by Argument Clinic.
- Previous message (by thread): [Python-Dev] Use more Argument Clinic Annotations?
- Next message (by thread): [Python-Dev] Use more Argument Clinic Annotations?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]