|
|
|
|
|
by dragonwriter
2191 days ago
|
|
> I believe that some recent Python version has added (optional) type annotation support. Annotation support was added in 3.0, which isn't really a recent version of Python, having been released about 11.5 years ago. Also, mypy, while it can use Python 3.x annotations, also supports static checking of Python 2.x code using type comments. |
|
However, support for type annotations, specifically, wasn’t added until Python 3.5 (via PEP 484).