You limit to callable here but you assert expect is_callable() below. I would remove the type hint here