fix: update __repr__ method in QueryParams to return class name dynamically
This commit is contained in:
parent
b944445088
commit
adef6c66e2
@ -211,8 +211,9 @@ impl QueryParams {
|
||||
}
|
||||
}
|
||||
|
||||
pub fn __repr__(&self) -> String {
|
||||
format!("QueryParams('{}')", self)
|
||||
pub fn __repr__(slf: &Bound<'_, Self>) -> PyResult<String> {
|
||||
let class_name = slf.get_type().qualname()?;
|
||||
Ok(format!("{}('{}')", class_name, slf))
|
||||
}
|
||||
|
||||
#[allow(unused_variables)]
|
||||
|
||||
Loading…
Reference in New Issue
Block a user