Skip to content

Commit

Permalink
add type hint
Browse files Browse the repository at this point in the history
  • Loading branch information
carlcsaposs-canonical committed Apr 17, 2024
1 parent aa95f75 commit 7edf547
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/charms/opensearch/v0/opensearch_locking.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ def _unit_requested_lock(self, unit: ops.Unit):
return value

@property
def _unit_with_lock(self):
def _unit_with_lock(self) -> str | None:
if self._relation:
return self._relation.data[self._charm.app].get("unit-with-lock")

Expand Down

0 comments on commit 7edf547

Please sign in to comment.