diff --git a/src/allmydata/immutable/upload.py b/src/allmydata/immutable/upload.py index a331cc5db..36bd86fa6 100644 --- a/src/allmydata/immutable/upload.py +++ b/src/allmydata/immutable/upload.py @@ -1843,7 +1843,9 @@ class Uploader(service.MultiService, log.PrefixingLogMixin): """I am a service that allows file uploading. I am a service-child of the Client. """ - name = "uploader" + # The type in Twisted for services is wrong in 22.10... + # https://github.com/twisted/twisted/issues/10135 + name = "uploader" # type: ignore[assignment] URI_LIT_SIZE_THRESHOLD = 55 def __init__(self, helper_furl=None, stats_provider=None, history=None): diff --git a/src/allmydata/storage/server.py b/src/allmydata/storage/server.py index d805df1c1..858b87b1f 100644 --- a/src/allmydata/storage/server.py +++ b/src/allmydata/storage/server.py @@ -57,7 +57,7 @@ class StorageServer(service.MultiService): """ # The type in Twisted for services is wrong in 22.10... # https://github.com/twisted/twisted/issues/10135 - name = 'storage' # type: ignore + name = 'storage' # type: ignore[assignment] # only the tests change this to anything else LeaseCheckerClass = LeaseCheckingCrawler