From 11ba6e279d177136906289cf23e4bc9f5c34ee4e Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Wed, 1 May 2024 09:23:29 +0000 Subject: [PATCH 1/2] chore(deps): update dependency ops to v2.13.0 --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index 5cbba9f..dd15a02 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,3 +1,3 @@ cosl -ops==2.12.0 +ops==2.13.0 ops-lib-pgsql From 977af662e1a23571292ea478b85c08dea18c99e5 Mon Sep 17 00:00:00 2001 From: Arturo Seijas Date: Thu, 2 May 2024 15:38:07 +0200 Subject: [PATCH 2/2] fix linting --- src/charm.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/charm.py b/src/charm.py index 8f74370..938ee71 100755 --- a/src/charm.py +++ b/src/charm.py @@ -125,7 +125,7 @@ def _get_external_hostname(self) -> str: Returns: The assigned hostname. """ - hostname = self.config["external_hostname"] + hostname = typing.cast(str, self.config["external_hostname"]) if hostname == "": hostname = self.app.name return hostname @@ -459,7 +459,7 @@ def _make_pod_env(self) -> Union[dict, bool, set, str]: Returns: A dictionary used for envConfig in podspec. """ - env = self.model.config["environment"] + env = typing.cast(str, self.model.config["environment"]) if not env: return {}