Typescript Type For Async Function Python