Skip to content

Commit 6a29775

Browse files
author
whitequark
committedAug 28, 2015
compiler.types.Type: more useful __str__.
1 parent ac92aab commit 6a29775

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed
 

Diff for: ‎artiq/compiler/types.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,8 @@ def _map_find(elts):
4141

4242

4343
class Type(object):
44-
pass
44+
def __str__(self):
45+
return TypePrinter().name(self)
4546

4647
class TVar(Type):
4748
"""

0 commit comments

Comments
 (0)
Please sign in to comment.