mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-05-19 23:09:55 +08:00
Add deprecation decorator and comments for pywin32 (#11570)
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
This commit is contained in:
@@ -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:
|
||||
|
||||
@@ -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: ...
|
||||
|
||||
|
||||
Reference in New Issue
Block a user