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.
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: