original_docstring: Returns true if a pylon has already been ordered or is being built to power the building.
docstring: Returns true if a pylon has already been ordered or is being built to power the building.
docstring_tokens: Returns true if a pylon has already been ordered or is being built to power the building .
code: def already_restoring(self, building: Unit) -> bool:
          """Returns true if a pylon has already been ordered or is being built to power the building."""
          pending_pylons: List[Point2] = self.pending_building_positions(PYLON)
          if not any(pending_pylons):
              return False
  
          return building.position.distance_to_closest(pending_pylons) < Constants.PYLON_POWERED_DISTANCE
code_tokens: def already_restoring ( self , building : Unit ) -> bool : pending_pylons : List [ Point2 ] = self . pending_building_positions ( PYLON ) if not any ( pending_pylons ) : return False return building . position . distance_to_closest ( pending_pylons ) < Constants . PYLON_POWERED_DISTANCE
short_docstring: Returns true if a pylon has already been ordered or is being built to power the building.
short_docstring_tokens: Returns true if a pylon has already been ordered or is being built to power the building .
comment: """Returns true if a pylon has already been ordered or is being built to power the building."""