From 73bf04474fce2bbbc89311ee4b35b4faa9ae3a8d Mon Sep 17 00:00:00 2001 From: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com> Date: Wed, 27 Mar 2024 10:35:28 +0200 Subject: [PATCH] enum can't be None Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com> --- src/PIL/TiffTags.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/PIL/TiffTags.py b/src/PIL/TiffTags.py index 469d4def9..89fad7033 100644 --- a/src/PIL/TiffTags.py +++ b/src/PIL/TiffTags.py @@ -26,7 +26,7 @@ class _TagInfo(NamedTuple): name: str type: int | None length: int | None - enum: dict[int, str] | None + enum: dict[str, int] class TagInfo(_TagInfo):