From 7a28ce3badd18a1b06f7a03a34cd8fa9b5873242 Mon Sep 17 00:00:00 2001 From: Patrick Lehmann Date: Mon, 10 Apr 2023 12:26:11 +0200 Subject: Adjustments to pyVHDLModel. (cherry picked from commit 506c747238e6d0f17676b3436a5b7d0b7544a8f3) --- pyGHDL/dom/NonStandard.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'pyGHDL') diff --git a/pyGHDL/dom/NonStandard.py b/pyGHDL/dom/NonStandard.py index e84396433..31cc28480 100644 --- a/pyGHDL/dom/NonStandard.py +++ b/pyGHDL/dom/NonStandard.py @@ -40,7 +40,7 @@ import time from pathlib import Path from typing import Any -from pyTooling.Decorators import export +from pyTooling.Decorators import export, InheritDocString from pyVHDLModel import VHDLVersion from pyVHDLModel import Design as VHDLModel_Design @@ -85,8 +85,9 @@ from pyGHDL.dom.PSL import VerificationUnit, VerificationProperty, VerificationM @export class Design(VHDLModel_Design): - def __init__(self): - super().__init__() + @InheritDocString(VHDLModel_Design) + def __init__(self, name: str = None): + super().__init__(name) self.__ghdl_init() -- cgit v1.2.3