Skip to content

Commit d32bfa5

Browse files
committed
Update dependencies
1 parent 9d2d8da commit d32bfa5

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,10 @@ gpxpy = "1.5.0"
3737
Pint = "^0.21.0"
3838

3939
[tool.poetry.dev-dependencies]
40-
pytest = "^7.4.0"
40+
pytest = "^7.4.4"
4141
pytest-cov = "^4.1"
4242
coverage = "^7.2.7"
43-
pre-commit = "^3.3.3"
43+
pre-commit = "^3.5"
4444
mypy = "^1.4.1"
4545
pylint = "^3.0.2"
4646

tempren/tags/image.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
import PIL
88
from piexif import TAGS
99
from piexif import TYPES as TAG_TYPES
10-
from PIL import Image
10+
from PIL.Image import Image
1111

1212
from tempren.alias import TagAlias
1313
from tempren.exceptions import FileNotSupportedError, MissingMetadataError
@@ -21,7 +21,7 @@ class PillowTagBase(Tag, ABC):
2121

2222
def process(self, file: File, context: Optional[str]) -> Any:
2323
try:
24-
with Image.open(file.absolute_path) as img:
24+
with PIL.Image.open(file.absolute_path) as img:
2525
return self.extract_metadata(img)
2626
except PIL.UnidentifiedImageError:
2727
raise FileNotSupportedError()

0 commit comments

Comments
 (0)