added more hinting to pattern validation messages

This commit is contained in:
PatchOfScotland
2023-03-31 12:51:12 +02:00
parent cea7b9f010
commit 6b532e8a70
3 changed files with 163 additions and 60 deletions

View File

@ -59,7 +59,11 @@ class BasePattern:
"""Validation check for 'name' variable from main constructor. Is
automatically called during initialisation. This does not need to be
overridden by child classes."""
valid_string(name, VALID_PATTERN_NAME_CHARS)
valid_string(
name,
VALID_PATTERN_NAME_CHARS,
hint="BasePattern._is_valid_name.name"
)
def _is_valid_recipe(self, recipe:Any)->None:
"""Validation check for 'recipe' variable from main constructor. Must