Skip to content

Add date type to accepted param type#2541

Closed
turgaysozen wants to merge 1 commit intoencode:masterfrom
turgaysozen:date-param
Closed

Add date type to accepted param type#2541
turgaysozen wants to merge 1 commit intoencode:masterfrom
turgaysozen:date-param

Conversation

@turgaysozen
Copy link

If there is datetime parameter in httpx request, it gets crashed with following error.
TypeError: Expected str, int, float, bool, or None. Got 'datetime'.

Adding date will be enough to fix this problem, actually converting datetime object to string is also helps.

@lovelydinosaur
Copy link
Contributor

Thanks.

We're rolling back that change. See #2539 and #2540.
Hopefully we'll have a fixed release on PyPI soon.

@lovelydinosaur
Copy link
Contributor

Now released... https://pypi.org/project/httpx/0.23.3/

Thanks for your time and apologies for the breakage.

@turgaysozen
Copy link
Author

Thanks @tomchristie

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants