Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to keep the content of Parameter suggestions displayed by Pylance in the original style? #744

Closed
Jill-Cheng opened this issue Dec 16, 2020 · 2 comments
Labels
duplicate This issue or pull request already exists

Comments

@Jill-Cheng
Copy link

Jill-Cheng commented Dec 16, 2020

How to keep the content of Parameter suggestions displayed by Pylance in the original style?
Just like Jedi, clearer.

For example:

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

Use Pylance:

image

Use Jedi:

image

Related stack overflow link: https://stackoverflow.com/questions/65284696/how-to-make-pylance-parse-numpy-style-docstring-properly-in-vscode/

Thanks a lot!

@CatNofishing
Copy link

Good issue, jedi's paramter displayed style is easier to read.

@savannahostrowski
Copy link
Contributor

We're tracking this in #48 so I'm going to close this as a duplicate.

@savannahostrowski savannahostrowski added the duplicate This issue or pull request already exists label Dec 16, 2020
@github-actions github-actions bot removed the triage label Dec 16, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

3 participants