From 6a29775bf089c46379b7ed74b89d2798411c5cb5 Mon Sep 17 00:00:00 2001 From: whitequark Date: Fri, 28 Aug 2015 02:53:12 -0500 Subject: [PATCH] compiler.types.Type: more useful __str__. --- artiq/compiler/types.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/artiq/compiler/types.py b/artiq/compiler/types.py index 73d53db52..04e736d65 100644 --- a/artiq/compiler/types.py +++ b/artiq/compiler/types.py @@ -41,7 +41,8 @@ def _map_find(elts): class Type(object): - pass + def __str__(self): + return TypePrinter().name(self) class TVar(Type): """