Skip to content

Commit

Permalink
Update automation.py
Browse files Browse the repository at this point in the history
  • Loading branch information
moi15moi committed Jan 29, 2025
1 parent 874c6c9 commit a99f035
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion comtypes/automation.py
Original file line number Diff line number Diff line change
Expand Up @@ -820,7 +820,8 @@ def GetTypeInfo(self, index: int, lcid: int = 0) -> "hints.ITypeInfo":
"""Return type information. Index 0 specifies typeinfo for IDispatch"""
import comtypes.typeinfo

result = self.__com_GetTypeInfo(index, lcid) # type: ignore
result = POINTER(IUnknown)()
self.__com_GetTypeInfo(index, lcid, byref(result)) # type: ignore
return result.QueryInterface(comtypes.typeinfo.ITypeInfo)

def GetIDsOfNames(self, *names: str, **kw: Any) -> List[int]:
Expand Down

0 comments on commit a99f035

Please sign in to comment.