Skip to content

deprecate only a specific argument of a function #18

Description

@grst

Description of feature

e.g. a keyword argument that doesn't have any effect anymore, but is kept around not to break the function signature.

If the keyword is used, a FutureWarning should be emitted.

That's not yet supported by the @deprecated decorator, is it?

Activity

  1. added theissue type on Apr 25, 2026
  2. flying-sheep commented on Apr 28, 2026

    @flying-sheep
    Member

    Not yet and probably not ever, @warnings.deprecated is marks the whole things it decorates as deprecated on the type level, so I doubt it’ll change to a more narrow scope.

    We’d need to make/use a different decorator.

  3. added 2 commits that reference this issue on May 6, 2026
    6c0c524
    1ac1a7f
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions