old_contents: from functools import partial
  
  
  class Library:
      '''
      Container for registering tags and filters
      '''
      def __init__(self):
          self.tags = {}
          self.filters = {}
          self.helpers = {}
  
      def filter(self, filt=None, name=None):
          if filt is None:
              return partial(self.filter, name=name)
  
          if name is None:
              name = filt.__name__
  
          self.filters[name] = filt
          return filt
  
      def tag(self, func=None, name=None):
          if func is None:
              return partial(self.tag, name=name)
  
          if name is None:
              name = func.__name__
  
          self.tags[name] = func
          return func
  
      def helper(self, func=None, name=None):
          if func is None:
              return partial(self.helper, name=name)
  
          if name is None:
              name = func.__name__
  
          self.helpers[name] = func
          return func
  
new_contents: from functools import partial
  
  
  class Library:
      '''
      Container for registering tags and filters
      '''
      def __init__(self):
          self.tags = {}
          self.filters = {}
          self.helpers = {}
  
      def tag(self, func=None, name=None):
          if func is None:
              return partial(self.tag, name=name)
  
          if name is None:
              name = func.__name__
  
          self.tags[name] = func
          return func
  
      def helper(self, func=None, name=None):
          if func is None:
              return partial(self.helper, name=name)
  
          if name is None:
              name = func.__name__
  
          self.helpers[name] = func
          return func
  
subject: Drop filter from library