-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Rectify Return type hint #6811
Comments
@larryshamalama |
Yes, I believe just changing the return data type would be good. Sorry, it looks like I missed your question from a while ago... |
It seems like an easy fix. We just need to change variable "MeasurableComparison" in return type to variable "TensorVariable". Here is the code modifications:
Could you please verify if this is corrent? I can open a pull request for it. |
That should be the case! And that would be great :) |
Description
Take a look at the code snippet below:
pymc/pymc/logprob/binary.py
Lines 42 to 44 in f67ff8b
Here, the return type hint is wrong.
MeasurableComparision
is anOp
, but what is returned areTensorVariables
whose node has thatOp
.This needs to be rectified for all the functions which intend to find a
measurable op
.CC @ricardoV94 @larryshamalama
The text was updated successfully, but these errors were encountered: