From 32655bc968dee4a807c9c2481c35ca6d0b60f252 Mon Sep 17 00:00:00 2001 From: jinno Date: Sun, 1 Sep 2024 21:16:03 +0900 Subject: [PATCH] genai: chore type: ignore remaining mypy issue --- libs/genai/langchain_google_genai/chat_models.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/libs/genai/langchain_google_genai/chat_models.py b/libs/genai/langchain_google_genai/chat_models.py index cbcf7c77..2efc0dcc 100644 --- a/libs/genai/langchain_google_genai/chat_models.py +++ b/libs/genai/langchain_google_genai/chat_models.py @@ -123,13 +123,13 @@ IMAGE_TYPES: Tuple = () try: - import PIL - from PIL.Image import Image + import PIL # type: ignore + from PIL.Image import Image # type: ignore IMAGE_TYPES = IMAGE_TYPES + (Image,) except ImportError: - PIL = None # type: ignore - Image = None # type: ignore + PIL = None + Image = None logger = logging.getLogger(__name__)