summaryrefslogtreecommitdiff
path: root/basics/python/circular/a.py
diff options
context:
space:
mode:
authorzhang <zch921005@126.com>2022-08-22 22:24:15 +0800
committerzhang <zch921005@126.com>2022-08-22 22:24:15 +0800
commit2c19d4adf5df7281017fb7f5cfeb3f7083ea0d31 (patch)
tree11af5b3f1cbf393a673c604847aa855a410000be /basics/python/circular/a.py
parent94b6d3246c72eb3cae58a2fd18771e3c2c3e7cb2 (diff)
imports
Diffstat (limited to 'basics/python/circular/a.py')
-rw-r--r--basics/python/circular/a.py13
1 files changed, 13 insertions, 0 deletions
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()')