Skip to content

Commit

Permalink
Fix mypy and black
Browse files Browse the repository at this point in the history
  • Loading branch information
Avasam committed May 10, 2024
1 parent 9d08395 commit 4f5b382
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
3 changes: 2 additions & 1 deletion com/win32com/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@
### Modules will work if loaded into "win32comext" path.

# Ensure we're working on __path__ as list, not Iterable
__path__: list[str] = list(__path__)
__path__: list[str] = list(__path__) # type: ignore[no-redef]


def SetupEnvironment():
HKEY_LOCAL_MACHINE = -2147483646 # Avoid pulling in win32con for just these...
Expand Down
4 changes: 3 additions & 1 deletion com/win32com/test/GenTestScripts.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@
def GetGenPath():
import win32api

return os.path.join(win32api.GetFullPathName(next(iter(win32com.test.__path__))), genDir)
return os.path.join(
win32api.GetFullPathName(next(iter(win32com.test.__path__))), genDir
)


def GenerateFromRegistered(fname, *loadArgs):
Expand Down
4 changes: 3 additions & 1 deletion com/win32com/test/testAXScript.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,9 @@ def testHost(self):

def testCScript(self):
file = win32api.GetFullPathName(
os.path.join(next(iter(win32com.axscript.__path__)), "Demos\\Client\\wsh\\test.pys")
os.path.join(
next(iter(win32com.axscript.__path__)), "Demos\\Client\\wsh\\test.pys"
)
)
cmd = 'cscript.exe "%s"' % (file)
if verbose:
Expand Down

0 comments on commit 4f5b382

Please sign in to comment.