Commit Graph
6 Commits
Author SHA1 Message Date
Andrew Emelyaneko 672d1cb603 Add '^' exponentiation alias to calculate and tests 2026-09-28 15:30:58 +03:00
Andrew Emelyaneko f350764a95 feat: add modulo (%) support to calculate()
Add a "%" case to calculate() returning a % b. Extend the zero-division guard _check_div_zero to raise ZeroDivisionError for "%" alongside "/" and "//", and update the module/function docstrings and Raises section accordingly. Type annotations for the numeric operands simplified from float | int to float.

Pipeline stages: orchestrator -> implementer -> reviewer -> committer
Task: Add modulo (%) support to calculate()
2026-09-28 15:20:14 +03:00
Andrew Emelyaneko 6cc3455b06 style: add module docstring and __all__ to calculator 2026-09-28 13:34:47 +03:00
Andrew Emelyaneko caa192e0be Add operand type validation and widen calculate() return type to int | float 2026-09-27 23:48:47 +03:00
Andrew Emelyaneko ef71165298 refactor: improve calculator with type hints, match/case, and error handling 2026-09-27 23:17:38 +03:00
Andrew Emelyaneko a6079faa55 initial: add calculator function 2026-09-27 23:03:14 +03:00