-
-
Notifications
You must be signed in to change notification settings - Fork 18.3k
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
CLN: Update docstring decorator from Appender and Substitution to doc #31942
Comments
take |
Hi, I tried to make changes to file pandas/core/indexes/extension.py
and had the following error
|
Hi @raisadz. Same error here. I guess this is because the base function has use |
Hi @HH-MWB, I also tried to make change to file pandas\core\base.py:
and had this error:
I think the problem is due to this line:
Because the docstring use |
Hi @farhanreynaldo, I would suggest that we replace |
It works! Thank you, @HH-MWB |
We use to use
Appender
andSubstitution
decorators to share docstring cross functions. Now we implemented a new decoratordoc
for that use case, and it would simplify the reuse of docstrings.The idea here is to replace
Appender
andSubstitution
withdoc
decorator, and move the shared docstring to a better place if possible.Example
The original code will be look like this:
We would like to change it to this:
Reference
The text was updated successfully, but these errors were encountered: