From f805f71f6e19d956a3928e8fda47af365ca5bb59 Mon Sep 17 00:00:00 2001 From: Theofilos Papapanagiotou Date: Thu, 29 Aug 2024 10:25:28 +0200 Subject: [PATCH] docs: typo on CharmBase inheritance example typo: the CharmBase inheritance example should be an object, not a function --- ops/charm.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ops/charm.py b/ops/charm.py index b1550c824..e6d35c3a3 100644 --- a/ops/charm.py +++ b/ops/charm.py @@ -1260,7 +1260,7 @@ class CharmBase(Object): import ops - def MyCharm(ops.CharmBase): + class MyCharm(ops.CharmBase): def __init__(self, *args): super().__init__(*args) self.framework.observe(self.on.config_changed, self._on_config_changed)