WEEE-Open / pytarallo

Python T.A.R.A.L.L.O. API
MIT License
2 stars 4 forks source link

Item codes should be strings #53

Closed lvps closed 3 years ago

lvps commented 3 years ago

Use foo(code: str) to enforce it, or convert to string in urlencode, or both

e-caste commented 3 years ago

@lvps We already convert it to string in urlencode as of the latest release (2.1.2). The question is: should we do this, and leave it unchanged, or throw an exception if urlencode does not receive a string? Or a third option: automatically convert to strings only integers, but not other data types.