From 22cec4ab561c8cbe81931dd0589483e70df7ffd8 Mon Sep 17 00:00:00 2001 From: cschen Date: Wed, 16 Oct 2024 16:46:41 +0200 Subject: [PATCH] reverted the change to accept only keywords arguments and have user and password as mandatory. --- src/ffi/python/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ffi/python/mod.rs b/src/ffi/python/mod.rs index aaab6a9..a0f7b8e 100644 --- a/src/ffi/python/mod.rs +++ b/src/ffi/python/mod.rs @@ -174,7 +174,7 @@ impl User { fn get_name(&self) -> pyo3::PyResult { Ok(self.name.clone()) } - + #[setter] fn set_name(&mut self, value: String) -> pyo3::PyResult<()> { self.name = value; @@ -189,7 +189,7 @@ impl User { #[pymethods] impl Config { #[new] - #[pyo3(signature = (username, password, **kwds))] + #[pyo3(signature = (*, username, password, **kwds))] pub fn pynew( username: String, password: String,