Skip to content

Commit

Permalink
make mypy happy
Browse files Browse the repository at this point in the history
  • Loading branch information
callebtc committed Oct 11, 2023
1 parent 994fb46 commit 8cb7d3c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cashu/wallet/crud.py
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ async def get_keyset(
mint_url: str = "",
db: Optional[Database] = None,
conn: Optional[Connection] = None,
) -> WalletKeyset | None:
) -> Optional[WalletKeyset]:
clauses = []
values: List[Any] = []
clauses.append("active = ?")
Expand Down
4 changes: 2 additions & 2 deletions cashu/wallet/wallet.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,9 +174,9 @@ async def _load_mint_keys(self, keyset_id: Optional[str] = None) -> None:
# get current keyset
keyset = await self._get_keys(self.url)

assert keyset.public_keys
assert keyset.id
assert len(keyset.public_keys) > 0, "did not receive keys from mint."
assert keyset
assert keyset.id

if keyset_id and keyset_id != keyset.id:
# NOTE: Because of the upcoming change of how to calculate keyset ids
Expand Down

0 comments on commit 8cb7d3c

Please sign in to comment.