| 50 | |
| 51 | public: |
| 52 | static handle cast(const T &path, return_value_policy, handle) { |
| 53 | if (auto py_str = unicode_from_fs_native(path.native())) { |
| 54 | return module_::import("pathlib") |
| 55 | .attr("Path")(reinterpret_steal<object>(py_str)) |
| 56 | .release(); |
| 57 | } |
| 58 | return nullptr; |
| 59 | } |
| 60 | |
| 61 | bool load(handle handle, bool) { |
| 62 | // PyUnicode_FSConverter and PyUnicode_FSDecoder normally take care of |
nothing calls this directly
no test coverage detected