home · contact · privacy
Rename variable for greater clarity.
authorChristian Heller <c.heller@plomlompom.de>
Thu, 11 Sep 2025 14:32:09 +0000 (16:32 +0200)
committerChristian Heller <c.heller@plomlompom.de>
Thu, 11 Sep 2025 14:32:09 +0000 (16:32 +0200)
ircplom/client_tui.py

index d1f026d33588feb155ee6b659cc77cfb3b62ae1d..5d920b9f8e4aa2478a37f26db4b7b35369496cf4 100644 (file)
@@ -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]]: