diff options
author | Patrick Lehmann <Patrick.Lehmann@plc2.de> | 2021-06-17 23:12:36 +0200 |
---|---|---|
committer | Unai Martinez-Corral <38422348+umarcor@users.noreply.github.com> | 2021-06-17 22:53:27 +0100 |
commit | 0c726ac36be1ad1cba24eb7eff476b9a32e643fb (patch) | |
tree | 524d81d4df412cca136b766305506574b34bf15e /pyGHDL/libghdl/libraries.py | |
parent | e5891f3900f5e58df37d32c2c18a0f339c094cf4 (diff) | |
download | ghdl-0c726ac36be1ad1cba24eb7eff476b9a32e643fb.tar.gz ghdl-0c726ac36be1ad1cba24eb7eff476b9a32e643fb.tar.bz2 ghdl-0c726ac36be1ad1cba24eb7eff476b9a32e643fb.zip |
Black found more files - strange.
Executed black to make code unreadable.
(cherry picked from commit 1b34c2368428b1ec295073ee47d201ac1def35f6)
Diffstat (limited to 'pyGHDL/libghdl/libraries.py')
-rw-r--r-- | pyGHDL/libghdl/libraries.py | 21 |
1 files changed, 14 insertions, 7 deletions
diff --git a/pyGHDL/libghdl/libraries.py b/pyGHDL/libghdl/libraries.py index ef3d8e98d..963f390d9 100644 --- a/pyGHDL/libghdl/libraries.py +++ b/pyGHDL/libghdl/libraries.py @@ -37,13 +37,16 @@ from ctypes import c_int32 from pydecor import export from pyGHDL.libghdl import libghdl -from pyGHDL.libghdl._types import NameId, Iir_Library_Declaration, Iir_Design_Unit, Iir_Design_File, Location_Type +from pyGHDL.libghdl._types import ( + NameId, + Iir_Library_Declaration, + Iir_Design_Unit, + Iir_Design_File, + Location_Type, +) from pyGHDL.libghdl._decorator import BindToLibGHDL -__all__ = [ - "Library_Location", - "Work_Library" -] +__all__ = ["Library_Location", "Work_Library"] Library_Location: Location_Type = c_int32.in_dll(libghdl, "libraries__library_location") """ @@ -51,7 +54,9 @@ A location for library declarations (such as library WORK). Use ``.value`` to access this variable inside libghdl. """ -Work_Library:Iir_Library_Declaration = c_int32.in_dll(libghdl, "libraries__work_library") +Work_Library: Iir_Library_Declaration = c_int32.in_dll( + libghdl, "libraries__work_library" +) """ Library declaration for the work library. Note: the identifier of the work_library is ``work_library_name``, which may be different from 'WORK'. Use ``.value`` to @@ -126,7 +131,9 @@ def Get_Library_No_Create(Ident: NameId) -> Iir_Library_Declaration: @export @BindToLibGHDL("libraries__find_primary_unit") -def Find_Primary_Unit(Library: Iir_Library_Declaration, Name: NameId) -> Iir_Design_Unit: +def Find_Primary_Unit( + Library: Iir_Library_Declaration, Name: NameId +) -> Iir_Design_Unit: """ Just return the design_unit for :obj:`Name`, or ``NULL`` if not found. |