diff --git a/stubs/Pillow/PIL/WalImageFile.pyi b/stubs/Pillow/PIL/WalImageFile.pyi index e69c2b308..c48f91929 100644 --- a/stubs/Pillow/PIL/WalImageFile.pyi +++ b/stubs/Pillow/PIL/WalImageFile.pyi @@ -1,3 +1,4 @@ +from _typeshed import StrOrBytesPath from typing import ClassVar, Literal from . import ImageFile @@ -8,6 +9,6 @@ class WalImageFile(ImageFile.ImageFile): format_description: ClassVar[str] def load(self) -> _PixelAccessor: ... -def open(filename): ... +def open(filename: StrOrBytesPath) -> WalImageFile: ... quake2palette: bytes