Skip to content

Commit

Permalink
make mypy happy
Browse files Browse the repository at this point in the history
  • Loading branch information
callebtc committed Sep 23, 2023
1 parent 35f9a2b commit 659a0e4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions cashu/wallet/api/router.py
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ async def pending(
enumerate(
groupby(
sorted_proofs,
key=itemgetter("send_id"),
key=itemgetter("send_id"), # type: ignore
)
),
offset,
Expand All @@ -334,9 +334,9 @@ async def pending(
grouped_proofs = list(value)
token = await wallet.serialize_proofs(grouped_proofs)
tokenObj = deserialize_token_from_string(token)
mint = [t.mint for t in tokenObj.token][0]
mint = [t.mint for t in tokenObj.token if t.mint][0]
reserved_date = datetime.utcfromtimestamp(
int(grouped_proofs[0].time_reserved)
int(grouped_proofs[0].time_reserved) # type: ignore
).strftime("%Y-%m-%d %H:%M:%S")
result.update(
{
Expand Down
2 changes: 1 addition & 1 deletion cashu/wallet/cli/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -550,7 +550,7 @@ async def pending(ctx: Context, legacy, number: int, offset: int):
enumerate(
groupby(
sorted_proofs,
key=itemgetter("send_id"),
key=itemgetter("send_id"), # type: ignore
)
),
offset,
Expand Down

0 comments on commit 659a0e4

Please sign in to comment.