Skip to content

Commit 7067b20

Browse files
committed
fix passing keyword arguments in client.dynamic (enthought#432)
(cherry picked from commit 32d6621)
1 parent a87a226 commit 7067b20

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

comtypes/client/dynamic.py

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -46,21 +46,17 @@ def __call__(self, *args):
4646

4747
def __getitem__(self, *args):
4848
return self._obj._comobj.Invoke(
49-
self._id, *args, **dict(_invkind=comtypes.automation.DISPATCH_PROPERTYGET)
49+
self._id, *args, _invkind=comtypes.automation.DISPATCH_PROPERTYGET
5050
)
5151

5252
def __setitem__(self, *args):
5353
if _is_object(args[-1]):
5454
self._obj._comobj.Invoke(
55-
self._id,
56-
*args,
57-
**dict(_invkind=comtypes.automation.DISPATCH_PROPERTYPUTREF)
55+
self._id, *args, _invkind=comtypes.automation.DISPATCH_PROPERTYPUTREF
5856
)
5957
else:
6058
self._obj._comobj.Invoke(
61-
self._id,
62-
*args,
63-
**dict(_invkind=comtypes.automation.DISPATCH_PROPERTYPUT)
59+
self._id, *args, _invkind=comtypes.automation.DISPATCH_PROPERTYPUT
6460
)
6561

6662

0 commit comments

Comments
 (0)