Skip to content

Commit

Permalink
Merge pull request #198 from tonyandrewmeyer/anyjson-stricter-type
Browse files Browse the repository at this point in the history
feat: use a slightly more strict type for `AnyJson`
  • Loading branch information
tonyandrewmeyer authored Sep 19, 2024
2 parents 1eaed95 + 7ec526e commit 12b81bd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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 = "[email protected]" }
Expand Down
2 changes: 1 addition & 1 deletion scenario/state.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 12b81bd

Please sign in to comment.