Skip to content

Conversation

@Matthew1471
Copy link
Contributor

@Matthew1471 Matthew1471 commented Dec 5, 2025

Fix inconsistent leeway example values.

The example states

you can set a leeway of 10 seconds

..and then goes on to set leeway=5 and implies that's also the same as setting a leeway datetime.timedelta of 10 seconds.

This change standarises on 5 seconds (although we equally could have standarised on 10 seconds).

Fix inconsistent leeway example values.
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR fixes an inconsistency in the PyJWT documentation where the text description mentioned setting a leeway of "10 seconds" but the actual code examples used a value of 5 seconds. The changes standardize all references to use 5 seconds consistently.

Key Changes:

  • Updated the prose description to mention "5 seconds" instead of "10 seconds" to match the code examples
  • Updated the datetime.timedelta example to use seconds=5 instead of seconds=10 for consistency

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@auvipy auvipy merged commit dd44834 into jpadilla:master Dec 6, 2025
34 of 35 checks passed
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