Could not find cross-reference target #66
Answered
by
Ravencentric
Ravencentric
asked this question in
Q&A
-
I have a pretty simple docstring like this: class SomeAPI:
def __init__(self, base_url: str = "https://someurl.com", client: Client | None = None) -> None:
"""
Parameters
----------
base_url : str, optional
The base URL of used for constructing API queries.
client : Client, optional
An [httpx.Client][] instance used to make requests.
[httpx.Client]: https://www.python-httpx.org/advanced/#client
""" httpx does not provide objects.inv so we need to use normal links but the above fails:
|
Beta Was this translation helpful? Give feedback.
Answered by
Ravencentric
Feb 20, 2025
Replies: 2 comments 4 replies
-
Putting them on the same identation works: class SomeAPI:
def __init__(self, base_url: str = "https://someurl.com", client: Client | None = None) -> None:
"""
Parameters
----------
base_url : str, optional
The base URL of used for constructing API queries.
client : Client, optional
An [httpx.Client][] instance used to make requests.
[httpx.Client]: https://www.python-httpx.org/advanced/#client
""" Note the empty line in between, seems to be necessary for VS code to pick it up as a hyperlink. |
Beta Was this translation helpful? Give feedback.
3 replies
Answer selected by
Ravencentric
-
Something else I noticed, using backticks also breaks it.
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Putting them on the same identation works:
Note the empty line in between, seems to be necessary for VS code to pick it up as a hyperlink.