From 8ac998ef7df7fe26ddd746064f7298e560e2d5b9 Mon Sep 17 00:00:00 2001 From: Bauke Date: Mon, 15 Jan 2024 13:04:04 +0100 Subject: [PATCH] Add comments to functions. --- render.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/render.py b/render.py index 2d53e7d..a1a9eec 100755 --- a/render.py +++ b/render.py @@ -27,6 +27,7 @@ def convert_to_image( width: Optional[int] = None, height: Optional[int] = None, ) -> None: + """Convert an SVG to an image with `inkscape`.""" inkscape_args: List[str] = ["inkscape", str(source), "-o", str(destination)] if width is not None and height is not None: @@ -37,6 +38,7 @@ def convert_to_image( def mat2_image(image: Path) -> None: + """Run `mat2` on the image path.""" run(args=["mat2", "--inplace", image])