You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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:
The text was updated successfully, but these errors were encountered:
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.
Why, when I create a pint
Quantity
object, VS Code thinks it is anAny
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:
The text was updated successfully, but these errors were encountered: