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.
18 lines
176 B
18 lines
176 B
4 years ago
|
class A(object):
|
||
|
x:int = 1
|
||
|
|
||
|
class B(A):
|
||
|
def __init__(self: "B"):
|
||
|
pass
|
||
|
|
||
|
class C(B):
|
||
|
z:bool = True
|
||
|
|
||
|
a:A = None
|
||
|
b:B = None
|
||
|
c:C = None
|
||
|
|
||
|
a = A()
|
||
|
b = B()
|
||
|
c = C()
|