from datetime import datetime from decimal import Decimal import matplotlib.pyplot def display(data: tuple[list[datetime], list[Decimal]]) -> None: matplotlib.pyplot.plot( list(data[0]), # type: ignore [float(i) for i in data[1]], label="Money", ) matplotlib.pyplot.xlabel("Time") matplotlib.pyplot.legend() matplotlib.pyplot.xticks(rotation=45) matplotlib.pyplot.show()