From 7ec526eb2824ab44915d0fb44c5e54d833d70723 Mon Sep 17 00:00:00 2001 From: Tony Meyer Date: Fri, 20 Sep 2024 10:22:45 +1200 Subject: [PATCH] Use a slightly more strict type for AnyJson. --- pyproject.toml | 2 +- scenario/state.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 67dca9a9..462fd4d9 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -8,7 +8,7 @@ build-backend = "setuptools.build_meta" [project] name = "ops-scenario" -version = "7.0.4" +version = "7.0.5" authors = [ { name = "Pietro Pasotti", email = "pietro.pasotti@canonical.com" } diff --git a/scenario/state.py b/scenario/state.py index 3520f344..b8546d15 100644 --- a/scenario/state.py +++ b/scenario/state.py @@ -52,7 +52,7 @@ if TYPE_CHECKING: # pragma: no cover from scenario import Context -AnyJson = Union[str, bool, dict, int, float, list] +AnyJson = Union[str, bool, Dict[str, "AnyJson"], int, float, List["AnyJson"]] RawSecretRevisionContents = RawDataBagContents = Dict[str, str] UnitID = int