From acf24f02e3c9591640951c1a4926c456eadcb248 Mon Sep 17 00:00:00 2001 From: GeoJulien Date: Mon, 2 Dec 2024 12:18:24 +0100 Subject: [PATCH] update(quality): add type hint to calm down sonarqube --- mkdocs_rss_plugin/integrations/theme_material_base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mkdocs_rss_plugin/integrations/theme_material_base.py b/mkdocs_rss_plugin/integrations/theme_material_base.py index e5215fc..ee01522 100644 --- a/mkdocs_rss_plugin/integrations/theme_material_base.py +++ b/mkdocs_rss_plugin/integrations/theme_material_base.py @@ -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