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
@dates_active
decorator
#495
Conversation
for more information, see https://pre-commit.ci
…es_active_decorator
for more information, see https://pre-commit.ci
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## main #495 +/- ##
==========================================
+ Coverage 94.31% 94.47% +0.16%
==========================================
Files 47 47
Lines 2850 2897 +47
==========================================
+ Hits 2688 2737 +49
+ Misses 162 160 -2
... and 1 file with indirect coverage changes Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report in Codecov by Sentry. |
for more information, see https://pre-commit.ci
I only partially replaced the conditionals in |
Wow, that looks great! Just a couple of quick comments / thoughts:
|
My point was just that instead of several dunder attributes there should be just one (a dict containing all information). It is very easy to lose dunder attributes when applying other decorators. I don't think |
The behavior of
In my opinion, the second option makes more sense. The dashes improve readability and we ensure consistency in our source code. |
Sounds like the better solution to me, as well. |
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.
Looks great, thank you!
load_internal_functions
is a nice addition!- I like
__info__
more than__gettsim__
(sorry for not responding before).
Not sure why readthedocs is failing now but since other PRs are also affected, it seems to be unrelated to the changes in this PR. |
It's the latest update of pydata-sphinx-theme. We pinned it in estimagic for now. See here |
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.
Basically done! Thanks a lot, great work!
487f68d
to
a1da579
Compare
f922fc8
to
d3d288d
Compare
for more information, see https://pre-commit.ci
Excellent, thank you! Let me get my hands dirty a little on porting further changes, maybe I'll have a comment or two based on that. No PRs on the horizon that will use this machinery AFAIC, else we can merge earlier. NB: No need to change this, but I did not mean to push you towards including a docstring in the function, the comment just was not clear to me without knowing the docstring of the Exception. 😄 |
No worries, good to have the docstring anyway. |
Truly excellent work, it has been a joy to apply it ! |
What problem do you want to solve?
Reference the issue or discussion, if there is any. Provide a description and/or bullet
points to describe the changes in this PR.
Closes partially #334
Todo
Closes #XXXX
in the first PR comment to auto-close the relevant issue oncethe PR is accepted. This is not applicable if there is no corresponding issue.