automatic: pyupgrade --py36-plus

This commit is contained in:
Anthony Sottile 2021-03-29 17:43:42 -07:00
parent 8cc3fc01e8
commit 358ae85120
51 changed files with 185 additions and 149 deletions

View file

@ -1,7 +1,6 @@
"""Module for an example Flake8 plugin."""
from .on_by_default import ExampleOne
from .off_by_default import ExampleTwo
from .on_by_default import ExampleOne
__all__ = (
'ExampleOne',

View file

@ -1,7 +1,7 @@
"""Our first example plugin."""
class ExampleTwo(object):
class ExampleTwo:
"""Second Example Plugin."""
name = 'off-by-default-example-plugin'
version = '1.0.0'

View file

@ -1,7 +1,7 @@
"""Our first example plugin."""
class ExampleOne(object):
class ExampleOne:
"""First Example Plugin."""
name = 'on-by-default-example-plugin'
version = '1.0.0'
@ -11,5 +11,4 @@ class ExampleOne(object):
def run(self):
"""Do nothing."""
for message in []:
yield message
yield from []