diff --git a/src/charm.py b/src/charm.py index ac3551ad..990445c4 100755 --- a/src/charm.py +++ b/src/charm.py @@ -7,12 +7,10 @@ import hashlib import logging import re -from typing import List, TypedDict, cast - import socket import subprocess from pathlib import Path -from typing import Dict, Optional, TypedDict, cast +from typing import Dict, List, Optional, TypedDict, cast from urllib.parse import urlparse import yaml @@ -575,7 +573,9 @@ def _configure(self, _): logger.info("Prometheus configuration reloaded") - self.unit.status = StatusBase._get_highest_priority(cast(List[StatusBase], list(self.status.values()))) + self.unit.status = StatusBase._get_highest_priority( + cast(List[StatusBase], list(self.status.values())) + ) def _on_pebble_ready(self, event) -> None: """Pebble ready hook.