Skip to content

Commit 3952724

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

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

maths/maclaurin_sin.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -43,14 +43,10 @@ def maclaurin_sin(theta: float, accuracy: int = 30) -> float:
4343
"""
4444

4545
if not isinstance(theta, (int, float)):
46-
raise ValueError(
47-
"maclaurin_sin() requires either an int or float for theta"
48-
)
46+
raise ValueError("maclaurin_sin() requires either an int or float for theta")
4947

5048
if not isinstance(accuracy, int) or accuracy <= 0:
51-
raise ValueError(
52-
"maclaurin_sin() requires a positive int for accuracy"
53-
)
49+
raise ValueError("maclaurin_sin() requires a positive int for accuracy")
5450

5551
theta = float(theta)
5652

0 commit comments

Comments
 (0)