vladimarius / pyap

Python address detector and parser
MIT License
200 stars 60 forks source link

address.as_dict() values are no longer guaranteed to be strings #13

Open alex-textiq opened 4 years ago

alex-textiq commented 4 years ago

Sometime between 0.2.0 and 0.3.0, non-string data started getting stored in addresses. If I iterate through the values in address.as_dict(), street numbers are now type int instead of type string (which broke some stuff I was using it for).

Not sure if this intentional or not, I wouldn't expect users to want numerical parts of addresses to be stored numerically, but it's not backwards compatible so I thought I'd bring it up.

Cheers!