You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
class A(object):
|
|
a:int = 42
|
|
|
|
class B(A):
|
|
b:bool = True
|
|
|
|
def __init__(self:"B"):
|
|
print("B")
|
|
|
|
a:A = None
|
|
b:B = None
|
|
|
|
a = B()
|
|
print(a.a)
|
|
print(b.a)
|
|
print(b.b)
|