Skip to content
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
363 changes: 47 additions & 316 deletions comtypes/_automation.py

Large diffs are not rendered by default.

3 changes: 1 addition & 2 deletions comtypes/_comobject.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
IProvideClassInfo,
IProvideClassInfo2,
ITypeInfo,
LoadRegTypeLib,
)

if TYPE_CHECKING:
Expand Down Expand Up @@ -240,8 +241,6 @@ def __prepare_comobject(self) -> None:
if ISupportErrorInfo not in interfaces:
interfaces += (ISupportErrorInfo,)
if hasattr(self, "_reg_typelib_"):
from comtypes.typeinfo import LoadRegTypeLib

self._COMObject__typelib = LoadRegTypeLib(*self._reg_typelib_)
if hasattr(self, "_reg_clsid_"):
if IProvideClassInfo not in interfaces:
Expand Down
2 changes: 1 addition & 1 deletion comtypes/_memberspec.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ def _resolve_argspec(
- paramflags is a sequence of `(pflags: int, argname: str, | None[, defval: Any])`.
- argtypes is a sequence of `type[_CDataType]`.
"""
from comtypes.automation import VARIANT
from comtypes._automation import VARIANT

paramflags = []
argtypes = []
Expand Down
Loading
Loading