-
-
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
DateOffset.offset vs DateOffset._offset #17176
Comments
There are some inconsistencies in how
I'd like to get a green-light to change this behavior:
Similar behavior shows up in the other
Best case I'd like to get rid of If that is too big a break, the next-best option would be to
|
I agree that the whole kwds bizness is fishy. So would be ok with having actual signatures. |
Great. I'll start small implementing these one or two at a time to make sure we're on the same page. |
There are two places in the tests with seemingly-incorrect behavior. I'd like to confirm that these are incorrect and fix the tests before trying to fix the code.
|
yep those look wrong why don't do a PR just to fix those |
tseries.offsets.DateOffset
has a_offset
attribute. Many subclasses do not have this attribute, but do have aoffset
attribute. The main difference in the two appears to be that_offset
is ignored by__eq__
(see #17137).The question: why two separate attributes? Is this intentional or coincidence?
The text was updated successfully, but these errors were encountered: