Skip to content

Commit

Permalink
typehints
Browse files Browse the repository at this point in the history
  • Loading branch information
henryborchers committed Oct 11, 2023
1 parent 7ab9d5c commit 9c54f9f
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions uiucprescon/build/deps.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import re
import sys
from typing import List
from distutils.ccompiler import CCompiler
import shutil
DEPS_REGEX = \
r'(?<=(Image has the following dependencies:(\n){2}))((?<=\s).*\.dll\n)*'
Expand All @@ -23,7 +24,7 @@ def parse_dumpbin_deps(file: str) -> List[str]:
return dlls


def remove_system_dlls(dlls):
def remove_system_dlls(dlls: List[str]) -> List[str]:
non_system_dlls = []
for dll in dlls:
if dll.startswith("api-ms-win-crt"):
Expand All @@ -38,7 +39,11 @@ def remove_system_dlls(dlls):
return non_system_dlls


def get_win_deps(dll_name, output_file, compiler):
def get_win_deps(
dll_name: str,
output_file: str,
compiler: CCompiler
) -> List[str]:
dumpbin_exe = shutil.which('dumpbin')
if dumpbin_exe is None:
dumpbin_exe = 'dumpbin'
Expand Down

0 comments on commit 9c54f9f

Please sign in to comment.