-
- Downloads
"docs/git@i10git.cs.fau.de:pycodegen/pystencils-sfg.git" did not exist on "2a880797732e44207e7176c50948593aecf814e0"
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
Please register or sign in to comment