mirror of
https://github.com/PyCQA/flake8.git
synced 2026-04-08 05:54:17 +00:00
automatic: pyupgrade --py36-plus
This commit is contained in:
parent
8cc3fc01e8
commit
358ae85120
51 changed files with 185 additions and 149 deletions
|
|
@ -1,5 +1,6 @@
|
|||
"""Default formatting class for Flake8."""
|
||||
from typing import Optional, Set
|
||||
from typing import Optional
|
||||
from typing import Set
|
||||
|
||||
from flake8.formatting import base
|
||||
|
||||
|
|
@ -77,7 +78,7 @@ class FilenameOnly(SimpleFormatter):
|
|||
"""Ensure we only print each error once."""
|
||||
if error.filename not in self.filenames_already_printed:
|
||||
self.filenames_already_printed.add(error.filename)
|
||||
return super(FilenameOnly, self).format(error)
|
||||
return super().format(error)
|
||||
else:
|
||||
return None
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue