From: Christian Heller Date: Thu, 11 Sep 2025 14:32:09 +0000 (+0200) Subject: Rename variable for greater clarity. X-Git-Url: https://plomlompom.com/repos/reset_cookie?a=commitdiff_plain;h=e95037eaf8ce222c2c4afe22f7e1f730d15e044b;p=ircplom Rename variable for greater clarity. --- 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]]: