pypi and Github out of sync: to_json and to_dict methods missing
rdib-equinor opened this issue · comments
Robert Dibble commented
Describe the bug
to_json and to_dict methods don't exist if using package installed from pypi, only directly from github.
To Reproduce
Steps to reproduce the behavior:
- Install via pypi
- Run following commands:
from quantulum3.parser import parse; quant = parse('I want 2 liters of wine'); quant[0].to_dict()
Expected behaviour
{'value': 2.0, 'unit': 'litre', 'entity': 'volume', 'surface': '2 liters', 'span': (7, 15), 'uncertainty': None, 'lang': 'en_US'}
Additional information:
- Python Version: 3.10.12
- OS: Mac
- Version: 0.9.0
Additional context
If installing directly from github (9dafd76), it works as expected. I'm guessing the pypi deployment didn't pick up the latest changes.