aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPatrick Lehmann <Patrick.Lehmann@plc2.de>2023-04-10 12:26:11 +0200
committerPatrick Lehmann <Patrick.Lehmann@plc2.de>2023-04-10 12:28:13 +0200
commit7a28ce3badd18a1b06f7a03a34cd8fa9b5873242 (patch)
tree8c9385cd3e6f882fb81a56a98a796cf9c8bd7ba6
parent6cc4f94d66a3f4386a78305d78b0cbf95496a98b (diff)
downloadghdl-7a28ce3badd18a1b06f7a03a34cd8fa9b5873242.tar.gz
ghdl-7a28ce3badd18a1b06f7a03a34cd8fa9b5873242.tar.bz2
ghdl-7a28ce3badd18a1b06f7a03a34cd8fa9b5873242.zip
Adjustments to pyVHDLModel.
(cherry picked from commit 506c747238e6d0f17676b3436a5b7d0b7544a8f3)
-rw-r--r--pyGHDL/dom/NonStandard.py7
1 files changed, 4 insertions, 3 deletions
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()