-
-
Notifications
You must be signed in to change notification settings - Fork 32
Modernize Python code to 3.10+ with pyupgrade #254
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
Conversation
- Update type hints in tests/conftest.py to use modern syntax - Convert Dict[str, Any] to dict[str, Any] - Convert List[Dict[str, Any]] to list[dict[str, Any]] - All code now uses Python 3.10+ compatible syntax
Reviewer's guide (collapsed on small PRs)Reviewer's GuideThis PR modernizes test fixture type hints by replacing typing.Dict and typing.List generics with built-in lowercase generics, ensuring compatibility with Python 3.10+ syntax. File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #254 +/- ##
=======================================
Coverage 99.30% 99.30%
=======================================
Files 3 3
Lines 288 288
=======================================
Hits 286 286
Misses 2 2
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
Summary by Sourcery
Modernize test type annotations to use Python 3.10+ built-in generic types
Enhancements:
Tests: