Skip to content

Commit 9d937ce

Browse files
committed
Fix mypy
1 parent e69009c commit 9d937ce

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/sphinx_codelinks/config.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -796,7 +796,7 @@ def convert_analyse_config(
796796
if src_discover:
797797
analyse_config_dict["src_files"] = src_discover.source_paths
798798
analyse_config_dict["src_dir"] = src_discover.src_discover_config.src_dir
799-
analyse_config_dict["comment_type"] = (
799+
analyse_config_dict["comment_type"] = CommentType(
800800
src_discover.src_discover_config.comment_type
801801
)
802802

@@ -862,5 +862,5 @@ def generate_project_configs(
862862
analyse_config = convert_analyse_config(analyse_section_config)
863863
analyse_config.get_oneline_needs = True # force to get oneline_need
864864
# Copy comment_type from source_discover_config to analyse_config
865-
analyse_config.comment_type = source_discover_config.comment_type
865+
analyse_config.comment_type = CommentType(source_discover_config.comment_type)
866866
project_config["analyse_config"] = analyse_config

0 commit comments

Comments
 (0)