From 8f3860c29ba4b3de97fa1b22dad6b123bf2f7bad Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 1 Apr 2024 06:17:00 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- Tests/test_imagemath_lambda_eval.py | 2 -- src/PIL/ImageMath.py | 6 ++++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Tests/test_imagemath_lambda_eval.py b/Tests/test_imagemath_lambda_eval.py index 3915e64aa..5769c903e 100644 --- a/Tests/test_imagemath_lambda_eval.py +++ b/Tests/test_imagemath_lambda_eval.py @@ -1,7 +1,5 @@ from __future__ import annotations -import pytest - from PIL import Image, ImageMath diff --git a/src/PIL/ImageMath.py b/src/PIL/ImageMath.py index 2ffebbe71..5d83929dc 100644 --- a/src/PIL/ImageMath.py +++ b/src/PIL/ImageMath.py @@ -236,9 +236,11 @@ ops = { } -def lambda_eval(expression: Callable[[dict[str, Any]], Any], +def lambda_eval( + expression: Callable[[dict[str, Any]], Any], _dict: dict[str, Any] = {}, - **kw: Any,) -> Any: + **kw: Any, +) -> Any: """ Returns the result of an image function.