Skip to content

Commit

Permalink
delint long lines (#487)
Browse files Browse the repository at this point in the history
  • Loading branch information
junkmd authored Jun 15, 2023
1 parent 8954f61 commit 6532d32
Showing 1 changed file with 29 additions and 15 deletions.
44 changes: 29 additions & 15 deletions comtypes/typeinfo.py
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,9 @@ def FindName(
found = c_ushort(1)
tinfo = POINTER(ITypeInfo)()
memid = MEMBERID()
self.__com_FindName(name, lHashVal, byref(tinfo), byref(memid), byref(found)) # type: ignore
self.__com_FindName( # type: ignore
name, lHashVal, byref(tinfo), byref(memid), byref(found)
)
if found.value:
return memid.value, tinfo # type: ignore
return None
Expand Down Expand Up @@ -324,11 +326,18 @@ def GetImplTypeFlags(self, index: int) -> int:
...

# not yet wrapped
# STDMETHOD(HRESULT, 'Invoke', [PVOID, MEMBERID, WORD, POINTER(DISPPARAMS), POINTER(VARIANT), POINTER(EXCEPINFO), POINTER(UINT)]),
# STDMETHOD(
# HRESULT, 'Invoke', [
# PVOID, MEMBERID, WORD, POINTER(DISPPARAMS),
# POINTER(VARIANT), POINTER(EXCEPINFO), POINTER(UINT)
# ]
# ),
def GetDllEntry(
self, memid: int, invkind: int
) -> Tuple[Optional[str], Optional[str], int]:
"""Return the dll name, function name, and ordinal for a function and invkind."""
"""Return the dll name, function name, and ordinal for a function
and invkind.
"""
...

def GetRefTypeInfo(self, href: int) -> "ITypeInfo":
Expand Down Expand Up @@ -423,7 +432,9 @@ def Bind(
bindptr = BINDPTR()
desckind = DESCKIND()
ti: ITypeInfo = POINTER(ITypeInfo)() # type: ignore
self.__com_Bind(name, lHashVal, flags, byref(ti), byref(desckind), byref(bindptr)) # type: ignore
self.__com_Bind( # type: ignore
name, lHashVal, flags, byref(ti), byref(desckind), byref(bindptr)
)
kind = desckind.value
if kind == DESCKIND_FUNCDESC:
fd = bindptr.lpfuncdesc[0]
Expand Down Expand Up @@ -737,15 +748,14 @@ class tagFUNCDESC(Structure):

def __repr__(self):
return (
"FUNCDESC(memid=%s, cParams=%s, cParamsOpt=%s, callconv=%s, invkind=%s, funckind=%s)"
% (
self.memid,
self.cParams,
self.cParamsOpt,
self.callconv,
self.invkind,
self.funckind,
)
"FUNCDESC("
f"memid={self.memid}, "
f"cParams={self.cParams}, "
f"cParamsOpt={self.cParamsOpt}, "
f"callconv={self.callconv}, "
f"invkind={self.invkind,}, "
f"funckind={self.funckind}"
")"
)


Expand Down Expand Up @@ -1064,7 +1074,9 @@ class IProvideClassInfo(IUnknown):
if TYPE_CHECKING:

def GetClassInfo(self) -> ITypeInfo:
"""Returns the ITypeInfo interface for the object's coclass type information."""
"""Returns the ITypeInfo interface for the object's coclass type
information.
"""
...

_methods_ = [
Expand All @@ -1079,7 +1091,9 @@ class IProvideClassInfo2(IProvideClassInfo):
if TYPE_CHECKING:

def GetGUID(self, dwGuidKind: int) -> GUID:
"""Returns the GUID for the object's outgoing IID for its default event set"""
"""Returns the GUID for the object's outgoing IID for its default
event set
"""
...

_methods_ = [
Expand Down

0 comments on commit 6532d32

Please sign in to comment.