diff --git a/CHANGELOG.md b/CHANGELOG.md index 0ba64374b..8868c5012 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -17,8 +17,7 @@ Changes are grouped as follows - `Fixed` for any bug fixes. - `Security` in case of vulnerabilities. -## 7.58.7 - 2024-09-05 - +## [7.58.7] - 2024-09-05 ### Fixed - Allow zipping files older than 1980 when creating a function, this is done by setting the timestamp to 1980 if older than that. diff --git a/cognite/client/_api/functions.py b/cognite/client/_api/functions.py index 9e120e2e8..928dc7504 100644 --- a/cognite/client/_api/functions.py +++ b/cognite/client/_api/functions.py @@ -789,12 +789,10 @@ def _validate_function_handle(handle_obj: Callable | ast.FunctionDef) -> None: accepts_args = set(signature(handle_obj).parameters) if name != "handle": - raise TypeError(f"Function is named '{ - name}' but must be named 'handle'.") + raise TypeError(f"Function is named '{name}' but must be named 'handle'.") if not accepts_args <= ALLOWED_HANDLE_ARGS: - raise TypeError(f"Arguments {accepts_args} to the function must be a subset of { - ALLOWED_HANDLE_ARGS}.") + raise TypeError(f"Arguments {accepts_args} to the function must be a subset of {ALLOWED_HANDLE_ARGS}.") def _extract_requirements_from_file(file_name: str) -> list[str]: