diff --git a/bindings/python/src/models.rs b/bindings/python/src/models.rs index 4cb27f9e..828aca0a 100644 --- a/bindings/python/src/models.rs +++ b/bindings/python/src/models.rs @@ -23,19 +23,7 @@ impl Model { )) } - #[args(kwargs = "**")] - fn save(&self, folder: &str, kwargs: Option<&PyDict>) -> PyResult> { - let mut name: Option<&str> = None; - if let Some(kwargs) = kwargs { - for (key, value) in kwargs { - let key: &str = key.extract()?; - match key { - "name" => name = value.extract()?, - _ => println!("Ignored unknown kwarg option {}", key), - } - } - } - + fn save(&self, folder: &str, name: Option<&str>) -> PyResult> { let saved: PyResult> = ToPyResult( self.model .execute(|model| model.save(Path::new(folder), name)),