Closed ocefpaf closed 3 years ago
Check out this pull request on
See visual diffs & provide feedback on Jupyter Notebooks.
Powered by ReviewNB
We are down to one!
erddapy/erddapy.py:474: error: Item "None" of "Union[List[str], Tuple[str], None]" has no attribute "__iter__" (not iterable)
Found 1 error in 1 file (checked 13 source files)
@callumrollo I narrowed it down to this part:
(
self.constraints,
self.dim_names,
self.variables,
) = _griddap_get_constraints(metadata_url)
again, my bad for not paying closer attention to the CI errors.
There we are clobbering the self.constraints
, self.dim_names
, and self.variables
. The type check fails b/c None is possible and they are optional in the class. So we need to get non "self.` version of those first and update the class attribute only when it makes sense.
Do you want to tackle that? If so I'll merge this PR and let you work on it.
I'll have a go! Still finding Type checking a little mystifying, but I'll learn from the examples you've made. Good to merge this one now
@callumrollo I fixed the output type info but there are still a few other places to fix:
I'll send a few extra commits here to fix those ASAP but feel free to tackle them if you want to.