from __future__ import annotations from enum import StrEnum from typing import Any class Brand(StrEnum): SME = "sme" THEORCHARD = "theorchard" AWAL = "awal" @classmethod def _missing_(cls, value: Any) -> Brand: # All other Company Brands are under The Orchard Parent Company return cls.THEORCHARD