mirror of
https://github.com/PyCQA/flake8.git
synced 2026-04-04 20:26:53 +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,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',
|
||||
|
|
|
|||
|
|
@ -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'
|
||||
|
|
|
|||
|
|
@ -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 []
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue