Skip to content

Add type information for Pylance #3401

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

Closed
munro opened this issue Sep 28, 2021 · 1 comment
Closed

Add type information for Pylance #3401

munro opened this issue Sep 28, 2021 · 1 comment

Comments

@munro
Copy link

munro commented Sep 28, 2021

A lot of the Python plotly library produces red squiggles in VS Code for Pylance.

From my experience, Pylance seems to work the best out of the box versus Pyright or mypy, so that seems to be the best tool focus adding support for.

I think one way is to add support without altering the library is adding type information to https://github.com/python/typeshed — but generally for my libraries I try to make use of the typing & typing-extensions modules as much as I can. Not sure if that's possible for backwards compatibility though, so typeshed may be the way to go. I've yet to add my own type information for an OS library though, so take all this with a grain of salt.

image

@gvwilson
Copy link
Contributor

gvwilson commented Jul 3, 2024

Hi - we are trying to tidy up the stale issues and PRs in Plotly's public repositories so that we can focus on things that are still important to our community. Since this one has been sitting for several years, I'm going to close it; if it is still a concern, please add a comment letting us know what recent version of our software you've checked it with so that I can reopen it and add it to our backlog. Thanks for your help - @gvwilson

@gvwilson gvwilson closed this as completed Jul 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants