yunruse / Noether

Just another units package
MIT License
9 stars 0 forks source link

Linters are not aware of prefixed units #39

Open yunruse opened 1 year ago

yunruse commented 1 year ago

For example, if I do from noether import *, a linter will inform me a microgram is not a known element.

yunruse commented 1 year ago

This is due to vars().update not informing typing mechanisms.

Solutions may include:

  1. Some form of typing/linter hook (?)
  2. Automatically generate a large Python file
  3. Above, but pickle it for quick recall