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 Foo(object):
|
|
x:int = 0
|
|
|
|
def set(self:"Foo", x:int) -> object:
|
|
self.x = x
|
|
|
|
f = Foo()
|
|
f.set(1)
|
|
print(f.x)
|