@classmethod
def adapt_error(cls, e: Any) -> _Flake8Error:
    'Adapts the extended error namedtuple to be compatible with Flake8.'
    return e._replace(message=e.message.format(*e.vars))[:4]
Adapts the extended error namedtuple to be compatible with Flake8.
@classmethod
def adapt_error(cls, e: Any) -> _Flake8Error:
    
    return e._replace(message=e.message.format(*e.vars))[:4]