APIConnection.query - documentation bug for geo_unit
JoeGermuska opened this issue · comments
This is very small, but the docs for cenpy.remote.APIConnection.query
indicate that geo_unit
can be dict or string
Lines 145 to 158 in 1072257
but there's no sign in the implementation of ever checking for a dict.
Before submitting a PR, would it be better to fix the docs? Or add support for it as a dict? I mostly use the ACS, and as far as I can tell, the for
parameter in the API never takes more than one type, so I'm not sure there's need for a dict -- but maybe some of the other endpoints behave differently?
I think adding support for dict
would be preferable. This removes the string formatting responsibility from the end user.
In the ACS, the for
parameter would only have one key but it can accept multiple types of values: