Skip to content

Commit c04f0b4

Browse files
committed
Fix for incorrect return type and missing __all__ type
1 parent 58f7743 commit c04f0b4

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

src/auth0/management/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6640,6 +6640,7 @@ def __dir__():
66406640
"CspReportingEndpoints",
66416641
"CspReportingInfrastructure",
66426642
"CustomDomain",
6643+
"CustomDomainHeader",
66436644
"CustomDomainCustomClientIpHeader",
66446645
"CustomDomainCustomClientIpHeaderEnum",
66456646
"CustomDomainProvisioningTypeEnum",

src/auth0/management/management_client.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
from json import dumps
66
from typing import TYPE_CHECKING, Any, Callable, Dict, List, Optional, Union
77

8+
from .core.request_options import RequestOptions
9+
810
import httpx
911
from .client import AsyncAuth0, Auth0
1012
from .token_provider import TokenProvider
@@ -36,7 +38,7 @@ def _enforce_custom_domain_whitelist(request: httpx.Request) -> None:
3638
del request.headers[CUSTOM_DOMAIN_HEADER]
3739

3840

39-
def CustomDomainHeader(domain: str) -> Dict[str, Any]:
41+
def CustomDomainHeader(domain: str) -> RequestOptions:
4042
"""Create request options that set the Auth0-Custom-Domain header for a single request.
4143
4244
When both a global custom_domain (set at client init) and a per-request

0 commit comments

Comments
 (0)