| 23 | nb::object callback; |
| 24 | |
| 25 | [[nodiscard]] bool valid() const { |
| 26 | return callback.is_valid() && !callback.is_none(); |
| 27 | } |
| 28 | |
| 29 | [[nodiscard]] bool operator()(const float progress, const std::string& stage) const { |
| 30 | if (!valid()) |
no test coverage detected