Add type hinting to render method