fix types hints for ImageFile._Tile

This commit is contained in:
Nulano 2023-12-27 00:41:30 +01:00
parent 90d5552800
commit cc51dace35
2 changed files with 2 additions and 3 deletions

View File

@ -144,7 +144,6 @@ exclude = [
'^src/PIL/DdsImagePlugin.py$', '^src/PIL/DdsImagePlugin.py$',
'^src/PIL/FpxImagePlugin.py$', '^src/PIL/FpxImagePlugin.py$',
'^src/PIL/Image.py$', '^src/PIL/Image.py$',
'^src/PIL/ImageFile.py$',
'^src/PIL/ImageMath.py$', '^src/PIL/ImageMath.py$',
'^src/PIL/ImageMorph.py$', '^src/PIL/ImageMorph.py$',
'^src/PIL/ImageQt.py$', '^src/PIL/ImageQt.py$',

View File

@ -32,7 +32,7 @@ import io
import itertools import itertools
import struct import struct
import sys import sys
from typing import NamedTuple from typing import Any, NamedTuple
from . import Image from . import Image
from ._deprecate import deprecate from ._deprecate import deprecate
@ -94,7 +94,7 @@ class _Tile(NamedTuple):
encoder_name: str encoder_name: str
extents: tuple[int, int, int, int] extents: tuple[int, int, int, int]
offset: int offset: int
args: tuple | str | None args: tuple[Any, ...] | str | None
# #