import re


def _contains_curly_braces(value: str) -> bool:
    """Return whether the argument contains curly braces."""
    # {% raw %}  escape cookiecutter/jinja2 template
    curly_brace_re = re.compile(r"{{.*?}}")
    percent_curly_brace_re = re.compile(r"{%.*?%}")
    # {% endraw %}
    return bool(curly_brace_re.search(value) or percent_curly_brace_re.search(value))