Skip to content

Conversation

@nikitagashkov
Copy link
Contributor

This MR updates the type hints for lifespan and timeout parameters from int to float in JWKSetCache and PyJWKClient.

Timeouts are commonly specified as floats to allow for sub-second precision (e.g., timeout=0.5). Updating the type hints avoids unnecessary type checker warnings when float values are passed.

This change is backwards compatible since in the type system floats allow ints to be accepted and it is actually considered a best bractice.

@nikitagashkov nikitagashkov requested a review from auvipy June 12, 2025 18:50
@auvipy auvipy merged commit 3dd8ce2 into jpadilla:master Jun 18, 2025
23 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.

3 participants