Skip to content

Commit

Permalink
Pacify mypy with TimerScopes rename
Browse files Browse the repository at this point in the history
  • Loading branch information
sirosen committed Sep 3, 2024
1 parent 0889f1a commit 942fc48
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/globus_cli/login_manager/manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@

# TODO: remove this after an SDK release provides TimersScopes
try:
from globus_sdk.scopes import TimersScopes
from globus_sdk.scopes import TimersScopes # type: ignore[attr-defined]
except ImportError:
from globus_sdk.scopes import TimerScopes as TimersScopes

Expand Down
4 changes: 2 additions & 2 deletions src/globus_cli/login_manager/scopes.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

# TODO: remove this after an SDK release provides TimersScopes
try:
from globus_sdk.scopes import TimersScopes
from globus_sdk.scopes import TimersScopes # type: ignore[attr-defined]
except ImportError:
from globus_sdk.scopes import TimerScopes as TimersScopes

Expand All @@ -37,7 +37,7 @@ def compute_timer_scope(
transfer_ap_scope = MutableScope(TRANSFER_AP_SCOPE_STR)
transfer_ap_scope.add_dependency(transfer_scope)

timer_scope = TimersScopes.make_mutable("timer")
timer_scope: MutableScope = TimersScopes.make_mutable("timer")
timer_scope.add_dependency(transfer_ap_scope)
return timer_scope

Expand Down

0 comments on commit 942fc48

Please sign in to comment.