code: def units(self) -> typing.Iterator['BaseUnit']:
          
          for group in self.groups:
              for unit in group.units:
  
                  yield unit
docs: Iterates over all units
  
          Returns: generator of Unit