Wall Syntactic Validator: Difference between revisions
Jump to navigation
Jump to search
(Created page with "#!/usr/bin/env python3 import sys from pathlib import Path from typing import Any import yaml def load_yaml(path: Path) -> Any: with path.open("r", encoding="utf-8") as f: return yaml.safe_load(f) def is_number(value: Any) -> bool: return isinstance(value, (int, float)) and not isinstance(value, bool) def validate_enum(instance_name: str, field_name: str, value: Any, allowed: list[Any], errors: list[str]) -> None: if value not in allowed:...") |
(Redirected page to Validate syntax.py) Tag: New redirect |
||
| Line 1: | Line 1: | ||
# | #redirect [[validate_syntax.py]] | ||
Latest revision as of 02:25, 11 March 2026
Redirect to: