-
Notifications
You must be signed in to change notification settings - Fork 421
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
Fix #1358 #1359
Fix #1358 #1359
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1359 +/- ##
==========================================
- Coverage 82.76% 82.76% -0.01%
==========================================
Files 116 116
Lines 6672 6671 -1
==========================================
- Hits 5522 5521 -1
Misses 1150 1150
Continue to review full report at Codecov.
|
@@ -646,7 +646,7 @@ macro _delegate_statsfuns(D, fpre, psyms...) | |||
pargs = [Expr(:(.), :d, Expr(:quote, s)) for s in psyms] | |||
|
|||
# output type of `quantile` etc. | |||
T = :($D isa DiscreteUnivariateDistribution ? Int : Real) | |||
T = :($D <: DiscreteUnivariateDistribution ? Int : Real) |
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 overwritten somewhere for discrete distributions which are not supported on the integers?
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, but the macro that forwards calculations to StatsFuns is only used for discrete distributions with integer valued support.
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.
This PR only fixes the issue that was introduced in 0.25.7 when the eval
parts of the macro where removed but does not introduce any new behaviour.
Fixes #1358.