radioviz.models.legacy

Legacy models module for radioviz application.

This module provides legacy model definitions, It serves as a compatibility layer for older code structures while maintaining backward compatibility with existing implementations.

Classes

StrEnum(new_class_name, /, names, *[, ...])

String enumeration base class that ensures string representation.

class radioviz.models.legacy.StrEnum(new_class_name, /, names, *, module=None, qualname=None, type=None, start=1, boundary=None)[source]

Bases: str, Enum

String enumeration base class that ensures string representation.

This class extends both str and Enum to create enumerations that behave like strings while maintaining the benefits of enums. It’s particularly useful for creating named constants that need to be used as strings in various contexts.

To be used for python version before 3.11 where StrEnum was not defined.