| 191 | } |
| 192 | |
| 193 | static Result<std::nullptr_t> Convert(const NullType*, const O&, I obj) { |
| 194 | if (obj == Py_None) { |
| 195 | return nullptr; |
| 196 | } else { |
| 197 | return Status::Invalid("Invalid null value"); |
| 198 | } |
| 199 | } |
| 200 | |
| 201 | static Result<bool> Convert(const BooleanType*, const O&, I obj) { |
| 202 | if (obj == Py_True) { |
nothing calls this directly
no test coverage detected