from typing import Dict
from typing import Any


def constant() -> Dict[str, Any]:
    """
    Returns:
        Schema for validating the `constant` block
    """
    data = {
        "type": "list",
        "schema": {
            "type": "dict",
            "schema": {
                "name": {"type": "string", "required": True},
                "inherits": {"type": "list", "schema": {"type": "string"}},
                "data": {
                    "type": "list",
                    "schema": {
                        "type": "dict",
                        "schema": {
                            "key": {"type": "string", "required": True},
                            "value": {"type": "string", "required": True},
                        },
                    },
                },
            },
        },
    }
    return data