-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Add DataAPI.unwrap with default definition #35
Conversation
Codecov Report
@@ Coverage Diff @@
## main #35 +/- ##
==========================================
+ Coverage 90.90% 91.30% +0.39%
==========================================
Files 1 1
Lines 22 23 +1
==========================================
+ Hits 20 21 +1
Misses 2 2
Continue to review full report at Codecov.
|
Thank you. Could you also bump a version of DataAPI.jl so that we could register it after merging? Thank you. |
@@ -85,4 +85,9 @@ end | |||
|
|||
end | |||
|
|||
@testset "unwrap" begin | |||
@test DataAPI.unwrap(1) === 1 | |||
@test DataAPI.unwrap(missing) === missing |
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.
Ah, clever: with that fallback we don't need to use passmissing(unwrap)
!
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.
Yes!
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!
As discussed in
JuliaData/CategoricalArrays.jl#142.