Gets pieces of the given type and color.

        Returns a :class:`set of squares <chess.SquareSet>`.

def pieces(self, piece_type: PieceType, color: Color) -> "SquareSet":
        """
        Gets pieces of the given type and color.

        Returns a :class:`set of squares <chess.SquareSet>`.
        """
        return SquareSet(self.pieces_mask(piece_type, color))