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