Add typehints for open in PIL.WallImageFile (#11887)

This commit is contained in:
Nikita Sobolev
2024-05-10 11:29:09 +03:00
committed by GitHub
parent 9174db0d7d
commit d07ba24f3c

View File

@@ -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