From 75dd9d3bb8751482ba5d0e17d792d646fbee5b87 Mon Sep 17 00:00:00 2001 From: Quinn Damerell Date: Sat, 6 Jul 2024 14:32:27 -0500 Subject: [PATCH] Fixing the enum to allow it be cast to an int --- py_installer/Context.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/py_installer/Context.py b/py_installer/Context.py index 208f205..770846e 100644 --- a/py_installer/Context.py +++ b/py_installer/Context.py @@ -1,6 +1,6 @@ import os import json -from enum import Enum +from enum import IntEnum from octoeverywhere.telemetry import Telemetry @@ -9,7 +9,7 @@ # Indicates the OS type this installer is running on. # These can't changed, only added to, since they are using to write on disk and such. -class OsTypes(Enum): +class OsTypes(IntEnum): Debian = 1 SonicPad = 2 K1 = 3 # Both the K1 and K1 Max