Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## v2.x #73 +/- ##
=======================================
Coverage 96.77% 96.77%
=======================================
Files 2 2
Lines 341 341
Branches 17 17
=======================================
Hits 330 330
Misses 6 6
Partials 5 5 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
@leoguignard, to me the changes look good, but I have a question about another part of In the the |
|
I agree it's redundant indeed. I'll remove it in another PR since it's not breaking and it's actually not changing the processing time (or at most only very marginally). |
|
@jules-vanaret, @BadPrograms, @ChrisMzz, Can I have one of you reviewing the PR so I can merge if you are ok with the changes? |
| or not self._has_been_reset | ||
| ) | ||
| out_func = wrapped_func(self, *args, **kwargs) | ||
| if should_reset: |
There was a problem hiding this comment.
Is there a reason why you don't remove should_reset and replace L85 this with the following?
if not (hasattr(self, "_has_been_reset") and self._has_been_reset):If not I think it might look nicer.
While giving the code review, @jules-vanaret pointed one mistake that I corrected.
Moreover, I also saw few redundancies that are now corrected also.