Skip to content

Commit 68e1c43

Browse files
feat: expose OntoEnv.update(all) in Python API
Co-authored-by: aider (openai/gpt-5) <[email protected]>
1 parent 2810709 commit 68e1c43

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

python/src/lib.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -285,11 +285,12 @@ impl OntoEnv {
285285
})
286286
}
287287

288-
fn update(&self) -> PyResult<()> {
288+
#[pyo3(signature = (all=false))]
289+
fn update(&self, all: bool) -> PyResult<()> {
289290
let inner = self.inner.clone();
290291
let mut guard = inner.lock().unwrap();
291292
if let Some(env) = guard.as_mut() {
292-
env.update(false).map_err(anyhow_to_pyerr)?;
293+
env.update(all).map_err(anyhow_to_pyerr)?;
293294
env.save_to_directory().map_err(anyhow_to_pyerr)
294295
} else {
295296
Err(PyErr::new::<pyo3::exceptions::PyValueError, _>(

0 commit comments

Comments
 (0)