Replace Incomplete | None = None in third party stubs (#14063)

This commit is contained in:
Sebastian Rittau
2025-05-15 21:37:43 +02:00
committed by GitHub
parent acc51542c9
commit 126768408a
488 changed files with 2259 additions and 4044 deletions
+1 -6
View File
@@ -8,12 +8,7 @@ error = win32api.error
langid: Incomplete
def AddSourceToRegistry(
appName,
msgDLL: Incomplete | None = None,
eventLogType: str = "Application",
eventLogFlags: Incomplete | None = None,
categoryDLL: Incomplete | None = None,
categoryCount: int = 0,
appName, msgDLL=None, eventLogType: str = "Application", eventLogFlags=None, categoryDLL=None, categoryCount: int = 0
) -> None: ...
def RemoveSourceFromRegistry(appName, eventLogType: str = ...) -> None: ...
def ReportEvent(
@@ -13,7 +13,7 @@ def profile(fn, *args): ...
class SafeOutput:
softspace: int
redir: Incomplete
def __init__(self, redir: Incomplete | None = None) -> None: ...
def __init__(self, redir=None) -> None: ...
def write(self, message) -> None: ...
def flush(self) -> None: ...
def close(self) -> None: ...
@@ -140,9 +140,9 @@ class COMScript:
def Reset(self) -> None: ...
def ChangeScriptState(self, state) -> None: ...
def ApplyInScriptedSection(self, codeBlock: AXScriptCodeBlock | None, fn, args): ...
def CompileInScriptedSection(self, codeBlock: AXScriptCodeBlock, type, realCode: Incomplete | None = None): ...
def ExecInScriptedSection(self, codeBlock: AXScriptCodeBlock, globals, locals: Incomplete | None = None): ...
def EvalInScriptedSection(self, codeBlock, globals, locals: Incomplete | None = None): ...
def CompileInScriptedSection(self, codeBlock: AXScriptCodeBlock, type, realCode=None): ...
def ExecInScriptedSection(self, codeBlock: AXScriptCodeBlock, globals, locals=None): ...
def EvalInScriptedSection(self, codeBlock, globals, locals=None): ...
def HandleException(self, codeBlock: AXScriptCodeBlock | None) -> NoReturn: ...
def BeginScriptedSection(self) -> None: ...
def EndScriptedSection(self) -> None: ...