[mypy] check polygon and corrections (#5419) · Ilgrim/Algorithms-Python@fdf095f · GitHub
Skip to content

Commit fdf095f

Browse files
NumberPiOsogithub-actions
andauthored
[mypy] check polygon and corrections (TheAlgorithms#5419)
* Update annotations to Python 3.10 TheAlgorithms#4052 * Add floats doctest * Copy list to avoid changing input unpredictably * Refactor code to make it readable * updating DIRECTORY.md * Improve raised ValueErrors and add doctest * Split doctest in multiples lines * Change ValueError to Monogons and Digons are not poly * Correct doctest refering number of sides Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
1 parent c0acfd4 commit fdf095f

1 file changed

Lines changed: 20 additions & 7 deletions

File tree

maths/check_polygon.py

Lines changed: 20 additions & 7 deletions

0 commit comments

Comments
 (0)