Import __version__ from .

This commit is contained in:
Andrew Murray 2024-03-12 12:02:26 +11:00
parent 54d329b192
commit b22e4711cb

View File

@ -25,7 +25,7 @@ from enum import IntEnum, IntFlag
from functools import reduce from functools import reduce
from typing import Any from typing import Any
from . import Image from . import Image, __version__
from ._deprecate import deprecate from ._deprecate import deprecate
try: try:
@ -1087,4 +1087,4 @@ def versions():
12, 12,
'(PIL.features.version("littlecms2"), sys.version, PIL.__version__)', '(PIL.features.version("littlecms2"), sys.version, PIL.__version__)',
) )
return _VERSION, core.littlecms_version, sys.version.split()[0], Image.__version__ return _VERSION, core.littlecms_version, sys.version.split()[0], __version__