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 a04b7de commit 841dd84
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions uiucprescon/build/conan_libs.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import sys
import shutil
import abc
import typing
from typing import Dict, List, Optional, cast, Set, Tuple, Union
import setuptools
from distutils import ccompiler, msvccompiler
Expand Down Expand Up @@ -218,7 +219,7 @@ def initialize_options(self) -> None:
self.compiler_libcxx: Optional[str] = None
self.conanfile: Optional[str] = None

def __init__(self, dist, **kw):
def __init__(self, dist: setuptools.dist.Distribution, **kw: str) -> None:
self.install_libs = True
self.build_libs = ['outdated']
super().__init__(dist, **kw)
Expand Down Expand Up @@ -401,7 +402,7 @@ def build_conan(
command.run()


def get_pyproject_toml_data():
def get_pyproject_toml_data() -> Dict[str, typing.Any]:

pyproj_toml = Path('pyproject.toml')
with open(pyproj_toml) as f:
Expand Down Expand Up @@ -436,7 +437,7 @@ def build_deps_with_conan(
)


def fixup_library(shared_library: str):
def fixup_library(shared_library: str) -> None:
if sys.platform == "darwin":
otool = shutil.which("otool")
install_name_tool = shutil.which('install_name_tool')
Expand Down

0 comments on commit 841dd84

Please sign in to comment.