blob: 69db10046a2732c68fd2ca23e76f0c92ba3db69c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
"""
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)
|