-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
REF: implement _validate_comparison_value #33716
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
Conversation
@@ -60,29 +60,24 @@ def _datetimelike_array_cmp(cls, op): | |||
opname = f"__{op.__name__}__" | |||
nat_result = opname == "__ne__" | |||
|
|||
@unpack_zerodim_and_defer(opname) | |||
def wrapper(self, other): | |||
class InvalidComparison(Exception): |
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 meant to be internal or external?
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.
internal
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.
kk i would document that as such (followon ok)
@@ -60,29 +60,24 @@ def _datetimelike_array_cmp(cls, op): | |||
opname = f"__{op.__name__}__" | |||
nat_result = opname == "__ne__" | |||
|
|||
@unpack_zerodim_and_defer(opname) | |||
def wrapper(self, other): | |||
class InvalidComparison(Exception): |
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.
kk i would document that as such (followon ok)
Trying to match the patterns we use for all the other DTA/TDA/PA methods that have an
other
-like arg.No logic should be changed here, just moved around.