Add comments to functions.
This commit is contained in:
parent
1fda5e0138
commit
8ac998ef7d
|
@ -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])
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue