lib
Core functionality of fair-python-cookiecutter-demo.
This module can be used directly, or the functionality can be exposed using some other interface, such as CLI, GUI or an API.
CalcOperation ¶
Bases: str
, Enum
Supported operations of calculate
.
Source code in src/fair_python_cookiecutter_demo/lib.py
10 11 12 13 14 15 16 17 |
|
calculate ¶
calculate(op: CalcOperation, x: int, y: int)
Calculate result of an operation on two integer numbers.
Source code in src/fair_python_cookiecutter_demo/lib.py
20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 |
|