From e95037eaf8ce222c2c4afe22f7e1f730d15e044b Mon Sep 17 00:00:00 2001 From: Christian Heller Date: Thu, 11 Sep 2025 16:32:09 +0200 Subject: [PATCH] Rename variable for greater clarity. --- ircplom/client_tui.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ircplom/client_tui.py b/ircplom/client_tui.py index d1f026d..5d920b9 100644 --- a/ircplom/client_tui.py +++ b/ircplom/client_tui.py @@ -38,12 +38,12 @@ class _UpdatingNode(AutoAttrMixin): return cls() @classmethod - def _scope(cls, path: str) -> LogScope: + def _scope(cls, key: str) -> LogScope: scopes: dict[str, LogScope] = {} for c in cls.__mro__: if hasattr(c, 'log_scopes'): scopes = c.log_scopes | scopes - return scopes.get(path, scopes['']) + return scopes.get(key, scopes['']) def recursive_set_and_report_change( self, update: _Update) -> Optional[tuple[LogScope, Any]]: -- 2.30.2