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/a.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 basics/python/circular/a.py (limited to 'basics/python/circular/a.py') diff --git a/basics/python/circular/a.py b/basics/python/circular/a.py new file mode 100644 index 0000000..b32c70d --- /dev/null +++ b/basics/python/circular/a.py @@ -0,0 +1,13 @@ + + +from typing import TYPE_CHECKING +if TYPE_CHECKING: + from b import B + + +class A: + def foo(self, b: 'B'): + return 2*b.foo() + + def t(self): + print('A.t()') -- cgit v1.2.3