From d0f72632e15033b1be2be40c7065ff483973c8e3 Mon Sep 17 00:00:00 2001 From: whitequark Date: Sat, 24 Jun 2017 17:03:35 +0000 Subject: [PATCH] language: export TBytes and TByteArray. --- artiq/language/types.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/artiq/language/types.py b/artiq/language/types.py index d146f929a..c767dd663 100644 --- a/artiq/language/types.py +++ b/artiq/language/types.py @@ -5,8 +5,11 @@ annotations. from artiq.compiler import types, builtins -__all__ = ["TNone", "TBool", "TInt32", "TInt64", "TFloat", - "TStr", "TTuple", "TList", "TRange32", "TRange64", "TVar"] +__all__ = ["TNone", "TTuple", + "TBool", "TInt32", "TInt64", "TFloat", + "TStr", "TBytes", "TByteArray", + "TList", "TRange32", "TRange64", + "TVar"] TNone = builtins.TNone() TBool = builtins.TBool() @@ -14,6 +17,8 @@ TInt32 = builtins.TInt(types.TValue(32)) TInt64 = builtins.TInt(types.TValue(64)) TFloat = builtins.TFloat() TStr = builtins.TStr() +TBytes = builtins.TBytes() +TByteArray = builtins.TByteArray() TTuple = types.TTuple TList = builtins.TList TRange32 = builtins.TRange(builtins.TInt(types.TValue(32)))