mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-16 00:37:10 +08:00
Add default values for third-party stubs beginning with 'P' (#9957)
This commit is contained in:
@@ -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): ...
|
||||
|
||||
@@ -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 = ...,
|
||||
): ...
|
||||
|
||||
|
||||
@@ -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): ...
|
||||
|
||||
Reference in New Issue
Block a user