[issue43783] Make ParamSpec.args/kwargs more useful objects

Jelle Zijlstra report at bugs.python.org
Thu Apr 8 22:06:06 EDT 2021


New submission from Jelle Zijlstra <jelle.zijlstra at gmail.com>:

Currently, typing.ParamSpec.args and ParamSpec.kwargs are just object() instances, which makes them useless for runtime inspection of __annotations__. This type was introduced by PEP 612.

Instead, I propose to make them return some special helper object with __origin__ set to the underlying ParamSpec object. I'll work on a PR soon.

----------
components: Library (Lib)
messages: 390583
nosy: Jelle Zijlstra, gvanrossum, levkivskyi
priority: normal
severity: normal
status: open
title: Make ParamSpec.args/kwargs more useful objects
versions: Python 3.10

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


More information about the Python-bugs-list mailing list