diff options
author | Jim Mussared <jim.mussared@gmail.com> | 2023-02-02 11:51:48 +1100 |
---|---|---|
committer | Jim Mussared <jim.mussared@gmail.com> | 2023-02-02 12:51:03 +1100 |
commit | 8b2748269244304854b3462cb8902952b4dcb892 (patch) | |
tree | 05c315fc329eb32bb55c71303eef2183bf818e35 /tests/micropython/heapalloc_yield_from.py | |
parent | fe2a8332ff9c7cc7b66ed6da04f5a4a825309818 (diff) |
top: Update Python formatting to black "2023 stable style".
See https://black.readthedocs.io/en/stable/the_black_code_style/index.html
Signed-off-by: Jim Mussared <jim.mussared@gmail.com>
Diffstat (limited to 'tests/micropython/heapalloc_yield_from.py')
-rw-r--r-- | tests/micropython/heapalloc_yield_from.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/micropython/heapalloc_yield_from.py b/tests/micropython/heapalloc_yield_from.py index 58788b1db..950717189 100644 --- a/tests/micropython/heapalloc_yield_from.py +++ b/tests/micropython/heapalloc_yield_from.py @@ -2,6 +2,7 @@ import micropython + # Yielding from a function generator def sub_gen(a): for i in range(a): @@ -18,6 +19,7 @@ print(next(g)) print(next(g)) micropython.heap_unlock() + # Yielding from a user iterator class G: def __init__(self): |