committed 10:32PM - 29 Jun 26 UTC
isinstance(api, DwdMosmixRequest) was used where api is the class itself
(not an… instance), so the condition was always False and the issue kwarg
was silently dropped — every MOSMIX/DMO request fell back to
DwdForecastDate.LATEST regardless of what the caller sent.
Fixed with issubclass, plus a None-guard so omitting issue in a REST API
call still reaches the dataclass default (DwdForecastDate.LATEST) rather
than being explicitly passed as None which would crash __post_init__.
Add two unit tests that assert the forwarding and the default behaviour
without requiring network access.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>