osdir.com


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

type hinting backward compatibility with python 3.0 to 3.4


On Fri, May 19, 2017 at 6:35 AM, Edward Ned Harvey (python)
<python at nedharvey.com> wrote:
> I think it's great that for built-in types such as int and str, backward compatibility of type hinting annotations is baked into python 3.0 to 3.4. In fact, I *thought* python 3.0 to 3.4 would *ignore* annotations, but it doesn't...

Perhaps you'd be interested in the typing backport?
https://pypi.python.org/pypi/typing