Skip to content

Commit

Permalink
#236 - Long output when printing type (#237)
Browse files Browse the repository at this point in the history
- Add shorter __str__ to type
  • Loading branch information
jcklie committed Nov 15, 2021
1 parent ee4dbfc commit 307064a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cassis/typesystem.py
Original file line number Diff line number Diff line change
Expand Up @@ -589,6 +589,9 @@ def __hash__(self):
def __eq__(self, other):
return self.name == other.name

def __str__(self):
return f"Type(name={self.name})"


class TypeSystem:
def __init__(self, add_document_annotation_type: bool = True):
Expand Down

0 comments on commit 307064a

Please sign in to comment.