fix: adds ColouredEnum to STANDARD_TYPES

This commit is contained in:
Mose Müller 2023-10-25 10:47:15 +02:00
parent 22f832054e
commit b790b6a6ca

View File

@ -5,7 +5,16 @@ from typing import Any, Optional, cast
logger = logging.getLogger(__name__)
STANDARD_TYPES = ("int", "float", "bool", "str", "Enum", "NoneType", "Quantity")
STANDARD_TYPES = (
"int",
"float",
"bool",
"str",
"Enum",
"NoneType",
"Quantity",
"ColouredEnum",
)
def get_class_and_instance_attributes(obj: object) -> dict[str, Any]: