-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
REF: make CustomMixin a cdef class #34345
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
REF: make CustomMixin a cdef class #34345
Conversation
can you rebase |
…f-liboffsets-cdef-custom
one more time :-> |
…f-liboffsets-cdef-custom
cc @jorisvandenbossche suggestions for how to suppress these warnings? The situation: in order to fix [cython MRO troubles] i had to add these attributes in the declaration for these classes, but these classes never actually define/use these attributes, so they shouldnt be in the docs. |
I would remove from the docs for now? once the cython classes are unified maybe can get away with re-adding? |
I would remove from the docs for now? you mean remove the classes entirely? |
@jbrockmendel you can add those classes in the docs in a comment, so they don't show up in the overview list, but are actually built (to shut up sphinx to warn about it) |
…f-liboffsets-cdef-custom
@jorisvandenbossche not having much luck. what ive put at the end of the document is (several variations of):
which is giving errors:
|
But BDay indeed doesn't exist in |
No, it is in tseries.offsets. If I move the comment-text up to just before
|
You will need to show the change that gives this warning |
Locally, this file now ends with
|
…f-liboffsets-cdef-custom
…f-liboffsets-cdef-custom
@jorisvandenbossche i still need to rebase+test this, so not a huge hurry, but any thoughts on the doc issue? we're at the tail end of this process |
Not directly, sorry. But if you can push it here, might be easier to check with the full change |
The docs are passing here? |
Yes. In the most recent commit i added the "dummy" attributes to the docs for the non-custom classes, so if accessed they will just be None. |
green, booyah |
But why do |
No idea |
It was not meant as a technical "why" question, but a documentation question, and you are the expert in offsets: is |
BDay is an alias for BusinessDay, which i think is fairly common. It is used directly by users |
OK, so it's good to have it in the docs then. But maybe we could only add the class docstring page itself, without adding all methods/properties? (we have machinery for that, will do a PR just for BDay) |
No description provided.