Fix(inventory/extraModules): use more narrow type for better persistence

This commit is contained in:
Johannes Kirschbauer
2025-06-03 18:57:34 +02:00
parent 9214559d38
commit ac0477e710
2 changed files with 3 additions and 2 deletions

View File

@@ -448,7 +448,8 @@ in
type = types.listOf (
types.oneOf [
types.str
types.anything
types.path
(types.attrsOf types.anything)
]
);
};

View File

@@ -38,7 +38,7 @@ class InventoryInstanceRoleTag(TypedDict):
InventoryInstanceRoleExtramodulesType = list[dict[str, Any] | list[Any] | bool | float | int | str | None]
InventoryInstanceRoleExtramodulesType = list[dict[str, Any] | str]
InventoryInstanceRoleMachinesType = dict[str, InventoryInstanceRoleMachine]
InventoryInstanceRoleSettingsType = Unknown
InventoryInstanceRoleTagsType = dict[str, InventoryInstanceRoleTag]