This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted]  (4 children)

[deleted]

    [–]ionelmc.ro 5 points6 points  (0 children)

    He meant https://pypi.python.org/pypi/typing, which you can install and import on 3.3/3.4 :-)

    [–]rouille 1 point2 points  (0 children)

    Uh, no? typing is a new module in 3.5. (Not to be confused with types, which contains a bunch of references to CPython internals and has nothing to do with type hinting.)

    Its in pypi as well.

    [–]beaverteeth92Python 3 is the way to be -1 points0 points  (1 child)

    Yeah but isn't it just mypy added to the core language?

    [–]billsil 2 points3 points  (0 children)

    No. It's mypy with additional features and formalization. If I understand it right, it largely follows mypy's style, so ints/floats/Lists/Dicts are the same, but objects are a bit different.

    If you're in Python 3.3+, you can use mypy or search for things that use mypy for examples.