From 0de7969d30e3e57d681afdfcadd245f6988a0342 Mon Sep 17 00:00:00 2001 From: Igor Tolmachov Date: Mon, 5 Dec 2022 22:29:41 +0900 Subject: 2.1 --- test.py | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 test.py (limited to 'test.py') diff --git a/test.py b/test.py new file mode 100644 index 0000000..f6fe3a0 --- /dev/null +++ b/test.py @@ -0,0 +1,15 @@ +class A: + def __init__(self, b: dict = {}) -> None: + self.b = b + + +a1 = A() +a2 = A() + +print(a1.b) +print(a2.b) + +a1.b["test"] = 123 + +print(a1.b) +print(a2.b) -- cgit v1.2.3