Skip to content

Commit

Permalink
refactor(camtools/render.py): update font_type parameter type to us…
Browse files Browse the repository at this point in the history
…e `Literal` for better type safety and clarity
  • Loading branch information
yxlao committed Jan 10, 2025
1 parent bfbf4b2 commit 6b206eb
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 @@ -543,7 +543,7 @@ def render(
def render_text(
text: str,
font_size: int = 72,
font_type: str = "tex",
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",
Expand Down

0 comments on commit 6b206eb

Please sign in to comment.