<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 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))