mirror of
https://github.com/RustPython/RustPython.git
synced 2026-10-28 18:59:04 +08:00
suppress cilppy warnings
This commit is contained in:
1 parent
d97a398609
commit
5da0314169
1 file changed
+1
@@ -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