Closed doyou89 closed 3 years ago
thank you for the report? I will have a look at it this week
ok, I figured out what was the problem: when handling class Nfvo, py2puml sees that the type has an __init__
method, but it is the one of the parent constructor (Nfvo does not have its own __init__
), and thus should not be processed. I have to add some safety checks in parse_class_constructor
. The pb exists (without the exception, though) for a simpler use-case (the Point.__init__
constructor should not be processed when parsing MetricOrigin
):
class Point:
def __init__(self, x: float=0, y: float=0):
self.x = x
self.y = y
class MetricOrigin(Point):
unit: 'm'
Thank you for spotting this issue :pray:
Problem
A keyword parameter of the parent class have an annotation, but the type of this parameter does not revealed in the file of child class.
A.py
B.py
Error Message
Cause
In the parent class "BaseShell", session's type is "SystemSession". But this "SystemSession" does not exist in the namespace of B.py