Skip to content

Commit

Permalink
Rename internal variables.
Browse files Browse the repository at this point in the history
  • Loading branch information
junkmd committed Dec 18, 2024
1 parent 91e15e7 commit d1e4365
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions comtypes/server/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,13 @@ def CreateInstance(
if dynamic:
if interface is not None:
raise ValueError("interface and dynamic are mutually exclusive")
realInterface = IDispatch
itf = IDispatch
elif interface is None:
realInterface = IUnknown
itf = IUnknown
else:
realInterface = interface
obj = POINTER(realInterface)()
self.__com_CreateInstance(punkouter, realInterface._iid_, byref(obj))
itf = interface
obj = POINTER(itf)()
self.__com_CreateInstance(punkouter, itf._iid_, byref(obj)) # type: ignore
if dynamic:
return comtypes.client.dynamic.Dispatch(obj)
elif interface is None:
Expand Down

0 comments on commit d1e4365

Please sign in to comment.