mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-10-10 15:25:49 +08:00
Add typehints for open in PIL.WallImageFile (#11887)
This commit is contained in:
1 parent
9174db0d7d
commit
d07ba24f3c
1 file changed
+2
-1
@@ -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
|
||||
Reference in new issue
Block a user