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
@@ -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: ...