Typescript Infer Type Of Array In Python Problem