Skip to content

Commit

Permalink
Added specificity to type ignore
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark Dawson committed Oct 17, 2023
1 parent aedebd7 commit 82681cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cylc/uiserver/handlers.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ def is_token_authenticated(handler: 'CylcAppHandler') -> bool:
In these cases the bearer of the token is awarded full privileges.
"""
identity_provider: JPSIdentityProvider = (
handler.serverapp.identity_provider # type: ignore
handler.serverapp.identity_provider # type: ignore[union-attr]
)
return identity_provider.__class__ == PasswordIdentityProvider
# NOTE: not using isinstance to narrow this down to just the one class
Expand Down

0 comments on commit 82681cc

Please sign in to comment.