[issue37496] Support annotations in signature strings.

Eric Snow report at bugs.python.org
Wed Jul 3 19:45:26 EDT 2019


New submission from Eric Snow <ericsnowcurrently at gmail.com>:

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().  Annotations should be supported.

I'd expect that PEP 563 (Postponed Evaluation of Annotations) could be leveraged.

----------
components: Library (Lib)
messages: 347247
nosy: eric.snow
priority: normal
severity: normal
stage: needs patch
status: open
title: Support annotations in signature strings.
type: enhancement
versions: Python 3.9

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue37496>
_______________________________________


More information about the Python-bugs-list mailing list