Re:A Failed Experiment with Python Type Annotations
by rcfox on Tuesday June 11, 2019 @05:25PM
(#20159683)
For Python 3.7, you can do:
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.
[ Parent
| on HN ]
Re:A Failed Experiment with Python Type Annotations
by anentropic on Wednesday June 12, 2019 @06:33AM
(#20163251)
TIL!