diff --git a/hikyuu_pywrap/_Block.cpp b/hikyuu_pywrap/_Block.cpp index ede1b461..4a3a6cd3 100644 --- a/hikyuu_pywrap/_Block.cpp +++ b/hikyuu_pywrap/_Block.cpp @@ -29,7 +29,7 @@ void export_Block(py::module& m) { .def("__str__", to_py_str) .def("__repr__", to_py_str) - .def_property("category", setCategory, getCategory, "板块所属分类") + .def_property("category", getCategory, setCategory, "板块所属分类") .def_property("name", getName, setName, "板块名称") .def_property("index_stock", &Block::getIndexStock, &Block::setIndexStock, py::return_value_policy::copy, "对应指数")