Skip to content

Commit 78250b3

Browse files
committed
Fixing mypy issues in cli_colors.py
1 parent a0bf353 commit 78250b3

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

manim/_config/cli_colors.py

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010

1111
def parse_cli_ctx(parser: configparser.SectionProxy) -> dict[str, Any]:
12-
formatter_settings: dict[str, str | int] = {
12+
formatter_settings: dict[str, str | int | None] = {
1313
"indent_increment": int(parser["indent_increment"]),
1414
"width": int(parser["width"]),
1515
"col1_max_width": int(parser["col1_max_width"]),
@@ -37,22 +37,24 @@ def parse_cli_ctx(parser: configparser.SectionProxy) -> dict[str, Any]:
3737
if theme is None:
3838
formatter = HelpFormatter.settings(
3939
theme=HelpTheme(**theme_settings),
40-
**formatter_settings, # type: ignore[arg-type]
40+
**formatter_settings,
4141
)
4242
elif theme.lower() == "dark":
4343
formatter = HelpFormatter.settings(
4444
theme=HelpTheme.dark().with_(**theme_settings),
45-
**formatter_settings, # type: ignore[arg-type]
45+
**formatter_settings,
4646
)
4747
elif theme.lower() == "light":
4848
formatter = HelpFormatter.settings(
4949
theme=HelpTheme.light().with_(**theme_settings),
50-
**formatter_settings, # type: ignore[arg-type]
50+
**formatter_settings,
5151
)
5252

53-
return Context.settings(
53+
return_val: dict[str, Any] = Context.settings(
5454
align_option_groups=parser["align_option_groups"].lower() == "true",
5555
align_sections=parser["align_sections"].lower() == "true",
5656
show_constraints=True,
5757
formatter_settings=formatter,
5858
)
59+
60+
return return_val

0 commit comments

Comments
 (0)