Skip to content

Commit 48a1ab8

Browse files
committed
pybind11-stubgen 2.2
Fix more invalid expressions, esp. in default arguments https://pybind11.readthedocs.io/en/stable/advanced/functions.html#default-arguments-revisited
1 parent 184ce75 commit 48a1ab8

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/Base/MultiFab.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,9 @@ void init_MultiFab(py::module &m)
309309
"Returns the sum of component 'comp' over the MultiFab -- no ghost cells are included."
310310
)
311311
.def("sum_unique", &MultiFab::sum_unique,
312-
py::arg("comp") = 0, py::arg("local") = false, py::arg("period") = Periodicity::NonPeriodic(),
312+
py::arg("comp") = 0,
313+
py::arg("local") = false,
314+
py::arg_v("period", Periodicity::NonPeriodic(), "Periodicity.non_periodic()"),
313315
"Same as sum with local=false, but for non-cell-centered data, this"
314316
"skips non-unique points that are owned by multiple boxes."
315317
)

src/Base/PlotFileUtil.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,6 @@ void init_PlotFileUtil(py::module& m)
2828
py::arg("versionName")="HyperCLaw-V1.1",
2929
py::arg("levelPrefix")="Level_",
3030
py::arg("mfPrefix")="Cell",
31-
py::arg("extra_dirs")=Vector<std::string>()
31+
py::arg_v("extra_dirs", Vector<std::string>(), "list[str]")
3232
);
3333
}

0 commit comments

Comments
 (0)