Skip to content

Commit

Permalink
chore: fix mypy errors
Browse files Browse the repository at this point in the history
  • Loading branch information
renatav committed Jan 24, 2025
1 parent 7036b27 commit 1737f6d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion taf/api/yubikey.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ def get_yk_roles(path: str, serial: Optional[str] = None) -> Dict:
A dictionary containing roles and delegated paths in case of delegated target roles
"""
serials = [serial] if serial else yk.get_serial_num()
roles_per_yubikes = {}
roles_per_yubikes: Dict = {}

if not len(serials):
print("YubiKey not inserted.")
Expand Down
2 changes: 2 additions & 0 deletions taf/auth_repo.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,8 @@ def __init__(
self.conf_directory_root = conf_directory_root_path.resolve()
self.out_of_band_authentication = out_of_band_authentication
self._storage = GitStorageBackend()
if pin_manager is None:
pin_manager = PinManager()
self._tuf_repository = TUFRepository(
self.path, storage=self._storage, pin_manager=pin_manager
)
Expand Down

0 comments on commit 1737f6d

Please sign in to comment.