Skip to content

Commit

Permalink
Add type: ignore comments.
Browse files Browse the repository at this point in the history
  • Loading branch information
junkmd committed Sep 27, 2024
1 parent 40e9f7d commit 43437d0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions comtypes/_post_coinit/unknwn.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,11 +157,11 @@ def __setitem__(self, index, value):
# CopyComPointer should do if index != 0.
if bool(value):
value.AddRef()
super(POINTER(p), self).__setitem__(index, value)
super(POINTER(p), self).__setitem__(index, value) # type: ignore
return
from _ctypes import CopyComPointer

CopyComPointer(value, self)
CopyComPointer(value, self) # type: ignore

def __setattr__(self, name, value):
if name == "_methods_":
Expand Down

0 comments on commit 43437d0

Please sign in to comment.