Fix type miss

- raise_errors_for_deprecations -> raise_errors_for_deprecations!