Skip to content

Commit

Permalink
reverted the change to accept only keywords arguments and have user a…
Browse files Browse the repository at this point in the history
…nd password as mandatory.
  • Loading branch information
ghyatzo committed Oct 16, 2024
1 parent 3d12840 commit 22cec4a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ffi/python/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ impl User {
fn get_name(&self) -> pyo3::PyResult<String> {
Ok(self.name.clone())
}

#[setter]
fn set_name(&mut self, value: String) -> pyo3::PyResult<()> {
self.name = value;
Expand All @@ -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,
Expand Down

0 comments on commit 22cec4a

Please sign in to comment.