Skip to content

Preserve call signature in @deprecated #2367

Description

@embray

And perhaps in other decorators as well. As mentioned here I'm hoping to write a function that can programmatically generate functions with a given call signature. Once that's done it will be helpful in implementing a version of functools.wraps that also preserves the original function's call signature (perhaps with a few caveats, such as limited support for default arguments).

Metadata

Metadata

Assignees

Labels

Close?Tell stale bot that this issue/PR is staleutils

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions