mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-09 21:46:42 +08:00
Various pywin32 improvements (#11616)
This commit is contained in:
@@ -1,4 +1,6 @@
|
||||
from _typeshed import Incomplete
|
||||
from _typeshed import Incomplete, Unused
|
||||
from collections.abc import Sequence
|
||||
from typing import SupportsInt, overload
|
||||
from typing_extensions import TypeAlias, deprecated
|
||||
|
||||
import _win32typing
|
||||
@@ -72,7 +74,7 @@ def MakePyFactory(iid: _win32typing.PyIID, /) -> _win32typing.PyIClassFactory: .
|
||||
@deprecated("Use pywintypes.IID() instead.")
|
||||
def MakeIID(iidString: str, is_bytes: bool = ..., /) -> _win32typing.PyIID: ...
|
||||
@deprecated("Use pywintypes.Time() instead.")
|
||||
def MakeTime(timeRepr, /) -> TimeType: ...
|
||||
def MakeTime(timeRepr: SupportsInt | Sequence[SupportsInt] | TimeType, /) -> TimeType: ...
|
||||
def MkParseDisplayName(
|
||||
displayName: str, bindCtx: _win32typing.PyIBindCtx | None = ..., /
|
||||
) -> tuple[_win32typing.PyIMoniker, Incomplete, _win32typing.PyIBindCtx]: ...
|
||||
@@ -101,28 +103,34 @@ def RevokeActiveObject(handle, /) -> None: ...
|
||||
def RegisterDragDrop(hwnd: int, dropTarget: _win32typing.PyIDropTarget, /) -> None: ...
|
||||
def RevokeDragDrop(hwnd: int, /) -> None: ...
|
||||
def DoDragDrop() -> None: ...
|
||||
def StgCreateDocfile(name: str, mode, reserved: int = ..., /) -> _win32typing.PyIStorage: ...
|
||||
def StgCreateDocfile(name: str | None, mode: int, reserved: int = ..., /) -> _win32typing.PyIStorage: ...
|
||||
def StgCreateDocfileOnILockBytes(lockBytes: _win32typing.PyILockBytes, mode, reserved=..., /) -> _win32typing.PyIStorage: ...
|
||||
def StgOpenStorageOnILockBytes(
|
||||
lockBytes: _win32typing.PyILockBytes,
|
||||
stgPriority: _win32typing.PyIStorage,
|
||||
mode,
|
||||
snbExclude: Incomplete | None = ...,
|
||||
reserved: int = ...,
|
||||
/,
|
||||
) -> _win32typing.PyIStorage: ...
|
||||
def StgIsStorageFile(name: str, /): ...
|
||||
def STGMEDIUM() -> _win32typing.PySTGMEDIUM: ...
|
||||
@overload
|
||||
def StgOpenStorage(
|
||||
name: str, other: _win32typing.PyIStorage, mode, snbExclude: Incomplete | None = ..., reserved=..., /
|
||||
name: str | None, other: _win32typing.PyIStorage, mode: int, snbExclude: Unused = ..., reserved: int = ..., /
|
||||
) -> _win32typing.PyIStorage: ...
|
||||
@overload
|
||||
def StgOpenStorage(
|
||||
name: str, other: _win32typing.PyIStorage | None, mode: int, snbExclude: Unused = ..., reserved: int = ..., /
|
||||
) -> _win32typing.PyIStorage: ...
|
||||
def StgOpenStorageEx(
|
||||
Name: str, Mode, stgfmt, Attrs, riid: _win32typing.PyIID, StgOptions: Incomplete | None = ...
|
||||
Name: str, Mode: int, stgfmt: int, Attrs: int, riid: _win32typing.PyIID, StgOptions: Incomplete | None = ...
|
||||
) -> _win32typing.PyIStorage: ...
|
||||
def StgCreateStorageEx(
|
||||
Name: str,
|
||||
Mode,
|
||||
stgfmt,
|
||||
Attrs,
|
||||
Mode: int,
|
||||
stgfmt: int,
|
||||
Attrs: int,
|
||||
riid: _win32typing.PyIID,
|
||||
StgOptions: Incomplete | None = ...,
|
||||
SecurityDescriptor: _win32typing.PySECURITY_DESCRIPTOR | None = ...,
|
||||
|
||||
Reference in New Issue
Block a user