-
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
Changes from all commits
f1d1b87
3336106
b68efd6
62144ed
0480ac3
111ae89
9eeb389
3dd3b41
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 commentThe 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 commentThe 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 commentThe reason will be displayed to describe this comment to others. Learn more. Ah, it should be There was a problem hiding this comment. Choose a reason for hiding this commentThe 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 commentThe reason will be displayed to describe this comment to others. Learn more. Was introduced in this monster, without usage #490 |
||
x: Sequence[float], | ||
sensi_orders: Tuple[int, ...], | ||
mode: ModeType, | ||
|
@@ -41,7 +41,7 @@ def __init__( | |
self.mode = mode | ||
self.id = id | ||
|
||
def execute(self) -> 'pypesto.predict.PredictionResult': # noqa: F821 | ||
def execute(self): # -> 'pypesto.predict.PredictionResult': # noqa: F821 | ||
"""Execute and return the prediction.""" | ||
logger.debug(f"Executing task {self.id}.") | ||
prediction = self.predictor(self.x, self.sensi_orders, self.mode) | ||
|
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 👍