Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from typing import NamedTuple
- class Foo(object):
- y : int = 4
- f1 = Foo()
- f2 = Foo()
- Foo.y = 7
- print(f1.y) # 7
- print(f2.y) # 7
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement