scrapinghub / exporters

Exporters is an extensible export pipeline library that supports filter, transform and several sources and destinations
BSD 3-Clause "New" or "Revised" License
40 stars 10 forks source link

Check type of list items #283

Closed dvdbng closed 8 years ago

dvdbng commented 8 years ago

This checks that the list items have the correct types by defining new list subclasses (str_list, dict_list, int_list...), and exposes the expected list item type in option['type'].__name__

dvdbng commented 8 years ago

Note: this will break datahub-ui, I think this can be merged safely but we need to hold updating the exporters version datahub-api uses until a PR I'll make soon against datahub-ui is merged.

bbotella commented 8 years ago

I love this... Maybe it's worth documenting the three possible list types.

eliasdorneles commented 8 years ago

Neat!! :heart: