[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
This commit is contained in:
Suyash Shrivastava 2021-07-21 11:31:55 +05:30 committed by GitHub
parent 7342b33658
commit 407c979063
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)}")