Run the `pyupgrade` tool

This commit is contained in:
Adam Turner
2022-10-17 15:54:59 +01:00
parent b277abcb49
commit 920828fe35
52 changed files with 119 additions and 129 deletions

View File

@@ -142,8 +142,7 @@ def example_generator(n):
[0, 1, 2, 3]
"""
for i in range(n):
yield i
yield from range(n)
class ExampleError(Exception):

View File

@@ -180,8 +180,7 @@ def example_generator(n):
[0, 1, 2, 3]
"""
for i in range(n):
yield i
yield from range(n)
class ExampleError(Exception):