Skip to content

Commit

Permalink
do not import __version__ from PIL.Image in ImageCms
Browse files Browse the repository at this point in the history
  • Loading branch information
nulano committed Jan 1, 2024
1 parent 2c86505 commit 5d4b84e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/PIL/ImageCms.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
from enum import IntEnum
from typing import BinaryIO, Literal, SupportsFloat, SupportsInt, Union

from . import Image
from . import Image, __version__

try:
from . import _imagingcms
Expand Down Expand Up @@ -1018,4 +1018,4 @@ def versions() -> tuple[str, str | None, str, str]:
(pyCMS) Fetches versions.
"""

return VERSION, core.littlecms_version, sys.version.split()[0], Image.__version__
return VERSION, core.littlecms_version, sys.version.split()[0], __version__

0 comments on commit 5d4b84e

Please sign in to comment.