How to make PyLance parse NumPy style docstring properly in VSCode?

Viewed 1307

Consider the following function

def add(x: int, y: int) -> int:
    """ Add two numbers

    Parameters
    ----------
    x : int
        First integer
    y : int
        Second integer

    Returns
    int
        Results

    """
    return x + y

When I hover my mouse over add I get the following (LHS using Jedi and RHS using PyLance)

enter image description here

Is there a known way to get PyLance parse the docstring properly like Jedi does?

1 Answers
Related