Issue #2080265 by alarcombe: Fixed AfterScenario hook has incorrect type hinting.