Fix NameError: rename RequestRate to Rate and deprecate Python 3.8/3.9 - #89
Merged
Conversation
Co-authored-by: njzjz <9496702+njzjz@users.noreply.github.com>
njzjz
marked this pull request as ready for review
February 14, 2026 09:51
Copilot
AI
changed the title
[WIP] WIP Rename RequestRate to Rate in import statements
Fix NameError: rename RequestRate to Rate in session.py
Feb 14, 2026
Contributor
There was a problem hiding this comment.
Pull request overview
This WIP pull request updates the import and usage of RequestRate to Rate from the pyrate_limiter library, reflecting an API change in the library. The change only affects the rate limiting configuration for the arXiv API adapter.
Changes:
- Updated import statement to use
Rateinstead ofRequestRatefrompyrate_limiter - Updated the arXiv adapter configuration to use
Rateinstead ofRequestRate
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Owner
|
@copilot Deprecate Python 3.8 and 3.9. The minimal Python version is now 3.10. |
Co-authored-by: njzjz <9496702+njzjz@users.noreply.github.com>
Contributor
Author
Copilot
AI
changed the title
Fix NameError: rename RequestRate to Rate in session.py
Fix NameError: rename RequestRate to Rate and deprecate Python 3.8/3.9
Feb 14, 2026
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #89 +/- ##
==========================================
- Coverage 87.58% 87.10% -0.49%
==========================================
Files 13 12 -1
Lines 580 504 -76
==========================================
- Hits 508 439 -69
+ Misses 72 65 -7 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The import statement was changed to remove
RequestRate, but line 35 still referenced it, causing a runtimeNameError. Additionally, Python 3.8 and 3.9 support has been deprecated, with the minimum Python version now set to 3.10.Changes:
Rateto imports frompyrate_limiterRateinstead ofRequestRatepyproject.tomlrequires-pythonto>=3.10inpyproject.toml💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.