Skip to content

Commit 777af97

Browse files
committed
Fix circular import
1 parent e48ab8c commit 777af97

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

auth0/rest.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,16 @@
66
import sys
77
from random import randint
88
from time import sleep
9-
from typing import Any, Mapping
9+
from typing import TYPE_CHECKING, Any, Mapping
1010

1111
import requests
1212

1313
from auth0.exceptions import Auth0Error, RateLimitError
14-
from auth0.rest_async import RequestsResponse
1514
from auth0.types import RequestData, TimeoutType
1615

16+
if TYPE_CHECKING:
17+
from auth0.rest_async import RequestsResponse
18+
1719
UNKNOWN_ERROR = "a0.sdk.internal.unknown"
1820

1921

0 commit comments

Comments
 (0)