fix: update __repr__ method in QueryParams to return class name dynamically

This commit is contained in:
Bakyt Niiazaliev 2025-06-14 10:59:12 +07:00
parent b944445088
commit adef6c66e2

View File

@ -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)]