Skip to content

Commit

Permalink
update(quality): add type hint to calm down sonarqube
Browse files Browse the repository at this point in the history
  • Loading branch information
Guts committed Dec 2, 2024
1 parent 0a67ba6 commit b12a481
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mkdocs_rss_plugin/integrations/theme_material_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ def is_mkdocs_theme_material(
bool: True if the theme's name is 'material'. False if not.
"""
if mkdocs_config is None and isinstance(self.mkdocs_config, MkDocsConfig):
mkdocs_config = self.mkdocs_config
mkdocs_config: MkDocsConfig = self.mkdocs_config

self.IS_THEME_MATERIAL = mkdocs_config.theme.name == "material"
return self.IS_THEME_MATERIAL
Expand Down

0 comments on commit b12a481

Please sign in to comment.