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/misc/non_compliant.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/misc/non_compliant.py')
| -rw-r--r-- | tests/misc/non_compliant.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/misc/non_compliant.py b/tests/misc/non_compliant.py index ebba9b16a..083927446 100644 --- a/tests/misc/non_compliant.py +++ b/tests/misc/non_compliant.py @@ -117,6 +117,7 @@ try: except NotImplementedError: print("NotImplementedError") + # can't assign attributes to a function def f(): pass @@ -133,6 +134,7 @@ try: except TypeError: print("TypeError") + # test when object explicitly listed at not-last position in parent tuple # this is not compliant with CPython because of illegal MRO class A: @@ -146,6 +148,7 @@ class B(object, A): B().foo() + # can't assign property (or other special accessors) to already-subclassed class class A: pass |
