Add deprecation decorator and comments for pywin32 (#11570)

Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
This commit is contained in:
Avasam
2024-03-11 15:36:44 -04:00
committed by GitHub
parent 3802899a01
commit 579d208b19
11 changed files with 186 additions and 44 deletions
+1 -5
View File
@@ -54,11 +54,7 @@ def Dispatch(
) -> CDispatch: ...
def MakeOleRepr(IDispatch, typeinfo, typecomp): ...
def DumbDispatch(
IDispatch,
userName: Incomplete | None = ...,
createClass: Incomplete | None = ...,
UnicodeToString: Incomplete | None = ...,
clsctx=...,
IDispatch, userName: Incomplete | None = ..., createClass: Incomplete | None = ..., UnicodeToString: None = ..., clsctx=...
): ...
class CDispatch:
+7 -1
View File
@@ -1,5 +1,5 @@
from _typeshed import Incomplete
from typing_extensions import TypeAlias
from typing_extensions import TypeAlias, deprecated
from win32com.server.exception import IsCOMServerException as IsCOMServerException
from win32com.util import IIDToInterfaceName as IIDToInterfaceName
@@ -16,6 +16,12 @@ class DispatcherWin32trace(DispatcherTrace):
class DispatcherOutputDebugString(DispatcherTrace): ...
@deprecated(
"""\
The DispatcherWin32dbg dispatcher is deprecated!
Please let the developer know if this is a problem.
Uncomment the relevant lines in dispatcher.py to re-enable"""
)
class DispatcherWin32dbg(DispatcherBase):
def __init__(self, policyClass, ob) -> None: ...