Skip to content

Commit

Permalink
🧎‍♀️ Genuflect to the types.
Browse files Browse the repository at this point in the history
Removed the type declarations from subtypes to satisfy a nitpicky and IMHO incorrect check. Closes #667.
  • Loading branch information
jaraco committed Feb 27, 2024
1 parent 5c26af2 commit c7d3d59
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion keyring/backends/SecretService.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class Keyring(backend.SchemeSelectable, KeyringBackend):
appid = 'Python keyring library'

@properties.classproperty
def priority(cls) -> int:
def priority(cls):
with ExceptionRaisedContext() as exc:
secretstorage.__name__
if exc:
Expand Down
2 changes: 1 addition & 1 deletion keyring/backends/Windows.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ class WinVaultKeyring(KeyringBackend):
persist = Persistence()

@properties.classproperty
def priority(cls) -> int:
def priority(cls):
"""
If available, the preferred backend on Windows.
"""
Expand Down
2 changes: 1 addition & 1 deletion keyring/backends/chainer.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class ChainerBackend(backend.KeyringBackend):
viable = True

@properties.classproperty
def priority(cls) -> int:
def priority(cls):
"""
If there are backends to chain, high priority
Otherwise very low priority since our operation when empty
Expand Down
2 changes: 1 addition & 1 deletion keyring/backends/fail.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class Keyring(KeyringBackend):
"""

@properties.classproperty
def priority(cls) -> int:
def priority(cls):
return 0

def get_password(self, service, username, password=None):
Expand Down
2 changes: 1 addition & 1 deletion keyring/backends/null.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class Keyring(KeyringBackend):
"""

@properties.classproperty
def priority(cls) -> int:
def priority(cls):
return -1

def get_password(self, service, username, password=None):
Expand Down

0 comments on commit c7d3d59

Please sign in to comment.