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/const2.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/const2.py')
| -rw-r--r-- | tests/micropython/const2.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/micropython/const2.py b/tests/micropython/const2.py index ed4720122..d8b68c25f 100644 --- a/tests/micropython/const2.py +++ b/tests/micropython/const2.py @@ -11,6 +11,7 @@ import micropython as X print(globals()["X"]) + # function name that matches a constant def X(): print("function X", X) @@ -18,6 +19,7 @@ def X(): globals()["X"]() + # arguments that match a constant def f(X, *Y, **Z): pass @@ -25,6 +27,7 @@ def f(X, *Y, **Z): f(1) + # class name that matches a constant class X: def f(self): @@ -33,6 +36,7 @@ class X: globals()["X"]().f() + # constant within a class class A: C1 = const(4) |
