Add default values for third-party stubs beginning with 'P' (#9957)

This commit is contained in:
Alex Waygood
2023-03-27 18:58:53 +01:00
committed by GitHub
parent 20f9b3685d
commit 6fd7e36e80
248 changed files with 2181 additions and 2133 deletions

View File

@@ -4,7 +4,7 @@ class ISAPIError(Exception):
errno: Incomplete
strerror: Incomplete
funcname: Incomplete
def __init__(self, errno, strerror: Incomplete | None = ..., funcname: Incomplete | None = ...) -> None: ...
def __init__(self, errno, strerror: Incomplete | None = None, funcname: Incomplete | None = None) -> None: ...
class FilterError(ISAPIError): ...
class ExtensionError(ISAPIError): ...

View File

@@ -14,7 +14,7 @@ def Dispatch(
userName: str | None = ...,
resultCLSID: _Stringifiable | None = ...,
typeinfo: _win32typing.PyITypeInfo | None = ...,
UnicodeToString: None = ...,
UnicodeToString: None = None,
clsctx: int = ...,
) -> dynamic.CDispatch: ...
def DispatchEx(
@@ -23,7 +23,7 @@ def DispatchEx(
userName: Incomplete | None = ...,
resultCLSID: Incomplete | None = ...,
typeinfo: Incomplete | None = ...,
UnicodeToString: None = ...,
UnicodeToString: None = None,
clsctx: Incomplete | None = ...,
): ...

View File

@@ -15,7 +15,7 @@ class _DispatchCreateClass(Protocol[_T_co]):
IDispatch: str | PyIDispatchType | _GoodDispatchTypes | PyIUnknownType,
olerepr: build.DispatchItem | build.LazyDispatchItem,
userName: str | None = ...,
UnicodeToString: None = ...,
UnicodeToString: None = None,
lazydata: Incomplete | None = ...,
) -> _T_co: ...
@@ -40,16 +40,16 @@ def Dispatch(
userName: str | None,
createClass: _DispatchCreateClass[_T],
typeinfo: _win32typing.PyITypeInfo | None = ...,
UnicodeToString: None = ...,
UnicodeToString: None = None,
clsctx: int = ...,
) -> _T: ...
@overload
def Dispatch(
IDispatch: str | PyIDispatchType | _GoodDispatchTypes | PyIUnknownType,
userName: str | None = ...,
createClass: None = ...,
createClass: None = None,
typeinfo: _win32typing.PyITypeInfo | None = ...,
UnicodeToString: None = ...,
UnicodeToString: None = None,
clsctx: int = ...,
) -> CDispatch: ...
def MakeOleRepr(IDispatch, typeinfo, typecomp): ...
@@ -67,7 +67,7 @@ class CDispatch:
IDispatch,
olerepr,
userName: Incomplete | None = ...,
UnicodeToString: None = ...,
UnicodeToString: None = None,
lazydata: Incomplete | None = ...,
) -> None: ...
def __call__(self, *args): ...