code: def in_attack_range_of(self, unit: Unit, bonus_distance: Union[int, float] = 0) -> "Units":
          
          return self.filter(lambda x: unit.target_in_range(x, bonus_distance=bonus_distance))
docs: Filters units that are in attack range of the unit in parameter