It took me quite a while to figure out that I have to define Unit and Quantity based on the Pint registry to make it discoverable by unit_parse. I basically only figured it out reading your test cases (test_pint.py). So I thought it might be good to add that hint to your documentation as well.
It took me quite a while to figure out that I have to define
Unit
andQuantity
based on thePint
registry to make it discoverable byunit_parse
. I basically only figured it out reading your test cases (test_pint.py
). So I thought it might be good to add that hint to your documentation as well.