diff --git a/pystencils/simp/assignment_collection.py b/pystencils/simp/assignment_collection.py index e4827cdbc09ccc8c6f692b86c64970e1f2b90983..d874965c1d8600fb1b616afc338d4c62d2506f62 100644 --- a/pystencils/simp/assignment_collection.py +++ b/pystencils/simp/assignment_collection.py @@ -345,8 +345,7 @@ class AssignmentCollection: return result def __repr__(self): - return "Assignment Collection for " + ",".join([str(eq.lhs) for eq in self.main_assignments - if isinstance(eq, Assignment)]) + return f"AssignmentCollection: {str(tuple(self.defined_symbols))[1:-1]} <- f{tuple(self.free_symbols)}" def __str__(self): result = "Subexpressions:\n"