How to include a # comment inside a """ docstring block in Python #348
Unanswered
rajk-cerebras
asked this question in
Q&A
Replies: 1 comment
-
I’m not quite sure what you’re trying to do. Do you want the comments to show up or not? This feels like it is unrelated to the book theme and is more like a python question since Sphinx doesn’t treat strings any differently than other applications, I think |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am not sure if this is a Sphinx or Sphinx Book Theme-related or Python docstring-related question. Does anyone know how to insert a
# comment line
within a"""
docstring block in Python in a way the Sphinx Book Theme honors it? For example, I need to exclude two or three arguments from rendering in HTML so I tried using it, unsuccessfully, like the following:I want the
anotherarg
not be included in the generated HTML. I also tried the following without success:Anyone has ideas? Thanks!
Beta Was this translation helpful? Give feedback.
All reactions