-
Notifications
You must be signed in to change notification settings - Fork 14.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
Google provider docstring improvements #31731
Google provider docstring improvements #31731
Conversation
The function process_line_and_extract_dataflow_job_id_callback is refactored a bit to be ever slightly more efficient. The docstring is also formatted to be clearer.
Also added some type annotations. And caught a bug in the async hook where an await is missed!
faeaac0
to
b4ce9fb
Compare
Apparently I broke something but I can’t figure out what’s going on. The error message is quite unhelpful too 😕 |
You can thank sphinx-autoapi for those unhelpful messages, no-one can do much about it.
Apparently the docstring generated rst (in |
You can do |
I did that, the problem is I can’t even figure out where the generated rst has any issues. The files just look good to me. 🤯 |
Been there a few times. What worked for me before is doing bisecting and removing parts of the change and figuring out which one is causing it... Not ideal, but works eventually. And there are hopes we might get some better error messages - I see some activity happening on readthedocs/sphinx_rtd_theme#1463 where people started to complain big time on sphinx_rtd_theme not being updated to Sphinx 7 and THIS PR readthedocs/sphinx_rtd_theme#1464 has just gotten green, so maybe we should also chime in there ? I think we really need it. Let me take a look maybe I can figure that one out quickly. |
BTW. |
@@ -618,10 +610,10 @@ def create_external_table( | |||
:param labels: A dictionary containing labels for the BiqQuery table. | |||
:param description: A string containing the description for the BigQuery table. | |||
:param encryption_configuration: [Optional] Custom encryption configuration (e.g., Cloud KMS keys). | |||
**Example**: :: | |||
.. code-block:: python |
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.
Result of bisecting - you miss empty line here. Also indenting is not consistent with other places but it seem to not cause the problem.
I checked the bigquery - and the result are missing empty lines before the code-blocks. I leave the other file for you, bisecting might at least tell you what's wrong. And more complaints and encourgement here will not hurt - I believe Sphinx 7 wil show the right place for the error. Maybe also changing or vendoring the theme and fixing it for Sphinx 7 would be a good option if someone woudl like to take that on. |
Created #31963 |
Added comment here as well - readthedocs/sphinx_rtd_theme#1463 (comment) @uranusjr -> I'd appreciate some support/words of encouragement for sphinx_rtd_them developers. I really feel your pain BTW. |
FWIW we really should switch away from sphinx-autoapi as well (in favor of |
Updated in #31963 |
a90c25c
to
1fcfd7b
Compare
Related suggestions found when reviewing #31422.