I think it would be better if first check object type and if it is instance of GeoJSON only then call 'errors' method, if it is not, raise exception with appropriate message, because if you put in collection something different from GeoJSON object you will get a confusing error. For example if you append native dict in collection you will get bewildering:
"AttributeError: 'dict' object has no attribute 'errors'"
Hi)
I think it would be better if first check object type and if it is instance of GeoJSON only then call 'errors' method, if it is not, raise exception with appropriate message, because if you put in collection something different from GeoJSON object you will get a confusing error. For example if you append native dict in collection you will get bewildering: