[issue27402] Sequence example in typing module documentation does not typecheck

2016-06-28 Thread Roundup Robot
Roundup Robot added the comment: New changeset 0aec17c8f434 by Guido van Rossum in branch '3.5': Fix issue #27402: example for typing did not type-check. https://hg.python.org/cpython/rev/0aec17c8f434 New changeset 57f3514564f6 by Guido van Rossum in branch 'default': Fix issue #27402: example

[issue27402] Sequence example in typing module documentation does not typecheck

2016-06-27 Thread Michael Lee
Michael Lee added the comment: Whoops, forgot the link to the error in the docs: https://docs.python.org/3/library/typing.html#typing.List -- ___ Python tracker

[issue27402] Sequence example in typing module documentation does not typecheck

2016-06-27 Thread Michael Lee
New submission from Michael Lee: In the documentation for the `typing` module, the [entry for the `List` type][0] uses the following example to help demonstrate when to use `Sequence` vs `List`: T = TypeVar('T', int, float) def vec2(x: T, y: T) -> List[T]: return [x, y]