From 1eed8cefa74fd4812a51fe39c5b3f607223fbff9 Mon Sep 17 00:00:00 2001 From: Just van Rossum Date: Wed, 20 Mar 2024 10:22:54 +0100 Subject: [PATCH] Fix mypy complaints --- src/fontra_compile/compile_fontmake_action.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/fontra_compile/compile_fontmake_action.py b/src/fontra_compile/compile_fontmake_action.py index a93040d..84f07d9 100644 --- a/src/fontra_compile/compile_fontmake_action.py +++ b/src/fontra_compile/compile_fontmake_action.py @@ -30,6 +30,7 @@ async def connect( self.input = None async def process(self, outputDir: os.PathLike = pathlib.Path()) -> None: + assert self.input is not None outputDir = pathlib.Path(outputDir) outputFontPath = outputDir / self.destination @@ -47,7 +48,7 @@ async def process(self, outputDir: os.PathLike = pathlib.Path()) -> None: command = [ "fontmake", "-m", - designspacePath, + os.fspath(designspacePath), "-o", "variable", "--output-path",