fix typehints for 1.2.x