1

Minor issue. Some days ago, docstrings would be formatted so that when I hover over them, "Args" (Google-style) and "Returns" would be in bold, as well as the names of the arguments. This made it more readable.

def add(a: int, b: int) -> int:
    '''Add two numbers

    Args:
        a: first number
        b: second number

    Returns:
        c: third number
    '''

    c = a + b
    return c

add(3, 4)

Now when I hover over "add" I get:

Docstring rendering

Is this because of some Pylance update?

1 Answer 1

1

I fixed the issue by setting this option to true: "python.analysis.supportRestructuredText": true

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.