Skip to content

Commit

Permalink
docs: typo on CharmBase inheritance example (#1349)
Browse files Browse the repository at this point in the history
typo: the CharmBase inheritance example should be an object, not a
function
  • Loading branch information
theofpa authored Aug 29, 2024
1 parent a574456 commit 196b82f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ops/charm.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 196b82f

Please sign in to comment.