Adding bytes as a type
This commit is contained in:
parent
86cd7027f3
commit
98f36c4cf0
3 changed files with 10 additions and 4 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue