-
Notifications
You must be signed in to change notification settings - Fork 421
refactor(data_classes): remove duplicated code #6288
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
refactor(data_classes): remove duplicated code #6288
Conversation
Remove overriding methods that have the same code as the overriden ones.
No related issues found. Please ensure there is an open issue related to this change to avoid significant delays or closure. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## develop #6288 +/- ##
========================================
Coverage 96.32% 96.33%
========================================
Files 242 242
Lines 11716 11699 -17
Branches 865 864 -1
========================================
- Hits 11286 11270 -16
+ Misses 337 336 -1
Partials 93 93 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Manually checked with: $ pip install pylint $ pylint --disable=all --enable=R0801 --min-similarity-lines=1 aws_lambda_powertools/utilities/data_classes
Just found a few more cases of duplicated code using pylint and manually checking its report:
Added a commit to the PR. |
Hi @ericbn! Do you need my review now or are you still doing some work? |
If you agree we can merge this. I still want to see if we can further simplify duplicated code by creating common base classes, but that's a refactoring of a different nature, so could go in a separate PR. I'm planning to check that between today and tomorrow. |
I'd prefer if you just remove redundant methods in this PR and then we can decide what to do with other things in a separate PR. |
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 @ericbn! just two small comments before we merge it.
|
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.
APROVED! Obrigado @ericbn
Created PR #6297 with the other duplicate code change discussed here. |
Issue number: #6293
Summary
Changes
Remove overriding methods that have the same code as the overriden ones.
User experience
No user experience change.
Checklist
If your change doesn't seem to apply, please leave them unchecked.
Is this a breaking change?
RFC issue number:
Checklist:
Acknowledgment
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.
Disclaimer: We value your time and bandwidth. As such, any pull requests created on non-triaged issues might not be successful.