How can i create these data types in Python ?
These types were defined in typescript and i want to recreate it in python. How can i do it in python easily and correctly?
export type Category =
'painting'
| 'work on paper'
| 'print'
| 'ceramic'
| 'installation'
| 'sculpture'
| 'textile'
| 'photograph'
| 'other'
export type NumberedCategory = `${Category}-${number}`
export type Lexicon = { term: string, weight: number }
export type Score = { name: string, score: number, contributors: string[] }
Thank you!