2.1 Technical requirements
The code for this chapter can be found in the PacktPublishing repository: https://github.com/PacktPublishing/Python-Object-Oriented-Programming-5E. Within that repository’s files, we’ll focus on the ch_02 directory.
This chapter will use the mypy tool, which is installed separately. Commands such as python -m pip install mypy will install this. If you’re using uv to manage your environment, then uvx tool install mypy will add mypy.
All of the examples were tested with Python 3.12 and 3.13. The uv tool can be used to test the code: uvx tox.