From: Josh Cannon Date: Wed, 10 Dec 2025 14:58:48 +0000 (-0600) Subject: Expose `FunctionAuth` in `__all__` (#3699) X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ae1b9f66238f75ced3ced5e4485408435de10768;p=thirdparty%2Fhttpx.git Expose `FunctionAuth` in `__all__` (#3699) Co-authored-by: Kar Petrosyan <92274156+karpetrosyan@users.noreply.github.com> Co-authored-by: Kar Petrosyan --- diff --git a/CHANGELOG.md b/CHANGELOG.md index 13bbfcdb..57fa44b8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). * Drop support for Python 3.8 +### Added + +* Expose `FunctionAuth` from the public API. (#3699) + ## 0.28.1 (6th December, 2024) * Fix SSL case where `verify=False` together with client side certificates. diff --git a/httpx/__init__.py b/httpx/__init__.py index e9addde0..63225040 100644 --- a/httpx/__init__.py +++ b/httpx/__init__.py @@ -50,6 +50,7 @@ __all__ = [ "DecodingError", "delete", "DigestAuth", + "FunctionAuth", "get", "head", "Headers", diff --git a/httpx/_auth.py b/httpx/_auth.py index b03971ab..9d24faed 100644 --- a/httpx/_auth.py +++ b/httpx/_auth.py @@ -16,7 +16,7 @@ if typing.TYPE_CHECKING: # pragma: no cover from hashlib import _Hash -__all__ = ["Auth", "BasicAuth", "DigestAuth", "NetRCAuth"] +__all__ = ["Auth", "BasicAuth", "DigestAuth", "FunctionAuth", "NetRCAuth"] class Auth: