suppress cilppy warnings

This commit is contained in:
Jeong Yunwon
2022-04-17 22:24:20 +09:00
parent d97a398609
commit 5da0314169

View File

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