Skip to content

pywin32: Remove IID that doesn't exist at runtime #8930

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 19, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions stubs/pywin32/METADATA.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,6 @@ version = "304.*"
[tool.stubtest]
# The library only works on Windows; we currently only run stubtest on Ubuntu for third-party stubs in CI.
# See #8660
# `ignore_missing_stub = false` crashes stubtest. This should be fixed in next mypy update
# https://github.com/python/mypy/issues/13822
skip = true
1 change: 0 additions & 1 deletion stubs/pywin32/win32comext/adsi/adsi.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ from _typeshed import Incomplete
from typing_extensions import TypeAlias

import _win32typing
from pywintypes import IID as IID
from win32.lib.pywintypes import com_error

error: TypeAlias = com_error # noqa: Y042
Expand Down
1 change: 0 additions & 1 deletion stubs/pywin32/win32comext/authorization/authorization.pyi
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import _win32typing
from pywintypes import IID as IID

def EditSecurity(*args, **kwargs): ... # incomplete

Expand Down
1 change: 0 additions & 1 deletion stubs/pywin32/win32comext/axcontrol/axcontrol.pyi
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import _win32typing
from pywintypes import IID as IID

def OleCreate(
clsid,
Expand Down
1 change: 0 additions & 1 deletion stubs/pywin32/win32comext/axdebug/axdebug.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
# "ImportError: DLL load failed while importing axdebug: The specified module could not be found."
# https://github.com/python/mypy/issues/13822
import _win32typing
from pywintypes import IID as IID

APPBREAKFLAG_DEBUGGER_BLOCK: int
APPBREAKFLAG_DEBUGGER_HALT: int
Expand Down
1 change: 0 additions & 1 deletion stubs/pywin32/win32comext/axscript/axscript.pyi
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import _win32typing
from pywintypes import IID as IID

CATID_ActiveScript: _win32typing.PyIID
CATID_ActiveScriptParse: _win32typing.PyIID
Expand Down
1 change: 0 additions & 1 deletion stubs/pywin32/win32comext/bits/bits.pyi
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import _win32typing
from pywintypes import IID as IID

BG_AUTH_SCHEME_BASIC: int
BG_AUTH_SCHEME_DIGEST: int
Expand Down
1 change: 0 additions & 1 deletion stubs/pywin32/win32comext/directsound/directsound.pyi
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
from _typeshed import Incomplete

import _win32typing
from pywintypes import IID as IID

def DirectSoundCreate(guid: _win32typing.PyIID | None = ..., unk: Incomplete | None = ...) -> _win32typing.PyIUnknown: ...
def DirectSoundEnumerate(): ...
Expand Down
1 change: 0 additions & 1 deletion stubs/pywin32/win32comext/ifilter/ifilter.pyi
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import _win32typing
from pywintypes import IID as IID

def BindIFilterFromStorage(*args, **kwargs): ... # incomplete
def BindIFilterFromStream(*args, **kwargs): ... # incomplete
Expand Down
1 change: 0 additions & 1 deletion stubs/pywin32/win32comext/mapi/exchange.pyi
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import _win32typing
from pywintypes import IID as IID

OPENSTORE_HOME_LOGON: int
OPENSTORE_OVERRIDE_HOME_MDB: int
Expand Down
1 change: 0 additions & 1 deletion stubs/pywin32/win32comext/mapi/mapi.pyi
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
from _typeshed import Incomplete

import _win32typing
from pywintypes import IID as IID

def HexFromBin(val: str) -> str: ...
def BinFromHex(val: str) -> str: ...
Expand Down
1 change: 0 additions & 1 deletion stubs/pywin32/win32comext/propsys/propsys.pyi
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
from typing_extensions import TypeAlias

import _win32typing
from pywintypes import IID as IID
from win32.lib.pywintypes import com_error

error: TypeAlias = com_error # noqa: Y042
Expand Down
1 change: 0 additions & 1 deletion stubs/pywin32/win32comext/shell/shell.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ from _typeshed import Incomplete
from typing_extensions import TypeAlias

import _win32typing
from pywintypes import IID as IID
from win32.lib.pywintypes import com_error

error: TypeAlias = com_error # noqa: Y042
Expand Down
1 change: 0 additions & 1 deletion stubs/pywin32/win32comext/taskscheduler/taskscheduler.pyi
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import _win32typing
from pywintypes import IID as IID

CLSID_CTask: _win32typing.PyIID
CLSID_CTaskScheduler: _win32typing.PyIID
Expand Down