def format(self, error: 'Violation') -> Optional[str]:
    'Format an error reported by Flake8.\n\n        This method **must** be implemented by subclasses.\n\n        :param error:\n            This will be an instance of\n            :class:`~flake8.style_guide.Violation`.\n        :type error:\n            flake8.style_guide.Violation\n        :returns:\n            The formatted error string.\n        :rtype:\n            str\n        '
    raise NotImplementedError('Subclass of BaseFormatter did not implement format.')
Format an error reported by Flake8.

This method **must** be implemented by subclasses.

:param error:
    This will be an instance of
    :class:`~flake8.style_guide.Violation`.
:type error:
    flake8.style_guide.Violation
:returns:
    The formatted error string.
:rtype:
    str
def format(self, error: 'Violation') -> Optional[str]:
    'Format an error reported by Flake8.\n\n        This method **must** be implemented by subclasses.\n\n        :param error:\n            This will be an instance of\n            :class:`~flake8.style_guide.Violation`.\n        :type error:\n            flake8.style_guide.Violation\n        :returns:\n            The formatted error string.\n        :rtype:\n            str\n        '
    raise NotImplementedError('Subclass of BaseFormatter did not implement format.')