added type hints and doctests to arithmetic_analysis/bisection.py (#2… · zinating/algorithms-python@bd74f20 · GitHub
Skip to content

Commit bd74f20

Browse files
authored
added type hints and doctests to arithmetic_analysis/bisection.py (TheAlgorithms#2241)
* added type hints and doctests to arithmetic_analysis/bisection.py continuing in line with TheAlgorithms#2128 * modified arithmetic_analysis/bisection.py Put back print statement at the end, replaced algorithm's print statement with an exception. * modified arithmetic_analysis/bisection.py Removed unnecessary type import "Optional" * modified arithmetic_analysis/bisection.py Replaced generic Exception with ValueError. * modified arithmetic_analysis/bisection.py fixed doctests
1 parent dfb4ce4 commit bd74f20

1 file changed

Lines changed: 31 additions & 14 deletions

File tree

arithmetic_analysis/bisection.py

Lines changed: 31 additions & 14 deletions

0 commit comments

Comments
 (0)