Skip to content

[ratelimit] Replace FloatInt with float | int - #16950

Merged
srittau merged 1 commit into
python:mainfrom
Razepriv:floatint-ratelimit
Dec 2, 2026
Merged

srittau merged 1 commit into
python:mainfrom
Razepriv:floatint-ratelimit

Conversation

@Razepriv

@Razepriv Razepriv commented Dec 2, 2026

Copy link
Copy Markdown
Contributor

Part of #16059.

period is only used in arithmetic (source), and RateLimitException stores period_remaining as given and it ends up in time.sleep() (source, usage), so both accept ints.

Prepared with Claude Code (Claude Opus 5.5).

🤖 Generated with Claude Code

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Copilot AI balanced review requested due to automatic review settings December 2, 2026 15:18

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

@github-actions

github-actions Bot commented Dec 2, 2026

Copy link
Copy Markdown
Contributor

According to mypy_primer, this change has no effect on the checked open source code. 🤖🎉

@srittau
srittau merged commit 454029e into python:main Dec 2, 2026
74 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