Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
sgarland
4 months ago
|
parent
|
context
|
favorite
| on:
Python developers are embracing type hints
Yes, annotations allows you to use the declared types as they are, no strings.
FreakLegion
4 months ago
[–]
It turns them into thunks (formerly strings) automatically, an important detail if you're inspecting annotations at run time because the performance hit of resolving the actual type can be significant.
sgarland
4 months ago
|
parent
[–]
TIL, thanks! It looks like 3.14 is also changing it so that all evaluations are lazy.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: