Skip to content

Commit 7b7d603

Browse files
committed
fix types hints for ImageFile._Tile
1 parent c1fb9d4 commit 7b7d603

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

pyproject.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,6 @@ exclude = [
144144
'^src/PIL/DdsImagePlugin.py$',
145145
'^src/PIL/FpxImagePlugin.py$',
146146
'^src/PIL/Image.py$',
147-
'^src/PIL/ImageFile.py$',
148147
'^src/PIL/ImageMath.py$',
149148
'^src/PIL/ImageMorph.py$',
150149
'^src/PIL/ImageQt.py$',

src/PIL/ImageFile.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
import itertools
3333
import struct
3434
import sys
35-
from typing import NamedTuple
35+
from typing import Any, NamedTuple
3636

3737
from . import Image
3838
from ._deprecate import deprecate
@@ -94,7 +94,7 @@ class _Tile(NamedTuple):
9494
encoder_name: str
9595
extents: tuple[int, int, int, int]
9696
offset: int
97-
args: tuple | str | None
97+
args: tuple[Any, ...] | str | None
9898

9999

100100
#

0 commit comments

Comments
 (0)