-
-
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 hints in logprob module rewrites #7093
Conversation
|
@larryshamalama please have a look at the pull request. |
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 good. Sorry for the delay in reviewing
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #7093 +/- ##
===========================================
- Coverage 92.21% 76.34% -15.87%
===========================================
Files 101 101
Lines 16912 16889 -23
===========================================
- Hits 15595 12894 -2701
- Misses 1317 3995 +2678
|
@ricardoV94 , In this file:- def find_measurable_stacks(
fgraph, node
) -> Optional[List[Union[TensorVariable, TensorVariable]]]: This went wrong. What is wrong here? |
The Union is not needed, since you have the same return type now |
I updated it. |
Is this a formatting issue? |
@ricardoV94 @larryshamalama Please look into the issue. I researched a lot during the past few days, but did not get anything specific about the error here. |
@AryanNanda17 yes that's a formatting issue due to pre-commit. You can read about it in our contributing guides: https://www.pymc.io/projects/docs/en/latest/contributing/pr_tutorial.html Check the |
@ricardoV94, I made the changes and now the precommits tests are passing. |
@ricardoV94 Why am I getting errors during mergeable check? |
Hi @AryanNanda17, sorry about such delays in replying - I am pushing through graduate studies, which have been time-consuming. I will look more carefully at this afternoon or tomorrow. Have you:
|
My feature branch was some commits behind the main branch and I was trying to resolve merge conflicts, by mistake I discarded all the commits, and the pull request got closed, really sorry. |
Sounds good, do not hesitate to ping me in the new PR once you will have done so. Edit: FYI, this was previously worked on in #7013. In principle, priority is given to preceding PRs, but it was my fault for providing late reviews. If possible, co-authorship will be given regardless of the merged PR (I will look into how to do this) |
Description
Related Issue
Checklist
Type of change
Here, the return type hint is wrong. MeasurableComparision is an Op, but what is returned are TensorVariables whose node has that Op. This needs to be rectified for all the functions which intend to find a measurable op.
📚 Documentation preview 📚: https://pymc--7093.org.readthedocs.build/en/7093/