Skip to content

Commit

Permalink
tmp
Browse files Browse the repository at this point in the history
  • Loading branch information
yagebu committed Dec 29, 2024
1 parent cb3d181 commit 789fa0b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/fava/beans/str.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def to_string(
_indent: int | None = None,
) -> str:
"""Convert to a string."""
if isinstance(obj, protocols.Amount):
if isinstance(obj, protocols.Amount) and not hasattr(obj, "date"):
# The Amount and Cost protocols are ambigous, so handle this here
# instead of having this be dispatched
return f"{obj.number} {obj.currency}"
Expand Down

0 comments on commit 789fa0b

Please sign in to comment.