-
Notifications
You must be signed in to change notification settings - Fork 19
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
Support one and oneunit #59
Conversation
@@ -95,8 +95,9 @@ for f in (:(!), :(+), :(-), :(Base.identity), :(Base.zero), | |||
@eval $(f)(d::Missing) = missing | |||
end | |||
|
|||
Base.zero(::Type{Union{T, Missing}}) where {T <: Number} = zero(T) |
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.
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.
Thanks for pointing this out. I think I found a nice way to work around the type piracy problem.
Codecov Report
@@ Coverage Diff @@
## master #59 +/- ##
==========================================
+ Coverage 94.03% 94.07% +0.03%
==========================================
Files 1 1
Lines 151 152 +1
==========================================
+ Hits 142 143 +1
Misses 9 9
Continue to review full report at Codecov.
|
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.
Cool. Feel free to push the same changes to my Julia PR.
Will update JuliaLang/julia#24653 |
I believe this is ready to merge. Any other comments? |
No description provided.