Skip to content

pywin32: Fix various pyright reportCallIssue as per pywin32's own tests #13846

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion stubs/pywin32/_win32typing.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -4923,7 +4923,7 @@ class PyCColorDialog:
def DoModal(self): ...
def GetSavedCustomColors(self): ...
def SetCurrentColor(self, color, /) -> None: ...
def SetCustomColors(self) -> None: ...
def SetCustomColors(self, colors: Sequence[int], /) -> None: ...
def GetCustomColors(self) -> tuple[Incomplete, ...]: ...

class PyCComboBox:
Expand Down
4 changes: 2 additions & 2 deletions stubs/pywin32/win32/win32api.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ def LoadLibrary(fileName: str, /): ...
def LoadLibraryEx(fileName: str, handle: int, handle1, /) -> int: ...
def LoadResource(handle: int, _type: _win32typing.PyResourceId, name: _win32typing.PyResourceId, language, /) -> str: ...
def LoadString(handle: int, stringId, numChars: int = ..., /) -> str: ...
def MessageBeep(type: int, /): ...
def MessageBeep(type: int = 0, /): ...
def MessageBox(hwnd: int | None, message: str, title: str | None = ..., style=..., language=..., /) -> int: ...
def MonitorFromPoint(pt: tuple[Incomplete, Incomplete], Flags: int = ...) -> int: ...
def MonitorFromRect(rc: _win32typing.PyRECT | tuple[int, int, int, int], Flags: int = ...) -> int: ...
Expand Down Expand Up @@ -268,7 +268,7 @@ def SetCursorPos(arg: tuple[Incomplete, Incomplete], /) -> None: ...
def SetDllDirectory(PathName: str, /) -> None: ...
def SetErrorMode(errorMode, /): ...
def SetFileAttributes(pathName: str, attrs, /): ...
def SetLastError(): ...
def SetLastError(errVal: int, /): ...
def SetSysColors(Elements, RgbValues, /) -> None: ...
def SetLocalTime(SystemTime: TimeType, /) -> None: ...
def SetSystemTime(year, month, dayOfWeek, day, hour, minute, second, millseconds, /): ...
Expand Down
2 changes: 1 addition & 1 deletion stubs/pywin32/win32/win32gui.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ def AlphaBlend(
/,
) -> None: ...
def MessageBox(parent: _win32typing.PyHANDLE | int | None, text: str, caption: str, flags, /): ...
def MessageBeep(_type, /) -> None: ...
def MessageBeep(type, /) -> None: ...
def CreateWindow(
className: str | _win32typing.PyResourceId,
windowTitle: str | None,
Expand Down