Fixing unrecheable methods with return type hints [ci skip]