Suppress type check error on NativeStorageServerWithVersion

This commit is contained in:
Jason R. Coombs 2020-11-29 16:14:10 -05:00
parent ffa19d1c07
commit 53ff740f0e

View File

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