Skip to content

Commit 700e9f1

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent bcfd231 commit 700e9f1

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

financial/interest.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,9 @@ def apr_interest(
104104
"""
105105
DAYS_IN_YEAR = 365
106106

107-
def validate(name: str, value: float, min_value: float, include_equal: bool = False):
107+
def validate(
108+
name: str, value: float, min_value: float, include_equal: bool = False
109+
):
108110
if include_equal:
109111
if value < min_value:
110112
raise ValueError(f"{name} must be >= {min_value}")
@@ -122,7 +124,6 @@ def validate(name: str, value: float, min_value: float, include_equal: bool = Fa
122124
return compound_interest(principal, daily_rate, total_days)
123125

124126

125-
126127
if __name__ == "__main__":
127128
import doctest
128129

0 commit comments

Comments
 (0)