Adding type hinting for abstract classes