4 ms·
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 y
by rcfox 7y ago
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 7y agoTIL!