dev qol: Bind PySecurity __format__ to fmt::formatter impl

This commit is contained in:
John Colvin committed 2025-06-09 06:06:50 +00:00
1 parent 8f5338d672
commit 453d516acf
2 files changed
+43 -3

No files matched your search

@@ -122,7 +122,8 @@ PYBIND11_MODULE(python_interop_module, m) {
.PROP(PySecurity, spot)
.PROP(PySecurity, future)
.PROP(PySecurity, option)
.def("__str__", &PySecurity::to_string);
.def("__str__", &PySecurity::to_string)
.def("__format__", &PySecurity::format);
py::bind_vector<std::vector<shared_ptr<PySecurity>>>(m, "PySecurityList");
//////////////////////////////////////////////////