23 #include "pybind11/pybind11.h"
28 using namespace pybind11::literals;
35 py::class_<PolicyString, std::shared_ptr<PolicyString>,
PolicySource>
cls(mod,
"PolicyString");
37 cls.def(py::init<const std::string&, const SupportedFormats::Ptr&>(),
"data"_a,
38 "fmts"_a = PolicyString::defaultFormats);
40 cls.def(py::init<const SupportedFormats::Ptr&>(),
"fmts"_a = PolicyString::defaultFormats);