-
Notifications
You must be signed in to change notification settings - Fork 18
Namespace issue with DesignUnit #100
Copy link
Copy link
Open
Labels
Model: Design UnitRelated to Design Units (Entity, Architecture, Package, PackageBody, Configuration, Context).Related to Design Units (Entity, Architecture, Package, PackageBody, Configuration, Context).Problem Report
Description
Activity
Metadata
Metadata
Assignees
Labels
Model: Design UnitRelated to Design Units (Entity, Architecture, Package, PackageBody, Configuration, Context).Related to Design Units (Entity, Architecture, Package, PackageBody, Configuration, Context).Problem Report
In
__init__.py, theDesignUnitclass is imported from theDesignUnitfile and retains its name.As a result, it overwrites the
DesignUnitmodule.So, the following causes an error:
This is because
type(pyVHDLModel.DesignUnit) == <class DesignUnit>.You have to do a
from ... importto avoid this issue: