from enum import Enum class UnitFrequency(str, Enum): """The valid types of frequency units.""" # noqa: E501 """# Gigahertz """ # noqa: E501 GIGAHERTZ = "gigahertz" """# Hertz """ # noqa: E501 HERTZ = "hertz" """# Kilohertz """ # noqa: E501 KILOHERTZ = "kilohertz" """# Megahertz """ # noqa: E501 MEGAHERTZ = "megahertz" """# Microhertz """ # noqa: E501 MICROHERTZ = "microhertz" """# Millihertz """ # noqa: E501 MILLIHERTZ = "millihertz" """# Nanohertz """ # noqa: E501 NANOHERTZ = "nanohertz" """# Terahertz """ # noqa: E501 TERAHERTZ = "terahertz" def __str__(self) -> str: return str(self.value)