Skip to content

Commit d03beff

Browse files
ChrisO345CaedenPH
andauthored
Update maths/maclaurin_sin.py
Co-authored-by: Caeden Perelli-Harris <[email protected]>
1 parent aa5f203 commit d03beff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

maths/maclaurin_sin.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ def maclaurin_sin(theta: float, accuracy: int = 30) -> float:
4141
if (
4242
not isinstance(accuracy, int)
4343
or accuracy <= 0
44-
or type(theta) not in [int, float]
44+
or not isinstance(theta, (int, float))
4545
):
4646
raise ValueError(
4747
"maclaurin_sin() requires int/float for theta and +ive int for accuracy"

0 commit comments

Comments
 (0)