2 ms·
The PEP on it: https://www.python.org/dev/peps/pep-3107/ https://www.python.org/dev/peps/pep-3107/ Basically, Python 3 added syntax for annotations, but most o
by WorldMaker 10y ago
The PEP on it: https://www.python.org/dev/peps/pep-3107/ https://www.python.org/dev/peps/pep-3107/
Basically, Python 3 added syntax for annotations, but most of the syntax is make sure it parses like code expressions would, then ignore whatever those code expressions are.