pywin32: Use PEP 570 positional-only argument syntax and fix arguments (#11321)

This commit is contained in:
Avasam
2024-01-27 06:27:05 -05:00
committed by GitHub
parent d3b45a4de9
commit 0b8841edd8
50 changed files with 2964 additions and 2885 deletions

View File

@@ -16,11 +16,11 @@ CBF_SKIP_CONNECT_CONFIRMS: int
CBF_SKIP_DISCONNECTS: int
CBF_SKIP_REGISTRATIONS: int
def CreateConversation(*args, **kwargs): ... # incomplete
def CreateServer(*args, **kwargs): ... # incomplete
def CreateServerSystemTopic(*args, **kwargs): ... # incomplete
def CreateStringItem(*args, **kwargs): ... # incomplete
def CreateTopic(*args, **kwargs): ... # incomplete
def CreateConversation(*args): ... # incomplete
def CreateServer(*args): ... # incomplete
def CreateServerSystemTopic(*args): ... # incomplete
def CreateStringItem(*args): ... # incomplete
def CreateTopic(*args): ... # incomplete
MF_CALLBACKS: int
MF_CONV: int

View File

@@ -4,7 +4,7 @@ import _win32typing
class error(Exception): ...
def ComparePath(path1: str, path2: str): ...
def ComparePath(path1: str, path2: str, /): ...
def CreateMDIFrame() -> _win32typing.PyCMDIFrameWnd: ...
def CreateMDIChild() -> _win32typing.PyCMDIChildWnd: ...
def CreateBitmap(*args: Unused) -> _win32typing.PyCBitmap: ...
@@ -12,7 +12,7 @@ def CreateBitmapFromHandle(): ...
def CreateBrush() -> _win32typing.PyCBrush: ...
def CreateButton() -> _win32typing.PyCButton: ...
def CreateColorDialog(
initColor: int = ..., flags: int = ..., parent: _win32typing.PyCWnd | None = ...
initColor: int = ..., flags: int = ..., parent: _win32typing.PyCWnd | None = ..., /
) -> _win32typing.PyCColorDialog: ...
def CreateControl(
classId: str,
@@ -24,18 +24,19 @@ def CreateControl(
bStorage,
obPersist: Incomplete | None = ...,
licKey: str | None = ...,
/,
) -> _win32typing.PyCWnd: ...
def CreateControlBar() -> _win32typing.PyCControlBar: ...
def CreateCtrlView(doc: _win32typing.PyCDocument, className: str, style: int = ...) -> _win32typing.PyCCtrlView: ...
def CreateCtrlView(doc: _win32typing.PyCDocument, className: str, style: int = ..., /) -> _win32typing.PyCCtrlView: ...
def CreateDC() -> None: ...
def CreateDCFromHandle(__hwnd: int | _win32typing.PyHANDLE) -> _win32typing.PyCDC: ...
def CreateDialog(idRes, dll: _win32typing.PyDLL | None = ...) -> _win32typing.PyCDialog: ...
def CreateDCFromHandle(hwnd: int | _win32typing.PyHANDLE, /) -> _win32typing.PyCDC: ...
def CreateDialog(idRes, dll: _win32typing.PyDLL | None = ..., /) -> _win32typing.PyCDialog: ...
def CreateDialogBar() -> _win32typing.PyCDialogBar: ...
def CreateDialogIndirect(oblist) -> _win32typing.PyCDialog: ...
def CreateDialogIndirect(oblist, /) -> _win32typing.PyCDialog: ...
def CreatePrintDialog(
idRes, bPrintSetupOnly, dwFlags, parent: _win32typing.PyCWnd | None = ..., dll: _win32typing.PyDLL | None = ...
idRes, bPrintSetupOnly, dwFlags, parent: _win32typing.PyCWnd | None = ..., dll: _win32typing.PyDLL | None = ..., /
) -> _win32typing.PyCPrintDialog: ...
def CreateDocTemplate(idRes) -> _win32typing.PyCDocTemplate: ...
def CreateDocTemplate(idRes, /) -> _win32typing.PyCDocTemplate: ...
def CreateEdit() -> _win32typing.PyCEdit: ...
def CreateFileDialog(
bFileOpen,
@@ -44,59 +45,60 @@ def CreateFileDialog(
fileName: str | None = ...,
_filter: str | None = ...,
parent: _win32typing.PyCWnd | None = ...,
/,
) -> _win32typing.PyCFileDialog: ...
def CreateFontDialog(
arg, font: Incomplete | None = ..., dcPrinter: _win32typing.PyCDC | None = ..., parent: _win32typing.PyCWnd | None = ...
arg, font: Incomplete | None = ..., dcPrinter: _win32typing.PyCDC | None = ..., parent: _win32typing.PyCWnd | None = ..., /
) -> _win32typing.PyCFontDialog: ...
def CreateFormView(doc: _win32typing.PyCDocument, Template) -> _win32typing.PyCFormView: ...
def CreateFormView(doc: _win32typing.PyCDocument, Template, /) -> _win32typing.PyCFormView: ...
def CreateFrame(): ...
def CreateTreeCtrl() -> _win32typing.PyCTreeCtrl: ...
def CreateTreeView(doc: _win32typing.PyCDocument) -> _win32typing.PyCTreeView: ...
def CreatePalette(lp): ...
def CreateTreeView(doc: _win32typing.PyCDocument, /) -> _win32typing.PyCTreeView: ...
def CreatePalette(lp, /): ...
def CreatePopupMenu() -> _win32typing.PyCMenu: ...
def CreateMenu() -> _win32typing.PyCMenu: ...
def CreatePen(style, width, color): ...
def CreatePen(style, width, color, /): ...
def CreateProgressCtrl() -> _win32typing.PyCProgressCtrl: ...
def CreatePropertyPage(resource: _win32typing.PyResourceId, caption: int = ...) -> _win32typing.PyCPropertyPage: ...
def CreatePropertyPageIndirect(resourcelist: _win32typing.PyDialogTemplate, caption=...) -> _win32typing.PyCPropertyPage: ...
def CreatePropertyPage(resource: _win32typing.PyResourceId, caption: int = ..., /) -> _win32typing.PyCPropertyPage: ...
def CreatePropertyPageIndirect(resourcelist: _win32typing.PyDialogTemplate, caption=..., /) -> _win32typing.PyCPropertyPage: ...
def CreatePropertySheet(
caption: _win32typing.PyResourceId, parent: _win32typing.PyCWnd | None = ..., select=...
caption: _win32typing.PyResourceId, parent: _win32typing.PyCWnd | None = ..., select=..., /
) -> _win32typing.PyCPropertySheet: ...
def CreateRgn() -> _win32typing.PyCRgn: ...
def CreateRichEditCtrl() -> _win32typing.PyCRichEditCtrl: ...
def CreateRichEditDocTemplate(idRes) -> _win32typing.PyCRichEditDocTemplate: ...
def CreateRichEditView(doc: _win32typing.PyCDocument | None = ...) -> _win32typing.PyCRichEditView: ...
def CreateRichEditDocTemplate(idRes, /) -> _win32typing.PyCRichEditDocTemplate: ...
def CreateRichEditView(doc: _win32typing.PyCDocument | None = ..., /) -> _win32typing.PyCRichEditView: ...
def CreateSliderCtrl() -> _win32typing.PyCSliderCtrl: ...
def CreateSplitter() -> _win32typing.PyCSplitterWnd: ...
def CreateStatusBar(parent: _win32typing.PyCWnd, arg, arg1, ctrlStype=...) -> _win32typing.PyCStatusBar: ...
def CreateStatusBar(parent: _win32typing.PyCWnd, arg, arg1, ctrlStype=..., /) -> _win32typing.PyCStatusBar: ...
def CreateStatusBarCtrl() -> _win32typing.PyCStatusBarCtrl: ...
def CreateFont(properties) -> _win32typing.PyCFont: ...
def CreateToolBar(parent: _win32typing.PyCWnd, style, arg) -> _win32typing.PyCToolBar: ...
def CreateFont(properties, /) -> _win32typing.PyCFont: ...
def CreateToolBar(parent: _win32typing.PyCWnd, style, arg, /) -> _win32typing.PyCToolBar: ...
def CreateToolBarCtrl() -> _win32typing.PyCToolBarCtrl: ...
def CreateToolTipCtrl() -> _win32typing.PyCToolTipCtrl: ...
def CreateThread() -> _win32typing.PyCWinThread: ...
def CreateView(doc: _win32typing.PyCDocument) -> _win32typing.PyCScrollView: ...
def CreateEditView(doc: _win32typing.PyCDocument) -> _win32typing.PyCEditView: ...
def CreateView(doc: _win32typing.PyCDocument, /) -> _win32typing.PyCScrollView: ...
def CreateEditView(doc: _win32typing.PyCDocument, /) -> _win32typing.PyCEditView: ...
def CreateDebuggerThread() -> None: ...
def CreateWindowFromHandle(hwnd: int) -> _win32typing.PyCWnd: ...
def CreateWindowFromHandle(hwnd: int, /) -> _win32typing.PyCWnd: ...
def CreateWnd() -> _win32typing.PyCWnd: ...
def DestroyDebuggerThread() -> None: ...
def DoWaitCursor(code) -> None: ...
def DoWaitCursor(code, /) -> None: ...
def DisplayTraceback() -> None: ...
def Enable3dControls(): ...
def FindWindow(className: str, windowName: str) -> _win32typing.PyCWnd: ...
def FindWindow(className: str, windowName: str, /) -> _win32typing.PyCWnd: ...
def FindWindowEx(
parentWindow: _win32typing.PyCWnd, childAfter: _win32typing.PyCWnd, className: str, windowName: str
parentWindow: _win32typing.PyCWnd, childAfter: _win32typing.PyCWnd, className: str, windowName: str, /
) -> _win32typing.PyCWnd: ...
def FullPath(path: str) -> str: ...
def FullPath(path: str, /) -> str: ...
def GetActiveWindow() -> _win32typing.PyCWnd: ...
def GetApp() -> _win32typing.PyCWinApp: ...
def GetAppName(): ...
def GetAppRegistryKey() -> None: ...
def GetBytes(address, size) -> str: ...
def GetBytes(address, size, /) -> str: ...
def GetCommandLine() -> str: ...
def GetDeviceCaps(hdc, index): ...
def GetFileTitle(fileName: str) -> str: ...
def GetDeviceCaps(hdc, index, /): ...
def GetFileTitle(fileName: str, /) -> str: ...
def GetFocus() -> _win32typing.PyCWnd: ...
def GetForegroundWindow() -> _win32typing.PyCWnd: ...
def GetHalftoneBrush() -> _win32typing.PyCBrush: ...
@@ -104,7 +106,7 @@ def GetInitialStateRequest(): ...
def GetMainFrame() -> _win32typing.PyCWnd: ...
def GetName() -> str: ...
def GetProfileFileName() -> str: ...
def GetProfileVal(section: str, entry: str, defValue: str) -> str: ...
def GetProfileVal(section: str, entry: str, defValue: str, /) -> str: ...
def GetResource() -> _win32typing.PyDLL: ...
def GetThread() -> _win32typing.PyCWinApp: ...
def GetType(): ...
@@ -112,41 +114,41 @@ def InitRichEdit() -> str: ...
def InstallCallbackCaller(): ...
def IsDebug() -> int: ...
def IsWin32s() -> int: ...
def IsObject(__o: object) -> bool: ...
def LoadDialogResource(idRes, dll: _win32typing.PyDLL | None = ...): ...
def LoadLibrary(fileName: str) -> _win32typing.PyDLL: ...
def LoadMenu(_id, dll: _win32typing.PyDLL | None = ...) -> _win32typing.PyCMenu: ...
def LoadStdProfileSettings(maxFiles) -> None: ...
def LoadString(stringId) -> str: ...
def MessageBox(message: str, arg, title: str | None = ...): ...
def OutputDebugString(msg: str) -> None: ...
def IsObject(o: object, /) -> bool: ...
def LoadDialogResource(idRes, dll: _win32typing.PyDLL | None = ..., /): ...
def LoadLibrary(fileName: str, /) -> _win32typing.PyDLL: ...
def LoadMenu(_id, dll: _win32typing.PyDLL | None = ..., /) -> _win32typing.PyCMenu: ...
def LoadStdProfileSettings(maxFiles, /) -> None: ...
def LoadString(stringId, /) -> str: ...
def MessageBox(message: str, arg, title: str | None = ..., /): ...
def OutputDebugString(msg: str, /) -> None: ...
def EnableControlContainer(): ...
def PrintTraceback(tb, output) -> None: ...
def PumpWaitingMessages(__firstMessage: int = ..., __lastMessage: int = ...) -> int: ...
def RegisterWndClass(style, hCursor: int = ..., hBrush: int = ..., hIcon=...) -> str: ...
def RemoveRecentFile(index: int = ...) -> None: ...
def PrintTraceback(tb, output, /) -> None: ...
def PumpWaitingMessages(firstMessage: int = ..., lastMessage: int = ..., /) -> int: ...
def RegisterWndClass(style, hCursor: int = ..., hBrush: int = ..., hIcon=..., /) -> str: ...
def RemoveRecentFile(index: int = ..., /) -> None: ...
def SetAppHelpPath(): ...
def SetAppName(appName: str): ...
def SetCurrentInstanceHandle(newVal): ...
def SetCurrentResourceHandle(newVal): ...
def SetDialogBkColor(arg, arg1): ...
def SetProfileFileName(filename: str) -> None: ...
def SetRegistryKey(key: str) -> None: ...
def SetResource(dll) -> _win32typing.PyDLL: ...
def SetStatusText(msg: str, bForce: int = ...) -> None: ...
def SetAppName(appName: str, /): ...
def SetCurrentInstanceHandle(newVal, /): ...
def SetCurrentResourceHandle(newVal, /): ...
def SetDialogBkColor(arg, arg1, /): ...
def SetProfileFileName(filename: str, /) -> None: ...
def SetRegistryKey(key: str, /) -> None: ...
def SetResource(dll, /) -> _win32typing.PyDLL: ...
def SetStatusText(msg: str, bForce: int = ..., /) -> None: ...
def StartDebuggerPump() -> None: ...
def StopDebuggerPump() -> None: ...
def TranslateMessage(): ...
def TranslateVirtualKey(vk) -> str: ...
def WinHelp(arg, data: str) -> None: ...
def WriteProfileVal(section: str, entry: str, value: str) -> None: ...
def AddToRecentFileList(*args, **kwargs): ... # incomplete
def CreateImageList(*args, **kwargs): ... # incomplete
def CreateListCtrl(*args, **kwargs): ... # incomplete
def CreateListView(*args, **kwargs): ... # incomplete
def CreateRectRgn(*args, **kwargs): ... # incomplete
def GetRecentFileList(*args, **kwargs): ... # incomplete
def OutputDebug(*args, **kwargs): ... # incomplete
def TranslateVirtualKey(vk, /) -> str: ...
def WinHelp(arg, data: str, /) -> None: ...
def WriteProfileVal(section: str, entry: str, value: str, /) -> None: ...
def AddToRecentFileList(*args): ... # incomplete
def CreateImageList(*args): ... # incomplete
def CreateListCtrl(*args): ... # incomplete
def CreateListView(*args): ... # incomplete
def CreateRectRgn(*args): ... # incomplete
def GetRecentFileList(*args): ... # incomplete
def OutputDebug(*args): ... # incomplete
AFX_IDW_PANE_FIRST: int
AFX_IDW_PANE_LAST: int

View File

@@ -1,16 +1,16 @@
import _win32typing
def AfxOleInit(enabled) -> None: ...
def AfxOleInit(enabled, /) -> None: ...
def CreateInsertDialog() -> _win32typing.PyCOleInsertDialog: ...
def CreateOleClientItem() -> _win32typing.PyCOleClientItem: ...
def CreateOleDocument(template: _win32typing.PyCDocTemplate, fileName: str | None = ...) -> _win32typing.PyCOleDocument: ...
def CreateOleDocument(template: _win32typing.PyCDocTemplate, fileName: str | None = ..., /) -> _win32typing.PyCOleDocument: ...
def DaoGetEngine() -> _win32typing.PyIDispatch: ...
def GetIDispatchForWindow() -> _win32typing.PyIDispatch: ...
def OleGetUserCtrl(): ...
def OleSetUserCtrl(bUserCtrl): ...
def SetMessagePendingDelay(delay) -> None: ...
def EnableNotRespondingDialog(enabled) -> None: ...
def EnableBusyDialog(*args, **kwargs): ... # incomplete
def OleSetUserCtrl(bUserCtrl, /): ...
def SetMessagePendingDelay(delay, /) -> None: ...
def EnableNotRespondingDialog(enabled, /) -> None: ...
def EnableBusyDialog(*args): ... # incomplete
COleClientItem_activeState: int
COleClientItem_activeUIState: int