from typing import Iterable
from typing import Any


def common_value(iterable: Iterable[Any]) -> Any:
    """
    Function returns common value of iterable (all items are equal) or
    raises `ValurError` exception.

    Args:
        iterable: source of values

    Returns:
        one value
    """
    val = None
    for item in iterable:
        if val is None:
            val = item
        elif val != item:
            raise ValueError("Iterable does not contains common value")
    return val