-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Add inv(::Missing) #31451
Add inv(::Missing) #31451
Conversation
test/missing.jl
Outdated
@@ -81,7 +81,7 @@ end | |||
arithmetic_operators = [+, -, *, /, ^, Base.div, Base.mod, Base.fld, Base.rem] | |||
|
|||
# All unary operators return missing when evaluating missing | |||
for f in [!, ~, +, -] | |||
for f in [!, ~, +, -, inv] |
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.
Can you put with with elementary functions instead?
Also, please add an entry in NEWS.md.
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.
About the compat annotation, Should I just add inv
under unary operators in missing.md
?
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.
Sorry, I'm not sure what you mean. In NEWS.md, please add an entry under "New language features".
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.
Please check the most recent commit. My query was regarding needs compat annotation
label.
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.
My query was regarding
needs compat annotation
label.
Ah, OK. I don't think it's appropriate since there's no docstring. @ararslan?
EDIT: I guess we could add a !!! compat "Julia 1.2"
block to the inv
docstring mentioning missing values.
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, it should be in the existing docstring for inv
eba30f0
to
a7a27d2
Compare
a7a27d2
to
8285d78
Compare
If this is okay, can this be merged? @ararslan |
Closes #31408
Adds
inv(::Missing)
Adds test for
inv(::Missing)