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 get type hinting to work? #1958

Open
npetersen2 opened this issue Mar 20, 2024 · 1 comment
Open

How to get type hinting to work? #1958

npetersen2 opened this issue Mar 20, 2024 · 1 comment

Comments

@npetersen2
Copy link

Simple question. I love pint and use it for many things, but I have never gotten even very simple type hinting to work in VS Code.

image

Why, when I create a pint Quantity object, VS Code thinks it is an Any type? This seems wrong... I just want VS Code to know it is a Quantity, so it can auto-complete methods nicely. I have read other issues in the GitHub repo here about type hinting for specific kinds of units, which of course would be nice, but I think this is much simpler.

Another example in a function:

image

@layathepup
Copy link

I have the same issue with intellij

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