[Python-ideas] PEP 484 (Type Hints) -- first draft round

Dennis Brakhane brakhane at googlemail.com
Sat Jan 17 17:14:04 CET 2015

The PEP does not mention MyPy style casts. Is this intentional?

If yes, are casts not supported at all, or is there just no cast in 
typing and people should use type: comments instead?

x = [1,2,3]  # type: Iterable[int]
y = x # type: Sequence[int]

More information about the Python-ideas mailing list