#!/usr/bin/env python3 """ Enum handling """ from corelibs.var_handling.enum_base import EnumBase class TestBlock(EnumBase): """Test block enum""" BLOCK_A = "block_a" HAS_NUM = 5 def main() -> None: """ Comment """ print(f"BLOCK A: {TestBlock.from_any('BLOCK_A')}") print(f"HAS NUM: {TestBlock.from_any(5)}") print(f"DIRECT BLOCK: {TestBlock.BLOCK_A.name} -> {TestBlock.BLOCK_A.value}") if __name__ == "__main__": main() # __END__