Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
rcfox
on June 11, 2019
|
parent
|
context
|
favorite
| on:
A Failed Experiment with Python Type Annotations
For Python 3.7, you can do:
from __future__ import annotations
This will defer the parsing of annotations until after the file has been parsed, allowing you to use the actual symbol instead of a string.
anentropic
on June 12, 2019
[–]
TIL!
Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: