API reference#
Core#
Module containing the core functionality of the demo project.
- exception wizard_template.core.NotAnIntegerError(incoming_type)#
Bases:
TypeErrorRaised when the input is not an integer.
- wizard_template.core.demo_function(incoming_int: int) int#
Demo function that doubles the input.
- Parameters:
incoming_int – The input to be doubled
- Returns:
The doubled input
- Raises:
NotAnIntegerError – If tried with an invalid input
Examples
>>> demo_function(2) 4 >>> demo_function(3) 6