Skip to content

AssignmentCollection.__bool__

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'

Edited by Stephan Seitz

Merge request reports