-
Notifications
You must be signed in to change notification settings - Fork 47
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
Doc: Show typehints in description #1192
Doc: Show typehints in description #1192
Conversation
Instead of in the signature. Much more readable.
Codecov ReportAttention:
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. Additional details and impacted files@@ Coverage Diff @@
## develop #1192 +/- ##
===========================================
+ Coverage 84.24% 84.25% +0.01%
===========================================
Files 148 148
Lines 11724 11727 +3
===========================================
+ Hits 9877 9881 +4
+ Misses 1847 1846 -1 ☔ View full report in Codecov by Sentry. |
############################################################################### | ||
# SELECT | ||
|
||
TYPE_POSTPROCESSOR = Callable[["ModelProblem"], None] # noqa: F821 |
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.
@dilpath : Had to shuffle some things around to break circular dependencies. Is that okay?
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 fine to me, thanks 👍
############################################################################### | ||
# SELECT | ||
|
||
TYPE_POSTPROCESSOR = Callable[["ModelProblem"], None] # noqa: F821 |
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 fine to me, thanks 👍
@@ -28,7 +28,7 @@ class PredictorTask(Task): | |||
|
|||
def __init__( | |||
self, | |||
predictor: 'pypesto.predict.Predictor', # noqa: F821 | |||
predictor, #: 'pypesto.predict.Predictor', # noqa: F821 |
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.
is this also commented due to circular imports?
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.
No, because it doesn't exist 😑 . This whole module is not used anywhere. I think it could/should be removed, but I went for the more conservative approach.
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.
Ah, it should be pypesto.predict.AmiciPredictor
I guess -- there is no parent Predictor
class.
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.
Possible, but not sure what was intended there, as it's really not used anywhere.
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.
Was introduced in this monster, without usage #490
Instead of in the signature. Much more readable.
E.g., before: https://pypesto.readthedocs.io/en/latest/api/pypesto.visualize.html#pypesto.visualize.waterfall
after: https://pypesto--1192.org.readthedocs.build/en/1192/api/pypesto.visualize.html#pypesto.visualize.waterfall
Also fixes some function documentation missing from sphinx docs due to lack of
wraps
.Also removes some circular dependencies.