forked from Rust-related/RustPython
suppress cilppy warnings
This commit is contained in:
@@ -507,6 +507,7 @@ impl PyBoundMethod {
|
||||
impl PyBoundMethod {
|
||||
#[pymethod(magic)]
|
||||
fn repr(&self, vm: &VirtualMachine) -> PyResult<String> {
|
||||
#[allow(clippy::needless_match)] // False positive on nightly
|
||||
let funcname =
|
||||
if let Some(qname) = vm.get_attribute_opt(self.function.clone(), "__qualname__")? {
|
||||
Some(qname)
|
||||
|
||||
Reference in New Issue
Block a user