Fix add_children all(bail) causing short-circuit.
This commit is contained in:
		
							parent
							
								
									bbadd15129
								
							
						
					
					
						commit
						5dcccae646
					
				
					 1 changed files with 4 additions and 1 deletions
				
			
		|  | @ -119,7 +119,10 @@ class GroupableMixin: | |||
|         return self._add_child(member) | ||||
| 
 | ||||
|     def add_children(self, members): | ||||
|         if all(self._add_child(member) is BAIL for member in members): | ||||
|         bail = True | ||||
|         for member in members: | ||||
|             bail = bail and (self._add_child(member) is BAIL) | ||||
|         if bail: | ||||
|             return BAIL | ||||
| 
 | ||||
|     def assert_same_type(self, other): | ||||
|  |  | |||
		Loading…
	
		Reference in a new issue