Bump pywin32 to 307 (#12742)

This commit is contained in:
Avasam
2024-10-08 04:12:04 -04:00
committed by GitHub
parent dbd0d35217
commit 8bc20e7415
47 changed files with 341 additions and 720 deletions

View File

@@ -0,0 +1 @@
from win32comext.axscript.client.debug import *

View File

@@ -0,0 +1 @@
from win32comext.axscript.client.framework import *

View File

@@ -1 +0,0 @@
from win32comext.axscript.server.error import *

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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