-
-
Notifications
You must be signed in to change notification settings - Fork 18.2k
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
Revert inclusive default change of IntervalDtype #47367
Changes from all commits
f471159
f35b5cd
9aeeced
6f791fd
b2abf87
2241b27
91883d9
a6c9602
728fdd8
32faa5f
ad54daa
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -69,7 +69,7 @@ cdef class IntervalTree(IntervalMixin): | |
inclusive, closed = _warning_interval(inclusive, closed) | ||
|
||
if inclusive is None: | ||
inclusive = "both" | ||
inclusive = "right" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. is IntervalTree public? (or is the class the return type of a public function/method?) maybe we don't need the deprecation here or don't even need to change at all. is your understanding that the change from closed -> inclusive is for the public api or across the whole codebase? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. As far as I can see IntervalTree is private (There are no docs around). It obviously makes sense to rename the kwarg across the whole code base. But since its private, we don't have to be backwards compatible. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. yep. probably ok to remove the deprecation here as a follow-up |
||
|
||
if inclusive not in ['left', 'right', 'both', 'neither']: | ||
raise ValueError("invalid option for 'inclusive': %s" % inclusive) | ||
|
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.
not sure about some of the handling/validation here but that's outside the scope of this PR.
we have a
deprecate_kwarg
decorator that caters for renaming keywords. not sure why not used.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.
I forgot about it, not sure why it was not used before. Switched over now.