-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
DOC: Add redirect for moved classes #16200
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
The new redirects in this commit are for Resampler and Styler Refactor how we do redirects. Moved all the logic into the config file, where you state the methods / classes to be redirected. Removed all the logic from the template, and just look up in the new html_context variable. Closes pandas-dev#16186
bb40fa9
to
635d770
Compare
Redirects on my local build look OK. |
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.
Looks good!
doc/source/conf.py
Outdated
mod, classname = new.rsplit('.', 1) | ||
klass = getattr(importlib.import_module(mod), classname) | ||
methods = [x for x in dir(klass) | ||
if not x.startswith('_') or x.startswith('__')] |
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.
The first check already covers the second?
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.
the second is to include the __
methods. We have http://pandas.pydata.org/pandas-docs/stable/generated/pandas.tseries.resample.Resampler.__iter__.html
I could just whitelist __iter__
... We document that and __array__
on Categorical.
Codecov Report
@@ Coverage Diff @@
## master #16200 +/- ##
=======================================
Coverage 90.86% 90.86%
=======================================
Files 162 162
Lines 50871 50871
=======================================
Hits 46225 46225
Misses 4646 4646
Continue to review full report at Codecov.
|
* DOC: Add redirect for moved classes The new redirects in this commit are for Resampler and Styler Refactor how we do redirects. Moved all the logic into the config file, where you state the methods / classes to be redirected. Removed all the logic from the template, and just look up in the new html_context variable. Closes pandas-dev#16186 * Only redirect for used dunder methods
The new redirects in this commit are for Resampler and Styler
Refactor how we do redirects. Moved all the logic into the
config file, where you state the methods / classes to be redirected.
Removed all the logic from the template, and just look up in the
new html_context variable.
Closes #16186
Running a test locally ATM.