Fix flake8 E303,W293,W291,W292,E305

Some of the previously fixed things creeped in. I would like to keep the
requirements low on the PR authors for now and gradually improve the
pep8 compliance without introducing much breakage.
This commit is contained in:
Andy Melnikov
2023-04-12 21:15:00 +02:00
parent 73378b176c
commit e635cf4a4a
3 changed files with 2 additions and 3 deletions

View File

@@ -164,8 +164,6 @@ class ConsoleHandler(logging.StreamHandler):
Allows to handle custom placeholders 'title_color' and 'message_no_color'.
To use this formatter, make sure to pass 'color', 'title' as log extras.
'''
class AutoGptFormatter(logging.Formatter):
def format(self, record: LogRecord) -> str:
if (hasattr(record, 'color')):