Adding bytes as a type

This commit is contained in:
Inte Vleminckx 2025-02-05 16:24:22 +01:00
parent 86cd7027f3
commit 98f36c4cf0
3 changed files with 10 additions and 4 deletions

View file

@ -2,13 +2,14 @@ from abc import ABC, abstractmethod
from typing import Any, List, Tuple, Optional, Union
from uuid import UUID, uuid4
primitive_types = (int, float, str, bool)
primitive_types = (int, float, str, bool, bytes)
INTEGER = ("Integer",)
FLOAT = ("Float",)
STRING = ("String",)
BOOLEAN = ("Boolean",)
TYPE = ("Type",)
type_values = (INTEGER, FLOAT, STRING, BOOLEAN, TYPE)
BYTES = ("Bytes",)
type_values = (INTEGER, FLOAT, STRING, BOOLEAN, TYPE, BYTES)
Node = UUID