From 2c19d4adf5df7281017fb7f5cfeb3f7083ea0d31 Mon Sep 17 00:00:00 2001 From: zhang Date: Mon, 22 Aug 2022 22:24:15 +0800 Subject: imports --- basics/python/circular/b.py | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 basics/python/circular/b.py (limited to 'basics/python/circular/b.py') diff --git a/basics/python/circular/b.py b/basics/python/circular/b.py new file mode 100644 index 0000000..643e2f7 --- /dev/null +++ b/basics/python/circular/b.py @@ -0,0 +1,19 @@ + + +# from typing import TYPE_CHECKING +# if TYPE_CHECKING: +from a import A + + +class B: + + def __init__(self): + self.a_items = [] + + def append(self, a: 'A'): + a.t() + self.a_items.append(a) + + def foo(self): + return 5 + -- cgit v1.2.3