From 0c726ac36be1ad1cba24eb7eff476b9a32e643fb Mon Sep 17 00:00:00 2001 From: Patrick Lehmann Date: Thu, 17 Jun 2021 23:12:36 +0200 Subject: Black found more files - strange. Executed black to make code unreadable. (cherry picked from commit 1b34c2368428b1ec295073ee47d201ac1def35f6) --- pyGHDL/libghdl/libraries.py | 21 ++++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) (limited to 'pyGHDL/libghdl/libraries.py') 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. -- cgit v1.2.3