Typescript Get Type From Function In Python Definition Range