httpx
httpx copied to clipboard
Add missing `| None` to auth parameter in convenience methods
The options(), head(), post(), put(), patch(), and delete() methods on both Client and AsyncClient are missing | None in their auth parameter type annotation.
This is inconsistent with get(), request(), send(), and stream() which all accept auth: AuthTypes | UseClientDefault | None.
Passing auth=None to explicitly opt out of authentication is a valid use case already supported at runtime, but the type annotations on these methods would incorrectly flag it.