diff options
author | Tristan Gingold <tgingold@free.fr> | 2023-02-22 20:44:30 +0100 |
---|---|---|
committer | Tristan Gingold <tgingold@free.fr> | 2023-02-22 20:44:30 +0100 |
commit | cebbab84557c7779e6f453337e0a2e2abbacd456 (patch) | |
tree | 7fec1832eec990012932d81084492faff91ce700 | |
parent | 5ef6fa41c3681dfbcbf8b7a0fb1fc9a6a7d98ce3 (diff) | |
download | ghdl-cebbab84557c7779e6f453337e0a2e2abbacd456.tar.gz ghdl-cebbab84557c7779e6f453337e0a2e2abbacd456.tar.bz2 ghdl-cebbab84557c7779e6f453337e0a2e2abbacd456.zip |
pyGHDL/libghdl: fix typo for argtypes.
Fix ghdl/ghdl-language-server#151
-rw-r--r-- | pyGHDL/libghdl/_decorator.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pyGHDL/libghdl/_decorator.py b/pyGHDL/libghdl/_decorator.py index 663c90eae..42b546f1d 100644 --- a/pyGHDL/libghdl/_decorator.py +++ b/pyGHDL/libghdl/_decorator.py @@ -159,7 +159,7 @@ def BindToLibGHDL(subprogramName): raise TypeError(f"Unsupported return type '{returnType!s}' in function '{func.__name__}'.") functionPointer = getattr(libghdl, subprogramName) - functionPointer.parameterTypes = parameterTypes + functionPointer.argtypes = parameterTypes functionPointer.restype = resultType if isinstance(returnType, type) and issubclass(returnType, IntEnum): |