Skip to content

Commit

Permalink
chore: update charm libraries (#159)
Browse files Browse the repository at this point in the history
Co-authored-by: Github Actions <github-actions@github.com>
  • Loading branch information
observability-noctua-bot and Github Actions authored May 12, 2023
1 parent 9cc768b commit 61251e9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/charms/catalogue_k8s/v0/catalogue.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

LIBID = "fa28b361293b46668bcd1f209ada6983"
LIBAPI = 0
LIBPATCH = 4
LIBPATCH = 5

DEFAULT_RELATION_NAME = "catalogue"

Expand Down Expand Up @@ -151,7 +151,7 @@ class CatalogueEvents(ObjectEvents):
class CatalogueProvider(Object):
"""`CatalogueProvider` is the side of the relation that serves the actual service catalogue."""

on = CatalogueEvents()
on = CatalogueEvents() # pyright: ignore

def __init__(self, charm: CharmBase, relation_name: str = DEFAULT_RELATION_NAME):
super().__init__(charm, relation_name)
Expand All @@ -164,10 +164,10 @@ def __init__(self, charm: CharmBase, relation_name: str = DEFAULT_RELATION_NAME)
self.framework.observe(events.relation_broken, self._on_relation_broken)

def _on_relation_broken(self, event):
self.on.items_changed.emit(items=self.items)
self.on.items_changed.emit(items=self.items) # pyright: ignore

def _on_relation_changed(self, event):
self.on.items_changed.emit(items=self.items)
self.on.items_changed.emit(items=self.items) # pyright: ignore

@property
def items(self):
Expand Down

0 comments on commit 61251e9

Please sign in to comment.