summaryrefslogtreecommitdiff
path: root/tests/pyreverse/functional/class_diagrams/attributes/_monkey.py
blob: 03c0ef1e4b99fd5153ae4f787f2f387e3214bf01 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
# This is not a standalone test
# Monkey class is called from Tree class in delayed_external_monkey_patching.py


class Monkey:
    def __init__(self, name):
        # pylint: disable=import-outside-toplevel
        from delayed_external_monkey_patching import Tree

        self.name = name
        self.tree = Tree()
        self.tree.has_tasty_bananas = True  # This monkey patching will increase the number of items in instance_attrs for `Tree`