code: def attackers(self, color: Color, square: Square) -> "SquareSet":
          
          return SquareSet(self.attackers_mask(color, square))
docs: Gets a set of attackers of the given color for the given square.
  
          Pinned pieces still count as attackers.
  
          Returns a :class:`set of squares <chess.SquareSet>`.