Minor fix for type hints
@daniel-eggert, these are just some minor fixes to the recent netCDF decoder module as the static type-checker fails on it (see https://git.geomar.de/digital-earth/de-messaging-python/-/jobs/74381).
Please merge this if you are happy with it