Skip to content

Commit 7a1a3a6

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 9aba612 commit 7a1a3a6

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

maths/arc_length.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
from math import pi
22

3+
34
def arc_length(angle: float, radius: float) -> float:
45
"""
56
Calculate the arc length of a circle.
@@ -42,6 +43,8 @@ def arc_length(angle: float, radius: float) -> float:
4243
raise ValueError("angle and radius must be positive")
4344
return 2 * pi * radius * (angle / 360)
4445

46+
4547
if __name__ == "__main__":
4648
import doctest
49+
4750
doctest.testmod()

0 commit comments

Comments
 (0)