From 09b01811a97e15a44f361072d35270081b6a83e5 Mon Sep 17 00:00:00 2001 From: Tim Diller Date: Wed, 22 Oct 2025 11:48:35 -0500 Subject: [PATCH] add a fact function to show that apidoc auto updates --- src/fancymath/math.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/fancymath/math.py b/src/fancymath/math.py index 80c0b6a..30f3ea8 100644 --- a/src/fancymath/math.py +++ b/src/fancymath/math.py @@ -1,2 +1,15 @@ +""" +This is some really Fancy Math! +""" + def add(x1, x2): + "Apply the + operator to two Python objects" return x1 + x2 + + +def fact(n: int) -> int: + "Return the factorial of n." + if n == 1: + return 1 + else: + return n * fact(n - 1) \ No newline at end of file