You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Make ParamSpec.args/kwargs more useful objects #87949
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.
Activity
JelleZijlstra commentedon Apr 9, 2021
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.
gvanrossum commentedon Apr 11, 2021
New changeset 5224336 by Jelle Zijlstra in branch 'master':
bpo-43783: Add ParamSpecArgs/Kwargs (GH-25298)
5224336