Skip to content

Commit

Permalink
genai: chore type: ignore remaining mypy issue
Browse files Browse the repository at this point in the history
  • Loading branch information
nobu007 committed Oct 12, 2024
1 parent 8b68b65 commit 32655bc
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions libs/genai/langchain_google_genai/chat_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -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__)

Expand Down

0 comments on commit 32655bc

Please sign in to comment.