From 686b00d224fc6f7004dc6a3e94019f793ee3b5ec Mon Sep 17 00:00:00 2001 From: Chuck <33324927+ChuckBuilds@users.noreply.github.com> Date: Sun, 4 Oct 2026 17:11:09 -0400 Subject: [PATCH] fix(fonts): call the font manager's forget methods without a None-able local Pylint E1102 (Codacy) read getattr(..., None) as possibly not callable. Co-Authored-By: Claude Opus 5.5 --- src/plugin_system/plugin_manager.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/plugin_system/plugin_manager.py b/src/plugin_system/plugin_manager.py index 2061fff4..5e6e2956 100644 --- a/src/plugin_system/plugin_manager.py +++ b/src/plugin_system/plugin_manager.py @@ -606,11 +606,10 @@ class PluginManager: if self.font_manager is None: return for name in ('forget_manager_fonts', 'forget_plugin_fonts'): - forget = getattr(self.font_manager, name, None) - if forget is None: + if not hasattr(self.font_manager, name): continue try: - forget(plugin_id) + getattr(self.font_manager, name)(plugin_id) except Exception as e: self.logger.debug("Could not forget fonts of %s (%s): %s", plugin_id, name, e)