Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #218 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 15 15
Lines 1661 1661
=========================================
Hits 1661 1661 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
Actually, not putting a default value in the inner method was a conscious choice. It helps prevent situations where you forget to pass the keyword argument from the outer method, thus ending up with a default value you didn't choose. |
|
And there's also an upside to having a setting always be a keyword or positional argument throughout the code, instead of switching. Keyword arguments are there to simplify writing, so it's okay to use them |
gdalle
left a comment
There was a problem hiding this comment.
I think this doesn't change anything and I'd rather preserve the current behavior
|
Is ok to use |
|
Yes it is okay, my objection was two-fold:
Of course both are rather minor objections in this specific case, which is a very simple PR, but I'm mentioning them anyway. If we don't try to maintain a simple and readable library, we will end up like ColPack. |
|
Essentially I'm protesting the spirit of the PR, more than the specific code inside it ^^ |
|
I just removed the need to specify |
gdalle
left a comment
There was a problem hiding this comment.
Again, I'm not saying this is a bad idea, I'm saying this is a very you idea ;)
I checked something a few days with
@code_warntypeand I found that the compiler generated a very complex code to handle the lack of default value for the keyword argument.It could also be an argument.