diff options
| author | Anthony Sottile <asottile@umich.edu> | 2021-03-29 17:43:42 -0700 |
|---|---|---|
| committer | Anthony Sottile <asottile@umich.edu> | 2021-03-30 17:37:13 -0700 |
| commit | 358ae85120b5336f6abf574688b1f7290b3c8cc4 (patch) | |
| tree | b19e95f7eac533e223fd20950c99f67f92f9df10 /src/flake8/api | |
| parent | 8cc3fc01e8d06b2eb6fa59332b598b2c638a4d40 (diff) | |
| download | flake8-358ae85120b5336f6abf574688b1f7290b3c8cc4.tar.gz | |
automatic: pyupgrade --py36-plus
Diffstat (limited to 'src/flake8/api')
| -rw-r--r-- | src/flake8/api/legacy.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/flake8/api/legacy.py b/src/flake8/api/legacy.py index 7923698..f046b5c 100644 --- a/src/flake8/api/legacy.py +++ b/src/flake8/api/legacy.py @@ -60,7 +60,7 @@ def get_style_guide(**kwargs): return StyleGuide(application) -class StyleGuide(object): +class StyleGuide: """Public facing object that mimic's Flake8 2.0's StyleGuide. .. note:: @@ -170,7 +170,7 @@ class StyleGuide(object): return self.check_files([filename]) -class Report(object): +class Report: """Public facing object that mimic's Flake8 2.0's API. .. note:: @@ -210,6 +210,6 @@ class Report(object): list """ return [ - "{} {} {}".format(s.count, s.error_code, s.message) + f"{s.count} {s.error_code} {s.message}" for s in self._stats.statistics_for(violation) ] |
