Skip to content

Commit 743a527

Browse files
committed
Fix Ruff UP034 extraneous parentheses
1 parent 48e556e commit 743a527

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

financial/amortization.py

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -104,10 +104,8 @@ def amortization_schedule(
104104

105105
if print_annual_summary:
106106
print(
107-
(
108-
f"{'Year':<6}{'Months Pd':<12}{'Tenure Left':<13}"
109-
f"{'Payment/Period':<16}{'Outstanding':<14}"
110-
)
107+
f"{'Year':<6}{'Months Pd':<12}{'Tenure Left':<13}"
108+
f"{'Payment/Period':<16}{'Outstanding':<14}"
111109
)
112110

113111
for period in range(1, n + 1):
@@ -142,10 +140,8 @@ def amortization_schedule(
142140
if print_annual_summary and (months_elapsed % 12 == 0 or balance <= eps):
143141
tenure_left = n - period
144142
print(
145-
(
146-
f"{months_elapsed // 12:<6}{months_elapsed:<12}{tenure_left:<13}"
147-
f"{pmt:<16.2f}{balance:<14.2f}"
148-
)
143+
f"{months_elapsed // 12:<6}{months_elapsed:<12}{tenure_left:<13}"
144+
f"{pmt:<16.2f}{balance:<14.2f}"
149145
)
150146

151147
if balance <= eps:

0 commit comments

Comments
 (0)