Fix type hint error messages