Skip to content

Commit

Permalink
Import __version__ directly
Browse files Browse the repository at this point in the history
  • Loading branch information
radarhere committed Jan 9, 2024
1 parent f6f3dab commit 020ee06
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/PIL/Image.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,11 @@
ImageMode,
TiffTags,
UnidentifiedImageError,
__version__,
_plugins,
)
from ._binary import i32le, o32be, o32le
from ._util import DeferredError, is_path
from ._version import __version__

logger = logging.getLogger(__name__)

Expand Down
3 changes: 2 additions & 1 deletion src/PIL/ImageCms.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
from enum import IntEnum

from . import Image
from ._version import __version__

try:
from . import _imagingcms
Expand Down Expand Up @@ -1004,4 +1005,4 @@ def versions():
(pyCMS) Fetches versions.
"""

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

Check warning on line 1008 in src/PIL/ImageCms.py

View check run for this annotation

Codecov / codecov/patch

src/PIL/ImageCms.py#L1008

Added line #L1008 was not covered by tests
2 changes: 1 addition & 1 deletion src/PIL/_deprecate.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import warnings

from . import __version__
from ._version import __version__


def deprecate(
Expand Down

0 comments on commit 020ee06

Please sign in to comment.