circuitpython/tests/basics/core_class_superproperty.py
2024-09-05 14:54:18 -04:00

20 lines
305 B
Python

# CIRCUITPY-CHANGE: micropython does not have this test file
"""
test that calling super() getter property in subclass will return the value
"""
class A:
@property
def p(self):
return {"a": 10}
class AA(A):
@property
def p(self):
return super().p
a = AA()
print(a.p)