Skip to content

Commit 5ba49aa

Browse files
Move off of last use of 'globus_sdk.experimental' (#1191)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent 4e8bda1 commit 5ba49aa

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

src/globus_cli/utils.py

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,11 @@
88
from globus_cli.types import AnyCallable
99

1010
if t.TYPE_CHECKING:
11-
from globus_cli.services.auth import CustomAuthClient
11+
# NB: GARE parsing requires other SDK components and therefore needs to be deferred
12+
# to avoid the performance impact of non-lazy imports
13+
from globus_sdk.gare import GARE
1214

13-
# NB: GARE parsing requires other SDK components and therefore needs to be deferred to
14-
# avoid the performance impact of non-lazy imports
15-
if t.TYPE_CHECKING:
16-
from globus_sdk.experimental.auth_requirements_error import (
17-
GlobusAuthRequirementsError,
18-
)
15+
from globus_cli.services.auth import CustomAuthClient
1916

2017
F = t.TypeVar("F", bound=AnyCallable)
2118

@@ -195,7 +192,7 @@ def __init__(
195192
self,
196193
message: str,
197194
*,
198-
gare: GlobusAuthRequirementsError | None = None,
195+
gare: GARE | None = None,
199196
epilog: str | None = None,
200197
) -> None:
201198
self.message = message

0 commit comments

Comments
 (0)