mirror of
https://github.com/pybind/pybind11.git
synced 2026-05-04 13:41:36 +00:00
refactor: module -> module_ with typedef (#2544)
* WIP: module -> module_ without typedef * refactor: allow py::module to work again
This commit is contained in:
@@ -289,7 +289,7 @@ TEST_SUBMODULE(pytypes, m) {
|
||||
py::print("no new line here", "end"_a=" -- ");
|
||||
py::print("next print");
|
||||
|
||||
auto py_stderr = py::module::import("sys").attr("stderr");
|
||||
auto py_stderr = py::module_::import("sys").attr("stderr");
|
||||
py::print("this goes to stderr", "file"_a=py_stderr);
|
||||
|
||||
py::print("flush", "flush"_a=true);
|
||||
|
||||
Reference in New Issue
Block a user