Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
jamincan
on March 18, 2022
|
parent
|
context
|
favorite
| on:
Python 3 Types in the Wild
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: