Fix constraint callback type hint