clan/inventory: allow list usage of roles via polymorphism

This commit is contained in:
Johannes Kirschbauer
2025-08-25 11:27:38 +02:00
parent 2d78730037
commit 4414403dec
2 changed files with 4 additions and 9 deletions

View File

@@ -31,17 +31,10 @@ class InventoryInstanceRoleMachine(TypedDict):
class InventoryInstanceRoleTag(TypedDict):
pass
InventoryInstanceRoleExtramodulesType = list[dict[str, Any] | str]
InventoryInstanceRoleMachinesType = dict[str, InventoryInstanceRoleMachine]
InventoryInstanceRoleSettingsType = Unknown
InventoryInstanceRoleTagsType = dict[str, InventoryInstanceRoleTag]
InventoryInstanceRoleTagsType = dict[str, Any] | list[str]
class InventoryInstanceRole(TypedDict):
extraModules: NotRequired[InventoryInstanceRoleExtramodulesType]