labs4capella / python4capella

Python for Capella
Eclipse Public License 2.0
52 stars 10 forks source link

EObject.get_class() should have a parameter for prefered type. #189

Open ylussaud opened 11 months ago

ylussaud commented 11 months ago

This parameter will be used to choose the most specific type that also match API defined type:

This need a lot of testing since it impact the all API. Tests should also be improved to check if the returned object is assignable from the specified API class.

see this discussion for an example.