Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Yeah, that is the syntax for a type alias. You can use NewType to create an actual subclass of the type instead. https://docs.python.org/3/library/typing.html#newtype


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

Search: