def remove(self, pk):
pk = str(pk)<EOL>try:<EOL><INDENT>del self.items[pk]<EOL><DEDENT>except KeyError:<EOL><INDENT>raise ItemNotInCart(pk=pk)<EOL><DEDENT>self.update()<EOL>
Remove an item from the cart.

        Parameters
        ----------
        pk : str or int
            The primary key of the item.

        Raises
        ------
        ItemNotInCart