Fix some typing errors

It seems like the type hints have gotten better :)
This commit is contained in:
I-Al-Istannen
2025-10-19 15:59:08 +02:00
parent 5646e933fd
commit ef7d66c5af
8 changed files with 44 additions and 65 deletions

View File

@@ -1,4 +1,4 @@
from typing import Optional, cast
from typing import Optional
import keyring
@@ -13,7 +13,7 @@ class KeyringAuthSection(AuthSection):
return self.s.get("username")
def keyring_name(self) -> str:
return cast(str, self.s.get("keyring_name", fallback=NAME))
return self.s.get("keyring_name", fallback=NAME)
class KeyringAuthenticator(Authenticator):