Implement __bool__ for AssignmentCollection
AssignmentCollection can be used in many cases where you could also use a List[Assignment]. With AssignmentCollection.__bool__, an empty AssignmentCollection is falsy and a non-empty one truthy. So you can `assert assignments, 'must not be emtpy'`
Please register or sign in to comment