summaryrefslogtreecommitdiff
path: root/basics/python/circular/b.py
blob: 643e2f7ebd024dd69e98fc4a3350bca1b86f897e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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