mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-30 16:14:24 +08:00
Bump pywin32 to 307 (#12742)
This commit is contained in:
1
stubs/pywin32/win32com/axscript/client/debug.pyi
Normal file
1
stubs/pywin32/win32com/axscript/client/debug.pyi
Normal file
@@ -0,0 +1 @@
|
||||
from win32comext.axscript.client.debug import *
|
||||
1
stubs/pywin32/win32com/axscript/client/framework.pyi
Normal file
1
stubs/pywin32/win32com/axscript/client/framework.pyi
Normal file
@@ -0,0 +1 @@
|
||||
from win32comext.axscript.client.framework import *
|
||||
@@ -1 +0,0 @@
|
||||
from win32comext.axscript.server.error import *
|
||||
@@ -3,7 +3,7 @@ from typing import Final
|
||||
from typing_extensions import TypeAlias
|
||||
|
||||
import _win32typing
|
||||
from win32com.client import dynamic as dynamic, gencache as gencache
|
||||
from win32com.client import dynamic
|
||||
|
||||
_Stringifiable: TypeAlias = object
|
||||
|
||||
@@ -15,7 +15,6 @@ def Dispatch(
|
||||
userName: str | None = ...,
|
||||
resultCLSID: _Stringifiable | None = ...,
|
||||
typeinfo: _win32typing.PyITypeInfo | None = ...,
|
||||
UnicodeToString: None = None,
|
||||
clsctx: int = ...,
|
||||
) -> dynamic.CDispatch: ...
|
||||
def DispatchEx(
|
||||
@@ -24,7 +23,6 @@ def DispatchEx(
|
||||
userName: Incomplete | None = ...,
|
||||
resultCLSID: Incomplete | None = ...,
|
||||
typeinfo: Incomplete | None = ...,
|
||||
UnicodeToString: None = None,
|
||||
clsctx: Incomplete | None = ...,
|
||||
): ...
|
||||
|
||||
@@ -67,7 +65,7 @@ class CoClassBaseClass:
|
||||
def __maybe__int__(self, *args): ...
|
||||
def __maybe__iter__(self): ...
|
||||
def __maybe__len__(self): ...
|
||||
def __maybe__nonzero__(self): ...
|
||||
def __maybe__bool__(self): ...
|
||||
|
||||
class VARIANT:
|
||||
varianttype: Incomplete
|
||||
|
||||
@@ -4,7 +4,7 @@ from typing_extensions import TypeAlias
|
||||
|
||||
import _win32typing
|
||||
from win32.lib.pywintypes import IIDType
|
||||
from win32com.client import build as build
|
||||
from win32com.client import build
|
||||
|
||||
_T_co = TypeVar("_T_co", covariant=True)
|
||||
_T = TypeVar("_T")
|
||||
@@ -15,7 +15,6 @@ class _DispatchCreateClass(Protocol[_T_co]):
|
||||
IDispatch: str | PyIDispatchType | _GoodDispatchTypes | PyIUnknownType,
|
||||
olerepr: build.DispatchItem | build.LazyDispatchItem,
|
||||
userName: str | None = ...,
|
||||
UnicodeToString: None = None,
|
||||
lazydata: Incomplete | None = ...,
|
||||
) -> _T_co: ...
|
||||
|
||||
@@ -27,7 +26,6 @@ ALL_INVOKE_TYPES: Incomplete
|
||||
|
||||
def debug_print(*args) -> None: ...
|
||||
def debug_attr_print(*args) -> None: ...
|
||||
def MakeMethod(func, inst, cls): ...
|
||||
|
||||
PyIDispatchType = _win32typing.PyIDispatch
|
||||
PyIUnknownType = _win32typing.PyIUnknown
|
||||
@@ -40,7 +38,6 @@ def Dispatch(
|
||||
userName: str | None,
|
||||
createClass: _DispatchCreateClass[_T],
|
||||
typeinfo: _win32typing.PyITypeInfo | None = ...,
|
||||
UnicodeToString: None = None,
|
||||
clsctx: int = ...,
|
||||
) -> _T: ...
|
||||
@overload
|
||||
@@ -49,23 +46,13 @@ def Dispatch(
|
||||
userName: str | None = ...,
|
||||
createClass: None = None,
|
||||
typeinfo: _win32typing.PyITypeInfo | None = ...,
|
||||
UnicodeToString: None = None,
|
||||
clsctx: int = ...,
|
||||
) -> CDispatch: ...
|
||||
def MakeOleRepr(IDispatch, typeinfo, typecomp): ...
|
||||
def DumbDispatch(
|
||||
IDispatch, userName: Incomplete | None = ..., createClass: Incomplete | None = ..., UnicodeToString: None = ..., clsctx=...
|
||||
): ...
|
||||
def DumbDispatch(IDispatch, userName: Incomplete | None = ..., createClass: Incomplete | None = ..., clsctx=...): ...
|
||||
|
||||
class CDispatch:
|
||||
def __init__(
|
||||
self,
|
||||
IDispatch,
|
||||
olerepr,
|
||||
userName: Incomplete | None = ...,
|
||||
UnicodeToString: None = None,
|
||||
lazydata: Incomplete | None = ...,
|
||||
) -> None: ...
|
||||
def __init__(self, IDispatch, olerepr, userName: Incomplete | None = ..., lazydata: Incomplete | None = ...) -> None: ...
|
||||
def __call__(self, *args): ...
|
||||
def __bool__(self) -> bool: ...
|
||||
def __dir__(self): ...
|
||||
|
||||
@@ -1,8 +1,5 @@
|
||||
from _typeshed import Incomplete
|
||||
|
||||
from win32com import olectl as olectl
|
||||
from win32com.server.exception import Exception as Exception
|
||||
|
||||
IConnectionPointContainer_methods: Incomplete
|
||||
IConnectionPoint_methods: Incomplete
|
||||
|
||||
|
||||
@@ -1,9 +1,6 @@
|
||||
from _typeshed import Incomplete
|
||||
from typing_extensions import TypeAlias, deprecated
|
||||
|
||||
from win32com.server.exception import IsCOMServerException as IsCOMServerException
|
||||
from win32com.util import IIDToInterfaceName as IIDToInterfaceName
|
||||
|
||||
class DispatcherBase:
|
||||
policy: Incomplete
|
||||
logger: Incomplete
|
||||
|
||||
@@ -19,7 +19,5 @@ class COMException(pythoncom.com_error):
|
||||
hresult: Incomplete | None = ...,
|
||||
) -> None: ...
|
||||
|
||||
Exception = COMException
|
||||
|
||||
def IsCOMException(t: Incomplete | None = ...): ...
|
||||
def IsCOMServerException(t: Incomplete | None = ...): ...
|
||||
|
||||
@@ -1,19 +1,9 @@
|
||||
from _typeshed import Incomplete
|
||||
from abc import ABC, abstractmethod
|
||||
|
||||
from pythoncom import (
|
||||
DISPID_COLLECT as DISPID_COLLECT,
|
||||
DISPID_CONSTRUCTOR as DISPID_CONSTRUCTOR,
|
||||
DISPID_DESTRUCTOR as DISPID_DESTRUCTOR,
|
||||
DISPID_UNKNOWN as DISPID_UNKNOWN,
|
||||
)
|
||||
from win32com.server.dispatcher import DispatcherTrace as DispatcherTrace, DispatcherWin32trace as DispatcherWin32trace
|
||||
from win32com.server.exception import COMException as COMException
|
||||
|
||||
S_OK: int
|
||||
IDispatchType: Incomplete
|
||||
IUnknownType: Incomplete
|
||||
error: str
|
||||
regSpec: str
|
||||
regPolicy: str
|
||||
regDispatcher: str
|
||||
|
||||
@@ -1,8 +1,6 @@
|
||||
from _typeshed import Incomplete
|
||||
|
||||
import _win32typing
|
||||
from win32com.server import policy as policy
|
||||
from win32com.server.exception import COMException as COMException
|
||||
|
||||
def wrap(ob, iid: Incomplete | None = ..., usePolicy: Incomplete | None = ..., useDispatcher: Incomplete | None = ...): ...
|
||||
def unwrap(ob): ...
|
||||
|
||||
@@ -2,8 +2,9 @@ from _typeshed import Incomplete
|
||||
from collections.abc import Callable
|
||||
from typing_extensions import TypeAlias
|
||||
|
||||
from pythoncom import com_error as com_error
|
||||
from win32com.client import gencache as gencache
|
||||
import pythoncom
|
||||
|
||||
com_error = pythoncom.com_error
|
||||
|
||||
# Type of pythoncom._univgw.WriteFromOutTuple
|
||||
# The two tuples must be of equal length
|
||||
|
||||
Reference in New Issue
Block a user