From 53ff740f0ec2a13b50673fb989190cc73bee60f6 Mon Sep 17 00:00:00 2001 From: "Jason R. Coombs" Date: Sun, 29 Nov 2020 16:14:10 -0500 Subject: [PATCH] Suppress type check error on NativeStorageServerWithVersion --- src/allmydata/test/test_storage_client.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/allmydata/test/test_storage_client.py b/src/allmydata/test/test_storage_client.py index fa3a34b15..f2be9ad1e 100644 --- a/src/allmydata/test/test_storage_client.py +++ b/src/allmydata/test/test_storage_client.py @@ -90,7 +90,12 @@ from allmydata.interfaces import ( SOME_FURL = b"pb://abcde@nowhere/fake" -class NativeStorageServerWithVersion(NativeStorageServer): + +# type checks fail with: +# Cannot determine consistent method resolution order (MRO) for "NativeStorageServerWithVersion" +# even though class hierarchy is single-inheritance. Probably `implementer` +# wrappers are affecting the MRO. +class NativeStorageServerWithVersion(NativeStorageServer): # type: ignore def __init__(self, version): # note: these instances won't work for anything other than # get_available_space() because we don't upcall