code: def remove(self, pattern):
          
          assert isinstance(pattern, Pattern)
          self.patterns.remove(pattern)
          self._all_files = None
docs: Remove a :class:`Pattern` from the :class:`PatternSet`