Skip to content

Commit 1b7e650

Browse files
committed
fixed default param and docs
1 parent fa15676 commit 1b7e650

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/python_bindings/bindings/netlist_factory.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,11 @@ namespace hal
1616

1717
.def(
1818
"load_netlist",
19-
[](const std::filesystem::path& netlist_file, const std::filesystem::path& gate_library_file) {
19+
[](const std::filesystem::path& netlist_file, const std::filesystem::path& gate_library_file = std::filesystem::path()) {
2020
return std::shared_ptr<Netlist>(netlist_factory::load_netlist(netlist_file, gate_library_file));
2121
},
2222
py::arg("netlist_file"),
23-
py::arg("gate_library_file") = "",
23+
py::arg("gate_library_file") = std::filesystem::path(),
2424
R"(
2525
Create a netlist from the given file using the specified gate library file.
2626
Will either deserialize ``.hal`` file or call parser plugin for other formats.
@@ -42,7 +42,7 @@ namespace hal
4242
Will either deserialize ``.hal`` file or call parser plugin for other formats.
4343
4444
:param pathlib.Path netlist_file: Path to the file.
45-
:param pathlib.Path gate_library_file: Path to the gate library file.
45+
:param hal_py.GateLibrary gate_library_file: Path to the gate library file.
4646
:returns: The netlist on success, ``None`` otherwise.
4747
:rtype: hal_py.Netlist or None
4848
)")

0 commit comments

Comments
 (0)