Skip to content

Commit

Permalink
compiler.types.Type: more useful __str__.
Browse files Browse the repository at this point in the history
  • Loading branch information
whitequark committed Aug 28, 2015
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
Expand Up @@ -41,7 +41,8 @@ def _map_find(elts):


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

class TVar(Type):
"""
Expand Down

0 comments on commit 6a29775

Please sign in to comment.