Closed bje- closed 3 years ago
That sounds like a good fit for a pint whitelist:
import pint
ureg = pint.UnitRegistry()
ureg.default_format
If you pass this file to Vulture in addition to your normal files, Vulture will not complain.
If you like, you could prepare a pull request for this by putting the code into a file called vuture/whitelists/pint.py
Thanks, will do.
Packages like
pint
use attributes to control behaviour. Here is a very simple example:Vulture reports that the attribute is unused: