code: def match(self, obj, attrs):
          
          if '__doc__' in attrs:
              lstrip = getattr(obj.__doc__, 'lstrip', False)
              return lstrip and any(lstrip())
docs: Only match if the object contains a non-empty docstring.