You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The typing hints for start_date and end_date in SearchApi params is dt.date, but it's not checked/enforced, and when a dt.datetime is passed, _prep_default_params performs dict(start=start_date.isoformat(), end=end_date.isoformat(), .... resulting in time strings in the request, which the API doesn't handle, and the user sees only a 400 error.
My suggestion is that _prep_default_params check for dt.datetime values, and call thing.date() to truncate AND issue a warning (using warnings.warn?)