Skip to content

Commit e76e681

Browse files
authored
Fix pywin32's PyCBitmap.GetBitmapBits method (#11108)
1 parent e915cb2 commit e76e681

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

stubs/pywin32/_win32typing.pyi

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4801,7 +4801,12 @@ class PyCBitmap:
48014801
arg1: tuple[Incomplete, Incomplete, Incomplete, Incomplete],
48024802
) -> None: ...
48034803
def GetInfo(self): ...
4804-
def GetBitmapBits(self, asString: int = ...) -> str: ...
4804+
@overload
4805+
def GetBitmapBits(self, __asString: Literal[False] = False) -> tuple[int, ...]: ...
4806+
@overload
4807+
def GetBitmapBits(self, __asString: Literal[True]) -> bytes: ...
4808+
@overload
4809+
def GetBitmapBits(self, __asString: bool) -> tuple[int, ...] | bytes: ...
48054810
def SaveBitmapFile(self, dcObject: PyCDC, Filename: str): ...
48064811

48074812
class PyCBrush:

0 commit comments

Comments
 (0)