Skip to content

Commit

Permalink
compiler.types.Type: more useful __str__.
Browse files Browse the repository at this point in the history
whitequark committed Aug 28, 2015

Verified

This commit was signed with the committer’s verified signature.
makenowjust Hiroya Fujinami
1 parent ac92aab commit 6a29775
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion artiq/compiler/types.py
Original file line number Diff line number Diff line change
@@ -41,7 +41,8 @@ def _map_find(elts):


class Type(object):
pass
def __str__(self):
return TypePrinter().name(self)

class TVar(Type):
"""

0 comments on commit 6a29775

Please sign in to comment.