code: def remove(self, square: Square) -> None:
          
          mask = BB_SQUARES[square]
          if self.mask & mask:
              self.mask ^= mask
          else:
              raise KeyError(square)
docs: Removes a square from the set.
  
          :raises: :exc:`KeyError` if the given square was not in the set.