From 2a2669b69fbf657bf1065228e34952972d515c4d Mon Sep 17 00:00:00 2001 From: claude Date: Tue, 14 Jul 2026 08:21:42 +0000 Subject: [PATCH] fix(backend): silence pylint false positives from lazy-load pattern MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit `undefined-all-variable` fires on CommitCancelled / Freezer / get_freezer in __all__ because pylint can't see module-level __getattr__ bindings; `global-statement` fires on the _BACKENDS singleton setter. Both are intentional patterns — add inline disables rather than suppress globally. --- bot_bottle/backend/__init__.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/bot_bottle/backend/__init__.py b/bot_bottle/backend/__init__.py index e58b92d..e10e394 100644 --- a/bot_bottle/backend/__init__.py +++ b/bot_bottle/backend/__init__.py @@ -586,7 +586,7 @@ _BACKENDS: dict[str, BottleBackend[Any, Any]] | None = None def _get_backends() -> dict[str, BottleBackend[Any, Any]]: """Return the registry of all backend instances, loading lazily on first call.""" - global _BACKENDS + global _BACKENDS # pylint: disable=global-statement if _BACKENDS is None: from .docker import DockerBottleBackend from .firecracker import FirecrackerBottleBackend @@ -717,12 +717,12 @@ __all__ = [ "BottleCleanupPlan", "BottlePlan", "BottleSpec", - "CommitCancelled", + "CommitCancelled", # pylint: disable=undefined-all-variable "ExecResult", - "Freezer", + "Freezer", # pylint: disable=undefined-all-variable "enumerate_active_agents", "get_bottle_backend", - "get_freezer", + "get_freezer", # pylint: disable=undefined-all-variable "has_backend", "known_backend_names", ]