Skip to content

Commit

Permalink
refactor(camtools/render.py): enforce type safety for multiline_align…
Browse files Browse the repository at this point in the history
…ment parameter by using Literal type hint
  • Loading branch information
yxlao committed Jan 10, 2025
1 parent 6b206eb commit 05cb604
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion camtools/render.py
Original file line number Diff line number Diff line change
Expand Up @@ -546,7 +546,7 @@ def render_text(
font_type: Literal["tex", "serif", "sans", "mono"] = "tex",
font_color: Tuple[float, float, float] = (0, 0, 0),
tight_layout: bool = False,
multiline_alignment: str = "left",
multiline_alignment: Literal["left", "center", "right"] = "left",
padding_tblr: Tuple[int, int, int, int] = (0, 0, 0, 0),
) -> Float[np.ndarray, "h w"]:
"""
Expand Down

0 comments on commit 05cb604

Please sign in to comment.