Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix _make_token_with_timestamp() argument secret #1462

Merged
merged 2 commits into from
May 27, 2023

Conversation

christianbundy
Copy link
Contributor

Problem: the _make_token_with_timestamp stub says that it takes a third argument, legacy: bool, but in reality it's secret: str | bool.

Solution: Update the stub.

Link: https://github.com/django/django/blob/720abed34304ec410c04a2e7a7dec7be4dae0d61/django/contrib/auth/tokens.py#L84

@intgr
Copy link
Collaborator

intgr commented May 26, 2023

@christianbundy Ping?

@intgr intgr self-assigned this May 26, 2023
Copy link
Collaborator

@intgr intgr left a comment

Choose a reason for hiding this comment

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

Thanks!

@intgr intgr changed the title Fix secret argument to _make_token_with_timestamp Fix _make_token_with_timestamp() argument secret May 27, 2023
@intgr intgr changed the title Fix _make_token_with_timestamp() argument secret Fix _make_token_with_timestamp() argument secret May 27, 2023
@intgr intgr merged commit 7c254b7 into typeddjango:master May 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants