Hacker News new | past | comments | ask | show | jobs | submit login

How do you define class variable in a data class?




You can use `typing.ClassVar[<datatype>]`




Guidelines | FAQ | Support | API | Security | Lists | Bookmarklet | Legal | Apply to YC | Contact

Search: