Currently the tests only check for `float` `error_rate` but `Callable[[int], float]` is also accepted and should therefore be tested.
Currently the tests only check for
floaterror_ratebutCallable[[int], float]is also accepted and should therefore be tested.