mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-01-24 03:51:52 +08:00
Add typehints for open in PIL.WallImageFile (#11887)
This commit is contained in:
@@ -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