mirror of
https://github.com/micropython/micropython.git
synced 2026-01-07 04:30:24 +01:00
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>
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
# tests for natively compiled functions
|
||||
|
||||
|
||||
# basic test
|
||||
@micropython.native
|
||||
def native_test(x):
|
||||
@@ -14,6 +15,7 @@ import gc
|
||||
gc.collect()
|
||||
native_test(3)
|
||||
|
||||
|
||||
# native with 2 args
|
||||
@micropython.native
|
||||
def f(a, b):
|
||||
@@ -22,6 +24,7 @@ def f(a, b):
|
||||
|
||||
f(1, 2)
|
||||
|
||||
|
||||
# native with 3 args
|
||||
@micropython.native
|
||||
def f(a, b, c):
|
||||
@@ -30,6 +33,7 @@ def f(a, b, c):
|
||||
|
||||
f(1, 2, 3)
|
||||
|
||||
|
||||
# check not operator
|
||||
@micropython.native
|
||||
def f(a):
|
||||
|
||||
Reference in New Issue
Block a user