From 407c97906393ddaea43e2c21174c6cdaeb57dcfa Mon Sep 17 00:00:00 2001 From: Suyash Shrivastava <65887107+suyash2796@users.noreply.github.com> Date: Wed, 21 Jul 2021 11:31:55 +0530 Subject: [PATCH] [Mypy fix] fix secant method (#4501) * case switch using python * review comments * added type hints * general code format * [mypy] Fix type annotations for secant_method.py * remove bad push --- arithmetic_analysis/secant_method.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arithmetic_analysis/secant_method.py b/arithmetic_analysis/secant_method.py index 7eb1dd8f5..45bcb185f 100644 --- a/arithmetic_analysis/secant_method.py +++ b/arithmetic_analysis/secant_method.py @@ -26,4 +26,4 @@ def secant_method(lower_bound: float, upper_bound: float, repeats: int) -> float if __name__ == "__main__": - print(f"Example: {secant_method(1, 3, 2) = }") + print(f"Example: {secant_method(1, 3, 2)}")