Skip to content

Conversation

SirAbhi13
Copy link
Contributor

@SirAbhi13 SirAbhi13 commented Nov 30, 2022

Fixes ticket 33199
Added an *args argument to Signer to handle positional arguments sent to it and raise Deprecation warning.
I modified the tests of Signer to give keyword arguments to all the tests. Unsure if I should have added an ignore warning decorator instead.

Copy link
Member

@felixxm felixxm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@SirAbhi13 Thanks for this patch 👍 Please check my comments. Also, we should add deprecated annotations to the Signer and TimestampSigner docs, and update some examples.

@felixxm felixxm self-assigned this Dec 9, 2022
@felixxm felixxm changed the title Fixed #33199 -- Deprecate passing positional arguments to Signer Fixed #33199 -- Deprecated passing positional arguments to Signer and subclasses. Dec 9, 2022
@felixxm felixxm changed the title Fixed #33199 -- Deprecated passing positional arguments to Signer and subclasses. Fixed #33199 -- Deprecated passing positional arguments to Signer/TimestampSigner. Dec 9, 2022
@felixxm
Copy link
Member

felixxm commented Dec 9, 2022

@SirAbhi13 Thanks for updates 👍 I pushed small edits.

…estampSigner.

Thanks Jacob Walls for the implementation idea.
@felixxm felixxm merged commit b8738ae into django:main Dec 9, 2022
@SirAbhi13 SirAbhi13 deleted the tic33199 branch December 9, 2022 13:19
@felixxm felixxm temporarily deployed to schedules December 10, 2022 02:50 — with GitHub Actions Inactive
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants