Skip to content

Could not find cross-reference target #66

Answered by Ravencentric
Ravencentric asked this question in Q&A
Discussion options

You must be logged in to vote

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.

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
3 replies
@pawamoy
Comment options

@pawamoy
Comment options

@Ravencentric
Comment options

Answer selected by Ravencentric
Comment options

You must be logged in to vote
1 reply
@pawamoy
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants