Improving templating type hinting

This PR adds type hinting for directly injected `templating` dependency.