mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-08-14 03:51:06 +08:00
Replace Incomplete | None = None in third party stubs (#14063)
This commit is contained in:
@@ -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: ...
|
||||
|
||||
Reference in New Issue
Block a user