Typescript Type Async Function Python