Skip to content
Snippets Groups Projects
Commit 212776a3 authored by Stephan Seitz's avatar Stephan Seitz
Browse files

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'`
parent f9ba7391
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment