Skip to content

Commit 2492b90

Browse files
committed
Fix mypy
1 parent dda93aa commit 2492b90

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/sphinx_codelinks/config.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -803,9 +803,8 @@ def convert_analyse_config(
803803
except ValueError:
804804
# If invalid comment_type, keep the string value
805805
# Validation will catch this error later
806-
analyse_config_dict["comment_type"] = (
807-
src_discover.src_discover_config.comment_type
808-
) # type: ignore[typeddict-item]
806+
comment_type_str: str = src_discover.src_discover_config.comment_type
807+
analyse_config_dict["comment_type"] = comment_type_str # type: ignore[typeddict-item]
809808

810809
return SourceAnalyseConfig(**analyse_config_dict)
811810

0 commit comments

Comments
 (0)