from typing import Any


def is_abstract(cls: Any) -> bool:
    """Tells whether a class is abstract or not.

    Args:
        c: The class has to determine if it is abstract or not.

    Returns:
        True if abstract class, False otherwise.

    """
    return (
        hasattr(cls, "__abstractmethods__")
        and len(cls.__abstractmethods__) != 0
    )