From 1b7e6506af8006e07ba3d7b74d718286c29d66ca Mon Sep 17 00:00:00 2001 From: "julian.speith" Date: Mon, 29 Jul 2024 14:11:51 +0200 Subject: [PATCH] fixed default param and docs --- src/python_bindings/bindings/netlist_factory.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/python_bindings/bindings/netlist_factory.cpp b/src/python_bindings/bindings/netlist_factory.cpp index 5cf5263cea8..6b45d1c270b 100644 --- a/src/python_bindings/bindings/netlist_factory.cpp +++ b/src/python_bindings/bindings/netlist_factory.cpp @@ -16,11 +16,11 @@ namespace hal .def( "load_netlist", - [](const std::filesystem::path& netlist_file, const std::filesystem::path& gate_library_file) { + [](const std::filesystem::path& netlist_file, const std::filesystem::path& gate_library_file = std::filesystem::path()) { return std::shared_ptr(netlist_factory::load_netlist(netlist_file, gate_library_file)); }, py::arg("netlist_file"), - py::arg("gate_library_file") = "", + py::arg("gate_library_file") = std::filesystem::path(), R"( Create a netlist from the given file using the specified gate library file. Will either deserialize ``.hal`` file or call parser plugin for other formats. @@ -42,7 +42,7 @@ namespace hal Will either deserialize ``.hal`` file or call parser plugin for other formats. :param pathlib.Path netlist_file: Path to the file. - :param pathlib.Path gate_library_file: Path to the gate library file. + :param hal_py.GateLibrary gate_library_file: Path to the gate library file. :returns: The netlist on success, ``None`` otherwise. :rtype: hal_py.Netlist or None )")