from typing import Any
from typing import TypeVar


def _is_exported(ident_name: str, default_value: Any = None) -> bool:
    """
    Returns `True` if `ident_name` matches the export criteria for an
    identifier name.
    """
    if ident_name == "__init__":
        return True
    if isinstance(default_value, TypeVar):
        return False
    if ident_name.startswith("_"):
        return False
    return True