> There is also an example with types, but this becomes very awkward to show in Python.
With the book having been published in 2014, and type hints [1] being introduced with Python 3.5 released in 2015 [2], without knowing how the book did it I guess this is one part of the book that could have been made better in 2018.
With the book having been published in 2014, and type hints [1] being introduced with Python 3.5 released in 2015 [2], without knowing how the book did it I guess this is one part of the book that could have been made better in 2018.
[1]: https://docs.python.org/3/library/typing.html
[2]: https://www.python.org/downloads/release/python-350/