-
Notifications
You must be signed in to change notification settings - Fork 0
Simplify future code cleaning when python versions go out of support #57
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
Reviewer's Guide by SourceryThe pull request simplifies type-checking by removing the conditional import of Updated class diagram for MagicFinderclassDiagram
class MagicFinder {
- lineno: int
- col_offset: int
+ __init__(self, *args, **kwargs)
+ visit(self, node: ast.AST) -> Any
+ visit_Call(self, node: ast.Call) -> Any
+ visit_Name(self, node: ast.Name) -> Any
+ visit_Attribute(self, node: ast.Attribute) -> Any
}
File-Level Changes
Assessment against linked issues
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #57 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 4 4
Lines 340 340
Branches 30 30
=========================================
Hits 340 340 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
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.
Hey @MusicalNinjaDad - I've reviewed your changes - here's some feedback:
Overall Comments:
- It's good to see the
TYPE_CHECKING
block being simplified by removing thesuppress
context manager.
Here's what I looked at during the review
- 🟢 General issues: all looks good
- 🟢 Security: all looks good
- 🟡 Review instructions: 2 issues found
- 🟢 Testing: all looks good
- 🟢 Complexity: all looks good
- 🟢 Documentation: all looks good
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
fixes #34
Allows us to rely on test coverage to identify when we can remove code in place to handle older versions of python.
Summary by Sourcery
Enhancements:
contextlib.suppress
blocks for conditional imports.