SIGN IN SIGN UP
python / cpython UNCLAIMED

The Python programming language

0 0 1 Python

bpo-40334: Support type comments (GH-19780)

This implements full support for # type: <type> comments, # type: ignore <stuff> comments, and the func_type parsing mode for ast.parse() and compile().

Closes https://github.com/we-like-parsers/cpython/issues/95.

(For now, you need to use the master branch of mypy, since another issue unique to 3.9 had to be fixed there, and there's no mypy release yet.)

The only thing missing is `feature_version=N`, which is being tracked in https://github.com/we-like-parsers/cpython/issues/124.
G
Guido van Rossum committed
c001c09e9059ba04bc088349cd87a1374dc0754f
Parent: efb8dd5
Committed by GitHub <noreply@github.com> on 4/30/2020, 7:12:19 PM