Skip to content

Commit 0d8e8b4

Browse files
committed
Fix type hint and adjust test
1 parent 0dbc3d5 commit 0d8e8b4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

clr_loader/util/find.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ def find_runtimes() -> Iterator[DotnetCoreRuntimeSpec]:
105105
return find_runtimes_in_root(dotnet_root)
106106

107107

108-
def find_libmono(*, assembly_dir: str = None, sgen: bool = True) -> Path:
108+
def find_libmono(*, assembly_dir: Optional[str] = None, sgen: bool = True) -> Path:
109109
"""Find a suitable libmono dynamic library
110110
111111
On Windows and macOS, we check the default installation directories.

tests/test_common.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ def test_mono_trace_level(example_netstandard: Path):
7777
def test_mono_set_dir(example_netstandard: Path):
7878
from clr_loader import get_mono
7979

80-
mono = get_mono(assembly_dir="/usr/lib", config_dir="/etc")
80+
mono = get_mono(assembly_dir="/usr", config_dir="/etc")
8181
asm = mono.get_assembly(example_netstandard / "example.dll")
8282

8383
run_tests(asm)

0 commit comments

Comments
 (0)