Skip to content

Commit

Permalink
fmt import
Browse files Browse the repository at this point in the history
  • Loading branch information
newwingbird committed Oct 29, 2024
1 parent 4cbdb03 commit 50d392f
Showing 1 changed file with 11 additions and 20 deletions.
31 changes: 11 additions & 20 deletions comtypes/automation.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,29 +4,26 @@
import decimal
import sys
from ctypes import *
from ctypes import _Pointer, Array as _CArrayType
from _ctypes import CopyComPointer
from ctypes import Array as _CArrayType
from ctypes import _Pointer
from ctypes.wintypes import DWORD, LONG, UINT, VARIANT_BOOL, WCHAR, WORD
from typing import Any, ClassVar, Dict, List, Optional, TYPE_CHECKING, Type
from typing import TYPE_CHECKING, Any, ClassVar, Dict, List, Optional, Type

from _ctypes import CopyComPointer

from comtypes import _CData, BSTR, COMError, COMMETHOD, GUID, IID, IUnknown, STDMETHOD
from comtypes.hresult import *
from comtypes._memberspec import _DispMemberSpec
import comtypes.patcher
import comtypes
import comtypes.patcher
from comtypes import BSTR, COMMETHOD, GUID, IID, STDMETHOD, COMError, IUnknown, _CData
from comtypes._memberspec import _DispMemberSpec
from comtypes.hresult import *
from comtypes.safearray import _midlSAFEARRAY

if TYPE_CHECKING:
from ctypes import _CArgObject

from comtypes import hints # type: ignore
from comtypes import _safearray
else:
_CArgObject = type(byref(c_int()))
try:
from comtypes import _safearray
except (ImportError, AttributeError):

class _safearray(object):
tagSAFEARRAY = None


LCID = DWORD
Expand Down Expand Up @@ -991,12 +988,6 @@ def Invoke(self, dispid: int, *args: Any, **kw: Any) -> Any:
_ctype_to_vartype[c_char] = VT_UI1


try:
from comtypes.safearray import _midlSAFEARRAY
except (ImportError, AttributeError):
pass


# fmt: off
__known_symbols__ = [
"CURRENCY", "CY", "tagCY", "DECIMAL", "tagDEC", "DISPATCH_METHOD",
Expand Down

0 comments on commit 50d392f

Please sign in to comment.