From cde7a3a567fedbfeedda3718fd30dbe81d8302f4 Mon Sep 17 00:00:00 2001 From: Werner Lemberg Date: Fri, 8 Aug 2025 07:31:32 +0200 Subject: [PATCH] Replace 'Optional' with 'Zero or one times' The latter is more precise than the former because it tells exactly how often something can occur, while the quantity of the former can only be deduced by exclusion, i.e., you have to see the other variants ('one or more times', 'zero or more times') to find out that only the meaning 'zero or one times' remains. --- spectools/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spectools/models.py b/spectools/models.py index a2509a5..fa43c5f 100644 --- a/spectools/models.py +++ b/spectools/models.py @@ -274,7 +274,7 @@ def get_children_type_text(self): elif min_amount == 1 and max_amount is None: return 'In this order (One or more times)' elif min_amount == 0 and max_amount == 1: - return 'In this order (Optional)' + return 'In this order (Zero ot one times)' return { XMLElement.CHILDREN_TYPE_UNORDERED: 'In any order', XMLElement.CHILDREN_TYPE_SEQUENCE: 'In this order',