Type hinting and unit testing