From 7edf547b57da160d6daef94db56ecc7ce45513a4 Mon Sep 17 00:00:00 2001 From: Carl Csaposs Date: Tue, 16 Apr 2024 12:20:11 +0200 Subject: [PATCH] add type hint --- lib/charms/opensearch/v0/opensearch_locking.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/charms/opensearch/v0/opensearch_locking.py b/lib/charms/opensearch/v0/opensearch_locking.py index 9f3946518..fc3c16c8e 100644 --- a/lib/charms/opensearch/v0/opensearch_locking.py +++ b/lib/charms/opensearch/v0/opensearch_locking.py @@ -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")