mirror of
https://github.com/hexedtech/codemp.git
synced 2024-11-21 23:04:49 +01:00
reverted the change to accept only keywords arguments and have user and password as mandatory.
This commit is contained in:
parent
3d12840459
commit
22cec4ab56
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue