Add typehint for ServiceProvider.

Signed-off-by: crynobone <crynobone@gmail.com>