-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
DOCS: Errors PR08 PR09 in pandas.Period #29073
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
Comments
@datapythonista, quick question, I intended to start working on this, but when I edit lines 2382 through 2405 of period.pyx and run I searched the repo for I double checked that i'm saving the file before validating it again and I tried rebuilding the docs again to no effect. Thanks! Here's the full output from
|
We get the docstring content by importing the code and checking what's in its def foo():
pass
foo.__doc__ = str(datetime.datetime.now()) This means, that for Cython code, the code needs to be converted to C, compiled, executed, and then we obtain the What this means for you is that if you change the |
@datapythonista a couple more questions Should I be running PEP8 validation before submitting a pull request or is it sufficient to rely on the script here? In
These are clearly the parameters used in the function definition and I looked for some formatting thing that might cause the script to not recognize them but didn't come up with anything. Is there an obvious fix to that? |
Running pep8 locally can save you time, since the CI requires pushing and takes like half an hour. But should be the same other than that. I'm in my phone and can't look the code now. If those parameters are not detected by the script, may be an error of the script. When a function is wrapped liked with a decorator, some machinery is required to get the right function to extract the parameters from. Some prints can help you better understand what's going on when calling the validation for that function. |
Subset of #28602 (PR09) and #25232 (PR08) for #27977 (docstrings validation).
pandas/_libs/tslibs/period.pyx
The text was updated successfully, but these errors were encountered: