# This file was auto-generated by Fern from our API Definition.

import enum
import typing

T_Result = typing.TypeVar("T_Result")


class CoverageType(str, enum.Enum):
    PPO = "PPO"
    HMO = "HMO"

    def visit(self, ppo: typing.Callable[[], T_Result], hmo: typing.Callable[[], T_Result]) -> T_Result:
        if self is CoverageType.PPO:
            return ppo()
        if self is CoverageType.HMO:
            return hmo()
