micropython/tests/feature_check/reverse_ops.py

10 wiersze
117 B
Python

class Foo:
def __radd__(self, other):
pass
try:
5 + Foo()
except TypeError:
print("TypeError")