pyreverse is a great tool to generate UML diagram from Python codes. However, I found it cannot identify all the classes that has been used within a function. I take the following example to illustrate my point:
class ClassA(object):
def __init__(self):
pass
class ClassB(object):
def __init__(self):
pass
class ClassC(object):
def __init__(self):
self.object_b = ClassB()
def perform():
object_a = ClassA()
If we use pyreverse to generate class diagram, it is clear that we can see ClassB is a component within ClassC. However, it cannot generate the relationship with ClassA, which is used in its function perform. Is there any way for pyreverse to retrieve the relationship between ClassC and ClassA?
