def METHOD_NAME():
    program = """
        class A:
            def foo(self, x):
                return x + 1
        A.foo(A(), 0)
        """
    module, _ = cs._parse_text(program, reset=True)
    for attribute_node in module.nodes_of_class(nodes.Attribute):
        assert (
            str(attribute_node.inf_type.getValue())
            == "typing.Callable[[ForwardRef('A'), int], int]"
        )